body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f8f9fa;
}
header {
    background-color: #333;
    color: white;
    padding: 0 24px;
    display: flex;
    align-items: center;
    gap: 2rem;
    height: 64px;
}
.header-logo {
    height: 2.6rem;
    width: auto;
    flex-shrink: 0;
}
.header-left {
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.header-back-link {
    color: #aaa;
    text-decoration: none;
    font-size: 0.8rem;
}
.header-back-link:hover {
    color: white;
}
.header-nav {
    display: flex;
    align-items: center;
    gap: 0;
    flex: 1;
    overflow-x: auto;
    scrollbar-width: none;
}
.header-nav::-webkit-scrollbar {
    display: none;
}
.header-nav a:not(.hidden) {
    color: white;
    text-decoration: none;
    padding: 0 16px;
    height: 64px;
    display: flex;
    align-items: center;
    white-space: nowrap;
    cursor: pointer;
    border-bottom: 3px solid transparent;
    box-sizing: border-box;
}
.header-nav a:not(.hidden):hover {
    background-color: rgba(255,255,255,0.08);
}
.header-nav a.nav-active {
    border-bottom: 3px solid #fff;
}
#header-auth {
    font-size: 0.9rem;
    flex-shrink: 0;
    display: flex;
    align-items: center;
}
#header-auth a {
    color: #ccc;
    text-decoration: none;
}
#header-auth a:hover {
    color: white;
}
.header-user-menu {
    position: relative;
}
.header-user-trigger {
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 4px 8px;
    border-radius: 4px;
}
.header-user-trigger:hover {
    background-color: rgba(255,255,255,0.1);
}
.header-user-chevron {
    font-size: 0.75rem;
    color: #aaa;
}
.header-user-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: #fff;
    color: #333;
    border-radius: 6px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.18);
    min-width: 220px;
    padding: 8px 0;
    z-index: 1000;
}
.header-user-email {
    display: block;
    padding: 8px 16px;
    font-size: 0.85rem;
    color: #666;
    border-bottom: 1px solid #eee;
    word-break: break-all;
}
.header-user-dropdown a {
    display: block;
    padding: 10px 16px;
    color: #333;
    text-decoration: none;
    font-size: 0.9rem;
}
.header-user-dropdown a:hover {
    background-color: #f5f5f5;
    color: #333;
}
.section {
    display: none;
}
.active {
    display: block;
}
.footer {
    background-color: #333;
    color: white;
    text-align: center;
    padding: 10px;
    position: fixed;
    bottom: 0;
    width: 100%;
}
.main-content {
    padding: 24px;
    padding-bottom: 60px;
}
.hidden {
    display: none;
}
.col-role-id {
    width: 20%;
}
.admin-org-form {
    max-width: 700px;
}
.admin-org-table-wrap {
    max-width: 700px;
}
.col-actions {
    width: 180px;
    white-space: nowrap;
}
.btn-action {
    width: 80px;
}
.user-info-table {
    max-width: 400px;
}
.version-badge {
    font-size: 0.5em;
    vertical-align: middle;
}
.version-log {
    font-size: 0.85em;
}
.version-table {
    max-width: 700px;
}
.col-version {
    width: 80px;
}
.avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    font-weight: 600;
    color: white;
    flex-shrink: 0;
}
.avatar-0 { background: #5c6bc0; }
.avatar-1 { background: #26a69a; }
.avatar-2 { background: #66bb6a; }
.avatar-3 { background: #ef5350; }
.avatar-4 { background: #ab47bc; }
.avatar-5 { background: #29b6f6; }
.avatar-6 { background: #ff7043; }
.avatar-7 { background: #8d6e63; }
.col-avatar { width: 52px; }
#tab-users .admin-org-table-wrap,
#tab-users .admin-org-form { max-width: 960px; }
.col-roles { min-width: 160px; cursor: pointer; }
.col-roles:hover { background-color: #f8f9fa; }
.role-pill { font-size: 0.72rem; }
.role-selector-card {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    border: 2px solid #dee2e6;
    border-radius: 8px;
    cursor: pointer;
    transition: border-color 0.15s, background-color 0.15s;
    -webkit-user-select: none;
    user-select: none;
    min-width: 180px;
}
.role-selector-card:hover { border-color: #0d6efd; background-color: #f0f4ff; }
.role-selector-card.is-active-role { border-color: #0d6efd; background-color: #e7f0ff; }
.role-card-name { flex: 1; font-weight: 500; }
.role-check-icon { color: #198754; font-weight: bold; }
.active-role-msg { min-height: 1.5rem; }
.grant-matrix th, .grant-matrix td { text-align: center; vertical-align: middle; font-size: 0.85rem; }
.grant-matrix th.row-header { text-align: left; font-weight: 600; }
.grant-cell { cursor: pointer; width: 36px; height: 36px; border-radius: 4px; border: none; background: none; font-size: 1rem; }
.grant-cell:hover { background-color: #e9ecef; }
.grant-cell.granted { color: #198754; }
.grant-cell.not-granted { color: #dee2e6; }
.col-members { width: 130px; text-align: center; }
.col-actions-lg { width: 200px; white-space: nowrap; }
.btn-action-sm { width: 70px; }
.member-list-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 0;
    border-bottom: 1px solid #e9ecef;
}
.member-list-item:last-child { border-bottom: none; }
.member-info { flex: 1; min-width: 0; }
.member-info strong { display: block; }
.member-info small { color: #6c757d; }
.col-details { width: 90px; }
.col-role-id-num { width: 80px; }
.col-preview { width: 130px; }
.col-requires { width: 110px; }
.col-requires-org { width: 120px; }
.alert-narrow { width: fit-content; max-width: 100%; }
.text-sm { font-size: 0.85rem; }
.role-pill-lg { font-size: 0.85rem; padding: 6px 10px; }
.input-qty { max-width: 90px; }
.login-buttons { display: flex; flex-wrap: nowrap; gap: 8px; }
@media (max-width: 540px) { .login-buttons { flex-wrap: wrap; } }
.btn-microsoft {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #2f2f2f;
    color: #fff;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    text-decoration: none;
    font-size: 0.9rem;
}
.btn-microsoft:hover { background: #1a1a1a; color: #fff; }
.btn-google {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #fff;
    color: #3c4043;
    border: 1px solid #dadce0;
    padding: 8px 16px;
    border-radius: 4px;
    text-decoration: none;
    font-size: 0.9rem;
}
.btn-google:hover { background: #f8f9fa; color: #3c4043; border-color: #bdc1c6; }
.btn-magiclink {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #fff;
    color: #2f2f2f;
    border: 1px solid #ccc;
    padding: 8px 16px;
    border-radius: 4px;
    font-size: 0.9rem;
    cursor: pointer;
    font-family: inherit;
}
.btn-magiclink:hover { background: #f5f5f5; border-color: #999; }
.magic-link-form {
    margin-top: 10px;
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    align-items: center;
}
.magic-link-form input[type="email"] {
    flex: 1 1 200px;
    padding: 7px 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 0.9rem;
}
.magic-link-form button {
    padding: 7px 16px;
    background: #2f2f2f;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 0.9rem;
    cursor: pointer;
}
.magic-link-form button:disabled { opacity: 0.6; cursor: default; }
.magic-link-msg { margin-top: 6px; font-size: 0.9rem; }

/* ── Barnkonto: kod-inloggningsknapp ─────────────────────────────────────── */
.btn-childcode {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: #fff;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 0.9rem;
    cursor: pointer;
    font-family: inherit;
}
.btn-childcode:hover { background: #f5f5f5; border-color: #999; }
.code-login-form {
    margin-top: 10px;
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    align-items: center;
}
.code-login-form input[type="text"] {
    flex: 1 1 140px;
    padding: 7px 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 0.9rem;
}
.code-login-form button {
    padding: 7px 16px;
    background: #2f2f2f;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 0.9rem;
    cursor: pointer;
}
.code-login-form button:disabled { opacity: 0.6; cursor: default; }
.code-login-msg { margin-top: 6px; font-size: 0.9rem; }

/* ── Barnkonto: kodvisningsmodal ─────────────────────────────────────────── */
.child-code-display {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    padding: 16px;
    margin-top: 12px;
}
.child-code-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid #e9ecef;
}
.child-code-row:last-child { border-bottom: none; }
.child-code-label { color: #6c757d; font-size: 0.85rem; }
.child-code-value { font-weight: 600; }
.child-code-secret {
    font-family: 'Courier New', monospace;
    font-size: 1.4rem;
    letter-spacing: 0.15em;
    color: #198754;
}

/* ── Hjälpcenter ─────────────────────────────────────────────────────────── */
.help-hero {
    background: linear-gradient(135deg, #2f2f2f 0%, #444 100%);
    color: white;
    border-radius: 10px;
    padding: 32px 28px;
    margin-bottom: 28px;
}
.help-hero-title { margin: 0 0 8px; font-size: 1.6rem; }
.help-hero-desc { margin: 0 0 20px; opacity: 0.85; font-size: 1rem; }
.help-role-filter { display: flex; gap: 8px; flex-wrap: wrap; }
.help-role-btn {
    background: rgba(255,255,255,0.12);
    color: white;
    border: 1px solid rgba(255,255,255,0.25);
    border-radius: 20px;
    padding: 6px 18px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s;
}
.help-role-btn:hover { background: rgba(255,255,255,0.22); }
.help-role-btn.active {
    background: white;
    color: #2f2f2f;
    border-color: white;
    font-weight: 600;
}
.help-accordion { max-width: 860px; }
.help-accordion .accordion-button { gap: 10px; }
.help-accordion-icon { font-size: 1.1rem; flex-shrink: 0; }
.help-accordion-title { font-weight: 600; flex: 1; }

/* Steg-för-steg */
.help-steps { list-style: none; padding: 0; margin: 0; }
.help-step {
    display: flex;
    gap: 16px;
    margin-bottom: 22px;
    align-items: flex-start;
}
.help-step:last-child { margin-bottom: 0; }
.help-step-num {
    min-width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #0d6efd;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
    flex-shrink: 0;
    margin-top: 1px;
}
.help-step-title { font-weight: 600; margin-bottom: 4px; }
.help-step-desc { color: #555; font-size: 0.93rem; line-height: 1.5; }

/* Callouts */
.help-tip {
    background: #e8f4fd;
    border-left: 4px solid #0d6efd;
    border-radius: 0 6px 6px 0;
    padding: 12px 16px;
    font-size: 0.92rem;
}
.help-warn {
    background: #fff8e1;
    border-left: 4px solid #ffc107;
    border-radius: 0 6px 6px 0;
    padding: 12px 16px;
    font-size: 0.92rem;
}

/* Inloggningsmetoder */
.help-method-grid { display: flex; flex-direction: column; gap: 12px; }
.help-method-card {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 14px 16px;
}
.help-method-icon {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.95rem;
    flex-shrink: 0;
    color: white;
}
.help-icon-microsoft { background: #2f2f2f; }
.help-icon-email { background: #6c757d; }
.help-icon-code { background: #198754; }

/* Åtgärder (barnkonton) */
.help-action-list { display: flex; flex-direction: column; gap: 14px; }
.help-action-item { display: flex; gap: 14px; align-items: flex-start; }
.help-action-badge {
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 600;
    white-space: nowrap;
    min-width: 72px;
    text-align: center;
}
.help-badge-blue { background: #cfe2ff; color: #084298; }
.help-badge-yellow { background: #fff3cd; color: #664d03; }
.help-badge-gray { background: #e2e3e5; color: #41464b; }
.help-action-desc { font-size: 0.93rem; line-height: 1.5; }

/* Flik-guide */
.help-tab-guide { display: flex; flex-direction: column; gap: 0; }
.help-tab-item {
    display: flex;
    gap: 14px;
    padding: 12px 0;
    border-bottom: 1px solid #e9ecef;
    align-items: baseline;
}
.help-tab-item:last-child { border-bottom: none; }
.help-tab-name {
    font-weight: 600;
    min-width: 130px;
    flex-shrink: 0;
    font-size: 0.93rem;
}
.help-tab-desc { color: #555; font-size: 0.93rem; }

/* Roller */
.help-role-table { display: flex; flex-direction: column; gap: 10px; }
.help-role-row { display: flex; align-items: center; gap: 14px; }
.help-role-badge { min-width: 130px; text-align: center; }
.help-role-text { font-size: 0.93rem; color: #444; }

/* Barnkonton-sektion i lagmedlemsmodalen */
.member-barnkonton-section {
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid #dee2e6;
}
.member-barnkonton-heading {
    color: #495057;
    font-size: 0.95rem;
    margin-bottom: 0.75rem;
}

/* Orderformulär — kundsektion */
.order-buyer-section {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    padding: 1rem 1rem 0.5rem;
    margin-bottom: 0.5rem;
}
.order-section-heading {
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #6c757d;
    margin-bottom: 0.75rem;
}
.order-buyer-divider {
    margin: 0.75rem 0 0.75rem;
}
.order-buyer-suggestions {
    position: absolute;
    z-index: 1055;
    left: 0;
    right: 0;
    background: #fff;
    border: 1px solid #ced4da;
    border-top: none;
    border-radius: 0 0 6px 6px;
    max-height: 220px;
    overflow-y: auto;
    box-shadow: 0 4px 12px rgba(0,0,0,.1);
}
.order-buyer-suggestion-item {
    padding: 0.5rem 0.75rem;
    cursor: pointer;
    font-size: 0.9rem;
    border-bottom: 1px solid #f0f0f0;
}
.order-buyer-suggestion-item:hover {
    background: #e9f0ff;
}
.order-buyer-suggestion-item:last-child {
    border-bottom: none;
}
.order-buyer-selected {
    display: flex;
    align-items: center;
    background: #e8f5e9;
    border: 1px solid #a5d6a7;
    border-radius: 5px;
    padding: 0.4rem 0.75rem;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

/* ── Kundvy ──────────────────────────────────────────────────────────────── */
.kundvy-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid #dee2e6;
}
.kundvy-subheading {
    font-size: 0.95rem;
    color: #495057;
    margin-top: 2px;
    margin-bottom: 0;
}
.kundvy-add-team-label {
    font-size: 0.875rem;
    font-weight: 500;
    color: #343a40;
    margin-bottom: 8px;
    margin-top: 0;
}
.kundvy-checkout-guide {
    display: block;
    font-size: 0.875rem;
    color: #6c757d;
    text-align: center;
}
.kundvy-layout {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 24px;
    align-items: start;
}
@media (max-width: 800px) {
    .kundvy-layout { grid-template-columns: 1fr; }
}
.kundvy-product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
    gap: 16px;
}
.kundvy-product-card {
    background: #fff;
    border: 1px solid #dee2e6;
    border-radius: 10px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    transition: box-shadow 0.15s, border-color 0.15s;
}
.kundvy-product-card:hover {
    box-shadow: 0 2px 12px rgba(0,0,0,0.1);
    border-color: #0d6efd;
}
.kundvy-product-name { font-weight: 600; font-size: 0.95rem; }
.kundvy-product-desc { font-size: 0.83rem; color: #6c757d; flex: 1; line-height: 1.4; }
.kundvy-product-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 4px;
}
.kundvy-product-price { font-size: 1.05rem; font-weight: 700; color: #0d6efd; }
.kundvy-product-unit { font-size: 0.78rem; color: #6c757d; }
/* Cart panel */
.kundvy-cart-panel {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 10px;
    padding: 18px;
    position: sticky;
    top: 16px;
}
.kundvy-cart-empty { font-size: 0.9rem; color: #6c757d; text-align: center; padding: 16px 0; }
.kundvy-cart-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 7px 0;
    border-bottom: 1px solid #e9ecef;
    font-size: 0.88rem;
}
.kundvy-cart-item:last-child { border-bottom: none; }
.kundvy-cart-item-name { flex: 1; font-weight: 500; line-height: 1.3; }
.kundvy-qty-wrap { display: flex; align-items: center; gap: 4px; }
.kundvy-qty-btn {
    width: 26px;
    height: 26px;
    border: 1px solid #ced4da;
    background: #fff;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1.1rem;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    flex-shrink: 0;
}
.kundvy-qty-btn:hover { background: #e9ecef; }
.kundvy-qty-num { min-width: 20px; text-align: center; font-weight: 600; font-size: 0.9rem; }
.kundvy-cart-row-total { min-width: 52px; text-align: right; font-weight: 500; }
.kundvy-cart-sep { border-top: 2px solid #dee2e6; margin: 10px 0 8px; }
.kundvy-cart-total-row {
    display: flex;
    justify-content: space-between;
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 12px;
}
/* Order history */
.kundvy-order-card {
    background: #fff;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 12px 16px;
    margin-bottom: 8px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    font-size: 0.9rem;
}
.kundvy-order-meta { flex: 1; min-width: 0; }
.kundvy-order-date { color: #6c757d; font-size: 0.83rem; }
.kundvy-order-total { font-weight: 700; font-size: 1rem; white-space: nowrap; }

/* Swish-betalningsbekräftelse */
.kundvy-swish-success {
    font-size: 1rem;
    font-weight: 700;
    color: #198754;
    text-align: center;
    margin-bottom: 12px;
}
.kundvy-swish-amount-row {
    display: flex;
    justify-content: space-between;
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 16px;
}
.kundvy-swish-amount-value { color: #212529; }
.kundvy-swish-qr-wrap {
    display: flex;
    justify-content: center;
    margin-bottom: 12px;
}
#kundvy-swish-qr canvas, #kundvy-swish-qr img { border-radius: 6px; }
.kundvy-swish-desktop-instructions {
    font-size: 0.88rem;
    color: #6c757d;
    text-align: center;
    margin-bottom: 4px;
}
.kundvy-swish-mobile-cta { display: none; margin-bottom: 12px; }
.kundvy-swish-mobile-hint {
    font-size: 0.88rem;
    color: #6c757d;
    text-align: center;
    margin: 8px 0 0;
}
.kundvy-swish-qr-toggle {
    display: none;
    padding: 0;
    font-size: 0.85rem;
    margin-bottom: 8px;
}
#kundvy-swish-confirmation.is-mobile .kundvy-swish-mobile-cta { display: block; }
#kundvy-swish-confirmation.is-mobile .kundvy-swish-desktop-instructions { display: none; }
#kundvy-swish-confirmation.is-mobile .kundvy-swish-qr-toggle { display: inline-block; }
#kundvy-swish-confirmation.is-mobile .kundvy-swish-qr-wrap { display: none; }
#kundvy-swish-confirmation.is-mobile .kundvy-swish-qr-wrap.qr-expanded { display: flex; }
#kundvy-swish-confirmation.is-mobile .kundvy-swish-manual-hint { display: none; }
.kundvy-payment-confirm-msg {
    font-size: 0.88rem;
    color: #198754;
    text-align: center;
    margin-top: 10px;
}
.kundvy-swish-manual {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    padding: 10px 14px;
    margin-bottom: 4px;
}
.kundvy-swish-manual-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.88rem;
    padding: 3px 0;
}
.kundvy-swish-manual-row span:first-child { color: #6c757d; }
.kundvy-swish-manual-row span:last-child { font-weight: 600; font-family: monospace; }
.kundvy-swish-manual-hint {
    font-size: 0.78rem;
    color: #adb5bd;
    margin: 6px 0 0;
    text-align: center;
}

/* Föreningens försäljning — varningskort för okopplade ordrar */
.forening-card-warning {
    border-color: #ffc107;
}
.forening-card-warning-value {
    color: #997404;
}

/* Lag-tabell — rad för ordrar utan lagkoppling */
.team-unlinked-row { cursor: default; }

/* Org team manage form */
.org-team-add-form {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    padding: 1rem;
}

/* Döljer admin-index tills åtkomstkontroll är klar (förhindrar innehållsblixt) */
.admin-auth-checking { visibility: hidden; }

/* Global felmeddelande-banner på adminsidan */
.admin-flash {
    position: sticky;
    top: 0;
    z-index: 1050;
    padding: 0.75rem 1rem;
    border-radius: 0.375rem;
    margin-bottom: 1rem;
    background-color: #f8d7da;
    border: 1px solid #f5c2c7;
    color: #842029;
}

/* ── Admin login page ─────────────────────────────────────────────────────── */
.admin-login-page {
    background-color: #1a1a2e;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}
.admin-login-wrap {
    width: 100%;
    max-width: 420px;
    padding: 1rem;
}
.admin-login-card {
    background: #fff;
    border-radius: 10px;
    padding: 2.5rem 2rem;
    text-align: center;
    box-shadow: 0 8px 32px rgba(0,0,0,0.4);
}
.admin-login-logo {
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #6c757d;
    margin-bottom: 0.5rem;
}
.admin-login-title {
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: #1a1a2e;
}
.admin-login-desc {
    font-size: 0.9rem;
    color: #6c757d;
    margin-bottom: 1.75rem;
}
.admin-login-error {
    margin-bottom: 1.25rem;
    text-align: left;
}
.admin-login-btn {
    display: block;
    width: 100%;
    padding: 0.75rem 1rem;
    background-color: #0078d4;
    color: #fff;
    font-weight: 600;
    border-radius: 6px;
    font-size: 1rem;
    text-decoration: none;
    border: none;
    margin-bottom: 1.25rem;
}
.admin-login-btn:hover {
    background-color: #006abe;
    color: #fff;
}
.admin-login-account-detail {
    display: block;
    margin-top: 0.4rem;
    opacity: 0.85;
}
.admin-login-btn-secondary {
    background-color: #6c757d;
    border-color: #6c757d;
}
.admin-login-btn-secondary:hover {
    background-color: #5a6268;
    color: #fff;
}
.admin-login-back {
    display: block;
    font-size: 0.85rem;
    color: #6c757d;
    text-decoration: none;
}
.admin-login-back:hover {
    color: #333;
}

/* Versionshistorik */
.version-history {
    border-top: 1px solid #dee2e6;
    padding-top: 0.75rem;
}
.version-history-summary {
    cursor: pointer;
    color: #6c757d;
    font-size: 0.875rem;
    -webkit-user-select: none;
    user-select: none;
}
.version-history-table {
    max-width: 600px;
    font-size: 0.85rem;
}

/* Föreningsspecifik landningsbanner */
.landing-banner {
    background-color: #0d6efd;
    color: #fff;
    text-align: center;
    padding: 0.6rem 1rem;
    font-size: 1rem;
    font-weight: 500;
}
.landing-banner-org {
    font-weight: 700;
}

/* Kund mini-onboarding (föreningslandning) */
.ko-team-checklist {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    max-height: 16rem;
    overflow-y: auto;
    border: 1px solid #dee2e6;
    border-radius: 0.375rem;
    padding: 0.5rem 0.75rem;
}
.ko-team-checklist label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    font-size: 0.95rem;
}

/* Kundvy — Mina föreningar och lag */
.kundvy-team-group {
    margin-bottom: 0.75rem;
}
.kundvy-team-group-org {
    font-size: 0.8rem;
    font-weight: 600;
    color: #6c757d;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    margin-bottom: 0.25rem;
}
.kundvy-team-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    padding: 0.35rem 0.6rem;
    background: #fff;
    border: 1px solid #dee2e6;
    border-radius: 0.375rem;
    margin-bottom: 0.25rem;
}
.kundvy-team-row-left {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    min-width: 0;
}
.kundvy-team-row-actions {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    flex-shrink: 0;
}
.kundvy-team-name {
    font-size: 0.95rem;
}
.kundvy-team-active-badge {
    font-size: 0.7rem;
    font-weight: 600;
    color: #0d6efd;
    background: #e7f0ff;
    border: 1px solid #b6d0ff;
    border-radius: 0.25rem;
    padding: 0.1rem 0.4rem;
    white-space: nowrap;
}
.kundvy-add-team-form {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 0.5rem;
    padding: 0.75rem 1rem;
}

/* ── Orderdetalj: pennikon-knappar ───────────────────────────────────────── */
.btn-edit-icon {
    background: none;
    border: none;
    padding: 0;
    margin-left: 0.25rem;
    color: #6c757d;
    cursor: pointer;
    font-size: 0.85rem;
    line-height: 1;
    vertical-align: middle;
}
.btn-edit-icon:hover { color: #0d6efd; }

/* ── Om oss ────────────────────────────────────────────────── */
.om-oss-list {
    padding-left: 1.2rem;
    margin-bottom: 0;
}
.om-oss-list li {
    margin-bottom: 0.4rem;
}
