﻿/* Gandalf2027 samlet CSS
   Rækkefølge: tidligere site2.css -> MaeglerDashboard(1).css; samlet som site.css
   Ved overlappende regler har den sidst placerede regel forrang,
   afhængigt af CSS-specificitet og !important.
*/

/* ===== START: site2.css ===== */
/* =========================
   NYT GRAFISK UNIVERS
   Varmt Gandalf / jordtema
   Ingen nye classnames
   ========================= */

:root {
    --g-accent-1: #d2a646;
    --g-accent-2: #b98922;
    --g-accent-3: #8b5e1f;
    --g-dark: #1f2a37;
    --g-muted: #6b7280;
    --g-paper: #fffaf5;
    --g-paper-2: #f6efe7;
    --g-border-soft: rgba(38, 57, 77, 0.08);
    --g-btn-radius: 6px;
    --g-btn-shadow: 0 10px 22px rgba(92, 62, 43, 0.14);
    --g-btn-shadow-hover: 0 14px 28px rgba(92, 62, 43, 0.18);
}

/* =========================
   HERO
   ========================= */

.hero-section {
    min-height: 100vh;
    position: relative;
    background: #241913;
}

.hero-bg {
    position: absolute;
    inset: 0;
}

.hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    filter: sepia(0.18) saturate(0.88) contrast(1.04) brightness(0.90);
}

.hero-gradient-overlay {
    background: radial-gradient(1200px 700px at 15% 35%, rgba(255,244,232,0.08), rgba(0,0,0,0.00) 55%), radial-gradient(900px 600px at 85% 65%, rgba(255,232,210,0.06), rgba(0,0,0,0.00) 60%), linear-gradient(100deg, rgba(36,25,19,0.92) 0%, rgba(58,39,28,0.78) 35%, rgba(84,58,41,0.46) 62%, rgba(84,58,41,0.20) 100%);
}

@media (max-width: 768px) {
    .hero-img {
        object-position: 50% 35%;
    }
}

.dse-hero-spot {
    background: linear-gradient(180deg, rgba(255,248,240,0.14) 0%, rgba(244,232,220,0.08) 100%);
    border-radius: 24px;
    padding: 3rem 2.5rem;
    box-shadow: 0 18px 50px rgba(20,12,8,0.46), 0 1px 0 rgba(255,248,240,0.08) inset;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    border: 1px solid rgba(255,236,220,0.16);
}

.dse-hero-title {
    color: #fffaf5;
    margin-bottom: .65rem;
    text-shadow: 0 6px 22px rgba(20,12,8,0.58);
    letter-spacing: -0.02em;
    font-weight: 800;
}

.dse-hero-subtitle {
    color: rgba(255,244,234,0.84);
    text-shadow: 0 2px 12px rgba(20,12,8,0.38);
    letter-spacing: 0.01em;
}

/* =========================
   EVENTS NAMETAG
   ========================= */

.evt-nametag {
    width: 100%;
    max-width: 320px;
}

@media (min-width: 992px) {
    .evt-nametag {
        width: calc(25% - 0.75rem);
        max-width: none;
    }
}

