@font-face { font-family: 'Oswald'; src: url('../fonts/Oswald-Bold.ttf') format('truetype'); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: 'Oswald'; src: url('../fonts/Oswald-Medium.ttf') format('truetype'); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: 'Barlow'; src: url('../fonts/Barlow-Bold.ttf') format('truetype'); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: 'Barlow'; src: url('../fonts/Barlow-Medium.ttf') format('truetype'); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: 'Barlow'; src: url('../fonts/Barlow-Regular.ttf') format('truetype'); font-weight: 400; font-style: normal; font-display: swap; }

/* ========================================= 
   1. VARIABLES & RESET
========================================= */ 
:root { 
  /* COLORS */ 
  --primary: #054734; 
  --primary-rgb: 5, 71, 52; 
  --secondary: #FFFFFF; 
  --secondary-rgb: 255, 255, 255; 
  --accent: #8c2732; 
  --bg-app: #f4f4f4; 
  --bg-card: #FFFFFF; 
  --bg-light: #eeeeee; 
  --text-head: #111111; 
  --text-body: #1a1a1a; 
  --text-meta: #888888; 

  /* GRAYS & BORDERS */ 
  --border-light: #eeeeee; 
  --border-base: #cccccc; 
  --border-hover: #dddddd; 

  /* FONTS */ 
  --font-head: 'Oswald', sans-serif; 
  --font-body: 'Barlow', sans-serif; 

  /* SYSTEM VARS */ 
  --radius-sm: 4px; 
  --radius-md: 8px; 
  --radius-lg: 12px; 
  --shadow-sm: 0 2px 4px rgba(0,0,0,0.05); 
  --shadow-md: 0 4px 12px rgba(0,0,0,0.08); 
  --shadow-lg: 0 8px 24px rgba(0,0,0,0.12); 
  --shadow-up: 0 -2px 10px rgba(0,0,0,0.1); 

  /* HEADER & FOOTER HEIGHTS */ 
  --header-h-mob: 110px; 
  --footer-h-mob: 70px; 
  
  /* SPACING */
  --spacing-xs: 0.5rem; 
  --spacing-sm: 1rem; 
  --spacing-md: 1.5rem; 
  --spacing-lg: 3rem; 
}

* { box-sizing: border-box; margin: 0; padding: 0; } 
body { 
  background-color: var(--bg-app); 
  color: var(--text-body); 
  font-family: var(--font-body); 
  font-size: 16px; 
  line-height: 1.6; 
  -webkit-font-smoothing: antialiased; 
  display: flex; 
  flex-direction: column; 
  min-height: 100vh; 
} 
img { max-width: 100%; height: auto; display: block; } 
a { color: var(--text-body); text-decoration: none; transition: all 0.2s ease; } 
a:hover { color: var(--primary); } 

/* ========================================= 
   2. TYPOGRAPHY
========================================= */
h1, h2, h3, h4, h5 { 
  font-family: var(--font-head); 
  font-weight: 600; 
  line-height: 1.2; 
  margin-bottom: var(--spacing-sm); 
  color: var(--text-head); 
  text-transform: uppercase; 
} 
.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 20px; } 

/* ========================================= 
   3. UTILITIES (Helpers)
========================================= */ 
.flex-between { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 15px; } 
.flex-align-center { display: flex; align-items: center; gap: 10px; } 
.flex-wrap-gap { display: flex; gap: 10px; margin-bottom: 10px; align-items: center; flex-wrap: wrap; } 
.flex-1 { flex: 1; } 
.flex-end { display: flex; justify-content: flex-end; } 
.right-align { display: flex; justify-content: flex-end; } 
.gap-10 { gap: 10px; } 
.center-text { text-align: center; } 
.borderless-row { border: none !important; padding: 5px 0 !important; } 
.no-margin { margin: 0 !important; } 
.no-padding { padding: 0 !important; } 
.mt-15 { margin-top: 15px; } 
.mt-lg { margin-top: var(--spacing-lg); } 
.mb-5 { margin-bottom: 5px; }
.mb-10 { margin-bottom: 10px; } 
.mb-15 { margin-bottom: 15px; } 
.min-w-120 { min-width: 120px; } 
.min-w-150 { min-width: 150px; } 
.min-h-100 { min-height: 100px; } 
.min-h-150 { min-height: 150px; } 
.relative { position: relative; } 
.text-normal { font-size: 1rem; } 
.text-accent { color: var(--accent) !important; } 
.text-primary { color: var(--primary) !important; } 
.border-accent { border-color: var(--accent) !important; } 
.empty-text { margin-top: 0; margin-bottom: 15px; color: var(--text-meta); } 
.empty-state { font-size: 1rem; font-weight: normal; color: var(--text-meta); font-style: italic; } 
.icon-primary { width: 24px; filter: invert(19%) sepia(45%) saturate(3022%) hue-rotate(143deg) brightness(95%) contrast(97%); } 
.small-icon { width: 18px; } 

