/* ============================================================================
   MeckaR Platform — Design System
   ============================================================================ */

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

:root {
  /* ── Bakgrund / ytor ── */
  --bg: #0b0b0e;
  --bg-2: #111114;
  --surface: rgba(255,255,255,0.035);
  --surface-2: rgba(255,255,255,0.06);
  --surface-3: rgba(255,255,255,0.09);
  --border: rgba(255,255,255,0.08);
  --border-2: rgba(255,255,255,0.14);

  /* ── Text ── */
  --text: #f5f5f7;
  --muted: rgba(255,255,255,0.55);
  --muted-2: rgba(255,255,255,0.38);

  /* ── Brand & semantiska färger ── */
  --brand: #dc3545;
  --brand-soft: #ff5564;
  --success: #22c55e;
  --success-soft: #86efac;
  --success-bg: rgba(34,197,94,0.13);
  --warning: #f59e0b;
  --warning-soft: #fcd34d;
  --warning-bg: rgba(245,158,11,0.18);
  --danger: #ef4444;
  --danger-soft: #fca5a5;
  --danger-bg: rgba(220,53,69,0.13);
  --info: #3b82f6;
  --info-soft: #93c5fd;
  --info-bg: rgba(59,130,246,0.16);
  --purple-soft: #c4b5fd;
  --purple-bg: rgba(139,92,246,0.16);
  --neutral-soft: rgba(255,255,255,0.06);

  /* ── Typografi ── */
  --mono: 'JetBrains Mono', 'SF Mono', 'Menlo', 'Consolas', 'Courier New', monospace;
}

