/* ===== Reset & Base ===== */
* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --red: #9b2335;
  --red-light: #c4485a;
  --red-bg: #fdf2f4;
  --white: #ffffff;
  --bg: #f8f6f4;
  --text: #2d2d2d;
  --text-light: #6b6b6b;
  --border: #e8e4e0;
  --shadow: 0 2px 8px rgba(0,0,0,0.06);
  --shadow-hover: 0 4px 16px rgba(0,0,0,0.1);
  --radius: 12px;
  --radius-sm: 8px;
}

body {
  font-family: Georgia, 'Times New Roman', serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
}

/* ===== Toppmeny ===== */
.navbar {
  background: var(--white);
  box-shadow: 0 1px 4px rgba(0,0,0,0.08);
  position: sticky;
  top: 0;
  z-index: 100;
}

.navbar-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.25rem;
  height: 60px;
}

.navbar-brand {
  font-size: 1.1rem;
  font-weight: bold;
  color: var(--red);
  text-decoration: none;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.navbar-logo {
  height: 36px;
  width: auto;
}

.navbar-links {
  display: flex;
  gap: 0.25rem;
  list-style: none;
  margin-left: auto;
}

.navbar-links a {
  text-decoration: none;
  color: var(--text-light);
  padding: 0.5rem 1rem;
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  transition: background 0.2s, color 0.2s;
}

.navbar-links a:hover,
.navbar-links a.active {
  background: var(--red-bg);
  color: var(--red);
}

/* Nav-profil (avatar + dropdown) */
.nav-profile {
  position: relative;
  margin-left: 0.25rem;
  flex-shrink: 0;
}

.nav-profile-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.1rem;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.2rem 0.35rem;
  border-radius: var(--radius-sm);
  transition: background 0.2s;
  font-family: Georgia, 'Times New Roman', serif;
}

.nav-profile-btn:hover {
  background: var(--red-bg);
}

.nav-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--red);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: bold;
  font-family: Georgia, 'Times New Roman', serif;
}

.nav-profile-info {
  padding: 0.5rem 0.75rem;
  font-size: 0.85rem;
  color: var(--text);
  font-family: Georgia, 'Times New Roman', serif;
  border-bottom: 1px solid var(--border);
  margin-bottom: 0.25rem;
  text-decoration: none;
}

.nav-profile-dropdown {
  display: none;
  position: absolute;
  right: 0;
  top: 100%;
  margin-top: 0.25rem;
  background: var(--white);
  box-shadow: var(--shadow);
  border-radius: var(--radius-sm);
  min-width: 120px;
  z-index: 200;
  padding: 0.25rem;
}

.nav-profile.open .nav-profile-dropdown {
  display: block;
}

.nav-profile-dropdown a {
  display: block;
  padding: 0.6rem 0.75rem;
  color: var(--text);
  text-decoration: none;
  border-radius: 6px;
  font-size: 0.9rem;
  transition: background 0.15s;
}

.nav-profile-dropdown a:hover {
  background: var(--red-bg);
  color: var(--red);
}

/* Hamburger (mobil) */
.navbar-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--text);
  cursor: pointer;
  padding: 0.25rem;
}

@media (max-width: 900px) {
  .navbar-toggle { display: block; order: 3; }
  .navbar-brand { order: 1; }
  .nav-profile { order: 2; margin-left: auto; margin-right: 0.25rem; }
  .navbar-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 60px;
    left: 0;
    right: 0;
    background: var(--white);
    box-shadow: var(--shadow);
    padding: 0.5rem 0.75rem;
    gap: 0.15rem;
    max-height: calc(100vh - 60px);
    overflow-y: auto;
    order: 4;
  }
  .navbar-links.open { display: flex; }
  .navbar-links a {
    padding: 0.85rem 1rem;
    border-radius: var(--radius-sm);
    display: block;
  }
}

/* ===== Layout ===== */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 2rem 1.5rem;
}

.page-title {
  font-size: 1.8rem;
  margin-bottom: 0.25rem;
  color: var(--text);
}