/* ========================================= 
   4. COMPONENTS: BUTTONS
========================================= */ 
.btn { 
  display: inline-block; 
  padding: 12px 24px; 
  border-radius: var(--radius-sm); 
  font-family: var(--font-head); 
  font-weight: 700; 
  text-transform: uppercase; 
  text-align: center; 
  cursor: pointer; 
  border: 2px solid transparent; 
  transition: all 0.2s ease; 
} 
.btn-primary { background-color: var(--primary); color: var(--secondary); } 
.btn-primary:hover { background-color: rgba(var(--primary-rgb), 0.9); color: var(--secondary); } 
.btn-outline { background: transparent; border-color: var(--border-hover); color: var(--text-body); } 
.btn-outline:hover { border-color: var(--primary); color: var(--primary); } 
.btn-danger { background-color: var(--accent) !important; border-color: var(--accent) !important; color: #fff; } 
.btn-danger-outline { color: var(--accent) !important; border-color: var(--accent) !important; transition: all 0.2s ease-in-out; background: transparent; } 
.btn-danger-outline:hover { background: var(--accent) !important; color: #fff !important; } 
.btn-sm { padding: 8px 16px; font-size: 0.8rem; } 
.delete-btn { padding: 6px 10px; color: var(--accent) !important; border-color: var(--accent) !important; } 

/* ========================================= 
   5. LAYOUT: HEADER & FOOTER 
========================================= */ 
.site-header { 
  background-color: var(--primary); 
  color: var(--secondary); 
  width: 100%; 
  z-index: 1000; 
  box-shadow: var(--shadow-sm); 
  position: relative; 
} 
.custom-logo { display: block; height: auto; width: auto; transition: all 0.3s ease; } 
.user-toggle-btn { 
  background: none; 
  border: none; 
  color: var(--secondary); 
  display: flex; 
  align-items: center; 
  cursor: pointer; 
  font-family: var(--font-body); 
  font-size: 1rem; 
  padding: 0; 
  text-decoration: none; 
} 
.user-icon { width: 24px; height: 24px; margin-right: 8px; filter: brightness(0) invert(1); } 

@media (max-width: 991px) { 
  .header-desktop-view { display: none; } 
  .site-header { position: sticky; top: 0; height: var(--header-h-mob); overflow: visible !important; } 
  .header-mobile-view { width: 100%; height: 100%; position: static; } 
  .site-branding { position: absolute; top: 10px; left: 50%; transform: translateX(-50%); height: auto; z-index: 10; display: block; } 
  .custom-logo { height: 90px !important; width: auto !important; object-fit: contain; max-height: none !important; } 
  .header-mobile-view .header-user-toggle { position: absolute !important; bottom: 15px !important; right: auto !important; z-index: 9999 !important; display: block !important; top: auto !important; left: 20px !important; background: transparent; } 
  .header-mobile-view .user-toggle-btn { display: flex !important; color: var(--secondary) !important; visibility: visible !important; } 
  .arrow-icon { display: block !important; width: 12px; margin-left: 5px; filter: brightness(0) invert(1); } 
} 

@media (min-width: 992px) { 
  .header-mobile-view { display: none; } 
  .site-header { height: auto; padding: 20px 0; overflow: visible; } 
  .header-top-row { display: flex; justify-content: center; margin-bottom: 15px; } 
  .custom-logo { max-height: 120px; } 
  .header-bottom-row { display: flex; justify-content: center; align-items: flex-end; border-top: 1px solid rgba(var(--secondary-rgb), 0.15); padding-top: 15px; position: relative; } 
  .main-navigation ul { list-style: none; display: flex; gap: 35px; margin: 0; padding: 0; } 
  .main-navigation a { color: rgba(var(--secondary-rgb), 0.7); font-family: var(--font-head); font-size: 1.1rem; text-transform: uppercase; font-weight: 500; padding-bottom: 4px; border-bottom: 2px solid transparent; } 
  .main-navigation a:hover, .main-navigation a.active { color: var(--secondary); border-bottom-color: var(--secondary); } 
  .header-desktop-view .header-user-toggle { position: absolute; right: 0; bottom: 0; } 
  .arrow-icon { width: 14px; margin-left: 8px; filter: brightness(0) invert(1); } 
} 

.header-admin-toggle { position: absolute; bottom: 15px; left: 20px; z-index: 9999; } 
@media (min-width: 992px) { .header-admin-toggle { left: 0; bottom: 0; } } 
.admin-link { text-decoration: none !important; display: flex !important; align-items: center !important; gap: 8px; } 
.admin-link .user-text { color: var(--secondary) !important; white-space: nowrap; text-transform: uppercase; font-weight: 500; } 
@media (max-width: 991px) { .header-admin-toggle .user-text { font-size: clamp(0.7rem, 2.5vw, 0.9rem) !important; } } 

/* Footer */ 
.site-footer { background-color: var(--primary); color: var(--secondary); z-index: 1000; } 
@media (max-width: 991px) { 
  .footer-desktop-view { display: none; } 
  .site-footer { position: fixed; bottom: 0; left: 0; width: 100%; height: var(--footer-h-mob); box-shadow: var(--shadow-up); padding: 0; } 
  body { padding-bottom: var(--footer-h-mob); } 
  .mobile-bottom-nav { display: flex; justify-content: space-between; height: 100%; width: 100%; max-width: 600px; margin: 0 auto; } 
  .mobile-nav-item { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; padding-top: 8px; height: 100%; color: rgba(var(--secondary-rgb), 0.7); border-top: 4px solid transparent; text-decoration: none; transition: color 0.2s ease; } 
  .mobile-nav-item:hover, .mobile-nav-item.active { color: var(--secondary); border-top-color: var(--secondary); } 
  .mobile-nav-item img { width: 24px; height: 24px; margin-bottom: 2px; display: block; filter: brightness(0) invert(1); opacity: 0.7; transition: opacity 0.2s ease; } 
  .mobile-nav-item:hover img, .mobile-nav-item.active img { opacity: 1; } 
  .nav-label { font-size: 0.75rem; font-weight: 500; line-height: 1; } 
} 
@media (min-width: 992px) { 
  .footer-mobile-view { display: none; } 
  .site-footer { padding: var(--spacing-md) 0; text-align: center; margin-top: auto; } 
  .footer-logo { height: 80px; margin: 0 auto var(--spacing-sm); } 
  .footer-copyright { font-size: 0.9rem; opacity: 0.8; } 
} 

/* ========================================= 
   6. COMPONENTS: CONTENT BOXES (NEW!)
========================================= */ 
/* Huvudcontainer för en vit box (Kan ersätta .card, .partner-level, .contact-info-box etc) */ 
.content-box { 
  background-color: var(--bg-card); 
  border-radius: var(--radius-md); 
  box-shadow: var(--shadow-sm); 
  margin-bottom: var(--spacing-md); 
  overflow: hidden; /* Viktigt för att headerns färg ska följa de runda hörnen */ 
  transition: box-shadow 0.2s ease; 
  border: 1px solid var(--border-light); 
} 
.content-box:hover { box-shadow: var(--shadow-md); } 

/* Primärgrön header (ex. för Diamantpartners) */ 
.content-box-header { 
  background-color: var(--primary); 
  color: var(--secondary); 
  padding: 15px 20px; 
  display: flex; 
  justify-content: space-between; 
  align-items: center; 
} 
.content-box-header h2, .content-box-header h3 { margin: 0; color: var(--secondary); } 

/* Vit header (ex. för "Hantera partners" längst upp) */ 
.content-box-header-light { 
  background-color: var(--bg-card); 
  color: var(--text-head); 
  padding: 15px 20px; 
  border-bottom: 1px solid var(--bg-light); 
  display: flex; 
  justify-content: space-between; 
  align-items: center; 
} 
.content-box-header-light h2, .content-box-header-light h3 { margin: 0; } 

/* App-känsla på mobilen (tajtare padding och textstorlek i box-huvuden) */ 
@media (max-width: 767px) { 
  .content-box-header, .content-box-header-light { padding: 12px 15px; } 
  .content-box-header h2, .content-box-header h3, .content-box-header-light h2, .content-box-header-light h3 { font-size: 1.15rem; } 
} 
/* Kroppen i boxen */ 
.content-box-body { padding: 10px; } 

/* ========================================= 
   7. COMPONENTS: DATA LISTS (Neutralized)
========================================= */ 
.data-list-container { margin-top: var(--spacing-sm); } 
.data-search-group { margin-bottom: var(--spacing-md); } 
.data-table { width: 100%; border-collapse: collapse; text-align: left; } 
.data-category-row { background-color: var(--bg-app); } 
.data-category-cell { padding: 8px 10px; font-weight: bold; font-family: var(--font-head); text-transform: uppercase; } 
.data-item-row { border-bottom: 1px solid var(--border-light); } 
.data-item-row:last-child { border-bottom: none; } 
.data-img-cell { padding: 10px; width: 70px; } 
.data-img-preview { max-height: 30px; max-width: 50px; object-fit: contain; } 
.data-title-cell { padding: 10px; font-weight: 500; } 
.data-action-cell { padding: 10px; text-align: right; } 
.page-title { margin-top: 0; margin-bottom: var(--spacing-md); } 
.back-nav { margin-bottom: var(--spacing-sm); } 
.back-link { color: var(--text-meta); text-decoration: none; font-family: var(--font-head); font-weight: 700; font-size: 0.9rem; letter-spacing: 0.5px; } 

/* ========================================= 
   8. COMPONENTS: INLINE EDIT & DATA DISPLAY
========================================= */ 
.inline-edit-row { display: flex; justify-content: space-between; align-items: flex-start; padding: 15px 0; border-bottom: 1px solid var(--border-light); } 
.inline-edit-row:last-child { border-bottom: none; } 
.inline-label { font-family: var(--font-head); font-size: 0.85rem; color: var(--text-meta); text-transform: uppercase; margin-bottom: 5px; display: block; } 
.inline-value { font-family: var(--font-body); font-weight: 700; font-size: 1.2rem; color: var(--text-head); flex-grow: 1; white-space: pre-wrap; } 
.inline-input-wrapper { display: none; flex-grow: 1; margin-right: 20px; } 
.inline-toggle-btn { background: none; border: none; cursor: pointer; padding: 5px; flex-shrink: 0; transition: transform 0.2s; } 
.inline-toggle-btn:hover { transform: scale(1.1); } 
.inline-content.flex-grow { flex-grow: 1; } 
.data-section { position: relative; margin-bottom: var(--spacing-md); } 
.section-title { margin-top: 0; margin-bottom: var(--spacing-sm); } 
.section-main-title { margin: 0 0 var(--spacing-md) 0; } 
.contact-info-display { margin-bottom: 8px; font-size: 1rem; font-weight: 500; } 
.contact-role { font-weight: normal; opacity: 0.8; } 
.pin-display { margin: 10px 0 0 0; font-family: monospace; font-size: 1.1rem; color: var(--text-main); } 
.exposure-tags-container { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 10px; } 
.exposure-tag { background: var(--primary); color: #fff; padding: 4px 10px; border-radius: 15px; font-size: 0.85rem; display: flex; align-items: center; gap: 6px; } 
.exposure-tag-remove { cursor: pointer; font-weight: bold; opacity: 0.8; } 
.exposure-tag-remove:hover { opacity: 1; } 
.exposure-view-tag { display: inline-block; background: rgba(0,0,0,0.05); border: 1px solid var(--border-light); padding: 3px 8px; border-radius: 4px; margin: 2px 4px 2px 0; font-size: 0.85rem; color: var(--text-main); font-weight: 500; } 
.level-badge-container { display: flex; gap: 15px; flex-wrap: wrap; } 
.level-badge { background: var(--bg-card); padding: 4px 8px; border-radius: var(--radius-sm); font-size: 0.85rem; border: 1px solid var(--border-light); } 

/* ========================================= 
   9. COMPONENTS: TABS & PAGE NAV
========================================= */ 
.tabs-page-container, .tabs-menu-page-container { 
  width: 100%; 
  max-width: 1200px; 
  margin: var(--spacing-md) auto; /* Luft över och under, centrerad i sidled */
  padding: 0 var(--spacing-sm); /* Skapar luft till skärmens ytterkanter */ 
} 
.pillbox-nav { display: flex; background-color: var(--bg-card); padding: 0; border-radius: var(--radius-md); margin-bottom: var(--spacing-md); border: 1px solid rgba(0, 0, 0, 0.1); overflow: hidden; width: 100%; } 
.pillbox-btn { flex: 1; border: none; border-right: 1px solid rgba(0, 0, 0, 0.05); background: transparent; padding: 10px; /* Lite extra touch area */ font-family: var(--font-head); font-weight: 700; font-size: 0.85rem; color: var(--text-head); cursor: pointer; transition: all 0.2s ease-in-out; display: flex; align-items: center; justify-content: center; white-space: nowrap; text-transform: uppercase; } 
.pillbox-btn:last-child { border-right: none; } 
.pillbox-btn:hover { background-color: rgba(0, 0, 0, 0.03); } 
.pillbox-btn.active { background-color: var(--primary); color: var(--secondary); } 
.tab-pane { display: none; animation: fadeIn 0.3s ease; } 
.tab-pane.active { display: block; } 
@keyframes fadeIn { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: translateY(0); } } 

/* Page Dropdown Header */ 
.page-dropdown-header { position: relative; margin-bottom: var(--spacing-md); } 
.dropdown-toggle { background: transparent; border: none; font-family: var(--font-head); font-size: 1.5rem; font-weight: 700; color: var(--text-head); display: flex; align-items: center; justify-content: center; gap: 10px; cursor: pointer; padding: 10px; text-transform: uppercase; margin-left: auto; margin-right: auto; } 
.dropdown-icon { width: 20px; height: 20px; transition: transform 0.2s ease; opacity: 0.6; } 
.dropdown-toggle.open .dropdown-icon { transform: rotate(180deg); opacity: 1; } 
.dropdown-menu { display: none; position: absolute; top: 100%; left: 50%; transform: translateX(-50%); background-color: var(--bg-card); border-radius: var(--radius-md); box-shadow: var(--shadow-md); min-width: 220px; z-index: 100; overflow: hidden; border: 1px solid rgba(0,0,0,0.05); margin-top: 5px; } 
.dropdown-menu.show { display: block; animation: fadeIn 0.2s ease; } 
.dropdown-item { display: block; padding: 14px 20px; color: var(--text-head); text-decoration: none; font-family: var(--font-head); font-weight: 700; font-size: 0.95rem; text-transform: uppercase; border-bottom: 1px solid rgba(0,0,0,0.05); transition: background-color 0.2s, color 0.2s; text-align: center; } 
.dropdown-item:last-child { border-bottom: none; } 
.dropdown-item:hover { background-color: var(--bg-app); color: var(--primary); } 
.dropdown-list { display: none; position: absolute; top: 100%; left: 0; width: 100%; background: var(--bg-app); border: 1px solid var(--border-base); z-index: 10; max-height: 200px; overflow-y: auto; box-shadow: 0 4px 12px rgba(0,0,0,0.1); border-radius: 4px; } 
.dropdown-item-meta { font-size: 0.8rem; color: var(--text-meta); } 

/* ========================================= 
   10. COMPONENTS: FORMS
========================================= */ 
.form-container { background: var(--bg-card); padding: var(--spacing-md); border-radius: var(--radius-lg); box-shadow: var(--shadow-md); } 
.form-group { margin-bottom: var(--spacing-sm); } 
.form-label { display: block; margin-bottom: var(--spacing-xs); font-family: var(--font-head); font-weight: 700; color: var(--text-head); text-transform: uppercase; font-size: 0.9rem; } 
.form-divider { text-align: center; margin: var(--spacing-sm) 0; color: var(--text-meta); font-weight: bold; } 
.form-control { display: block; width: 100%; padding: 12px; font-size: 1rem; font-family: var(--font-body); line-height: 1.5; color: var(--text-body); background-color: var(--bg-card); border: 1px solid var(--border-base); border-radius: var(--radius-sm); transition: all .15s ease-in-out; } 
.form-control:focus { border-color: var(--primary); outline: 0; box-shadow: 0 0 0 3px rgba(var(--primary-rgb), 0.2); } 
textarea.form-control { min-height: 120px; resize: vertical; } 
.small-input { padding: 4px; font-size: 0.9rem; } 
select.form-control { background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23343a40' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e"); background-repeat: no-repeat; background-position: right 0.75rem center; background-size: 16px 12px; appearance: none; } 
.form-check { display: block; position: relative; padding-left: 35px; margin-bottom: 12px; cursor: pointer; font-size: 1rem; user-select: none; } 
.form-check input { position: absolute; opacity: 0; cursor: pointer; height: 0; width: 0; } 
.checkmark { position: absolute; top: 0; left: 0; height: 22px; width: 22px; background-color: var(--bg-light); border: 1px solid var(--border-base); border-radius: var(--radius-sm); transition: all 0.2s; } 
.form-check:hover input ~ .checkmark { background-color: var(--border-hover); } 
.form-check input:checked ~ .checkmark { background-color: var(--primary); border-color: var(--primary); } 
.checkmark:after { content: ""; position: absolute; display: none; } 
.form-check input:checked ~ .checkmark:after { display: block; } 
.form-check .checkmark:after { left: 7px; top: 3px; width: 6px; height: 12px; border: solid var(--secondary); border-width: 0 3px 3px 0; transform: rotate(45deg); } 
.recipient-multiselect-box { border: 1px solid var(--border-base); border-radius: var(--radius-sm); padding: var(--spacing-sm); max-height: 200px; overflow-y: auto; } 

/* ========================================= 
   11. CARDS (News & Generic)
========================================= */ 
.widget-header { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: var(--spacing-sm); } 
.widget-title { margin: 0; font-size: 1.4rem; } 
.widget-link { font-family: var(--font-head); font-weight: 700; color: var(--text-meta); font-size: 0.9rem; } 
.card { background-color: var(--bg-card); border-radius: var(--radius-md); overflow: hidden; box-shadow: var(--shadow-sm); transition: transform 0.2s ease, box-shadow 0.2s ease; display: flex; text-decoration: none; color: inherit; } 
.card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); } 
.card-news { height: 100px; } 
.card-news .card-img { width: 35%; background: var(--bg-light); object-fit: cover; } 
.card-news .card-body { width: 65%; padding: 12px; display: flex; flex-direction: column; justify-content: center; } 
.news-date { font-family: var(--font-head); font-size: 0.7rem; color: var(--text-meta); font-weight: 700; text-transform: uppercase; margin-bottom: 4px; } 
.news-title { font-family: var(--font-head); font-size: 0.95rem; margin: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; } 

@media (min-width: 768px) { 
  .card-news { height: 120px; } 
  .card-news .card-img { width: 30%; } 
  .card-news .card-body { width: 70%; padding: 20px; } 
  .news-title { font-size: 1.1rem; } 
} 

/* ========================================= 
   12. VIEWS: PARTNERS
========================================= */ 
.partner-section { padding: var(--spacing-md) 0; } 
.partner-level-title { text-align: center; margin-bottom: var(--spacing-md); } 
.partner-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(100px, 1fr)); gap: 1rem; margin-bottom: var(--spacing-lg); } 
.partner-item, .partner-card { background: transparent; padding: 1rem; display: flex; align-items: center; justify-content: center; border: none; transition: transform 0.2s; min-height: 100px; } 
.partner-item:hover, .partner-card:hover { transform: scale(1.05); } 
.partner-item img, .partner-card img { max-width: 100%; max-height: 100%; width: 100%; height: 100%; object-fit: contain; } 