html, body {
  margin: 0; padding: 0;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

body:not(.no-ambient)::before {
  content: '';
  position: fixed; inset: 0;
  background:
    radial-gradient(900px 600px at 85% -10%, rgba(220,53,69,0.10), transparent 60%),
    radial-gradient(700px 500px at -10% 30%, rgba(220,53,69,0.05), transparent 70%);
  pointer-events: none;
  z-index: 0;
}

main, .page-container { position: relative; z-index: 1; }

a { color: inherit; }
.num { font-family: var(--mono); font-variant-numeric: tabular-nums; }

/* ============================================================================
   NAVBAR
   ============================================================================ */
.gs-nav {
  position: sticky; top: 0; z-index: 40;
  background: rgba(11,11,14,0.78);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  border-bottom: 1px solid var(--border);
}
.gs-nav-inner {
  max-width: 1480px; margin: 0 auto;
  padding: 0 28px; height: 60px;
  display: flex; align-items: center; gap: 36px;
}
.gs-brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); }
.gs-brand-tile {
  width: 32px; height: 32px;
  border-radius: 9px;
  display: grid; place-items: center;
  background: linear-gradient(135deg, var(--brand) 0%, #8b1a25 100%);
  box-shadow: 0 6px 16px rgba(220,53,69,0.35);
}
.gs-brand-tile svg { width: 18px; height: 18px; color: #fff; }
.gs-brand-name { font-weight: 700; letter-spacing: -0.01em; font-size: 0.95rem; }

.gs-nav-links { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.gs-nav-links a, .gs-nav-links .gs-nav-trigger {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 8px 12px;
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 500;
  text-decoration: none;
  border-radius: 8px;
  transition: color .15s, background .15s;
  background: transparent; border: 0; cursor: pointer; font-family: inherit;
}
.gs-nav-links a:hover, .gs-nav-links .gs-nav-trigger:hover { color: var(--text); background: var(--surface-2); }
.gs-nav-links a.active { color: var(--text); background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--border-2); }
.gs-nav-links svg { width: 14px; height: 14px; }

.gs-nav-spacer { flex: 1; }

.gs-user-chip {
  display: flex; align-items: center; gap: 10px;
  padding: 6px 6px 6px 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 0.82rem;
}
.gs-icon-btn {
  width: 36px; height: 36px;
  display: grid; place-items: center;
  border-radius: 8px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--muted);
  cursor: pointer;
  transition: all .15s;
  text-decoration: none;
}
.gs-icon-btn:hover { color: var(--text); border-color: var(--border-2); }
.gs-icon-btn svg { width: 16px; height: 16px; }

.gs-nav-toggle {
  display: none;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: 8px;
  padding: 6px 10px;
  cursor: pointer;
}
.gs-nav-toggle svg { width: 16px; height: 16px; }
@media (max-width: 960px) {
  .gs-nav-links { display: none; position: absolute; top: 60px; left: 0; right: 0; flex-direction: column; background: rgba(11,11,14,0.96); padding: 8px; gap: 2px; border-bottom: 1px solid var(--border); backdrop-filter: blur(18px); }
  .gs-nav-links.open { display: flex; }
  .gs-nav-toggle { display: inline-flex; align-items: center; gap: 6px; }
}

/* ============================================================================
   KNAPPAR
   ============================================================================ */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 16px;
  border-radius: 10px;
  font-size: 0.875rem; font-weight: 600;
  cursor: pointer;
  border: 1px solid transparent;
  text-decoration: none;
  transition: all .15s;
  white-space: nowrap;
  color: inherit;
  font-family: inherit;
}
.btn-primary { background: linear-gradient(135deg, var(--brand) 0%, #b02a37 100%); color: #fff; box-shadow: 0 6px 18px rgba(220,53,69,0.35); }
.btn-primary:hover { filter: brightness(1.07); box-shadow: 0 8px 22px rgba(220,53,69,0.45); }
.btn-primary:active { transform: translateY(1px); }
.btn-ghost { background: var(--surface); color: var(--text); border-color: var(--border); }
.btn-ghost:hover { background: var(--surface-2); border-color: var(--border-2); }
.btn-success { background: var(--success-bg); color: var(--success-soft); border-color: rgba(34,197,94,0.30); }
.btn-success:hover { background: rgba(34,197,94,0.25); border-color: rgba(34,197,94,0.5); }
.btn-warning { background: var(--warning-bg); color: var(--warning-soft); border-color: rgba(245,158,11,0.30); }
.btn-warning:hover { background: rgba(245,158,11,0.28); border-color: rgba(245,158,11,0.5); }
.btn-info-ghost { background: var(--info-bg); color: var(--info-soft); border-color: rgba(59,130,246,0.30); }
.btn-info-ghost:hover { background: rgba(59,130,246,0.25); border-color: rgba(59,130,246,0.5); }
.btn-danger-ghost { background: rgba(220,53,69,0.10); color: var(--brand-soft); border-color: rgba(220,53,69,0.30); }
.btn-danger-ghost:hover { background: rgba(220,53,69,0.20); border-color: rgba(220,53,69,0.50); }
.btn-sm { padding: 6px 12px; font-size: 0.78rem; }
.btn svg { width: 14px; height: 14px; }

/* ============================================================================
   FORM-FÄLT
   ============================================================================ */
.form-input, .form-select {
  width: 100%;
  background: var(--bg-2);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 9px;
  padding: 10px 12px;
  font-size: 0.92rem;
  font-family: inherit;
  outline: none;
  transition: border-color .15s, box-shadow .15s;
}
.form-input:focus, .form-select:focus { border-color: var(--brand-soft); box-shadow: 0 0 0 3px rgba(220,53,69,0.18); }
.form-input::placeholder { color: var(--muted-2); }
textarea.form-input { resize: vertical; min-height: 64px; line-height: 1.5; }
.form-select {
  appearance: none; -webkit-appearance: none;
  padding-right: 32px;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 10 10'><path d='M1 3 L5 7 L9 3' stroke='%23999' stroke-width='1.5' fill='none' stroke-linecap='round'/></svg>");
  background-repeat: no-repeat;
  background-position: right 12px center;
}

.form-group { margin-bottom: 14px; }
.form-label {
  display: flex; align-items: center; justify-content: space-between;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 6px;
}
.form-label .req { color: var(--brand-soft); margin-left: 2px; }
.form-label .hint { font-size: 0.7rem; color: var(--muted-2); font-weight: 500; text-transform: none; letter-spacing: 0; }
.form-help { font-size: 0.74rem; color: var(--muted); margin-top: 5px; line-height: 1.45; }

/* ============================================================================
   BADGES & PILLS
   ============================================================================ */
.badge {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  white-space: nowrap;
}
.badge-dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.badge-active   { background: var(--success-bg); color: var(--success-soft); }
.badge-inactive { background: var(--neutral-soft); color: var(--muted); }
.badge-aktiv    { background: var(--success-bg); color: var(--success-soft); }
.badge-inaktiv  { background: var(--neutral-soft); color: var(--muted); }
.badge-platform { background: var(--purple-bg); color: var(--purple-soft); }
.sid-mask { font-family: var(--mono); color: var(--muted); }
.badge-status-inkommen,  .badge-status-Inkommen  { background: var(--warning-bg); color: var(--warning-soft); }
.badge-status-pagaende,  .badge-status-Pågående  { background: var(--info-bg); color: var(--info-soft); }
.badge-status-avslutad,  .badge-status-Avslutad  { background: var(--success-bg); color: var(--success-soft); }
.badge-status-kommande,  .badge-status-Kommande  { background: rgba(139,92,246,0.15); color: #c4b5fd; }
.badge-paid       { background: var(--success-bg); color: var(--success-soft); }
.badge-invoiced   { background: var(--info-bg);    color: var(--info-soft); }
.badge-unpaid     { background: var(--danger-bg);  color: var(--danger-soft); }
.badge-kund    { background: var(--neutral-soft); color: var(--muted); border: 1px solid var(--border); font-weight: 500; }

.regnr-pill {
  display: inline-block;
  font-family: var(--mono);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  color: var(--text);
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border-2);
  border-radius: 5px;
  padding: 3px 8px;
  white-space: nowrap;
}

.flag-tab {
  position: absolute;
  top: -9px; left: 14px;
  z-index: 5;
  display: inline-flex; align-items: center; gap: 5px;
  padding: 4px 10px 4px 8px;
  background: linear-gradient(135deg, #fcd34d 0%, #f59e0b 60%, #d97706 100%);
  color: #1f1402;
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: 5px;
  box-shadow: 0 4px 12px rgba(245,158,11,0.5), inset 0 1px 0 rgba(255,255,255,0.45);
  animation: flagPulse 2.2s ease-in-out infinite;
  pointer-events: none;
}
.flag-tab::after {
  content: '';
  position: absolute;
  left: 8px; bottom: -5px;
  width: 10px; height: 6px;
  background: inherit;
  clip-path: polygon(0 0, 100% 0, 50% 100%);
}
.flag-tab svg { width: 11px; height: 11px; }
@keyframes flagPulse {
  0%, 100% { box-shadow: 0 4px 12px rgba(245,158,11,0.50), 0 0 0 0 rgba(245,158,11,0.55), inset 0 1px 0 rgba(255,255,255,0.45); }
  50%      { box-shadow: 0 4px 14px rgba(245,158,11,0.6), 0 0 0 8px rgba(245,158,11,0), inset 0 1px 0 rgba(255,255,255,0.45); }
}

/* ============================================================================
   KORT / PANEL
   ============================================================================ */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
}
.card-head {
  padding: 12px 18px;
  border-bottom: 1px solid var(--border);
  background: rgba(255,255,255,0.025);
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
}
.card-head h3 { margin: 0; font-size: 0.9rem; font-weight: 700; display: flex; align-items: center; gap: 9px; }
.card-head h3 small { color: var(--muted); font-weight: 500; font-size: 0.74rem; margin-left: 4px; }
.card-body { padding: 18px; }
.card-body.flush { padding: 0; }

/* ============================================================================
   ALERTS
   ============================================================================ */
.gs-alert {
  border-radius: 10px;
  padding: 10px 14px;
  margin-bottom: 16px;
  font-size: 0.85rem;
  display: flex; align-items: center; gap: 10px;
}
.gs-alert svg { width: 16px; height: 16px; flex-shrink: 0; }
.gs-alert-success { background: rgba(34,197,94,0.10); border: 1px solid rgba(34,197,94,0.28); color: #a7f3c4; }
.gs-alert-danger  { background: rgba(220,53,69,0.10); border: 1px solid rgba(220,53,69,0.30); color: #fca5a5; }
.gs-alert-info    { background: rgba(59,130,246,0.10); border: 1px solid rgba(59,130,246,0.30); color: var(--info-soft); }

/* ============================================================================
   SLIDE-OVER
   ============================================================================ */
.slideover-backdrop {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.55);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 1500;
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s ease;
}
.slideover-backdrop.open { opacity: 1; pointer-events: auto; }
.slideover {
  position: fixed; top: 0; right: 0; bottom: 0;
  width: 100%; max-width: 480px;
  background: #131318;
  border-left: 1px solid var(--border);
  box-shadow: -20px 0 60px rgba(0,0,0,0.5);
  z-index: 1501;
  transform: translateX(100%);
  transition: transform .35s cubic-bezier(.34,1.2,.64,1);
  display: flex; flex-direction: column;
}
.slideover.open { transform: translateX(0); }
.so-header {
  padding: 22px 24px 18px;
  border-bottom: 1px solid var(--border);
  display: flex; align-items: start; justify-content: space-between;
  gap: 12px;
}
.so-header-left { display: flex; gap: 14px; flex: 1; min-width: 0; }
.so-iconbox {
  width: 46px; height: 46px;
  border-radius: 12px;
  display: grid; place-items: center;
  color: #fff;
  flex-shrink: 0;
  background: linear-gradient(135deg, var(--brand) 0%, #8b1a25 100%);
  box-shadow: 0 6px 16px rgba(220,53,69,0.30);
}
.so-iconbox.edit { background: linear-gradient(135deg, var(--warning) 0%, #b45309 100%); box-shadow: 0 6px 16px rgba(245,158,11,0.30); }
.so-iconbox svg { width: 22px; height: 22px; }
.so-header-text h2 { margin: 0 0 4px; font-size: 1.15rem; font-weight: 700; letter-spacing: -0.01em; }
.so-header-text p  { margin: 0; color: var(--muted); font-size: 0.82rem; }
.so-close {
  width: 32px; height: 32px;
  border-radius: 8px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--muted);
  cursor: pointer;
  display: grid; place-items: center;
  transition: all .15s;
  flex-shrink: 0;
}
.so-close:hover { color: var(--text); border-color: var(--border-2); }
.so-close svg { width: 14px; height: 14px; }

.so-body { padding: 22px 24px; overflow-y: auto; flex: 1; }
.so-footer {
  padding: 16px 24px;
  border-top: 1px solid var(--border);
  display: flex; gap: 10px; justify-content: flex-end; align-items: center;
  background: rgba(0,0,0,0.2);
}
.so-footer .btn { padding: 9px 16px; font-size: 0.85rem; }
.so-footer .delete-btn { margin-right: auto; }

body.slideover-open { overflow: hidden; }

.section-title {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--muted-2);
  margin: 0 0 12px;
  display: flex; align-items: center; gap: 8px;
}
.section-title::after { content: ''; flex: 1; height: 1px; background: var(--border); }

.toggle-row {
  display: flex; align-items: center; justify-content: space-between;
  gap: 14px;
  padding: 14px 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 11px;
  margin-bottom: 10px;
  transition: border-color .15s, background .15s;
}
.toggle-row:hover { border-color: var(--border-2); }
.toggle-row .info { flex: 1; min-width: 0; }
.toggle-row .info strong { display: block; font-size: 0.88rem; font-weight: 600; margin-bottom: 2px; color: var(--text); }
.toggle-row .info small { font-size: 0.75rem; color: var(--muted); line-height: 1.4; }
.toggle-row .ico { width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center; flex-shrink: 0; }
.toggle-row .ico svg { width: 14px; height: 14px; }

.switch {
  flex-shrink: 0;
  position: relative;
  width: 44px; height: 24px;
  background: rgba(255,255,255,0.10);
  border: 1px solid var(--border);
  border-radius: 999px;
  cursor: pointer;
  transition: background .2s, border-color .2s;
}
.switch::after {
  content: '';
  position: absolute;
  top: 2px; left: 2px;
  width: 18px; height: 18px;
  background: #fff;
  border-radius: 50%;
  transition: left .22s cubic-bezier(.34,1.4,.64,1);
  box-shadow: 0 2px 4px rgba(0,0,0,0.4);
}
.switch.on {
  background: linear-gradient(135deg, var(--brand) 0%, #b02a37 100%);
  border-color: transparent;
  box-shadow: 0 0 0 1px rgba(220,53,69,0.4), 0 4px 10px rgba(220,53,69,0.3);
}
.switch.on::after { left: 22px; }
.switch:active { transform: scale(0.96); }

/* ============================================================================
   STAT KORT (KPI-strip)
   ============================================================================ */
.stat-mini {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px 16px;
  display: flex; align-items: center; gap: 12px;
  transition: border-color .15s, background .15s;
}
.stat-mini:hover { background: var(--surface-2); border-color: var(--border-2); }
.stat-mini .ic {
  width: 38px; height: 38px;
  border-radius: 10px;
  display: grid; place-items: center;
  flex-shrink: 0;
}
.stat-mini .ic svg { width: 18px; height: 18px; }
.stat-mini .ic.brand   { background: rgba(220,53,69,0.12); color: var(--brand-soft); }
.stat-mini .ic.success { background: var(--success-bg); color: var(--success-soft); }
.stat-mini .ic.warning { background: var(--warning-bg); color: var(--warning-soft); }
.stat-mini .ic.info    { background: var(--info-bg); color: var(--info-soft); }
.stat-mini .ic.muted   { background: var(--neutral-soft); color: var(--muted); }
.stat-mini .l { font-size: 0.7rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.05em; font-weight: 600; }
.stat-mini .v {
  font-family: var(--mono); font-variant-numeric: tabular-nums;
  font-size: 1.25rem; font-weight: 700; letter-spacing: -0.01em; line-height: 1.1;
}
.stat-mini .v small { font-size: 0.78rem; font-weight: 500; color: var(--muted); margin-left: 4px; }

/* ============================================================================
   ÅTGÄRDS-KNAPPAR
   ============================================================================ */
.act {
  width: 30px; height: 30px;
  display: grid; place-items: center;
  border-radius: 7px;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  color: var(--muted);
  cursor: pointer;
  transition: all .12s ease;
  text-decoration: none;
}
.act:hover            { color: var(--text); border-color: var(--border-2); background: var(--surface-2); }
.act.act-edit:hover   { color: var(--brand-soft); border-color: rgba(220,53,69,0.4); background: rgba(220,53,69,0.10); }
.act.act-finish:hover { color: #fff; border-color: var(--success); background: var(--success); }
.act.act-pay:hover    { color: #fff; border-color: var(--warning); background: var(--warning); }
.act.act-delete:hover { color: #fff; border-color: var(--brand); background: var(--brand); }
.act.disabled         { opacity: 0.3; cursor: not-allowed; pointer-events: none; }
.act svg { width: 14px; height: 14px; }
.act:active { transform: scale(0.96); }

/* ============================================================================
   VECKA-NAVIGERING
   ============================================================================ */
.vecka-nav { display: inline-flex; align-items: center; gap: 6px; background: var(--surface); border: 1px solid var(--border); border-radius: 10px; padding: 4px; }
.vn-btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 34px; height: 32px;
  padding: 0 12px;
  border-radius: 7px;
  color: var(--muted);
  text-decoration: none;
  font-size: 0.82rem; font-weight: 600;
  transition: background .12s, color .12s;
  cursor: pointer;
}
.vn-btn:hover { background: var(--surface-2); color: var(--text); }
.vn-btn svg { width: 14px; height: 14px; }
.vn-btn.vn-today { font-size: 0.78rem; padding: 0 14px; color: var(--text); }
.vn-btn.vn-today:hover { background: rgba(220,53,69,0.12); color: var(--brand-soft); }
.vn-btn.vn-today.disabled { color: var(--muted-2); cursor: default; pointer-events: none; opacity: 0.6; }

/* ============================================================================
   GENERELL TABELL
   ============================================================================ */
.gs-table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 0.875rem; }
.gs-table thead th {
  background: rgba(255,255,255,0.025);
  color: var(--muted);
  font-size: 0.7rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.05em;
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}
.gs-table thead th.right { text-align: right; }
.gs-table thead th.center { text-align: center; }
.gs-table tbody tr { transition: background-color .12s ease; }
.gs-table tbody tr:not(:last-child) td { border-bottom: 1px solid var(--border); }
.gs-table tbody tr:hover { background: var(--surface-2); }
.gs-table tbody td { padding: 12px 16px; vertical-align: middle; }
.gs-table tbody td.right { text-align: right; }
.gs-table tbody td.center { text-align: center; }
.gs-table tbody tr.clickable { cursor: pointer; }

/* ============================================================================
   SCROLLBAR
   ============================================================================ */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: rgba(255,255,255,0.02); }
::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.10); border-radius: 5px; }
::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,0.18); }

/* ============================================================================
   BILDGALLERI
   ============================================================================ */
.gallery-card { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; overflow: hidden; margin-bottom: 22px; }
.gallery-head { padding: 14px 18px; border-bottom: 1px solid var(--border); background: rgba(255,255,255,0.025); display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.gallery-head h3 { margin: 0; font-size: 0.95rem; font-weight: 700; display: flex; align-items: center; gap: 10px; }
.gallery-head h3 .ic { width: 28px; height: 28px; border-radius: 8px; background: var(--info-bg); color: var(--info-soft); display: grid; place-items: center; }
.gallery-head h3 .ic svg { width: 13px; height: 13px; }
.gallery-head .count { font-family: var(--mono); font-size: 0.74rem; color: var(--muted); background: var(--neutral-soft); border: 1px solid var(--border); padding: 2px 9px; border-radius: 999px; }
#bildgalleri { padding: 16px; min-height: 80px; display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 12px; }
#bildgalleri .gal-empty { grid-column: 1 / -1; text-align: center; padding: 36px 16px; color: var(--muted); }
#bildgalleri .gal-empty .ic-big { width: 56px; height: 56px; border-radius: 14px; background: var(--surface-2); border: 1px dashed var(--border-2); display: grid; place-items: center; margin: 0 auto 14px; color: var(--muted-2); }
#bildgalleri .gal-empty .ic-big svg { width: 24px; height: 24px; }
.gal-tile { position: relative; background: var(--surface-2); border: 1px solid var(--border); border-radius: 11px; overflow: hidden; aspect-ratio: 4/3; cursor: pointer; transition: transform .15s, border-color .15s, box-shadow .15s; }
.gal-tile:hover { transform: translateY(-2px); border-color: var(--border-2); box-shadow: 0 12px 28px rgba(0,0,0,0.35); }
.gal-tile img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gal-tile .gal-meta { position: absolute; left: 0; right: 0; bottom: 0; padding: 10px 12px; background: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,0.75) 100%); color: #fff; font-size: 0.74rem; line-height: 1.3; opacity: 0; transition: opacity .15s; pointer-events: none; }
.gal-tile:hover .gal-meta { opacity: 1; }
.gal-tile .gal-del { position: absolute; top: 8px; right: 8px; width: 30px; height: 30px; border-radius: 8px; background: rgba(0,0,0,0.55); backdrop-filter: blur(6px); border: 1px solid rgba(255,255,255,0.18); color: #fff; display: grid; place-items: center; cursor: pointer; opacity: 0; transition: opacity .15s, background .15s; }
.gal-tile:hover .gal-del { opacity: 1; }
.gal-tile .gal-del:hover { background: rgba(220,53,69,0.65); border-color: rgba(255,90,100,0.6); }
.gal-tile .gal-del svg { width: 14px; height: 14px; }

/* Drop zone */
.drop-zone { border: 2px dashed var(--border-2); border-radius: 12px; padding: 28px 20px; text-align: center; background: var(--surface-2); transition: border-color .15s, background .15s; cursor: pointer; }
.drop-zone:hover, .drop-zone.dragover { border-color: var(--brand-soft); background: rgba(220,53,69,0.06); }
.drop-zone .dz-ic { width: 50px; height: 50px; border-radius: 12px; background: var(--info-bg); color: var(--info-soft); display: grid; place-items: center; margin: 0 auto 12px; }
.drop-zone .dz-ic svg { width: 22px; height: 22px; }
.drop-zone .dz-title { font-size: 0.92rem; font-weight: 600; color: var(--text); margin-bottom: 4px; }
.drop-zone .dz-sub { font-size: 0.78rem; color: var(--muted); }

/* Lightbox */
.lbx-backdrop { position: fixed; inset: 0; background: rgba(0,0,0,0.85); backdrop-filter: blur(10px); z-index: 1000; display: none; align-items: center; justify-content: center; padding: 30px; }
.lbx-backdrop.open { display: flex; }
.lbx-img { max-width: 100%; max-height: 80vh; border-radius: 8px; box-shadow: 0 24px 60px rgba(0,0,0,0.6); }
.lbx-close { position: absolute; top: 22px; right: 22px; width: 42px; height: 42px; border-radius: 50%; background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.18); color: #fff; cursor: pointer; display: grid; place-items: center; }
.lbx-close svg { width: 18px; height: 18px; }

@media (prefers-reduced-motion: reduce) {
  .flag-tab { animation: none !important; }
}

/* ============================================================================
   MODAL
   ============================================================================ */
.modal-backdrop {
  position: fixed; inset: 0; z-index: 9000;
  display: none;
  align-items: center; justify-content: center;
  background: rgba(0,0,0,0.55);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding: 20px;
}
.modal-backdrop.open { display: flex; animation: modalFadeIn .18s ease; }
.modal-backdrop.closing { animation: modalFadeOut .15s ease forwards; }
@keyframes modalFadeIn  { from { opacity: 0; } to { opacity: 1; } }
@keyframes modalFadeOut { from { opacity: 1; } to { opacity: 0; } }

.modal-box {
  width: 100%; max-width: 560px;
  background: #131318;
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 18px;
  box-shadow: 0 30px 80px rgba(0,0,0,0.55);
  overflow: hidden;
  display: flex; flex-direction: column;
}
.modal-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 22px 14px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.modal-head h3 {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 800;
  color: #fff;
  display: flex; align-items: center; gap: 9px;
}
.modal-close {
  background: transparent; border: 0;
  color: rgba(255,255,255,0.55);
  cursor: pointer;
  padding: 6px;
  border-radius: 6px;
}
.modal-close:hover { color: #fff; background: rgba(255,255,255,0.06); }
.modal-body { padding: 16px 22px; display: flex; flex-direction: column; gap: 14px; }
.modal-foot {
  display: flex; gap: 10px; justify-content: flex-end;
  padding: 14px 22px 18px;
  border-top: 1px solid rgba(255,255,255,0.06);
  background: rgba(0,0,0,0.20);
}
.modal-feedback {
  display: none;
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 0.85rem;
}
.modal-feedback.err {
  display: block;
  background: rgba(220,53,69,0.10);
  border: 1px solid rgba(220,53,69,0.30);
  color: #fca5a5;
}
.modal-feedback.ok {
  display: block;
  background: rgba(34,197,94,0.10);
  border: 1px solid rgba(34,197,94,0.30);
  color: #a7f3c4;
}
.close-btn { margin-left: auto; cursor: pointer; opacity: 0.7; transition: opacity .15s; }
.close-btn:hover { opacity: 1; }

/* ============================================================================
   DROPDOWN
   ============================================================================ */
.gs-dropdown { position: relative; }
.gs-dropdown-menu {
  position: absolute; top: calc(100% + 6px); left: 0;
  min-width: 220px;
  background: rgba(20,20,25,0.96);
  backdrop-filter: blur(18px);
  border: 1px solid var(--border-2);
  border-radius: 10px;
  padding: 6px;
  box-shadow: 0 14px 36px rgba(0,0,0,0.45);
  display: none;
  z-index: 50;
}
.gs-dropdown.open .gs-dropdown-menu { display: block; }
.gs-dropdown-menu a {
  display: flex; align-items: center; gap: 9px;
  padding: 8px 10px;
  border-radius: 7px;
  color: var(--text);
  font-size: 0.84rem;
  text-decoration: none;
  transition: background .12s;
}
.gs-dropdown-menu a:hover { background: var(--surface-2); }
.gs-dropdown-menu a svg { width: 13px; height: 13px; color: var(--muted); }
.gs-dropdown-divider { height: 1px; background: var(--border); margin: 4px 6px; }
.gs-dropdown-label { padding: 6px 10px 2px; font-size: 0.66rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.07em; color: var(--muted-2); }
.has-arrow::after {
  content: ''; width: 6px; height: 6px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
  margin-left: 2px; opacity: 0.6;
}

/* ============================================================================
   FILE UPLOAD / BILDER UPLOAD
   ============================================================================ */
.drop-zone .dz-link { color: var(--brand-soft); font-weight: 600; text-decoration: underline; }
.file-list { margin-top: 14px; display: flex; flex-direction: column; gap: 8px; }
.file-item { display: flex; align-items: center; gap: 10px; padding: 8px 10px; background: var(--surface); border: 1px solid var(--border); border-radius: 9px; }
.file-item .thumb { width: 38px; height: 38px; border-radius: 7px; background: var(--neutral-soft); flex-shrink: 0; overflow: hidden; display: grid; place-items: center; color: var(--muted-2); }
.file-item .thumb img { width: 100%; height: 100%; object-fit: cover; }
.file-item .thumb svg { width: 16px; height: 16px; }
.file-item .info { flex: 1; min-width: 0; }
.file-item .info .nm { font-size: 0.84rem; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file-item .info .sub { font-size: 0.72rem; color: var(--muted); font-family: var(--mono); margin-top: 2px; }
.file-item .stat { font-size: 0.72rem; font-family: var(--mono); flex-shrink: 0; }
.file-item .stat.pending { color: var(--muted); }
.file-item .stat.uploading { color: var(--info-soft); }
.file-item .stat.ok { color: var(--success-soft); }
.file-item .stat.err { color: var(--brand-soft); }
.file-item .rm { width: 26px; height: 26px; display: grid; place-items: center; background: transparent; border: 0; color: var(--muted-2); cursor: pointer; border-radius: 6px; flex-shrink: 0; }
.file-item .rm:hover { color: var(--brand-soft); background: rgba(220,53,69,0.08); }
.file-item .rm svg { width: 13px; height: 13px; }
.attach-info { font-size: 0.78rem; color: rgba(255,255,255,0.55); display: flex; align-items: center; gap: 8px; }
.so-iconbox.bild { background: linear-gradient(135deg, var(--info) 0%, #1d4ed8 100%); }

/* ============================================================================
   MAIL-PILL
   ============================================================================ */
.mail-pill {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  border: 1px solid transparent;
  margin-left: 10px;
}
.mail-pill .ic { font-size: 0.92rem; line-height: 1; }
.mail-pill .dot { width: 7px; height: 7px; border-radius: 50%; background: rgba(255,255,255,0.35); }
.mail-pill-tom { background: rgba(255,255,255,0.05); border-color: rgba(255,255,255,0.10); color: rgba(255,255,255,0.55); }
.mail-pill-ok  { background: rgba(34,197,94,0.15); border-color: rgba(34,197,94,0.32); color: #a7f3c4; }

/* ============================================================================
   AVATAR / ROLLE / NUMMER-PILL / DOT
   ============================================================================ */
.avatar {
  width: 26px; height: 26px;
  border-radius: 50%;
  background: linear-gradient(135deg, #444 0%, #222 100%);
  display: grid; place-items: center;
  font-size: 0.72rem; font-weight: 600;
}
.role  { color: var(--muted-2); font-size: 0.72rem; }
.dot   { width: 8px; height: 8px; border-radius: 50%; }
.nummer-pill {
  display: inline-block;
  font-family: var(--mono);
  font-size: 0.74rem;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--neutral-soft);
  border: 1px solid var(--border);
  color: var(--muted);
}

/* ============================================================================
   FORM-ROW (tvåkolumns-grid inuti formulär)
   ============================================================================ */
.form-row { display: grid; gap: 12px; }
.form-row-2 { grid-template-columns: 1fr 1fr; }
.form-row-3 { grid-template-columns: 1fr 1fr 1fr; }

/* ============================================================================
   DETALJ-GRID (nyckel/värde-par i visningskort)
   ============================================================================ */
.detail-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px 20px; }
.detail-item label { display: block; font-size: 0.7rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.05em; font-weight: 600; margin-bottom: 4px; }
.detail-item .val { font-size: 0.88rem; color: var(--text); word-break: break-word; }
.detail-item .val.mono { font-family: var(--mono); letter-spacing: 0.02em; }
.detail-item .val.muted { color: var(--muted-2); }
.detail-item.full { grid-column: 1 / -1; }

/* ============================================================================
   SIDA-LAYOUT HELPERS
   ============================================================================ */
.page { position: relative; z-index: 1; max-width: 1480px; margin: 0 auto; padding: 28px 28px 60px; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 22px; flex-wrap: wrap; }
.page-head h1 { font-size: 1.75rem; font-weight: 700; letter-spacing: -0.02em; margin: 0 0 4px; }
.page-head p  { margin: 0; color: var(--muted); font-size: 0.875rem; }
.kpi-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; margin-bottom: 22px; }
.gs-alert .close-btn { margin-left: auto; cursor: pointer; opacity: 0.7; transition: opacity .15s; }
.gs-alert .close-btn:hover { opacity: 1; }
.gs-alert-warning { background: var(--warning-bg); border: 1px solid rgba(245,158,11,0.30); color: var(--warning-soft); }
.gs-alert-link { text-decoration: none; }
.gs-alert .txt { flex: 1; }
.gs-alert .btn { flex-shrink: 0; }

/* ============================================================================
   STAT-MINI: extra ic-färg (dashboardens "Kommande"-KPI)
   ============================================================================ */
.stat-mini .ic.purple { background: var(--purple-bg); color: var(--purple-soft); }

/* ============================================================================
   PRIS-CELL (tabellkolumn för pris, t.ex. dashboardens senaste-projekt-tabell)
   ============================================================================ */
.price-cell { font-family: var(--mono); font-variant-numeric: tabular-nums; font-weight: 700; color: var(--text); }
.price-cell.empty { color: var(--muted-2); font-weight: 500; }
.row-flagga-mark { width: 4px; height: 22px; background: var(--warning); display: inline-block; vertical-align: middle; border-radius: 2px; margin-right: 8px; }
.empty-state { padding: 30px 20px; text-align: center; color: var(--muted); font-size: 0.86rem; }

/* ============================================================================
   SEKTIONSRUBRIK (t.ex. "Veckokalender" ovanför cal-card)
   ============================================================================ */
.section-h { display: flex; align-items: end; justify-content: space-between; gap: 12px; margin: 4px 0 12px; flex-wrap: wrap; }
.section-h h2 { margin: 0; font-size: 1.05rem; font-weight: 700; letter-spacing: -0.01em; }
.section-h h2 small { color: var(--muted); font-weight: 500; font-size: 0.82rem; margin-left: 6px; }
.cal-meta { font-size: 0.78rem; color: var(--muted); display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.cal-meta strong { color: var(--text); font-family: var(--mono); }
.vecka-nav { display: flex; align-items: center; gap: 4px; }
.vn-btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 30px; height: 30px; padding: 0 10px;
  border-radius: 8px; background: var(--surface); border: 1px solid var(--border);
  color: var(--text); text-decoration: none; font-size: 0.76rem; font-weight: 600;
  transition: background .12s, border-color .12s;
}
.vn-btn svg { width: 14px; height: 14px; }
.vn-btn:hover { background: var(--surface-2); border-color: var(--border-2); }
.vn-btn.disabled { opacity: 0.4; pointer-events: none; }

/* ============================================================================
   VECKOKALENDER — tids-rutnät 07:00–18:00 (dashboard)
   ============================================================================ */
.cal-card { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; overflow: hidden; margin-bottom: 24px; }
.cal-head { display: flex; align-items: center; justify-content: space-between; padding: 14px 18px; border-bottom: 1px solid var(--border); background: rgba(255,255,255,0.025); flex-wrap: wrap; gap: 12px; }
.cal-head h3 { margin: 0; font-size: 0.95rem; font-weight: 600; display: flex; align-items: center; gap: 9px; }
.cal-head h3 svg { width: 16px; height: 16px; color: var(--muted); }

.cal-grid {
  display: grid;
  grid-template-columns: 64px repeat(7, minmax(0, 1fr));
  grid-template-rows: 38px 660px;
  border-top: 1px solid var(--border);
  overflow: hidden;
}
.cal-corner { background: rgba(255,255,255,0.025); border-right: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.cal-day-head {
  background: rgba(255,255,255,0.025);
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 0 10px;
  display: flex; align-items: center; justify-content: space-between; gap: 6px;
}
.cal-day-head .name { font-size: 0.7rem; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: 0.05em; }
.cal-day-head .num { font-family: var(--mono); font-size: 1.05rem; font-weight: 700; color: var(--text); }
.cal-day-head .count { font-family: var(--mono); font-size: 0.66rem; color: var(--muted); background: var(--neutral-soft); border: 1px solid var(--border); padding: 1px 6px; border-radius: 999px; }
.cal-day-head.today { background: rgba(220,53,69,0.08); }
.cal-day-head.today .name, .cal-day-head.today .num { color: var(--brand-soft); }

.cal-time-col { position: relative; border-right: 1px solid var(--border); background: rgba(255,255,255,0.015); height: 660px; }
.cal-time-tick { position: absolute; right: 8px; font-family: var(--mono); font-size: 0.66rem; color: var(--muted-2); transform: translateY(-50%); }
.cal-time-col .cal-time-tick:first-child { transform: translateY(0); }
.cal-time-col .cal-time-tick:last-child  { transform: translateY(-100%); }

.cal-day-col {
  position: relative;
  height: 660px;
  border-right: 1px solid var(--border);
  background-image:
    repeating-linear-gradient(180deg,
      transparent 0, transparent 29px,
      rgba(255,255,255,0.025) 29px, rgba(255,255,255,0.025) 30px,
      transparent 30px, transparent 59px,
      var(--border) 59px, var(--border) 60px);
}
.cal-day-col.is-today   { background-color: rgba(220,53,69,0.04); }
.cal-day-col.is-weekend { background-color: rgba(255,255,255,0.015); }
.cal-day-col:last-child { border-right: 0; }

.now-line { position: absolute; left: 0; right: 0; height: 2px; background: var(--brand-soft); box-shadow: 0 0 8px rgba(220,53,69,0.6); z-index: 4; pointer-events: none; }
.now-line::before { content: ''; position: absolute; left: -4px; top: -3px; width: 8px; height: 8px; border-radius: 50%; background: var(--brand-soft); }

.bk {
  position: absolute; border-radius: 7px; padding: 4px 7px; text-decoration: none;
  border: 1px solid transparent; border-left-width: 3px; overflow: hidden; cursor: pointer;
  z-index: 1; transition: filter .12s, transform .12s, z-index 0s; line-height: 1.2; box-sizing: border-box;
}
.bk:hover { filter: brightness(1.18); z-index: 5; }
.bk .bk-time { display: block; font-family: var(--mono); font-weight: 700; font-size: 0.6rem; letter-spacing: 0.04em; opacity: 0.85; }
.bk .bk-reg  { display: block; font-family: var(--mono); font-weight: 700; font-size: 0.66rem; color: var(--text); margin-top: 1px; }
.bk .bk-rub  { display: block; font-size: 0.7rem; color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; margin-top: 1px; }
.bk.inkommen { background: var(--warning-bg); color: var(--warning-soft); border-color: rgba(245,158,11,0.30); }
.bk.pagaende { background: var(--info-bg);    color: var(--info-soft);    border-color: rgba(59,130,246,0.30); }
.bk.avslutad { background: var(--success-bg); color: var(--success-soft); border-color: rgba(34,197,94,0.30); }
.bk.avslutad .bk-rub { opacity: 0.8; text-decoration: line-through; }
.bk.kommande { background: rgba(139,92,246,0.14); color: #c4b5fd; border-color: rgba(139,92,246,0.30); border-style: dashed; }
.bk.compact { padding: 3px 6px; }
.bk.compact .bk-rub { display: none; }
.bk.compact .bk-time, .bk.compact .bk-reg { display: inline; margin-right: 5px; }

.allday-row { padding: 10px 14px; border-top: 1px solid var(--border); background: rgba(255,255,255,0.015); display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.allday-row .lbl { font-size: 0.68rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.05em; font-weight: 600; }
.allday-pill { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; border: 1px dashed transparent; text-decoration: none; font-size: 0.74rem; font-family: var(--mono); font-weight: 600; }
.allday-pill .day-tag { color: var(--muted-2); font-size: 0.66rem; text-transform: uppercase; letter-spacing: 0.05em; }
.allday-pill.inkommen { background: var(--warning-bg); color: var(--warning-soft); border-color: rgba(245,158,11,0.35); }
.allday-pill.pagaende { background: var(--info-bg);    color: var(--info-soft);    border-color: rgba(59,130,246,0.35); }
.allday-pill.avslutad { background: var(--success-bg); color: var(--success-soft); border-color: rgba(34,197,94,0.35); }
.allday-pill.kommande { background: rgba(139,92,246,0.14); color: #c4b5fd; border-color: rgba(139,92,246,0.35); border-style: dashed; }

/* ============================================================================
   EKONOMI-SIDOPANEL (dashboardens ekonomikort)
   ============================================================================ */
.ek-block { padding: 16px; border-bottom: 1px solid var(--border); }
.ek-block:last-child { border-bottom: 0; }
.ek-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 6px 0; }
.ek-row .l { font-size: 0.8rem; color: var(--muted); display: flex; align-items: center; gap: 8px; }
.ek-row .l .dot { width: 8px; height: 8px; border-radius: 50%; }
.ek-row .v { font-family: var(--mono); font-variant-numeric: tabular-nums; font-weight: 700; font-size: 0.92rem; }
.ek-row .v .currency { color: var(--muted-2); font-size: 0.72rem; font-weight: 500; margin-left: 3px; }
.ek-row .v.income { color: var(--success-soft); }
.ek-row .v.cost   { color: var(--brand-soft); }
.ek-row .v.recur  { color: var(--info-soft); }
.ek-row .v.netto.pos { color: var(--success-soft); }
.ek-row .v.netto.neg { color: var(--brand-soft); }
.ek-divider { height: 1px; background: var(--border-2); margin: 8px 0; }
.ek-cta { padding: 12px 16px; background: rgba(255,255,255,0.02); }
.ek-cta a { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 9px 14px; border-radius: 9px; background: var(--surface); border: 1px solid var(--border); color: var(--text); font-size: 0.82rem; font-weight: 600; text-decoration: none; transition: all .12s; }
.ek-cta a:hover { background: var(--surface-2); border-color: var(--brand-soft); color: var(--text); }
.ek-cta a svg { width: 14px; height: 14px; }

/* ============================================================================
   TVÅKOLUMNS-LAYOUT + CHART-GRID (dashboard)
   ============================================================================ */
.two-col { display: grid; grid-template-columns: 2fr 1fr; gap: 16px; margin-bottom: 24px; }
@media (max-width: 1100px) { .two-col { grid-template-columns: 1fr; } }
.charts-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 24px; }
@media (max-width: 980px) { .charts-grid { grid-template-columns: 1fr; } }
.chart-card { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 18px; }
.chart-card h3 { margin: 0 0 14px; font-size: 0.92rem; font-weight: 700; display: flex; align-items: center; gap: 8px; }
.chart-card h3 svg { width: 14px; height: 14px; color: var(--muted); }
.chart-wrap { position: relative; height: 280px; }