.page-subtitle {
  color: var(--text-light);
  margin-bottom: 2rem;
  font-size: 1rem;
}

/* ===== Statistik-kort ===== */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}

.stat-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
  text-align: center;
  transition: box-shadow 0.2s;
  cursor: pointer;
}

.stat-card:hover {
  box-shadow: var(--shadow-hover);
}

.stat-card .number {
  font-size: 2.2rem;
  font-weight: bold;
  color: var(--red);
}

.stat-card .label {
  color: var(--text-light);
  font-size: 0.9rem;
  margin-top: 0.25rem;
}

/* ===== Kort / Sektioner ===== */
.card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
  margin-bottom: 1.5rem;
  overflow: hidden;
}

.card-title {
  font-size: 1.15rem;
  margin-bottom: 1rem;
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.collapse-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.6rem 0;
  margin-top: 0.5rem;
  border-top: 1px solid var(--border);
  cursor: pointer;
  font-size: 0.85rem;
  color: var(--text-light);
  user-select: none;
}

.collapse-header:hover {
  color: var(--red);
}

.collapse-icon {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-right: 2px solid var(--text-light);
  border-bottom: 2px solid var(--text-light);
  transform: rotate(-45deg);
  transition: transform 0.2s;
  flex-shrink: 0;
}

.collapse-icon.open {
  transform: rotate(45deg);
}

.card-section {
  border-top: 1px solid var(--border);
  margin-top: 1.25rem;
  padding-top: 1.25rem;
}

.card-section-title {
  font-size: 0.85rem;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 0.75rem;
}

/* ===== Formulär ===== */
.form-row {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
  align-items: flex-end;
}

.form-group {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
}

.form-group label {
  font-size: 0.8rem;
  color: var(--text-light);
  margin-bottom: 0.25rem;
}

label.required::after {
  content: ' *';
  color: var(--red);
  font-weight: bold;
}

input, select, textarea {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 0.95rem;
  padding: 0.6rem 0.85rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--white);
  color: var(--text);
  transition: border-color 0.2s;
  min-width: 0;
}

select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 2.2rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23555' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.85rem center;
  background-size: 12px;
  cursor: pointer;
}

input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--red-light);
}

/* ===== Knappar ===== */
.btn {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 0.9rem;
  padding: 0.6rem 1.25rem;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background 0.2s, transform 0.1s;
  white-space: nowrap;
}

.btn:active {
  transform: scale(0.97);
}

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

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

.btn-secondary {
  background: var(--bg);
  color: var(--text);
  border: 1px solid var(--border);
}

.btn-secondary:hover {
  background: var(--border);
}

.btn-sm {
  font-size: 0.8rem;
  padding: 0.35rem 0.75rem;
}

.btn-danger {
  background: none;
  color: var(--red);
  padding: 0.3rem 0.6rem;
  font-size: 0.85rem;
}

.btn-danger:hover {
  background: var(--red-bg);
}

/* ===== Tabeller ===== */
.table-wrap {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}

th, td {
  text-align: left;
  padding: 0.65rem 0.75rem;
  border-bottom: 1px solid var(--border);
  font-size: 0.92rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

th {
  color: var(--text-light);
  font-weight: normal;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

td:last-child, th:last-child {
  width: 140px;
  text-align: right;
}

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

/* ===== Tags / Badges ===== */
.badge {
  display: inline-block;
  padding: 0.2rem 0.6rem;
  border-radius: 20px;
  font-size: 0.78rem;
  background: var(--red-bg);
  color: var(--red);
}

.badge-muted {
  background: var(--bg);
  color: var(--text-light);
}

/* ===== Tomt-tillstånd ===== */
.empty {
  text-align: center;
  color: var(--text-light);
  padding: 2rem;
  font-size: 0.95rem;
  white-space: normal;
}

/* ===== Modal ===== */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.35);
  z-index: 200;
  align-items: center;
  justify-content: center;
}

.modal-overlay.open {
  display: flex;
}

.modal {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: 0 8px 32px rgba(0,0,0,0.18);
  width: 90%;
  max-width: 420px;
  max-height: 80vh;
  display: flex;
  flex-direction: column;
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--border);
}