@media (min-width: 768px) { 
  .partner-grid { grid-template-columns: repeat(6, 1fr); } 
  .partner-grid-lvl-1 { grid-template-columns: repeat(3, 1fr); } 
  .partner-grid-lvl-1 .partner-card { height: 160px; padding: 30px; } 
  .partner-grid-lvl-2 { grid-template-columns: repeat(4, 1fr); } 
  .partner-grid-lvl-2 .partner-card { height: 130px; padding: 20px; } 
  .partner-grid-lvl-3 { grid-template-columns: repeat(6, 1fr); } 
  .partner-grid-lvl-3 .partner-card { height: 90px; padding: 10px; } 
} 
@media (max-width: 767px) { 
  .partner-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; } 
  .partner-grid .partner-item { flex: 0 1 calc(33.333% - 10px); min-width: 80px; padding: 5px; min-height: 70px; box-sizing: border-box; } 
} 

/* ========================================= 
   13. VIEWS: MESSAGES & CONVERSATIONS
========================================= */ 
#msg-app { background: transparent; min-height: 500px; display: flex; flex-direction: column; } 
.msg-header { background: var(--bg-card); padding: 15px 20px; border-bottom: 1px solid var(--border-light); display: flex; justify-content: space-between; align-items: center; font-family: var(--font-head); } 
.thread-row { background: var(--bg-card); padding: 12px 20px; border-radius: var(--radius-md); box-shadow: 0 2px 8px rgba(0,0,0,0.05); margin-bottom: 12px; cursor: pointer; display: flex; justify-content: space-between; align-items: center; transition: transform 0.2s, box-shadow 0.2s; border: 1px solid var(--border-light); } 
.thread-row:hover { transform: translateY(-2px); box-shadow: 0 4px 12px rgba(0,0,0,0.1); } 
.thread-title { font-weight: 700; color: var(--text-head); font-size: 1.0rem; margin-bottom: 2px; } 
.thread-subject { font-size: 0.95rem; color: var(--text-body); margin-bottom: 4px; } 
.thread-meta { font-size: 0.8rem; color: var(--text-meta); } 
.unread-badge { background: var(--accent); color: white; padding: 2px 8px; border-radius: 12px; font-size: 0.8rem; font-weight: bold; } 
#messages-container { flex-grow: 1; padding: 20px; overflow-y: auto; background: rgba(0,0,0,0.01); max-height: 500px; display: flex; flex-direction: column; } 
.msg-bubble { padding: 12px 18px; border-radius: 18px; margin-bottom: 15px; max-width: 75%; position: relative; font-size: 0.95rem; } 
.msg-mine { background: var(--primary); color: #fff; margin-left: auto; border-bottom-right-radius: 4px; } 
.msg-theirs { background: var(--bg-card); color: var(--text-body); margin-right: auto; border-bottom-left-radius: 4px; border: 1px solid var(--border-light); } 
.msg-sender { font-size: 0.75rem; opacity: 0.8; margin-bottom: 4px; display: block; font-weight: bold; } 
.msg-composer { padding: 15px; background: var(--bg-card); border-top: 1px solid var(--border-light); display: flex; gap: 10px; } 

/* ========================================= 
   14. VIEWS: CONTACT PAGE (Mappas till Content Box)
========================================= */ 
/* Note: Kan ersättas av .content-box */ 
.contact-info-box { background-color: var(--bg-card); border-radius: var(--radius-md); padding: var(--spacing-md); margin-bottom: var(--spacing-lg); box-shadow: var(--shadow-sm); text-align: center; } 
.contact-info-box h2 { margin-bottom: var(--spacing-md); } 
.personal-container { background-color: var(--bg-card); border-radius: var(--radius-lg); padding: var(--spacing-md); box-shadow: var(--shadow-md); } 
.personal-category { margin-bottom: var(--spacing-md); } 
.personal-category:last-child { margin-bottom: 0; } 
.personal-category-title { color: var(--text-head); font-size: 1.2rem; font-weight: 700; margin-bottom: var(--spacing-sm); text-transform: uppercase; } 
.personal-row { display: flex; justify-content: space-between; align-items: center; padding: var(--spacing-sm) 0; } 
.personal-info { flex-grow: 1; margin-right: var(--spacing-sm); display: flex; flex-direction: column; } 
.personal-title { font-size: 0.8rem; color: var(--text-meta); font-weight: 500; margin-bottom: 2px; } 
.personal-name { font-size: 1.0rem; font-weight: 700; font-family: var(--font-body); color: var(--text-head); text-transform: uppercase; } 
.personal-actions { display: flex; gap: var(--spacing-sm); flex-shrink: 0; } 
.personal-actions .btn { width: 35px; height: 35px; padding: 0; display: flex; align-items: center; justify-content: center; font-size: 0; border-radius: var(--radius-sm); } 
.personal-actions .btn img { width: 20px; height: 20px; filter: brightness(0) invert(1); } 
.personal-actions .btn .icon-hover { display: none; } 
.personal-actions .btn:hover .icon-hover { display: block; } 
.personal-actions .btn:hover .icon-default { display: none; } 
.personal-divider { border: none; border-top: 1px solid var(--border-light); margin: 0; } 
.personal-divider:last-child { display: none; } 

/* ========================================= 
   15. WIDGETS: EVENTS & STATS
========================================= */ 
.event-list { display: flex; flex-direction: column; gap: var(--spacing-sm); } 
.card-event { display: flex; align-items: center; background-color: var(--bg-card); border-radius: var(--radius-md); box-shadow: var(--shadow-sm); text-decoration: none; color: inherit; transition: transform 0.2s ease, box-shadow 0.2s ease; } 
.card-event:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); } 
.card-date { display: flex; flex-direction: column; align-items: center; justify-content: center; background-color: var(--primary); color: var(--secondary); font-family: var(--font-head); font-weight: 700; text-align: center; padding: 15px; border-radius: var(--radius-md) 0 0 var(--radius-md); align-self: stretch; width: 80px; } 
.card-date .month { font-size: 0.9rem; text-transform: uppercase; opacity: 0.8; line-height: 1; } 
.card-date .day { font-size: 1.8rem; line-height: 1; } 
.card-event .card-body, .card-conversation .card-body { flex-grow: 1; padding: 15px 20px; min-width: 0; } 
.event-title, .card-conversation .recipient { font-size: 1.1rem; font-family: var(--font-head); font-weight: 700; margin: 0 0 5px 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-transform: uppercase;} 
.event-location, .card-conversation .subject { font-size: 0.9rem; color: var(--text-meta); margin: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } 
.card-actions { padding: 0 20px; display: flex; align-items: center; } 
.stats-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; } 
.stats-card { background-color: var(--bg-card); border-radius: var(--radius-md); padding: 10px 5px; box-shadow: var(--shadow-sm); border: 1px solid var(--border-light); display: flex; flex-direction: column; justify-content: center; align-items: center; aspect-ratio: 1 / 1; transition: transform 0.2s ease, box-shadow 0.2s ease; } 
.stats-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); } 
.stats-card-value { font-size: clamp(1.2rem, 5vw, 2.2rem); font-family: var(--font-head); font-weight: 700; color: var(--primary); line-height: 1; margin-bottom: 5px; } 
.stats-card-label { font-size: clamp(0.6rem, 2.5vw, 0.85rem); color: var(--text-meta); text-transform: uppercase; font-weight: bold; letter-spacing: 0; text-align: center; line-height: 1.2; }

