/* ================================================================
   Aalborg Kanonlaug Bestyrelsesportal — Design System
   ================================================================ */

:root {
  --color-sidebar-bg:     #1A3A5C;
  --color-sidebar-text:   #B8CCE4;
  --color-sidebar-active: #2B5F9E;
  --color-sidebar-hover:  #243F6B;
  --color-bg:             #F5F7FA;
  --color-card:           #FFFFFF;
  --color-border:         #E2E8F0;
  --color-primary:        #2B5F9E;
  --color-text:           #1E293B;
  --color-text-muted:     #64748B;
  --color-success:        #059669;
  --color-warning:        #F59E0B;
  --color-danger:         #EF4444;
}

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

body {
  font-family: 'Inter', sans-serif;
  display: flex;
  min-height: 100vh;
  background: var(--color-bg);
  color: var(--color-text);
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
}

a { color: var(--color-primary); }

/* --- Sidebar -------------------------------------------------- */
.portal-sidebar {
  width: 220px;
  min-height: 100vh;
  background: var(--color-sidebar-bg);
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0; left: 0; bottom: 0;
  overflow-y: auto;
  z-index: 200;
  scrollbar-width: thin;
  scrollbar-color: #243F6B transparent;
}

.portal-main {
  margin-left: 220px;
  flex: 1;
  padding: 32px;
  min-height: 100vh;
  overflow-x: hidden;
}

/* Logo */
.sidebar-logo {
  padding: 20px 16px 14px;
  border-bottom: 1px solid rgba(255,255,255,0.07);
}
.sidebar-logo-title {
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  line-height: 1.2;
  letter-spacing: 0.01em;
}
.sidebar-logo-sub {
  font-size: 11px;
  color: var(--color-sidebar-text);
  margin-top: 1px;
}

/* User profile */
.sidebar-user {
  padding: 12px 16px;
  border-bottom: 1px solid rgba(255,255,255,0.07);
  display: flex;
  align-items: center;
  gap: 10px;
}
.sidebar-user-name {
  font-size: 13px;
  font-weight: 600;
  color: #fff;
  line-height: 1.2;
}
.sidebar-user-role {
  font-size: 11px;
  color: var(--color-sidebar-text);
}

/* Section headers */
.sidebar-section {
  padding: 14px 16px 4px;
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #6B8BB5;
}

/* Nav root wrapper */
.sidebar-nav-root {
  display: flex;
  flex-direction: column;
  flex: 1;
  overflow-y: auto;
  padding-bottom: 8px;
}