.evt-nametag-card {
    background: linear-gradient(180deg, #fffaf5 0%, #f3e7dc 100%);
    border: 1px solid rgba(73,49,35,.14);
    border-left: 6px solid rgba(255,255,255,0);
    border-radius: 12px;
    box-shadow: 0 10px 22px rgba(36,25,19,.08), 0 1px 0 rgba(255,250,245,0.95) inset;
    position: relative;
}

    .evt-nametag-card::before {
        content: "";
        position: absolute;
        left: 0;
        top: 0;
        bottom: 0;
        width: 6px;
        background: linear-gradient(180deg, rgba(92,62,43,0.92), rgba(138,100,72,0.62));
        border-top-left-radius: 12px;
        border-bottom-left-radius: 12px;
    }

    .evt-nametag-card .company {
        font-size: .95rem;
        letter-spacing: .2px;
        color: rgba(92,62,43,0.76);
    }

    .evt-nametag-card .name {
        font-size: 1.05rem;
        font-weight: 800;
        color: rgba(54,35,24,0.94);
        letter-spacing: -0.01em;
    }

    .evt-nametag-card .title {
        font-size: .85rem;
        color: rgba(92,62,43,0.64);
    }

/* =========================
   NAVBAR / FOOTER
   ========================= */

.app-navbar {
    background: #000000;
    border-bottom: 3px solid #7c2d12;
}

    .app-navbar .navbar-brand {
        color: #ffffff;
        font-weight: 800;
        letter-spacing: .02em;
    }

        .app-navbar .navbar-brand:hover {
            color: #fbbf24;
        }

.brand-logo {
    height: 42px;
    width: auto;
    display: block;
}

.brand-text {
    font-size: 1.35rem;
    font-weight: 800;
    color: #ffffff;
    line-height: 1;
}

.app-navbar .nav-link {
    color: rgba(255,255,255,.88);
    font-weight: 600;
}

    .app-navbar .nav-link:hover,
    .app-navbar .nav-link:focus,
    .app-navbar .nav-link.active {
        color: #fbbf24;
    }

.app-navbar .dropdown-menu {
    border: 1px solid rgba(15,23,42,.08);
    border-radius: 10px;
    box-shadow: 0 18px 40px rgba(0,0,0,.12);
}

.app-navbar .dropdown-item:hover {
    background: #fff7e6;
    color: #8a5a00;
}

.app-footer {
    border-top: 1px solid #e5e7eb;
    background: #fff;
    color: #6b7280;
}

@media (max-width: 991.98px) {
    .brand-logo {
        height: 20px;
    }

    .brand-text {
        font-size: 1.15rem;
    }
}

/* =========================
   STANDARD KNAPSYSTEM
   3 farver inspireret af login
   1) Primary
   2) Secondary
   3) Tertiary
   ========================= */

.btn {
    border-radius: var(--g-btn-radius) !important;
    font-weight: 600;
    transition: background-color .18s ease, border-color .18s ease, color .18s ease, box-shadow .18s ease, transform .18s ease;
}

    .btn:hover {
        transform: translateY(-1px);
    }

    .btn:focus,
    .btn:focus-visible {
        box-shadow: 0 0 0 0.2rem rgba(185, 137, 34, 0.16);
    }

    .btn.rounded-pill,
    .rounded-pill.btn {
        border-radius: var(--g-btn-radius) !important;
    }

/* PRIMARY */
.btn-primary,
.btn-warning,
.login-submit {
    border: 0 !important;
    color: #ffffff !important;
    background: linear-gradient(135deg, var(--g-accent-1) 0%, var(--g-accent-2) 100%) !important;
    box-shadow: var(--g-btn-shadow);
}

    .btn-primary:hover,
    .btn-primary:focus,
    .btn-warning:hover,
    .btn-warning:focus,
    .login-submit:hover,
    .login-submit:focus {
        color: #ffffff !important;
        background: linear-gradient(135deg, #c89934 0%, #a77718 100%) !important;
        box-shadow: var(--g-btn-shadow-hover);
    }

/* SECONDARY */
.btn-secondary,
.btn-success {
    border: 1px solid #6f4826 !important;
    color: #ffffff !important;
    background: linear-gradient(135deg, #8b5e34 0%, #6f4826 100%) !important;
    box-shadow: 0 8px 18px rgba(111, 72, 38, 0.14);
}

    .btn-secondary:hover,
    .btn-secondary:focus,
    .btn-success:hover,
    .btn-success:focus {
        color: #ffffff !important;
        background: linear-gradient(135deg, #7d542d 0%, #603d1f 100%) !important;
        border-color: #603d1f !important;
    }

/* TERTIARY */
.btn-outline-primary,
.btn-outline-secondary,
.btn-light {
    border: 1px solid rgba(111, 72, 38, 0.18) !important;
    color: #6f4826 !important;
    background: linear-gradient(180deg, #fffaf5 0%, #f6efe7 100%) !important;
    box-shadow: 0 6px 14px rgba(92, 62, 43, 0.06);
}

    .btn-outline-primary:hover,
    .btn-outline-primary:focus,
    .btn-outline-secondary:hover,
    .btn-outline-secondary:focus,
    .btn-light:hover,
    .btn-light:focus {
        color: #5b3a1f !important;
        border-color: rgba(111, 72, 38, 0.28) !important;
        background: linear-gradient(180deg, #fff6ee 0%, #f2e7db 100%) !important;
        box-shadow: 0 8px 18px rgba(92, 62, 43, 0.10);
    }

/* DESTRUKTIV */
.btn-danger {
    border: 0 !important;
    color: #ffffff !important;
    background: linear-gradient(135deg, #c95b4b 0%, #a63f32 100%) !important;
    box-shadow: 0 8px 18px rgba(166, 63, 50, 0.18);
}

    .btn-danger:hover,
    .btn-danger:focus {
        color: #ffffff !important;
        background: linear-gradient(135deg, #b74d3f 0%, #8f352a 100%) !important;
    }

.btn-outline-danger {
    border: 1px solid rgba(166, 63, 50, 0.24) !important;
    color: #9b3a2e !important;
    background: linear-gradient(180deg, #fff7f6 0%, #fdf0ef 100%) !important;
}

    .btn-outline-danger:hover,
    .btn-outline-danger:focus {
        color: #842f25 !important;
        border-color: rgba(166, 63, 50, 0.34) !important;
        background: linear-gradient(180deg, #fff2f0 0%, #fbe7e4 100%) !important;
    }

.btn-link {
    box-shadow: none !important;
    background: transparent !important;
    border: 0 !important;
    transform: none !important;
}

/* =========================
   LOGIN / ACCOUNT
   ========================= */

.py-lg-6 {
    padding-top: 5rem !important;
    padding-bottom: 5rem !important;
}

.login-shell,
.account-shell {
    min-height: calc(100vh - 140px);
    padding-top: 3rem;
    padding-bottom: 3rem;
    background: radial-gradient(900px 400px at 10% 0%, rgba(212, 170, 74, 0.10), rgba(212, 170, 74, 0) 60%), radial-gradient(900px 500px at 100% 20%, rgba(64, 84, 120, 0.08), rgba(64, 84, 120, 0) 60%), linear-gradient(180deg, #f8f6f1 0%, #ffffff 52%, #f5f7fa 100%);
}

.login-card,
.account-card {
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid var(--g-border-soft);
    border-radius: 18px;
    box-shadow: 0 24px 60px rgba(28, 40, 56, 0.12) !important;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.login-logo-wrap,
.account-icon-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(180deg, rgba(255,255,255,0.92) 0%, rgba(246,242,232,0.92) 100%);
    box-shadow: 0 14px 34px rgba(28, 40, 56, 0.10);
    border: 1px solid rgba(212, 170, 74, 0.18);
}

.login-logo-wrap {
    width: 112px;
    height: 112px;
    border-radius: 22px;
}

.account-icon-badge {
    width: 72px;
    height: 72px;
    border-radius: 16px;
    color: #b98922;
}

.login-logo-img {
    max-width: 72px;
    max-height: 72px;
    width: auto;
    height: auto;
    display: block;
}

.login-title,
.account-title,
.account-card h1,
.account-card h2,
.account-card h3,
.account-card .h1,
.account-card .h2,
.account-card .h3,
.account-card .h4,
.account-card .h5,
.account-card .h6 {
    color: var(--g-dark);
    letter-spacing: -0.02em;
}

.login-subtitle,
.account-subtitle,
.account-shell .text-muted,
.account-card .text-muted {
    color: var(--g-muted) !important;
}

/* =========================
   INPUTS / LABELS
   ========================= */

.login-input,
.account-input,
.account-shell .form-control,
.account-shell .form-select,
.form-control,
.form-select {
    min-height: 56px;
    border-radius: 8px;
    border: 1px solid #d8dee6;
    background: #fbfcfe;
    box-shadow: none;
    font-size: 1rem;
}

    .login-input:focus,
    .account-input:focus,
    .account-shell .form-control:focus,
    .account-shell .form-select:focus,
    .form-control:focus,
    .form-select:focus {
        border-color: rgba(212, 170, 74, 0.75);
        box-shadow: 0 0 0 0.25rem rgba(212, 170, 74, 0.16);
        background: #ffffff;
    }

.form-label,
.account-shell .form-label {
    color: var(--g-muted);
    font-weight: 600;
    font-size: .875rem;
    margin-bottom: .45rem;
}

.login-password-toggle {
    text-decoration: none;
}

/* =========================
   LINKS
   ========================= */

.login-link,
.account-link {
    color: #b45309;
    font-weight: 600;
    text-decoration: none;
}

    .login-link:hover,
    .login-link:focus,
    .account-link:hover,
    .account-link:focus {
        color: #92400e;
        text-decoration: none;
    }

/* =========================
   LOGIN / ACCOUNT HELPERS
   ========================= */

.login-submit {
    min-height: 56px;
}

.account-panel,
.login-panel {
    border: 1px solid var(--g-border-soft);
    border-radius: 12px;
    background: #f8fafc;
    padding: 1rem 1.25rem;
}

.login-context {
    border: 1px solid var(--g-border-soft);
    border-radius: 12px;
    background: linear-gradient(180deg, #fffaf5 0%, #f8f4ee 100%);
    padding: 1rem 1.25rem;
}

.login-context-label {
    color: #8a8178;
    font-size: .78rem;
    text-transform: uppercase;
    letter-spacing: .06em;
    font-weight: 700;
}

.login-context-value {
    color: var(--g-dark);
    font-weight: 700;
}

.login-section-title {
    color: var(--g-dark);
    font-size: 1rem;
    font-weight: 700;
}

.account-alert {
    border-radius: 10px;
}

.account-shell .form-check-label,
.account-shell p,
.account-shell li,
.account-shell dd,
.account-shell dt,
.account-shell small,
.account-shell .small {
    font-size: 0.95rem;
}

.account-divider {
    border: 0;
    border-top: 1px solid rgba(111, 72, 38, 0.12);
    margin: 1.25rem 0;
}

/* =========================
   ADMIN SIDEBAR
   ========================= */

.admin-shell {
    display: flex;
    min-height: 100%;
    background: linear-gradient(180deg, #fffdfa 0%, #f8fafc 100%);
}

.admin-sidebar {
    width: 305px;
    flex: 0 0 305px;
    background: linear-gradient(180deg, #fff6e8 0%, #f7ecdf 100%);
    border-right: 1px solid rgba(111, 72, 38, 0.10);
    box-shadow: inset -1px 0 0 rgba(255,255,255,0.55);
    min-height: 100%;
}

.admin-sidebar-inner {
    width: 100%;
    padding: 1.15rem 1rem 1.25rem;
}

.admin-sidebar-inner-mobile {
    padding: .35rem 0 .75rem;
}

.admin-sidebar-brand {
    display: flex;
    align-items: center;
    gap: .75rem;
    margin-bottom: 1rem;
    padding: .35rem .35rem .85rem;
}

.admin-sidebar-brand-logo {
    width: 34px;
    height: 34px;
    object-fit: contain;
    display: block;
}

.admin-sidebar-brand-text {
    font-size: 1.05rem;
    font-weight: 800;
    color: #5b3a1f;
    letter-spacing: -.01em;
}

.admin-sidebar-section-title {
    font-size: .74rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: #9a7b57;
    margin: 1rem 0 .65rem;
    padding: 0 .45rem;
}

    .admin-sidebar-section-title:first-of-type {
        margin-top: 0;
    }

.admin-sidebar-divider {
    height: 1px;
    margin: .95rem .45rem;
    background: linear-gradient(90deg, rgba(111,72,38,0), rgba(111,72,38,0.18), rgba(111,72,38,0));
}

.admin-sidebar-link {
    display: flex;
    align-items: center;
    gap: .8rem;
    width: 100%;
    padding: .72rem .85rem;
    margin-bottom: .28rem;
    border-radius: 8px;
    color: #5b3a1f;
    text-decoration: none;
    font-weight: 600;
    line-height: 1.25;
    transition: background-color .16s ease, color .16s ease, box-shadow .16s ease, transform .16s ease;
}

    .admin-sidebar-link i {
        width: 18px;
        min-width: 18px;
        text-align: center;
        font-size: 1rem;
        opacity: .9;
    }

    .admin-sidebar-link:hover,
    .admin-sidebar-link:focus {
        color: #3f2815;
        background: rgba(255,255,255,0.64);
        box-shadow: inset 0 0 0 1px rgba(111,72,38,0.08);
        text-decoration: none;
    }

    .admin-sidebar-link.active {
        color: #ffffff;
        background: linear-gradient(135deg, var(--g-accent-1) 0%, var(--g-accent-2) 100%);
        box-shadow: 0 10px 20px rgba(185, 137, 34, 0.18);
    }

.admin-sidebar-link-cta {
    background: linear-gradient(180deg, #fffaf5 0%, #f6efe7 100%);
    border: 1px solid rgba(111,72,38,0.12);
    box-shadow: 0 6px 14px rgba(92,62,43,0.05);
}

    .admin-sidebar-link-cta:hover,
    .admin-sidebar-link-cta:focus {
        background: linear-gradient(180deg, #fff7f0 0%, #f3e8dd 100%);
        border-color: rgba(111,72,38,0.20);
    }

.admin-content-wrap {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.admin-content-container {
    max-width: 2000px;
    margin: 0 auto;
}

.admin-mobile-toolbar {
    padding: 1rem 1rem 0;
}

.admin-mobile-menu-btn {
    min-width: 118px;
}

.admin-offcanvas {
    background: linear-gradient(180deg, #fffaf5 0%, #f7ecdf 100%);
}

    .admin-offcanvas .offcanvas-header {
        background: rgba(255,255,255,0.55);
    }

/* =========================
   RESPONSIVE
   ========================= */

@media (max-width: 991.98px) {
    .admin-shell {
        display: block;
        min-height: auto;
    }

    .admin-content-wrap {
        min-width: 0;
    }
}

@media (max-width: 575.98px) {
    .login-shell,
    .account-shell {
        min-height: auto;
        padding-top: 1.5rem;
        padding-bottom: 1.5rem;
    }

    .login-logo-wrap {
        width: 96px;
        height: 96px;
        border-radius: 18px;
    }

    .login-logo-img {
        max-width: 62px;
        max-height: 62px;
    }

    .account-icon-badge {
        width: 60px;
        height: 60px;
        border-radius: 14px;
    }

    .admin-mobile-toolbar {
        padding: .85rem .85rem 0;
    }
}
/* ===== SLUT: site2.css ===== */

/* ===== START: MaeglerDashboard(1).css ===== */
/* ==========================================================
   GANDALF 2027 - MÆGLER DASHBOARD
   Mobile first
   ========================================================== */


/* ==========================================================
   VARIABLES
   ========================================================== */

:root {
    --app-bg: #f4f5f7;
    --app-surface: #ffffff;
    --app-text: #242424;
    --app-muted: #6b7280;
    --app-border: #dfe3e8;
    --app-border-dark: #cbd1d8;
    --app-nav-bg: #111111;
    --app-nav-hover: #242424;
    --app-nav-border: #303030;
    --app-nav-text: #ffffff;
    --app-nav-muted: #d0d0d0;
    --app-accent: #d2a646;
    --app-accent-dark: #a98027;
    --app-primary: #8b691b;
    --app-primary-hover: #715515;
    --app-danger: #b42318;
    --app-danger-hover: #912018;
    --app-radius: 6px;
    --app-navbar-height-mobile: 72px;
    --app-navbar-height-desktop: 82px;
}


/* ==========================================================
   BASE
   ========================================================== */

html {
    min-height: 100%;
    font-size: 16px;
}

body {
    min-height: 100%;
    margin: 0;
    background: var(--app-bg);
    color: var(--app-text);
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    font-size: 1rem;
    line-height: 1.45;
}

a {
    color: inherit;
}

img {
    max-width: 100%;
}


/* ==========================================================
   APPLICATION SHELL
   ========================================================== */

.app-shell {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: var(--app-bg);
}

.app-main {
    flex: 1 1 auto;
    min-width: 0;
    width: 100%;
}


/* ==========================================================
   TOP NAVIGATION
   ========================================================== */

html body .app-navbar {
    position: relative;
    z-index: 1000;
    min-height: var(--app-navbar-height-mobile);
    padding: 0;
    background: var(--app-nav-bg) !important;
    background-image: none !important;
    border: 0;
    border-bottom: 1px solid var(--app-nav-border);
    box-shadow: 0 2px 7px rgba(0, 0, 0, .16);
}

.app-navbar-container {
    min-height: var(--app-navbar-height-mobile);
    padding-left: 14px !important;
    padding-right: 14px !important;
}


/* ==========================================================
   LOGO
   ========================================================== */

.app-navbar .navbar-brand {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 2px;
    margin: 0;
    padding: 7px 0;
    color: #ffffff !important;
    text-decoration: none;
}

    .app-navbar .navbar-brand:hover,
    .app-navbar .navbar-brand:focus {
        color: #ffffff !important;
    }

.brand-logo {
    display: block;
    width: auto;
    height: 42px;
    object-fit: contain;
}

.app-navbar .brand-subtitle {
    display: block;
    margin: 0;
    color: #aaaaaa;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.2;
    letter-spacing: .4px;
    white-space: nowrap;
}

@media (max-width: 991.98px) {
    .app-navbar .brand-subtitle {
        font-size: 10px;
    }

    .app-navbar .brand-logo {
        height: 38px;
    }
}

.brand-text {
    color: #ffffff;
    font-size: 1.08rem;
    font-weight: 700;
    line-height: 1;
    letter-spacing: -.01em;
}


/* ==========================================================
   HAMBURGER
   Bootstrap controls display / visibility.
   DO NOT set display:flex here.
   ========================================================== */

.app-navbar .navbar-toggler {
    width: 44px;
    height: 44px;
    padding: 8px;
    border: 1px solid #444444;
    border-radius: 6px;
    background-color: #1b1b1b;
    box-shadow: none;
}

    .app-navbar .navbar-toggler:hover {
        background-color: #292929;
    }

    .app-navbar .navbar-toggler:focus {
        border-color: #666666;
        box-shadow: 0 0 0 3px rgba(255, 255, 255, .08);
    }

.app-navbar .navbar-toggler-icon {
    width: 22px;
    height: 22px;
}


/* ==========================================================
   MOBILE NAVIGATION
   ========================================================== */

.app-navbar .navbar-collapse {
    margin-left: -14px;
    margin-right: -14px;
    padding: 8px 14px 14px;
    background: var(--app-nav-bg);
    border-top: 1px solid var(--app-nav-border);
}

.app-navbar .navbar-nav {
    width: 100%;
}


/* ==========================================================
   NAVIGATION LINKS
   ========================================================== */

.app-navbar .nav-link {
    position: relative;
    display: flex;
    align-items: center;
    gap: 11px;
    min-height: 52px;
    padding: 10px 12px;
    color: var(--app-nav-muted) !important;
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.2;
    border-radius: 6px;
    text-decoration: none;
    transition: color .15s ease, background-color .15s ease;
}

    .app-navbar .nav-link i {
        width: 22px;
        flex: 0 0 22px;
        color: #aaaaaa;
        font-size: 1.05rem;
        text-align: center;
        transition: color .15s ease;
    }

    .app-navbar .nav-link:hover,
    .app-navbar .nav-link:focus {
        color: #ffffff !important;
        background-color: var(--app-nav-hover);
    }

        .app-navbar .nav-link:hover i,
        .app-navbar .nav-link:focus i {
            color: #ffffff;
        }

    .app-navbar .nav-link.active {
        color: #ffffff !important;
        background-color: #292929;
    }

        .app-navbar .nav-link.active i {
            color: var(--app-accent);
        }


/* ==========================================================
   DROPDOWN
   ========================================================== */

.app-navbar .dropdown-toggle::after {
    margin-left: auto;
    opacity: .65;
}

.app-navbar .dropdown-menu {
    margin: 4px 0 8px;
    padding: 6px;
    background: #ffffff;
    border: 1px solid #dedede;
    border-radius: 7px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, .16);
}

.app-navbar .dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 46px;
    padding: 9px 11px;
    color: #292929;
    font-size: .95rem;
    font-weight: 500;
    border-radius: 5px;
    text-decoration: none;
    transition: color .12s ease, background-color .12s ease;
}

    .app-navbar .dropdown-item i {
        width: 20px;
        color: #777777;
        text-align: center;
    }

    .app-navbar .dropdown-item:hover,
    .app-navbar .dropdown-item:focus {
        color: #111111;
        background: #f2f2f2;
    }

        .app-navbar .dropdown-item:hover i,
        .app-navbar .dropdown-item:focus i {
            color: var(--app-accent-dark);
        }


/* ==========================================================
   USER / LOGOUT
   ========================================================== */

.app-user-nav {
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid #333333;
}

.app-navbar .app-logout {
    color: #d5d5d5 !important;
}

    .app-navbar .app-logout:hover,
    .app-navbar .app-logout:focus {
        color: #ffffff !important;
        background: #272727;
    }


/* ==========================================================
   LOGIN BUTTON
   ========================================================== */

.app-login-button {
    min-height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 8px 15px;
    color: #111111 !important;
    background: #ffffff;
    border: 1px solid #ffffff;
    border-radius: var(--app-radius);
    font-weight: 650;
    text-decoration: none;
    transition: background-color .15s ease, border-color .15s ease;
}

    .app-login-button:hover,
    .app-login-button:focus {
        color: #111111 !important;
        background: #eeeeee;
        border-color: #eeeeee;
    }


/* ==========================================================
   CONTENT
   ========================================================== */

.dashboard-container {
    width: 100%;
    padding: 16px;
}

.page-header {
    margin-bottom: 16px;
}

.page-title {
    margin: 0;
    color: var(--app-text);
    font-size: 1.45rem;
    font-weight: 700;
    line-height: 1.2;
}

.page-subtitle {
    margin: 5px 0 0;
    color: var(--app-muted);
    font-size: .95rem;
}


/* ==========================================================
   CARDS / PANELS
   ========================================================== */

.dashboard-card,
.card {
    background: var(--app-surface);
    border: 1px solid var(--app-border);
    border-radius: var(--app-radius);
    box-shadow: 0 1px 3px rgba(0, 0, 0, .05);
}

.dashboard-card-header,
.card-header {
    padding: 12px 16px;
    background: #fafafa;
    border-bottom: 1px solid var(--app-border);
    font-weight: 700;
}

.dashboard-card-body,
.card-body {
    padding: 16px;
}


/* ==========================================================
   FORMS
   Mobile first - touch friendly
   ========================================================== */

.form-label {
    margin-bottom: 5px;
    color: #4b5563;
    font-size: .875rem;
    font-weight: 600;
}

.form-control,
.form-select {
    min-height: 48px;
    padding: 9px 12px;
    color: var(--app-text);
    background: #ffffff;
    border: 1px solid var(--app-border-dark);
    border-radius: var(--app-radius);
    font-size: 1rem;
    box-shadow: none;
}

    .form-control:focus,
    .form-select:focus {
        background: #ffffff;
        border-color: var(--app-primary);
        box-shadow: 0 0 0 .2rem rgba(139, 105, 27, .13);
    }

textarea.form-control {
    min-height: 110px;
}


/* ==========================================================
   BUTTONS
   ========================================================== */

.btn {
    min-height: 46px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px 14px;
    border-radius: var(--app-radius);
    font-weight: 600;
    box-shadow: none;
    transition: color .15s ease, background-color .15s ease, border-color .15s ease;
}

    .btn:hover {
        transform: none;
    }


/* Primary */

.btn-primary {
    color: #ffffff !important;
    background: var(--app-primary) !important;
    border-color: var(--app-primary) !important;
}

    .btn-primary:hover,
    .btn-primary:focus {
        color: #ffffff !important;
        background: var(--app-primary-hover) !important;
        border-color: var(--app-primary-hover) !important;
    }


/* Secondary */

.btn-secondary {
    color: #ffffff !important;
    background: #4b5563 !important;
    border-color: #4b5563 !important;
}

    .btn-secondary:hover,
    .btn-secondary:focus {
        background: #374151 !important;
        border-color: #374151 !important;
    }


/* Outline */

.btn-outline-secondary {
    color: #4b5563 !important;
    background: #ffffff !important;
    border-color: var(--app-border-dark) !important;
}

    .btn-outline-secondary:hover,
    .btn-outline-secondary:focus {
        color: #1f2937 !important;
        background: #f3f4f6 !important;
        border-color: #adb5bd !important;
    }


/* Danger */

.btn-danger {
    color: #ffffff !important;
    background: var(--app-danger) !important;
    border-color: var(--app-danger) !important;
}

    .btn-danger:hover,
    .btn-danger:focus {
        background: var(--app-danger-hover) !important;
        border-color: var(--app-danger-hover) !important;
    }


/* ==========================================================
   TABLES
   ========================================================== */

.table-responsive {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.table {
    margin-bottom: 0;
    background: #ffffff;
}

    .table > :not(caption) > * > * {
        padding: 12px;
        vertical-align: middle;
        border-bottom-color: var(--app-border);
    }

    .table thead th {
        color: #4b5563;
        background: #f7f7f8;
        font-size: .85rem;
        font-weight: 700;
        white-space: nowrap;
    }


/* ==========================================================
   ALERTS / STATUS
   ========================================================== */

.alert {
    border-radius: var(--app-radius);
}

.badge {
    font-weight: 600;
}


/* ==========================================================
   LOGIN / ACCOUNT
   ========================================================== */

.login-shell,
.account-shell {
    width: 100%;
    padding: 16px;
    background: var(--app-bg);
}

.login-card,
.account-card {
    width: 100%;
    background: #ffffff;
    border: 1px solid var(--app-border);
    border-radius: var(--app-radius);
    box-shadow: 0 2px 8px rgba(0, 0, 0, .07);
}

.login-title,
.account-title {
    color: var(--app-text);
}

.login-subtitle,
.account-subtitle {
    color: var(--app-muted);
}


/* ==========================================================
   FOOTER
   ========================================================== */

.app-footer {
    margin-top: auto;
    padding: 14px 18px;
    color: #777777;
    background: #ffffff;
    border-top: 1px solid #e4e4e4;
    font-size: .82rem;
}


/* ==========================================================
   TABLET
   ========================================================== */

@media (min-width: 768px) {

    .dashboard-container {
        padding: 20px 24px;
    }

    .page-title {
        font-size: 1.65rem;
    }

    .login-shell,
    .account-shell {
        padding: 32px;
    }
}


/* ==========================================================
   DESKTOP
   Bootstrap navbar-expand-lg changes at 992px.
   ========================================================== */

@media (min-width: 992px) {

    /* Safety: hamburger must never appear on desktop */

    .app-navbar .navbar-toggler {
        display: none !important;
    }


    /* Navbar */

    html body .app-navbar {
        min-height: var(--app-navbar-height-desktop);
    }

    .app-navbar-container {
        min-height: var(--app-navbar-height-desktop);
        padding-left: 24px !important;
        padding-right: 24px !important;
    }


    /* Logo */

    .brand-logo {
        height: 48px;
    }

    .brand-text {
        font-size: 1.1rem;
    }


    /* Desktop navigation */

    .app-navbar .navbar-collapse {
        height: var(--app-navbar-height-desktop);
        margin: 0 0 0 28px;
        padding: 0;
        background: transparent;
        border: 0;
    }

    .app-navbar .navbar-nav {
        width: auto;
    }

    .app-main-nav {
        height: 100%;
        display: flex;
        align-items: stretch;
        gap: 2px;
    }

    .app-navbar .nav-item {
        display: flex;
        align-items: stretch;
    }

    .app-navbar .nav-link {
        min-height: var(--app-navbar-height-desktop);
        padding: 0 16px;
        gap: 7px;
        border-radius: 0;
        font-size: .94rem;
        font-weight: 600;
    }

        .app-navbar .nav-link i {
            width: auto;
            flex: initial;
            font-size: .95rem;
        }


    /* Desktop hover underline */

    .app-main-nav > .nav-item > .nav-link::before {
        content: "";
        position: absolute;
        left: 16px;
        right: 16px;
        bottom: 0;
        height: 3px;
        background: var(--app-accent);
        transform: scaleX(0);
        transform-origin: center;
        transition: transform .16s ease;
    }

    .app-main-nav > .nav-item > .nav-link:hover::before,
    .app-main-nav > .nav-item > .nav-link:focus::before,
    .app-main-nav > .nav-item > .nav-link.active::before {
        transform: scaleX(1);
    }

    .app-navbar .nav-link:hover,
    .app-navbar .nav-link:focus {
        background: #1c1c1c;
    }


    /* User menu */

    .app-user-nav {
        margin-top: 0;
        margin-left: auto;
        padding-top: 0;
        padding-left: 14px;
        border-top: 0;
        border-left: 1px solid #333333;
    }


    /* Dropdown */

    .app-navbar .dropdown-menu {
        min-width: 225px;
        margin-top: 0;
        padding: 7px;
    }

    .app-navbar .dropdown-item {
        min-height: 42px;
    }


    /* Desktop content */

    .dashboard-container {
        max-width: 1800px;
        margin-left: auto;
        margin-right: auto;
        padding: 24px 32px;
    }


    /* More compact desktop controls */

    .form-control,
    .form-select {
        min-height: 42px;
    }

    .btn {
        min-height: 40px;
    }
}


/* ==========================================================
   LARGE DESKTOP
   ========================================================== */

@media (min-width: 1400px) {

    .app-navbar-container {
        padding-left: 36px !important;
        padding-right: 36px !important;
    }

    .app-navbar .nav-link {
        padding-left: 19px;
        padding-right: 19px;
    }

    .dashboard-container {
        padding-left: 40px;
        padding-right: 40px;
    }
}




.case-status-colors {
    display: flex;
    align-items: center;
    gap: 3px;
    min-height: 16px;
    white-space: nowrap;
}

.case-status {
    display: inline-block;
    width: 14px;
    height: 14px;
    flex: 0 0 14px;
    border: 1px solid rgba(0, 0, 0, .28);
    border-radius: 2px;
    cursor: help;
}

.case-status-green {
    background: #00ff00;
}

.case-status-red {
    background: #ff0000;
}

.case-status-orange {
    background: #ff9900;
}

.case-status-yellow {
    background: #ffff00;
}

.case-status-blue {
    background: #0000ff;
}

.case-status-darkgreen {
    background: #22b14c;
}

.case-status-black {
    background: #000000;
}

.case-status-none {
    display: none;
}

@media (max-width: 767.98px) {
    .case-status {
        width: 18px;
        height: 18px;
        flex-basis: 18px;
    }

    .case-status-colors {
        gap: 5px;
    }
}

/* MineSager – tydelig navigation til enkeltsag */
.case-open-link {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    min-height: 2.5rem;
    padding: .35rem .5rem;
    margin: -.35rem -.5rem;
    border-radius: .375rem;
    font-weight: 700;
    text-decoration: none;
}

    .case-open-link:hover {
        text-decoration: underline;
    }

    .case-open-link:focus-visible {
        outline: 3px solid rgba(var(--bs-primary-rgb), .35);
        outline-offset: 2px;
    }

.case-open-link-mobile {
    font-size: 1rem;
}

@media (min-width: 768px) {
    .case-open-link {
        min-height: 2rem;
    }
}

/* ==========================================================
   MINSAG – RESPONSIVE OVERBLIK
   ========================================================== */

.case-dashboard-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 1rem;
    align-items: start;
}

.case-dashboard-card {
    min-width: 0;
    height: auto;
}

/* Sagsoplysninger: én oplysning pr. linje */

.case-facts {
    display: grid;
    gap: .55rem;
}

.case-fact {
    display: grid;
    grid-template-columns: minmax(72px, auto) minmax(0, 1fr);
    column-gap: .75rem;
    align-items: baseline;
    min-width: 0;
}

    .case-fact dt {
        color: var(--app-muted);
        font-size: .78rem;
        font-weight: 700;
        white-space: nowrap;
    }

    .case-fact dd {
        min-width: 0;
        margin: 0;
        font-size: .9rem;
        font-weight: 600;
        overflow-wrap: anywhere;
    }

/* Status: farve, tekst og dato på samme række */

.case-status-list {
    display: grid;
    gap: .45rem;
}

.case-status-row {
    display: grid;
    grid-template-columns: 14px minmax(0, 1fr) auto;
    gap: .55rem;
    align-items: center;
    min-width: 0;
}

.case-status-text {
    min-width: 0;
    font-size: .88rem;
    font-weight: 600;
}

.case-status-date {
    color: var(--app-muted);
    font-size: .78rem;
    white-space: nowrap;
}

/* Journal */

.journal-heading {
    display: flex;
    flex-direction: column;
    gap: .75rem;
    margin-bottom: 1rem;
}

.journal-editor {
    margin-bottom: 1rem;
    padding: .85rem;
    border: 1px solid var(--app-border);
    border-radius: var(--app-radius-sm);
    background: #f8f9fa;
}

.journal-toolbar {
    display: flex;
    gap: .25rem;
    padding: .35rem;
    border: 1px solid var(--app-border-dark);
    border-bottom: 0;
    border-radius: .375rem .375rem 0 0;
    background: #f3f4f6;
}

.journal-tool {
    display: inline-flex;
    width: 2rem;
    height: 2rem;
    align-items: center;
    justify-content: center;
    padding: 0;
    color: var(--app-text);
    background: #ffffff;
    border: 1px solid var(--app-border);
    border-radius: .25rem;
    cursor: pointer;
}

    .journal-tool:hover,
    .journal-tool:focus {
        background: #e9ecef;
        border-color: var(--app-border-dark);
    }

.journal-rich-editor {
    min-height: 8rem;
    max-height: 22rem;
    padding: .75rem;
    overflow-y: auto;
    color: var(--app-text);
    background: #ffffff;
    border: 1px solid var(--app-border-dark);
    border-radius: 0 0 .375rem .375rem;
    outline: none;
    line-height: 1.45;
}

    .journal-rich-editor:focus {
        border-color: var(--app-primary);
        box-shadow: 0 0 0 .2rem rgba(13, 110, 253, .15);
    }

    .journal-rich-editor:empty::before {
        content: attr(data-placeholder);
        color: var(--app-muted);
        pointer-events: none;
    }

    .journal-rich-editor ul,
    .journal-entry-text ul {
        margin: .4rem 0 .4rem 1.25rem;
        padding-left: .75rem;
    }

.journal-editor-actions {
    display: flex;
    flex-direction: column-reverse;
    gap: .5rem;
    margin-top: .75rem;
}

.journal-list {
    display: grid;
    gap: .55rem;
}

.journal-entry {
    height: auto;
    min-height: 0;
    padding: .75rem;
    border: 1px solid var(--app-border);
    border-radius: var(--app-radius-sm);
    background: #ffffff;
}

.journal-entry-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: .75rem;
    margin-bottom: .45rem;
}

.journal-entry-text {
    overflow-wrap: anywhere;
    line-height: 1.4;
}

    .journal-entry-text p:last-child,
    .journal-entry-text ul:last-child {
        margin-bottom: 0;
    }

.journal-badges {
    display: flex;
    flex-wrap: wrap;
    gap: .35rem;
    margin-top: .55rem;
}

.journal-followup {
    margin-top: .55rem;
    padding: .4rem .6rem;
    border-radius: .375rem;
    font-size: .82rem;
}

.journal-followup-open {
    color: var(--bs-warning-text-emphasis);
    background: var(--bs-warning-bg-subtle);
}

.journal-followup-complete {
    color: var(--bs-success-text-emphasis);
    background: var(--bs-success-bg-subtle);
}

.journal-empty {
    padding: .5rem 0 0;
}

/* Tablet / mindre desktop: to bokse øverst, journal i fuld bredde */

@media (min-width: 992px) {
    .case-dashboard-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .case-journal-card {
        grid-column: 1 / -1;
    }

    .journal-heading {
        flex-direction: row;
        justify-content: space-between;
        align-items: flex-start;
    }

    .journal-editor-actions {
        flex-direction: row;
        justify-content: flex-end;
    }
}

/* Bred desktop: alle tre bokse ved siden af hinanden.
   Journalen får mest plads, fordi den typisk indeholder mest tekst. */

@media (min-width: 1400px) {
    .case-dashboard-grid {
        grid-template-columns: minmax(250px, .9fr) minmax(280px, .85fr) minmax(430px, 1.45fr);
    }

    .case-journal-card {
        grid-column: auto;
    }

    .case-fact dd {
        font-size: .88rem;
    }
}


/* ==========================================================
   MINSAG – OPGAVER
   ========================================================== */

.case-tasks-card {
    min-width: 0;
    grid-column: 1 / -1;
}

.case-task-table {
    min-width: 760px;
}

    .case-task-table th {
        font-size: .78rem;
    }

    .case-task-table td {
        font-size: .88rem;
    }

.case-task-main-row > td {
    background: #ffffff;
}

.case-task-sub-row > td {
    background: #fafafa;
}

    .case-task-sub-row > td:first-child {
        padding-left: 1.5rem;
    }

.case-task-sub-prefix {
    margin-right: .35rem;
    color: var(--app-muted);
}

.case-task-status {
    font-weight: 650;
    white-space: nowrap;
}

.case-task-status-booked {
    color: #7a5b13;
}

.case-task-status-finished {
    color: #176b3a;
}

.case-document-available {
    color: #176b3a;
    font-weight: 700;
    white-space: nowrap;
}

.case-document-missing {
    color: var(--app-muted);
    white-space: nowrap;
}


/* Opgaver – gebyrer og summering */

.case-task-fee-row > td {
    background: #f8f9fa;
}

.case-task-fee-badge {
    display: inline-block;
    margin-right: .5rem;
    padding: .15rem .45rem;
    border: 1px solid #adb5bd;
    border-radius: .35rem;
    font-size: .72rem;
    font-weight: 700;
    text-transform: uppercase;
    vertical-align: middle;
}

.case-task-vat-note {
    margin-left: .4rem;
    font-size: .78rem;
    color: var(--app-muted);
    white-space: nowrap;
}

.case-task-summary {
    width: min(100%, 430px);
    margin-top: 1rem;
    margin-left: auto;
    padding-top: .75rem;
    border-top: 1px solid #dee2e6;
}

.case-task-summary-row {
    display: flex;
    justify-content: space-between;
    gap: 1.5rem;
    padding: .2rem 0;
    font-size: .88rem;
}

.case-task-summary-total {
    margin-top: .35rem;
    padding-top: .55rem;
    border-top: 1px solid #adb5bd;
    font-size: .95rem;
}


/* Opgaver og gebyrer – mobilvisning */
@media (max-width: 767.98px) {
    .case-task-table {
        min-width: 0;
    }

        .case-task-table thead {
            display: none;
        }

        .case-task-table,
        .case-task-table tbody,
        .case-task-table tr,
        .case-task-table td {
            display: block;
            width: 100%;
        }

            .case-task-table tr {
                margin-bottom: .85rem;
                padding: .75rem;
                border: 1px solid #dee2e6;
                border-radius: .5rem;
            }

            .case-task-table td {
                display: grid;
                grid-template-columns: 8rem minmax(0, 1fr);
                gap: .65rem;
                padding: .25rem 0;
                border: 0;
                text-align: left !important;
                white-space: normal !important;
            }

                .case-task-table td::before {
                    color: var(--app-muted);
                    font-size: .76rem;
                    font-weight: 700;
                }

                .case-task-table td:nth-child(1)::before {
                    content: "Opgave";
                }

                .case-task-table td:nth-child(2)::before {
                    content: "Pris";
                }

                .case-task-table td:nth-child(3)::before {
                    content: "Besigtigelse";
                }

                .case-task-table td:nth-child(4)::before {
                    content: "Status";
                }

                .case-task-table td:nth-child(5)::before {
                    content: "Dokument";
                }

                .case-task-table td[colspan] {
                    display: none;
                }

    .case-task-sub-row > td:first-child {
        padding-left: 0;
    }

    .case-task-summary {
        width: 100%;
    }
}


/* Journal – mailmodtagere og ren listevisning */
.journal-entry-text-plain {
    white-space: pre-line;
}

.journal-mail-recipients {
    margin-top: 1rem;
    padding: .85rem 1rem;
    border: 1px solid #dee2e6;
    border-radius: .5rem;
    background: #f8f9fa;
}

    .journal-mail-recipients .form-check + .form-check {
        margin-top: .4rem;
    }
/* ===== SLUT: MaeglerDashboard(1).css ===== */