/* Kompakt Event-Filter */
.event-filter-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  padding: 6px 10px;
  background: var(--bg-light, #eeeeee);
  border-radius: var(--radius-sm, 4px);
  border: 1px solid var(--border-light, #e5e7eb);
  font-size: 0.8rem;
}

.event-filter-label-text {
  color: var(--text-meta, #888888);
  font-size: 0.75rem;
  text-transform: uppercase;
  font-weight: 700;
}

.event-filter-active-tags {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 5px;
}

.event-filter-tag {
  background: var(--primary, #054734);
  color: var(--secondary, #ffffff);
  padding: 2px 8px;
  border-radius: 10px;
  font-size: 0.72rem;
  font-weight: 600;
}

.event-filter-tag-all {
  background: var(--border-base, #cccccc);
  color: var(--text-head, #111111);
  padding: 2px 8px;
  border-radius: 10px;
  font-size: 0.72rem;
  font-weight: 600;
}

.event-filter-dropdown-container {
  position: relative;
}

.event-filter-details {
  position: relative;
}

.event-filter-summary {
  cursor: pointer;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-head, #111111);
  background: var(--bg-card, #ffffff);
  border: 1px solid var(--border-base, #cccccc);
  padding: 3px 8px;
  border-radius: var(--radius-sm, 4px);
  list-style: none;
  user-select: none;
}

.event-filter-summary::-webkit-details-marker {
  display: none;
}

.event-filter-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 4px);
  background: var(--bg-card, #ffffff);
  border: 1px solid var(--border-base, #cccccc);
  border-radius: var(--radius-sm, 4px);
  box-shadow: var(--shadow-md, 0 4px 12px rgba(0, 0, 0, 0.1));
  padding: 8px;
  z-index: 50;
  min-width: 190px;
  max-height: 220px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.event-filter-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  cursor: pointer;
  margin: 0;
  color: var(--text-meta, #888888);
  user-select: none;
}

.event-filter-item.is-active {
  color: var(--text-head, #111111);
  font-weight: 700;
}

.event-filter-item input[type="checkbox"] {
  cursor: pointer;
  margin: 0;
}

.event-sort-select {
  font-size: 0.75rem;
  padding: 3px 6px;
  border: 1px solid var(--border-base, #cccccc);
  border-radius: var(--radius-sm, 4px);
  background-color: var(--bg-card, #ffffff);
  color: var(--text-head, #111111);
  cursor: pointer;
}

/* ========================================= 
   16. APP LAYOUT, SIDE DRAWER, MODALS & ALERTS
========================================= */ 

/* Huvudlayout - Wrapper för Desktop Grid (Implementeras i HTML senare) */
.app-layout { display: flex; flex-direction: column; width: 100%; }

@media (min-width: 992px) {
  .app-layout { display: grid; grid-template-columns: 250px 1fr; max-width: 1200px; margin: 0 auto; min-height: 100vh; }
}

/* Overlay som dimmar ner bakgrunden (Endast Mobil/Tablet) */
.drawer-overlay { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0, 0, 0, 0.6); z-index: 998; opacity: 0; transition: opacity 0.3s ease; }

.drawer-overlay.is-open { display: block; opacity: 1; }

/* Själva sidomenyn - Standard Mobilvy (Slide-out) */
.side-drawer { position: fixed; top: 0; left: -100%; width: 80%; max-width: 360px; height: 100vh; background-color: var(--bg-card); z-index: 999; box-shadow: var(--shadow-lg); transition: left 0.3s cubic-bezier(0.4, 0, 0.2, 1); }

.side-drawer.is-open { left: 0; }

/* Innehållscontainer i drawern (Mobil spacing) */
.side-drawer-content { height: 100%; box-sizing: border-box; padding-top: calc(var(--header-h-mob) + var(--spacing-sm)); padding-bottom: calc(var(--footer-h-mob) + var(--spacing-sm)); padding-left: var(--spacing-md); padding-right: var(--spacing-md); overflow-y: auto; display: flex; flex-direction: column; }

/* Allmänna navigeringslänkar i Drawern */
.drawer-nav { display: flex; flex-direction: column; gap: 5px; }

.user-profile-header { border-bottom: 1px solid var(--border-light); padding-bottom: 15px; }

/* Formulärstilar i Drawern */
.side-drawer form { display: flex; flex-direction: column; gap: var(--spacing-sm); }

.side-drawer input { width: 100%; padding: 12px; border: 1px solid var(--border-base); border-radius: var(--radius-sm); font-family: var(--font-body); font-size: 1rem; appearance: none; background-color: var(--bg-card); }

.side-drawer input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 2px rgba(var(--primary-rgb), 0.2); }

/* Hover-skifte för panel-ikoner */
            .drawer-panel-link .icon-hover { display: none !important; }
            .drawer-panel-link .icon-default { display: block !important; }
            .drawer-panel-link:hover .icon-default,
            .drawer-panel-link:active .icon-default { display: none !important; }
            .drawer-panel-link:hover .icon-hover,
            .drawer-panel-link:active .icon-hover { display: block !important; }
            
            /* Gör svarta SVG-ikoner primärgröna (#054734) */
            .drawer-icon-green {
                filter: invert(18%) sepia(85%) saturate(840%) hue-rotate(124deg) brightness(91%) contrast(98%);
            }

/* -----------------------------------------
   DESKTOP ANPASSNING (Fast Sidebar)
----------------------------------------- */
@media (min-width: 992px) {
  /* Dölj overlay helt på desktop */
  .drawer-overlay, 
  .drawer-overlay.is-open { display: none !important; }
  
  /* Förvandla drawern till en fastlåst sidebar i vår grid */
  .side-drawer { position: sticky; top: 0; left: 0;  width: 100%; max-width: none; height: 100vh; box-shadow: none; border-right: 1px solid var(--border-light); transition: none; z-index: 10; }

  /* Normal padding på desktop */
  .side-drawer-content { padding-top: var(--spacing-lg); padding-bottom: var(--spacing-lg); }
}

/* Befintliga Alerts & Modals */
.alert-box { padding: var(--spacing-md); border-radius: var(--radius-sm); } 
.alert-warning { background-color: rgba(255, 100, 100, 0.05); border: 1px dashed var(--accent); } 
.alert-success { background-color: rgba(100, 255, 100, 0.05); border: 1px solid var(--border-base); } 
.alert-empty { border: 1px dashed var(--border-base); } 
.alert-title { margin-top: 0; margin-bottom: 10px; font-weight: 600; } 
.alert-title.text-success { color: var(--text-head); margin: 0; } 
.alert-title.text-accent { color: var(--accent); } 

.modal-overlay { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.6); z-index: 1000; align-items: center; justify-content: center; } 
.modal-content { background: var(--bg-app); padding: var(--spacing-md); border-radius: var(--radius-md); max-width: 400px; width: 90%; box-shadow: 0 10px 25px rgba(0,0,0,0.3); } 
.modal-title { margin-top: 0; } 
.modal-text { font-size: 0.9rem; margin-bottom: 15px; } 

.instruction-box { background-color: var(--bg-light); padding: var(--spacing-sm); border-radius: var(--radius-sm); border: 1px solid var(--border-base); margin-bottom: var(--spacing-md); } 
.instruction-title { font-size: 1rem; margin-top: 0; } 
.instruction-text { font-size: 0.9rem; margin-bottom: 10px; }

/* ========================================= 
   17. WIDGETS: VIDEO CAROUSEL
========================================= */ 
.video-carousel {
    display: flex;
    overflow-x: auto;
    gap: 15px;
    padding-bottom: 15px;
    scroll-snap-type: x mandatory;
    /* Dölj scrollbar */
    -ms-overflow-style: none;  /* IE and Edge */
    scrollbar-width: none;  /* Firefox */
}
.video-carousel::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
}

.video-card {
    flex: 0 0 65%;
    display: flex;
    flex-direction: column;
    scroll-snap-align: start;
    margin-bottom: 0 !important; /* Åsidosätt .card's standard-marginal */
}

.video-thumbnail {
    position: relative;
    width: 100%;
    aspect-ratio: 16/9;
    overflow: hidden;
    border-top-left-radius: var(--radius-md);
    border-top-right-radius: var(--radius-md);
}

.video-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-play-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0,0,0,0.6);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease;
}

.video-card:hover .video-play-icon {
    transform: translate(-50%, -50%) scale(1.1);
}

.video-card .card-body {
    padding: 12px;
    flex-grow: 1;
    display: flex;
    align-items: center;
}

.video-card .card-body h3 {
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.3;
    color: var(--text-body);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-family: var(--font-body);
    font-weight: 700;
    text-transform: none;
}

/* =========================================
   18. WIDGETS: HOME GAME HERO (NEW!)
========================================= */
.team-logo-img {
  max-height: 85px;
  margin: 0 auto;
  object-fit: contain;
}

.team-logo-fallback {
  display: none;
  font-family: var(--font-head);
  font-weight: 700;
  text-transform: uppercase;
  text-align: center;
  font-size: 1.1rem;
}

.game-hero-content-box {
  padding: 0;
}

.game-hero-pillbox-nav {
  border: none;
  border-radius: 0;
  border-bottom: 1px solid var(--border-light);
  margin-bottom: 0;
}

.game-hero-body {
  padding: 10px;
}

.game-hero-date {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1rem;
}

.game-hero-teams-row {
  gap: 10px;
}

.game-hero-team-col {
  min-width: 0;
}

.game-hero-match-start {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.2rem;
}

.game-hero-score {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.5rem;
}

.game-hero-location {
  font-family: var(--font-head);
  font-weight: 500;
  text-transform: uppercase;
  font-size: 1rem;
  color: var(--text-body);
}

.game-hero-time {
  font-family: var(--font-body);
  font-size: 1.1rem;
  color: var(--text-head);
}

.game-hero-btn-sm {
  font-size: 0.85rem;
}

.game-hero-btn-disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* =========================================
   19. DASHBOARD
========================================= */
/* Specifika stilar för kontrollpanelens hubb - INGEN INLINE CSS! */
        .panel-heading {
            text-align: center;
            margin-bottom: var(--spacing-lg);
            text-transform: uppercase;
        }
        
        .panel-grid {
            display: grid;
            grid-template-columns: 1fr; /* Staplade på mobil */
            gap: var(--spacing-md);
        }
        
        @media (min-width: 992px) {
            .panel-grid {
                grid-template-columns: repeat(3, 1fr); /* 3 i bredd på desktop */
            }
        }

        .box-head-primary {
            background-color: var(--primary);
            color: var(--secondary);
            padding: 15px 20px;
            margin: 0;
            font-family: var(--font-head);
            font-weight: 700;
            font-size: 1.2rem;
            text-transform: uppercase;
        }

        .box-body-padded {
            padding: 20px;
        }
        
/* =========================================
   20. WIDGETS: STANDINGS TABLE
========================================= */
.standings-wrapper {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.standings-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
  white-space: nowrap;
}

.standings-table th {
  background-color: var(--bg-light);
  color: var(--text-meta);
  font-family: var(--font-head);
  font-weight: 700;
  text-transform: uppercase;
  padding: 10px 8px;
  font-size: 0.8rem;
  text-align: center;
}

.standings-table th.th-team {
  text-align: left;
  padding-left: 12px;
}

.standings-table td {
  padding: 10px 8px;
  text-align: center;
  border-bottom: 1px solid var(--border-light);
  color: var(--text-body);
}

.standings-table td.td-team {
  text-align: left;
  font-weight: 500;
  padding-left: 12px;
}

.standings-table td.td-pos {
  font-family: var(--font-head);
  font-weight: 700;
  color: var(--text-meta);
  width: 32px;
}

.standings-table td.td-pts {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--text-head);
}

/* Markering för det egna laget */
.standings-row-taif {
  background-color: rgba(var(--primary-rgb), 0.08);
}

.standings-row-taif td {
  font-weight: 700;
}

.standings-row-taif td.td-team,
.standings-row-taif td.td-pos {
  color: var(--primary);
}

/* Streckmarkeringar för tabellplaceringar */
.cutoff-playoffs td {
  border-bottom: 2px solid var(--primary);
}

.cutoff-playin td {
  border-bottom: 2px dashed var(--border-base);
}

.cutoff-relegation td {
  border-bottom: 2px solid var(--accent);
}

/* Teckenförklaring */
.standings-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  padding: 12px 15px;
  font-size: 0.75rem;
  color: var(--text-meta);
  border-top: 1px solid var(--border-light);
  background-color: var(--bg-card);
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 6px;
}

.legend-dot {
  width: 10px;
  height: 10px;
  border-radius: 2px;
}

.dot-playoffs { background-color: var(--primary); }
.dot-playin { background-color: #f0ad4e; }
.dot-relegation { background-color: var(--accent); }

/* Mobilanpassning: Kompaktare text och marginaler utan att trunkera lagnamn */
@media (max-width: 576px) {
  .standings-table {
    font-size: 0.72rem;
  }

  .standings-table th {
    font-size: 0.65rem;
    padding: 6px 2px;
  }

  .standings-table td {
    padding: 6px 2px;
  }

  .standings-table th.th-team,
  .standings-table td.td-team {
    padding-left: 6px;
    padding-right: 4px;
  }

  .standings-table td.td-pos {
    width: 16px;
    padding-left: 2px;
    padding-right: 1px;
  }

  .standings-table td.td-pts {
    font-size: 0.85rem;
    padding-right: 4px;
  }

  .standings-legend {
    padding: 8px 10px;
    gap: 8px;
    font-size: 0.65rem;
  }
}

/* =========================================
   WIDGET: TEAM SCHEDULE (SLIM MATCH-BOX)
========================================= */
.schedule-box-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.schedule-game-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 10px 16px 12px 16px;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
  position: relative;
}

.schedule-game-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
  border-color: var(--border-hover);
}

.schedule-game-card.is-past-game {
  opacity: 0.65;
  background-color: #fafafa;
}

.schedule-game-card.is-next-game {
  border: 2px solid var(--primary);
  background-color: #ffffff;
}

/* 1. Topp: Hörn & Datum */
.schedule-card-top {
  display: grid;
  grid-template-columns: 90px 1fr 90px;
  align-items: center;
  min-height: 28px;
  margin-bottom: 6px;
}

.schedule-top-left {
  display: flex;
  justify-content: flex-start;
  align-items: center;
}

.schedule-top-right {
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

.schedule-date-text {
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--text-meta);
  text-transform: capitalize;
  font-weight: 500;
  text-align: center;
}

/* Nästa match badge (Primärgrön) */
.badge-next-match {
  font-family: var(--font-head);
  font-size: 0.75rem;
  background-color: var(--primary);
  color: var(--secondary);
  padding: 3px 8px;
  border-radius: var(--radius-sm);
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.4px;
  line-height: 1.1;
  white-space: nowrap;
}

/* Hörn-länk för ikoner (Förstorad) */
.schedule-corner-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
}

.schedule-corner-link img {
  width: 24px;
  height: 24px;
  object-fit: contain;
  transition: transform 0.15s ease;
}

.schedule-corner-link .corner-icon-default {
  display: block;
}

.schedule-corner-link .corner-icon-hover {
  display: none;
}

.schedule-corner-link:hover img {
  transform: scale(1.15);
}

.schedule-corner-link:hover .corner-icon-default {
  display: none;
}

.schedule-corner-link:hover .corner-icon-hover {
  display: block;
}

/* 2. Mitten: Loggor, tid & arena */
.schedule-card-middle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.schedule-team-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  max-width: 38%;
}

.schedule-card-logo {
  max-height: 44px;
  max-width: 44px;
  object-fit: contain;
  margin-bottom: 4px;
}

.schedule-team-name {
  font-family: var(--font-head);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-head);
  text-transform: uppercase;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  width: 100%;
}

.schedule-center-col {
  flex: 0 0 24%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.schedule-time {
  font-family: var(--font-head);
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--text-head);
  line-height: 1;
}

.schedule-score {
  font-family: var(--font-head);
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--text-head);
  line-height: 1;
}

.schedule-status-text {
  font-size: 0.72rem;
  color: var(--text-meta);
  text-transform: uppercase;
  font-weight: 600;
  line-height: 1;
  margin-top: 2px;
}

.schedule-arena-text {
  font-family: var(--font-body);
  font-size: 0.88rem;
  color: var(--text-meta);
  margin-top: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
  line-height: 1.1;
}

@media (max-width: 600px) {
  .schedule-card-top {
    grid-template-columns: 80px 1fr 80px;
  }
  .schedule-team-name {
    font-size: 0.82rem;
  }
  .schedule-card-logo {
    max-height: 36px;
    max-width: 36px;
  }
  .schedule-time, .schedule-score {
    font-size: 1.25rem;
  }
  .schedule-arena-text {
    font-size: 0.8rem;
  }
}