.modal-title {
  font-size: 1.05rem;
  font-weight: bold;
}

.modal-close {
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--text-light);
  cursor: pointer;
  line-height: 1;
  padding: 0 0.25rem;
}

.modal-close:hover {
  color: var(--red);
}

.modal-body {
  padding: 0.75rem 1.25rem;
  overflow-y: auto;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 0.5rem;
  padding: 0.75rem 1.25rem;
  border-top: 1px solid var(--border);
}

/* ===== Checkbox-item (modal & inline) ===== */
.checkbox-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.5rem;
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.9rem;
}

.checkbox-item:hover {
  background: var(--red-bg);
}

.checkbox-item input[type="checkbox"] {
  accent-color: var(--red);
  width: 16px;
  height: 16px;
}

/* ===== Tjänstemän-preview ===== */
.tj-preview {
  min-height: 0;
  padding-top: 0.25rem;
  margin-bottom: 0.5rem;
}

/* ===== Grid för admin-sektioner ===== */
.admin-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

.admin-grid .card.full-width {
  grid-column: 1 / -1;
}

@media (max-width: 600px) {
  .admin-grid {
    grid-template-columns: 1fr;
  }
  .form-row {
    flex-direction: column;
    align-items: stretch;
  }
  .form-row .btn {
    width: 100%;
    text-align: center;
  }
  .form-row .form-group {
    flex: none !important;
  }
  .form-row .form-group input,
  .form-row .form-group select {
    width: 100% !important;
  }
  .admin-grid table {
    table-layout: auto;
    min-width: 600px;
  }
  .admin-grid th,
  .admin-grid td {
    white-space: nowrap;
  }
}

/* ===== Lag-sida ===== */
.lag-item {
  border-top: 1px solid var(--border);
}

.lag-item:first-child {
  border-top: none;
}

.lag-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 0;
  cursor: pointer;
  user-select: none;
}

.lag-header:hover {
  color: var(--red);
}

.lag-header-info {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.lag-namn {
  font-size: 1rem;
  font-weight: bold;
}

.lag-meta {
  font-size: 0.8rem;
  color: var(--text-light);
}

.lag-detaljer {
  padding: 0 0 1rem;
}

.lag-sektion {
  margin-bottom: 1rem;
}

.lag-sektion:last-child {
  margin-bottom: 0;
}

.lag-sektion-titel {
  font-size: 0.8rem;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 0.5rem;
}

.lag-tom {
  font-size: 0.9rem;
  color: var(--text-light);
  font-style: italic;
}

.person-tabell {
  table-layout: fixed;
}

.person-tabell th:nth-child(1),
.person-tabell td:nth-child(1) {
  width: 50%;
  font-weight: bold;
}

.person-tabell th:nth-child(2),
.person-tabell td:nth-child(2) {
  width: 25%;
}

.person-tabell th:nth-child(3),
.person-tabell td:nth-child(3) {
  width: 25%;
}

.person-tabell th,
.person-tabell td {
  text-align: left;
}

.person-tabell th:last-child,
.person-tabell td:last-child {
  text-align: left;
}

/* 4-kolumns variant (funktionärer) */
.funktionar-tabell th:nth-child(1),
.funktionar-tabell td:nth-child(1) { width: 35%; }
.funktionar-tabell th:nth-child(2),
.funktionar-tabell td:nth-child(2) { width: 30%; }
.funktionar-tabell th:nth-child(3),
.funktionar-tabell td:nth-child(3) { width: 10%; }
.funktionar-tabell th:nth-child(4),
.funktionar-tabell td:nth-child(4) { width: 25%; }

/* ===== Personlista (tjänstemän/funktionärer) ===== */
.person-list-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.65rem 0.25rem;
  border-bottom: 1px solid var(--border);
  text-decoration: none;
  color: var(--text);
  transition: background 0.15s;
  cursor: pointer;
}

.person-list-item:last-child {
  border-bottom: none;
}

.person-list-item:hover {
  background: var(--bg);
}

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

