/* BryggeDB common layout -------------------------------------------------- */
html {
    overflow-x: hidden;
}

body {
    width: 100%;
}

.side {
    width: 100% !important;
    max-width: 1250px !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    width: 100%;
    margin: 0 0 20px 0;
    padding: 12px 16px;
    background: var(--card, #fff);
    border: 1px solid var(--border, #e5dec9);
    border-radius: 8px;
    font-size: 14px;
}

.site-nav a {
    color: var(--text, #4a453e);
    text-decoration: none;
    font-weight: 600;
    white-space: nowrap;
}

.site-nav a:hover,
.site-nav a.aktiv {
    color: var(--accent, #c88a65);
    text-decoration: underline;
    text-underline-offset: 4px;
}

.nav-separator {
    color: #b5aea4;
    user-select: none;
}

img,
svg,
video,
canvas {
    max-width: 100%;
}

input,
select,
textarea,
button {
    max-width: 100%;
}

input[type="date"] {
    min-height: 42px;
}

@media (max-width: 700px) {
    body {
        padding-left: 8px !important;
        padding-right: 8px !important;
    }

    .site-nav {
        gap: 8px;
        padding: 11px 12px;
    }

    .nav-separator {
        display: none;
    }

    .site-nav a {
        padding: 4px 3px;
    }

    button,
    input,
    select {
        min-height: 44px;
    }
}


/* Innlogget bruker ------------------------------------------------------- */
.nav-account {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 9px;
    white-space: nowrap;
}

.nav-user {
    color: #777;
    font-size: 13px;
}

.nav-logout-form {
    margin: 0;
}

.nav-logout {
    min-height: auto !important;
    padding: 4px 7px !important;
    border: 0 !important;
    background: transparent !important;
    color: var(--accent, #c88a65) !important;
    font: inherit;
    font-size: 13px !important;
    font-weight: 600 !important;
    cursor: pointer;
    text-decoration: underline;
    text-underline-offset: 3px;
}

@media (max-width: 700px) {
    .nav-account {
        width: 100%;
        margin-left: 0;
        padding-top: 5px;
        border-top: 1px solid var(--border, #e5dec9);
    }
}


/* Dashboard v2 */
@media (max-width: 500px) {
    .site-nav { align-items: flex-start; }
}


/* Visual cleanup --------------------------------------------------------- */
/* KPI/status cards are deliberately solid white on every page. */
.stat {
    background: #ffffff !important;
}

/* Dashboard section backgrounds. */
.dashboard-active-section {
    background: #edf5ea !important;
    border-color: #d7e4d2 !important;
}

.dashboard-new-batch-section {
    background: #f1f2d9 !important;
    border-color: #e1e2c4 !important;
}