/* Søgefelt */
.sidebar-search-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 8px 12px 6px;
  padding: 7px 10px;
  background: #fff;
  border-radius: 6px;
}
.sidebar-search-icon { color: #94A3B8; font-size: 13px; flex-shrink: 0; }
.sidebar-search-input {
  background: none;
  border: none;
  outline: none;
  color: #1E293B;
  font-size: 13px;
  font-family: inherit;
  width: 100%;
}
.sidebar-search-input::placeholder { color: #94A3B8; }

/* Dashboard direkte link */
.sidebar-nav {
  list-style: none;
  padding: 0;
  margin: 0;
}
.sidebar-nav-item a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  color: #B8CCE4;
  text-decoration: none;
  font-size: 13.5px;
  font-weight: 500;
  transition: background 0.12s, color 0.12s;
}
.sidebar-nav-item a:hover  { background: rgba(255,255,255,0.08); color: #fff; }
.sidebar-nav-item a.active { background: #2B5F9E; color: #fff; }
.nav-icon { font-size: 15px; width: 18px; text-align: center; flex-shrink: 0; }

/* Gruppe-header (div, ikke button — undgår al browser-knap-styling) */
.sidebar-group-hdr {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 11px 14px 11px 16px;
  margin-top: 8px;
  color: #D0E4F5;
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  user-select: none;
  transition: background 0.12s, color 0.12s;
}
.sidebar-group-hdr:hover { background: rgba(255,255,255,0.06); color: #fff; }

.grp-inner {
  display: flex;
  align-items: center;
  gap: 10px;
}
.grp-icon {
  font-size: 15px;
  width: 18px;
  text-align: center;
  flex-shrink: 0;
  color: #7BAFD4;
}
.grp-icon-konto { color: #A78BFA; }

/* Pil — ▼ åben, drejer til ► ved luk */
.grp-caret {
  font-size: 10px;
  color: #6B8BB5;
  transition: transform 0.2s ease;
  flex-shrink: 0;
}
.sidebar-group-hdr.collapsed .grp-caret {
  transform: rotate(-90deg);
}

/* Underpunkter */
.sidebar-sub-nav {
  list-style: none;
  padding: 2px 0 10px 0;
  margin: 0;
}
.sidebar-sub-nav li a,
.sidebar-sub-btn {
  display: flex;
  align-items: center;
  padding: 7px 16px 7px 16px;
  padding-left: 44px;
  color: #94B5D4;
  text-decoration: none;
  font-size: 13px;
  background: none;
  border: none;
  width: 100%;
  text-align: left;
  cursor: pointer;
  font-family: inherit;
  transition: color 0.12s, background 0.12s;
}
.sidebar-sub-nav li a::before,
.sidebar-sub-btn::before {
  content: "•";
  margin-right: 9px;
  font-size: 14px;
  line-height: 1;
  color: #4A6B8A;
  flex-shrink: 0;
}
.sidebar-sub-nav li a:hover,
.sidebar-sub-btn:hover  { color: #fff; background: rgba(255,255,255,0.05); }
.sidebar-sub-nav li a.active {
  color: #fff;
  font-weight: 500;
  background: rgba(96,165,250,0.13);
}
.sidebar-sub-nav li a.active::before { color: #60A5FA; }

/* Hjælp-knap i sidebaren */
.sidebar-help-wrap {
  padding: 4px 12px 4px;
}
.sidebar-help-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 10px 16px;
  background: none;
  border: none;
  border-radius: 6px;
  color: #94B5D4;
  font-size: 13.5px;
  font-weight: 500;
  font-family: inherit;
  cursor: pointer;
  text-align: left;
  transition: background 0.12s, color 0.12s;
}
.sidebar-help-btn:hover {
  background: rgba(255,255,255,0.08);
  color: #fff;
}

/* Hjælp offcanvas indhold */
.help-intro {
  font-size: 13.5px;
  color: var(--color-text);
  line-height: 1.6;
  margin-bottom: 20px;
}
.help-section {
  margin-bottom: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--color-border);
}
.help-section:last-child {
  border-bottom: none;
}
.help-section-heading {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-primary);
  margin-bottom: 6px;
}
.help-section-body {
  font-size: 13px;
  color: var(--color-text-muted);
  line-height: 1.6;
  margin: 0;
}

/* Konto fastgjort til bunden */
.sidebar-konto-spacer { flex: 1; min-height: 16px; }
.sidebar-konto {
  border-top: 1px solid rgba(255,255,255,0.08);
  margin-top: 8px;
  padding-top: 4px;
  padding-bottom: 8px;
}

.sidebar-badge {
  margin-left: auto;
  background: var(--color-danger);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 20px;
  line-height: 1.5;
}

/* --- Avatar --------------------------------------------------- */
.avatar-circle {
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  flex-shrink: 0;
  text-transform: uppercase;
}
.avatar-circle.av-sidebar { width: 34px; height: 34px; font-size: 12px; background: var(--color-sidebar-active); color: #fff; }
.avatar-circle.av-sm      { width: 28px; height: 28px; font-size: 10px; }
.avatar-circle.av-md      { width: 36px; height: 36px; font-size: 13px; }
.avatar-circle.av-lg      { width: 44px; height: 44px; font-size: 16px; }

/* Avatar colour variants */
.av-blue   { background: #DBEAFE; color: #1D4ED8; }
.av-green  { background: #D1FAE5; color: #065F46; }
.av-orange { background: #FEF3C7; color: #92400E; }
.av-purple { background: #EDE9FE; color: #5B21B6; }
.av-red    { background: #FEE2E2; color: #B91C1C; }
.av-teal   { background: #CCFBF1; color: #0F766E; }

/* --- Page structure ------------------------------------------ */
.page-title {
  font-size: 22px;
  font-weight: 600;
  color: var(--color-text);
  margin: 0;
}
.page-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  gap: 12px;
  flex-wrap: wrap;
}

/* --- Cards ---------------------------------------------------- */
.portal-card {
  background: var(--color-card);
  border-radius: 8px;
  border: 1px solid var(--color-border);
  padding: 20px;
}
.portal-card + .portal-card { margin-top: 16px; }

.card-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}
.card-label {
  font-size: 13px;
  font-weight: 500;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin: 0;
}

/* Stat cards */
.stat-card {
  background: var(--color-card);
  border-radius: 8px;
  border: 1px solid var(--color-border);
  padding: 18px 20px;
  border-left: 3px solid transparent;
}
.stat-card.sc-blue   { border-left-color: var(--color-primary); }
.stat-card.sc-orange { border-left-color: var(--color-warning); }
.stat-card.sc-green  { border-left-color: var(--color-success); }
.stat-card.sc-red    { border-left-color: var(--color-danger);  }

.stat-label { font-size: 12px; font-weight: 500; color: var(--color-text-muted); text-transform: uppercase; letter-spacing: 0.05em; }
.stat-value { font-size: 28px; font-weight: 700; color: var(--color-text); line-height: 1.1; margin: 2px 0 4px; }
.stat-sub   { font-size: 12px; color: var(--color-text-muted); }

/* --- Buttons -------------------------------------------------- */
.btn-portal {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 15px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 500;
  font-family: inherit;
  cursor: pointer;
  text-decoration: none;
  border: 1px solid transparent;
  transition: opacity 0.12s, background 0.12s, color 0.12s;
  white-space: nowrap;
}
.btn-portal:focus-visible { outline: 2px solid var(--color-primary); outline-offset: 2px; }

.btn-portal.primary {
  background: var(--color-primary);
  color: #fff;
}
.btn-portal.primary:hover   { opacity: 0.88; color: #fff; }

.btn-portal.secondary {
  background: transparent;
  color: var(--color-primary);
  border-color: var(--color-primary);
}
.btn-portal.secondary:hover { background: var(--color-primary); color: #fff; }

.btn-portal.ghost {
  background: transparent;
  color: var(--color-text-muted);
  border-color: var(--color-border);
}
.btn-portal.ghost:hover { background: #F1F5F9; color: var(--color-text); }

.btn-portal.danger {
  background: transparent;
  color: var(--color-danger);
  border-color: #FECACA;
}
.btn-portal.danger:hover { background: #FEF2F2; }

.btn-portal.sm { padding: 4px 10px; font-size: 12px; }

/* --- Badges --------------------------------------------------- */
.portal-badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
  line-height: 1.5;
}

/* Status */
.badge-scheduled { background: var(--color-primary); color: #fff; }
.badge-held      { background: var(--color-success);  color: #fff; }
.badge-cancelled { background: #94A3B8; color: #fff; }
.badge-pending   { background: var(--color-warning);  color: #fff; }
.badge-open      { background: var(--color-primary);  color: #fff; }
.badge-inprogress{ background: var(--color-warning);  color: #fff; }
.badge-completed { background: var(--color-success);  color: #fff; }
.badge-yes       { background: var(--color-success);  color: #fff; }
.badge-no        { background: #94A3B8; color: #fff; }
.badge-maybe     { background: var(--color-warning);  color: #fff; }

/* Categories */
.badge-vedtaegter    { background: #DBEAFE; color: #1D4ED8; }
.badge-referat       { background: #D1FAE5; color: #065F46; }
.badge-aarsberetning { background: #FEF3C7; color: #92400E; }
.badge-forsikring    { background: #FCE7F3; color: #9D174D; }
.badge-kontrakt      { background: #EDE9FE; color: #5B21B6; }
.badge-andet         { background: #F1F5F9; color: #475569; }

/* File type */
.badge-pdf  { background: #FEE2E2; color: #B91C1C; }
.badge-docx { background: #DBEAFE; color: #1D4ED8; }
.badge-xlsx { background: #D1FAE5; color: #065F46; }
.badge-file { background: #F1F5F9; color: #475569; }

/* --- Tables --------------------------------------------------- */
.portal-table { width: 100%; border-collapse: collapse; }

.portal-table th {
  font-size: 11px;
  font-weight: 600;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 8px 12px;
  border-bottom: 1px solid var(--color-border);
  text-align: left;
  white-space: nowrap;
}
.portal-table td {
  padding: 11px 12px;
  border-bottom: 1px solid var(--color-border);
  font-size: 13.5px;
  vertical-align: middle;
}
.portal-table tr:last-child td { border-bottom: none; }
.portal-table tbody tr:hover   { background: #F8FAFC; }
.portal-table tr.alt           { background: #FAFAFA; }
.portal-table .clickable       { cursor: pointer; }

/* Date block */
.date-block { display: flex; flex-direction: column; align-items: center; width: 40px; }
.date-block-day   { font-size: 20px; font-weight: 700; color: var(--color-primary); line-height: 1; }
.date-block-month { font-size: 10px; font-weight: 600; color: var(--color-text-muted); text-transform: uppercase; letter-spacing: 0.04em; }

/* --- Search bar ---------------------------------------------- */
.portal-search {
  display: flex;
  align-items: center;
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: 6px;
  padding: 7px 12px;
  gap: 8px;
}
.portal-search input {
  border: none;
  outline: none;
  background: transparent;
  font-size: 13.5px;
  flex: 1;
  color: var(--color-text);
  font-family: inherit;
}
.portal-search input::placeholder { color: var(--color-text-muted); }
.portal-search i { color: var(--color-text-muted); font-size: 14px; }

/* --- Category sidebar ---------------------------------------- */
.cat-nav { padding: 0; margin: 0; }
.cat-nav a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 12px;
  border-radius: 6px;
  text-decoration: none;
  color: var(--color-text);
  font-size: 13.5px;
  transition: background 0.1s;
}
.cat-nav a:hover  { background: #F1F5F9; color: var(--color-text); }
.cat-nav a.active { background: #EFF6FF; color: var(--color-primary); font-weight: 600; }
.cat-count {
  font-size: 11px; color: var(--color-text-muted);
  background: #F1F5F9; padding: 1px 7px; border-radius: 20px;
  flex-shrink: 0;
}

/* --- Tasks ---------------------------------------------------- */
.task-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid var(--color-border);
}
.task-row:last-child { border-bottom: none; }
.task-title { font-weight: 500; font-size: 13.5px; }
.task-meta  { font-size: 12px; color: var(--color-text-muted); margin-top: 2px; }
.deadline-urgent { color: var(--color-danger); font-weight: 600; font-size: 12px; }
.deadline-ok     { color: var(--color-success); font-size: 12px; }
.task-title.done { text-decoration: line-through; color: var(--color-text-muted); }

.section-head {
  font-size: 13px;
  font-weight: 600;
  padding: 7px 12px;
  border-radius: 6px 6px 0 0;
  margin-bottom: 0;
}
.section-head.red    { background: #FEE2E2; color: #B91C1C; }
.section-head.green  { background: #D1FAE5; color: #065F46; }
.section-head.blue   { background: #DBEAFE; color: #1D4ED8; }
.section-head.muted  { background: #F1F5F9; color: var(--color-text); }

/* --- Messages / Chat ------------------------------------------ */
.conv-list { list-style: none; padding: 0; margin: 0; }
.conv-item {
  display: flex;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 6px;
  cursor: pointer;
  text-decoration: none;
  color: var(--color-text);
  transition: background 0.1s;
}
.conv-item:hover  { background: #F1F5F9; color: var(--color-text); }
.conv-item.active { background: #EFF6FF; }
.conv-info    { flex: 1; min-width: 0; }
.conv-name    { font-weight: 600; font-size: 13.5px; }
.conv-preview { font-size: 12px; color: var(--color-text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.chat-area {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 16px;
  max-height: 420px;
  overflow-y: auto;
}
.chat-bubble {
  max-width: 72%;
  border-radius: 10px;
  padding: 9px 13px;
  font-size: 13.5px;
  line-height: 1.45;
}
.chat-bubble.other { background: #F1F5F9; color: var(--color-text); align-self: flex-start; }
.chat-bubble.mine  { background: var(--color-primary); color: #fff; align-self: flex-end; }
.chat-meta { font-size: 11px; color: var(--color-text-muted); margin-top: 3px; }
.chat-meta.right { text-align: right; }

.chat-input-bar {
  display: flex;
  gap: 8px;
  padding: 12px 16px;
  border-top: 1px solid var(--color-border);
}
.chat-input-bar input {
  flex: 1;
  border: 1px solid var(--color-border);
  border-radius: 6px;
  padding: 8px 12px;
  font-size: 13.5px;
  font-family: inherit;
  outline: none;
}
.chat-input-bar input:focus { border-color: var(--color-primary); }

/* --- Calendar grid ------------------------------------------- */
.cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 1px;
  background: var(--color-border);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  overflow: hidden;
}
.cal-head-cell {
  background: var(--color-card);
  padding: 8px 4px;
  text-align: center;
  font-size: 11px;
  font-weight: 600;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.cal-cell {
  background: var(--color-card);
  min-height: 80px;
  padding: 4px;
  position: relative;
  vertical-align: top;
}
.cal-cell.other-month { background: #FAFAFA; }
.cal-cell.today-cell  { background: #EFF6FF; }

.cal-date-num {
  font-size: 11px;
  font-weight: 500;
  color: var(--color-text-muted);
  text-align: right;
  display: block;
  padding: 2px 3px 3px;
  line-height: 1;
}
.today-num {
  background: var(--color-primary);
  color: #fff;
  border-radius: 50%;
  width: 20px;
  height: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  float: right;
}
.cal-pill {
  display: block;
  font-size: 10px;
  padding: 1px 5px;
  border-radius: 3px;
  margin-bottom: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  cursor: pointer;
  line-height: 1.6;
}
/* Event type pills */
.ev-meeting    { background: #DBEAFE; color: #1D4ED8; }
.ev-shooting   { background: #D1FAE5; color: #065F46; }
.ev-social     { background: #FEF3C7; color: #92400E; }
.ev-tournament { background: #EDE9FE; color: #5B21B6; }
.ev-other      { background: #F1F5F9; color: #475569; }

/* Event sidebar list */
.event-list-item {
  padding: 10px 0;
  border-bottom: 1px solid var(--color-border);
}
.event-list-item:last-child { border-bottom: none; }
.event-date-label { font-size: 13px; font-weight: 600; color: var(--color-text); }
.event-place      { font-size: 12px; color: var(--color-text-muted); }

/* --- Contact groups ------------------------------------------ */
.contact-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--color-border);
}
.contact-row:last-child { border-bottom: none; }

.emergency-phone { color: var(--color-danger); font-weight: 700; font-size: 15px; }

/* --- Quick links --------------------------------------------- */
.quick-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.quick-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 16px 12px;
  background: #F8FAFC;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  text-decoration: none;
  color: var(--color-text);
  font-size: 12px;
  font-weight: 500;
  text-align: center;
  transition: all 0.12s;
}
.quick-link:hover { background: #EFF6FF; color: var(--color-primary); border-color: #BFDBFE; }
.quick-link i     { font-size: 20px; color: var(--color-primary); }

/* --- Misc utility -------------------------------------------- */
.text-portal-primary { color: var(--color-primary) !important; }
.text-portal-muted   { color: var(--color-text-muted) !important; }
.divider             { border: none; border-top: 1px solid var(--color-border); margin: 16px 0; }
.fw-600              { font-weight: 600; }

/* Status badge helper for inline roles */
.role-badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 600;
}
.role-oldermand  { background: #FEF3C7; color: #92400E; }
.role-skatmester { background: #DBEAFE; color: #1D4ED8; }
.role-kansler    { background: #EDE9FE; color: #5B21B6; }
.role-krudtmester{ background: #D1FAE5; color: #065F46; }
.role-hovmester  { background: #CCFBF1; color: #0F766E; }
.role-revisor    { background: #F1F5F9; color: #475569; }

/* --- Task login reminder ------------------------------------- */
.task-reminder {
  background: #FFF7ED;
  border: 1px solid #FED7AA;
  border-left: 4px solid var(--color-warning);
  border-radius: 8px;
  padding: 16px 18px;
  position: relative;
}
.task-reminder-icon {
  font-size: 20px;
  color: var(--color-warning);
  margin-top: 2px;
  flex-shrink: 0;
}
.task-reminder-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 8px;
}
.task-reminder-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.task-reminder-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
}
.task-reminder-link {
  color: var(--color-primary);
  text-decoration: none;
  font-weight: 500;
}
.task-reminder-link:hover { text-decoration: underline; }
.task-reminder-due {
  font-size: 11px;
  color: var(--color-text-muted);
  background: #F1F5F9;
  padding: 1px 7px;
  border-radius: 20px;
  white-space: nowrap;
}
.task-reminder-due.urgent {
  color: #B91C1C;
  background: #FEE2E2;
}
.task-reminder-more {
  font-size: 12px;
  color: var(--color-text-muted);
  font-style: italic;
}

/* --- Responsive ---------------------------------------------- */
@media (max-width: 900px) {
  .portal-sidebar { transform: translateX(-220px); transition: transform 0.22s; }
  .portal-sidebar.open { transform: translateX(0); }
  .portal-main { margin-left: 0; padding: 16px; }
}

/* Hamburger toggle-knap — kun synlig på mobil */
.sidebar-toggle {
  display: none;
  position: fixed;
  top: 14px;
  left: 14px;
  z-index: 300;
  background: #1A3A5C;
  border: none;
  border-radius: 6px;
  color: #fff;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0,0,0,0.25);
}

/* Overlay baggrund når sidebar er åben på mobil */
.sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.45);
  z-index: 190;
}

@media (max-width: 900px) {
  .sidebar-toggle { display: flex; }
  .portal-main { padding-top: 68px; }
}