.person-list-namn {
  font-weight: bold;
  font-size: 0.95rem;
}

.person-list-meta {
  font-size: 0.8rem;
  color: var(--text-light);
  margin-top: 0.1rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ===== Kalender ===== */
.cal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.cal-title {
  font-size: 1.15rem;
  font-weight: bold;
}

.cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  border-left: 1px solid var(--border);
  border-top: 1px solid var(--border);
}

.cal-day-name {
  text-align: center;
  font-size: 0.75rem;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 0.5rem 0;
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--bg);
}

.cal-cell {
  min-height: 90px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  padding: 0.3rem;
  cursor: pointer;
  position: relative;
  transition: background 0.15s;
  gap: 2px;
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}

.cal-cell:hover {
  background: var(--bg);
}

.cal-cell.cal-today {
  background: var(--red-bg);
}

.cal-cell.cal-today .cal-date {
  background: var(--red);
  color: var(--white);
  border-radius: 50%;
  width: 26px;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cal-cell.cal-selected {
  background: #e8f0fe;
}

.cal-cell.cal-empty {
  cursor: default;
  background: var(--bg);
  opacity: 0.4;
}

.cal-date {
  font-size: 0.85rem;
  margin-bottom: 2px;
  font-weight: 500;
}

.cal-event {
  font-size: 0.7rem;
  background: var(--red);
  color: var(--white);
  border-radius: 4px;
  padding: 1px 4px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  line-height: 1.5;
}

.cal-event.cal-farg-rod { background: #9b2335; }
.cal-event.cal-farg-gron { background: #2d7d46; }
.cal-event.cal-farg-bla { background: #2b5797; }
.cal-event.cal-farg-svart { background: #2d2d2d; }
.cal-event.cal-farg-gra { background: #8a7e74; }

.cal-event-more {
  font-size: 0.65rem;
  color: var(--text-light);
  padding: 0 2px;
}

/* ===== Arbetspass-kort ===== */
.ap-kort {
  border-top: 1px solid var(--border);
  padding: 0.85rem 0;
}

.ap-kort:first-child {
  border-top: none;
}

.ap-kort-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 0.4rem;
}

.ap-kort-namn {
  font-size: 1rem;
  font-weight: bold;
}

.ap-kort-meta {
  font-size: 0.8rem;
  color: var(--text-light);
  margin-top: 0.1rem;
}

.ap-kort-detaljer {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  font-size: 0.85rem;
  color: var(--text-light);
}

.ap-kort-detaljer strong {
  color: var(--text);
  font-weight: normal;
}

@media (max-width: 600px) {
  .cal-cell {
    min-height: 60px;
    padding: 0.2rem;
  }
  .cal-date {
    font-size: 0.75rem;
  }
  .cal-event {
    font-size: 0.6rem;
  }
}

/* ===== Profil-sida ===== */
.profil-header {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  margin-bottom: 1.5rem;
}

.profil-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--red);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: bold;
  flex-shrink: 0;
}

img.profil-avatar {
  object-fit: cover;
}

.profil-namn {
  font-size: 1.5rem;
  margin-bottom: 0.1rem;
}

.profil-roll {
  font-size: 0.9rem;
  color: var(--text-light);
}

.badge-admin {
  display: inline-block;
  background: var(--red);
  color: var(--white);
  font-size: 0.7rem;
  font-weight: bold;
  padding: 0.1rem 0.4rem;
  border-radius: 4px;
  vertical-align: middle;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.profil-bio {
  font-size: 0.85rem;
  color: var(--red);
  font-style: italic;
  margin-top: 0.15rem;
}

.profil-email {
  font-size: 0.85rem;
  color: var(--text-light);
  margin-top: 0.15rem;
}

.profil-progress-section {
  border-top: 1px solid var(--border);
  padding-top: 1.25rem;
}

.profil-progress-label {
  display: flex;
  justify-content: space-between;
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
}

.profil-progress-bar {
  height: 12px;
  background: var(--bg);
  border-radius: 6px;
  overflow: hidden;
}

.profil-progress-fill {
  height: 100%;
  border-radius: 6px;
  transition: width 0.5s ease;
}

.profil-progress-hint {
  font-size: 0.8rem;
  color: var(--text-light);
  margin-top: 0.4rem;
}

.profil-lag-expand {
  border-bottom: 1px solid var(--border);
}

.profil-lag-expand:last-child {
  border-bottom: none;
}

.profil-lag-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 0;
}

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

.profil-lag-namn {
  font-weight: bold;
  font-size: 0.95rem;
}

.profil-lag-utskott {
  font-size: 0.85rem;
  color: var(--text-light);
}

.profil-pass-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--border);
}

.profil-pass-item:last-child {
  border-bottom: none;
}

.profil-pass-farg {
  width: 4px;
  height: 32px;
  border-radius: 2px;
  flex-shrink: 0;
}

.profil-pass-info {
  min-width: 0;
}

.profil-pass-namn {
  font-size: 0.95rem;
  font-weight: bold;
}

.profil-pass-meta {
  font-size: 0.8rem;
  color: var(--text-light);
  margin-top: 0.1rem;
}

/* ===== Mina pass ===== */
.mina-pass-item {
  border-bottom: 1px solid var(--border);
}

.mina-pass-item:last-child {
  border-bottom: none;
}

.mina-pass-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 0;
  cursor: pointer;
}

.mina-pass-header:hover {
  background: var(--bg);
}

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

.mina-pass-narvaro-badge {
  font-size: 0.8rem;
  font-weight: bold;
  color: var(--text-light);
  background: var(--bg);
  padding: 0.25rem 0.6rem;
  border-radius: var(--radius-sm);
  white-space: nowrap;
}

.mina-pass-detaljer {
  padding: 0 0 0.75rem 1.5rem;
}

.mina-pass-funk-lista {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

/* ===== Veckokalender (överblick) ===== */
.week-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 0;
  border-left: 1px solid var(--border);
  border-top: 1px solid var(--border);
}

.week-cell {
  display: flex;
  flex-direction: column;
  padding: 0.4rem 0.3rem;
  min-height: 100px;
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  gap: 3px;
  overflow: hidden;
}

.week-cell.cal-today {
  background: var(--red-bg);
}

.week-day-name {
  font-size: 0.7rem;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 0.3px;
  text-align: center;
}

.week-date {
  font-size: 0.9rem;
  text-align: center;
  margin-bottom: 4px;
}

.week-cell.cal-today .week-date {
  background: var(--red);
  color: var(--white);
  border-radius: 50%;
  width: 26px;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 4px;
}

@media (max-width: 600px) {
  .week-grid {
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 1fr;
  }
  .week-cell {
    min-height: 60px;
    padding: 0.3rem 0.2rem;
  }
  .week-date {
    font-size: 0.8rem;
  }
}

/* ===== Topplista / Prispall ===== */
.podium {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: 1rem;
  padding: 1.5rem 1rem 0;
}

.podium-slot {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 0 0 100px;
}

.podium-namn {
  font-weight: bold;
  font-size: 0.9rem;
  text-align: center;
  word-break: break-word;
}

.podium-poang {
  font-size: 0.8rem;
  color: var(--text-light);
  margin-bottom: 0.5rem;
}

.podium-bar {
  width: 100%;
  background: var(--red);
  border-radius: 8px 8px 0 0;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 0.5rem;
}

.podium-place {
  font-size: 1.5rem;
}

.topplista-rest {
  margin-top: 1.5rem;
  border-top: 1px solid var(--border);
  padding-top: 0.75rem;
}

.topplista-rad {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.4rem 0;
  border-bottom: 1px solid var(--border);
}

.topplista-rad:last-child {
  border-bottom: none;
}

.topplista-nr {
  font-weight: bold;
  font-size: 0.85rem;
  color: var(--text-light);
  width: 1.5rem;
  text-align: center;
}

.topplista-namn {
  flex: 1;
  font-size: 0.9rem;
}

.topplista-poang {
  font-size: 0.85rem;
  color: var(--text-light);
  font-weight: bold;
}
