/* ===================== RESET & BASE ===================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #f0f2f5;
    min-height: 100vh;
    padding: 20px;
    color: #222;
}

/* ===================== CONTAINER ===================== */
.container {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.10);
    max-width: 900px;
    margin: 0 auto;
    padding: 40px;
}

.container.wide {
    max-width: 1180px;
    padding: 0;
    overflow: hidden;
}

/* ===================== BUTTONS ===================== */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95em;
    transition: all 0.2s;
    border: none;
    cursor: pointer;
    text-align: center;
}

.btn-primary {
    background: #1a2d5a;
    color: white;
}

.btn-primary:hover {
    background: #243d78;
}

.btn-secondary {
    background: #6c757d;
    color: white;
}

.btn-secondary:hover {
    background: #5a6268;
}

.btn-sm {
    padding: 7px 14px;
    font-size: 0.85em;
}

.btn-full {
    display: block;
    width: 100%;
}

.btn-kjop {
    padding: 12px;
    font-size: 0.95em;
    background: #2e7d32 !important;
    color: #fff !important;
    border-radius: 8px;
    font-weight: 700;
    letter-spacing: 0.01em;
}
.btn-kjop:hover { background: #1b5e20 !important; }

/* Aksjon-kolonne: antall + knapper */
.produkt-aksjon {
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex-shrink: 0;
    width: 170px;
}

/* Antall-velger (+/-) */
.antall-velger {
    display: flex;
    align-items: center;
    gap: 0;
    border: 1.5px solid #d1d5db;
    border-radius: 8px;
    overflow: hidden;
    width: 100%;
}

.antall-btn {
    background: #f3f4f6;
    border: none;
    color: #374151;
    font-size: 1.3em;
    font-weight: 600;
    width: 40px;
    height: 40px;
    cursor: pointer;
    transition: background 0.15s;
    line-height: 1;
}

.antall-btn:hover { background: #e5e7eb; }
.antall-btn:active { background: #d1d5db; }

.antall-input {
    border: none;
    border-left: 1.5px solid #d1d5db;
    border-right: 1.5px solid #d1d5db;
    text-align: center;
    flex: 1;
    min-width: 36px;
    height: 40px;
    font-size: 1em;
    font-weight: 600;
    color: #111827;
    -moz-appearance: textfield;
    outline: none;
}

.antall-input::-webkit-inner-spin-button,
.antall-input::-webkit-outer-spin-button { -webkit-appearance: none; }

.antall-enhet {
    padding: 0 10px;
    font-size: 0.85em;
    color: #6b7280;
    background: #f9fafb;
    height: 40px;
    display: flex;
    align-items: center;
    border-left: 1.5px solid #d1d5db;
}

/* ===================== ALERTS ===================== */
.alert {
    padding: 15px;
    border-radius: 6px;
    margin: 20px 0;
}

.alert-error {
    background: #fee;
    color: #c33;
    border-left: 4px solid #c33;
}

.alert-info {
    background: #e7f3ff;
    color: #0066cc;
    border-left: 4px solid #0066cc;
}

.alert-warning {
    background: #fff8e1;
    color: #7a5c00;
    border-left: 4px solid #f5a623;
}

/* BARN1/M9NA1/2.3: Banner som tydelig viser at vi ser barnets resepter */
.barn-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.75rem;
    background: #e7f3ff;
    color: #0055aa;
    border-left: 4px solid #0066cc;
    border-radius: 6px;
    padding: 0.85rem 1rem;
    margin-bottom: 1.25rem;
    font-size: 0.95rem;
}

.barn-banner strong {
    color: #003d80;
}

/* ===================== RESEPTLISTE ===================== */
.liste-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 32px;
    background: white;
    border-bottom: 1px solid #e5e7eb;
}

.liste-header h1 {
    font-size: 1.4em;
    color: #1a2d5a;
}

.bruker-info {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    margin-right: 12px;
    line-height: 1.3;
}

.bruker-navn {
    font-size: 0.95em;
    font-weight: 600;
    color: #1a2d5a;
}

.bruker-fnr {
    font-size: 0.8em;
    color: #777;
}

.seksjon-tittel {
    font-size: 1.3em;
    color: #1a2d5a;
    padding: 24px 32px 12px;
}

.resept-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    padding: 0 32px 32px;
}

.resept-kort-ny {
    background: white;
    border: 1px solid #e0e4ea;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    box-shadow: 0 2px 6px rgba(0,0,0,0.06);
    overflow: hidden;
    transition: box-shadow 0.2s;
}

.resept-kort-ny:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.12);
}

.resept-kort-innhold {
    padding: 20px;
    flex: 1;
}

.resept-navn {
    font-size: 1.05em;
    font-weight: 700;
    color: #1a2d5a;
    margin-bottom: 14px;
    line-height: 1.4;
}

.resept-meta {
    margin-bottom: 12px;
}

.meta-rad {
    display: flex;
    gap: 8px;
    font-size: 0.9em;
    margin-bottom: 4px;
}

.meta-label {
    color: #555;
    font-weight: 600;
    white-space: nowrap;
}

.meta-verdi {
    color: #222;
}

.resept-status-badge {
    display: inline-block;
    background: #edf2ff;
    color: #3b5bdb;
    border: 1px solid #c5d2f6;
    border-radius: 20px;
    font-size: 0.8em;
    padding: 4px 12px;
    margin-top: 8px;
}

.resept-type-badge {
    display: inline-block;
    border-radius: 20px;
    font-size: 0.75em;
    padding: 3px 10px;
    margin-bottom: 6px;
}

.forbruk-badge {
    background: #fff3cd;
    color: #856404;
    border: 1px solid #ffc107;
}

.naeringsmiddel-badge {
    background: #e3f2fd;
    color: #0d47a1;
    border: 1px solid #90caf9;
}

.prodgruppe-info-boks {
    background: #fff8e1;
    border: 1px solid #ffc107;
    border-radius: 8px;
    padding: 10px 14px;
    margin-bottom: 14px;
    font-size: 0.93em;
    color: #5d4037;
    display: flex;
    align-items: center;
    gap: 8px;
}

.prodgruppe-kode {
    color: #9e8a6a;
    font-size: 0.88em;
    font-weight: normal;
}

.resept-kort-footer {
    padding: 12px 20px 20px;
}

/* ===================== RESEPTDETALJ ===================== */
.detalj-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 32px;
    background: white;
    border-bottom: 1px solid #e5e7eb;
    font-size: 0.9em;
}

.tilbake-lenke {
    color: #1a2d5a;
    text-decoration: none;
    font-weight: 500;
}

.tilbake-lenke:hover {
    text-decoration: underline;
}

.detalj-layout {
    display: grid;
    grid-template-columns: 340px 1fr;
    min-height: calc(100vh - 100px);
}

/* Venstre panel */
.panel-venstre {
    background: #f8f9fb;
    border-right: 1px solid #e5e7eb;
    padding: 28px 28px;
}

.panel-tittel {
    font-size: 0.72em;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: #888;
    margin-bottom: 6px;
    text-transform: uppercase;
}

.panel-legemiddel {
    font-size: 1.15em;
    font-weight: 700;
    color: #1a2d5a;
    margin-bottom: 20px;
    line-height: 1.4;
}

.panel-info-liste {
    margin-bottom: 20px;
}

.panel-info-rad {
    display: flex;
    flex-direction: column;
    margin-bottom: 14px;
}

.panel-info-label {
    font-size: 0.78em;
    font-weight: 700;
    color: #555;
    margin-bottom: 2px;
}

.panel-info-verdi {
    font-size: 0.92em;
    color: #222;
}

.status-badge {
    display: inline-block;
    background: #e6f4ea;
    color: #1e7e34;
    border-radius: 4px;
    padding: 2px 8px;
    font-weight: 600;
    font-size: 0.85em;
}

.utlevering-seksjon {
    margin-top: 20px;
    border-top: 1px solid #e0e4ea;
    padding-top: 16px;
}

.utlevering-seksjon h4 {
    font-size: 0.85em;
    color: #555;
    margin-bottom: 10px;
    font-weight: 600;
}

.utlevering-rad {
    display: flex;
    justify-content: space-between;
    font-size: 0.85em;
    padding: 6px 0;
    border-bottom: 1px solid #eee;
    color: #333;
}

.utlevering-dato {
    color: #888;
}

/* Høyre panel */
.panel-hyre {
    background: white;
    padding: 28px 32px;
}

.produkt-tittel {
    font-size: 1.2em;
    font-weight: 700;
    color: #1a2d5a;
    margin-bottom: 20px;
}

.produkt-kort-wrapper {
    border: 1px solid #e0e4ea;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 28px;
    max-width: 480px;
}

.produkt-anbefalt-badge {
    background: #edf2ff;
    color: #3b5bdb;
    font-size: 0.75em;
    font-weight: 700;
    letter-spacing: 0.06em;
    padding: 8px 16px;
    border-bottom: 1px solid #c5d2f6;
}

/* Seksjonsheadere: VI FORESLÅR / Andre alternativer */
.gruppe-seksjon-header {
    display: flex;
    align-items: baseline;
    gap: 10px;
    padding: 6px 4px 8px;
    margin-top: 8px;
    font-size: 0.78em;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    border-bottom: 2px solid transparent;
    max-width: 480px;
}
.gruppe-seksjon-hint {
    font-size: 0.9em;
    font-weight: 400;
    text-transform: none;
    letter-spacing: 0;
    opacity: 0.75;
}
.gruppe-anbefalt {
    color: #1d6b3d;
    border-color: #86efac;
    margin-top: 0;
}
.gruppe-andre {
    color: #92400e;
    border-color: #fcd34d;
    margin-top: 20px;
}

.produkt-kort {
    display: flex;
    flex-direction: column;
    gap: 0;
    padding: 20px;
}

.produkt-bilde-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.2rem;
    background: transparent;
    border: none;
    border-radius: 0;
    align-self: auto;
}

/* Toppraden i produktkortet: bilde + navn side om side (alle skjermstørrelser) */
.produkt-topp-rad {
    display: flex;
    gap: 14px;
    align-items: flex-start;
}

.produkt-navn-col {
    flex: 1;
    min-width: 0;
}

/* Info-seksjonen (pris + antall) – rad under toppraden, med separator */
.produkt-info {
    display: flex;
    flex-direction: row;
    gap: 20px;
    align-items: flex-start;
    border-top: 1px solid #f0f2f5;
    padding-top: 14px;
    margin-top: 14px;
}

.produkt-navn {
    font-size: 1em;
    font-weight: 700;
    color: #1a2d5a;
    margin-bottom: 10px;
    line-height: 1.4;
}

.produkt-meta {
    font-size: 0.82em;
    color: #6b7280;
    margin-bottom: 4px;
}
.produkt-varenummer-rad {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    flex-wrap: wrap;
}
.produkt-varenummer {
    font-size: 0.75em;
    color: #9ca3af;
    letter-spacing: 0.02em;
}
.produkt-pakning-chip {
    display: inline-block;
    font-size: 0.72em;
    font-weight: 600;
    color: #374151;
    background: #f3f4f6;
    border: 1px solid #e5e7eb;
    border-radius: 4px;
    padding: 1px 7px;
    letter-spacing: 0;
}

.produkt-pris-wrapper {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
    min-width: 0;
}

.produkt-trinnpris {
    font-size: 0.82em;
    color: #1e7e34;
    font-weight: 600;
}

.produkt-aup {
    font-size: 0.82em;
    color: #374151;
}

/* Egenandel og trygdedekning (blåreseptforskriften §8) */
.egenandel-rad,
.trygden-rad,
.mellomlegg-rad {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85em;
}

.egenandel-label { color: #374151; }
.egenandel-belop { font-weight: 700; color: #1a1a2e; }

.trygden-label { color: #6b7280; }
.trygden-belop { font-weight: 600; color: #1e7e34; }

.mellomlegg-rad {
    border-top: 1px dashed #e5e7eb;
    padding-top: 4px;
    margin-top: 2px;
}
.mellomlegg-label { color: #9c6200; font-size: 0.8em; }
.mellomlegg-belop { color: #9c6200; font-weight: 600; }

.pristype-info { margin-top: 2px; }
.pristype-badge {
    display: inline-block;
    font-size: 0.75em;
    color: #6b7280;
    background: #f3f4f6;
    border-radius: 4px;
    padding: 1px 6px;
}

.pristype-yrkesskade {
    color: #92400e;
    background: #fef3c7;
    font-weight: 600;
}
.pristype-frikort {
    color: #065f46;
    background: #d1fae5;
    font-weight: 600;
}
.egenandel-frikort .egenandel-label,
.egenandel-frikort .egenandel-belop {
    color: #065f46;
    font-weight: 700;
}

.pristype-barn-blaa {
    color: #065f46;
    background: #d1fae5;
    font-weight: 600;
}
.egenandel-barn-blaa .egenandel-label,
.egenandel-barn-blaa .egenandel-belop {
    color: #065f46;
    font-weight: 700;
}

.pristype-hresept {
    color: #1e3a5f;
    background: #dbeafe;
    font-weight: 600;
}
.egenandel-hresept .egenandel-label,
.egenandel-hresept .egenandel-belop {
    color: #1e3a5f;
    font-weight: 700;
}

/* Søk og filter */
.produkt-sok-filter {
    margin-bottom: 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.produkt-sok-wrapper {
    display: flex;
    align-items: center;
    border: 1.5px solid #d1d5db;
    border-radius: 8px;
    background: #fff;
    padding: 0 10px;
    gap: 6px;
}

.sok-ikon { font-size: 1em; color: #9ca3af; }

.produkt-sok-input {
    flex: 1;
    border: none;
    outline: none;
    font-size: 0.95em;
    padding: 10px 0;
    background: transparent;
    color: #111827;
}

.produkt-sok-input::placeholder { color: #9ca3af; }

.sok-tomm-knapp {
    background: none;
    border: none;
    color: #9ca3af;
    cursor: pointer;
    font-size: 0.9em;
    display: flex;
    align-items: center;
    padding: 2px 4px;
    border-radius: 4px;
}
.sok-tomm-knapp:hover { background: #f3f4f6; color: #374151; }

.filter-gruppe {
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.filter-label {
    font-size: 0.78em;
    font-weight: 600;
    color: #6b7280;
    white-space: nowrap;
    padding-top: 5px;
    min-width: 70px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.produkt-filter-rad {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    flex: 1;
}

.filter-chip {
    background: #f3f4f6;
    border: 1.5px solid #e5e7eb;
    border-radius: 20px;
    padding: 4px 12px;
    font-size: 0.8em;
    color: #374151;
    cursor: pointer;
    transition: all 0.15s;
}
.filter-chip:hover { border-color: #6366f1; color: #6366f1; }
.filter-chip.aktiv {
    background: #6366f1;
    border-color: #6366f1;
    color: #fff;
    font-weight: 600;
}
/* Produsent-chips i blå nyanse for å skille fra varemerke-chips */
.filter-chip.produsent-chip:hover { border-color: #0ea5e9; color: #0ea5e9; }
.filter-chip.produsent-chip.aktiv {
    background: #0ea5e9;
    border-color: #0ea5e9;
    color: #fff;
}

.produkt-sok-resultat {
    font-size: 0.82em;
    color: #6b7280;
    min-height: 1.2em;
}

.produkt-tilgjengelighet {
    font-size: 0.85em;
    margin-bottom: 8px;
}

.lager-ok {
    color: #1e7e34;
}

/* Informasjon-seksjon */
.informasjon-seksjon {
    border-top: 1px solid #e5e7eb;
    padding-top: 20px;
    max-width: 480px;
}

.informasjon-seksjon h3 {
    font-size: 1em;
    font-weight: 700;
    color: #1a2d5a;
    margin-bottom: 12px;
}

.info-lenke {
    padding: 12px 0;
    border-bottom: 1px solid #e5e7eb;
    font-size: 0.92em;
    color: #333;
    cursor: pointer;
}

.info-lenke:hover {
    color: #1a2d5a;
}

/* ===================== GAMMEL STILS (index/verify/error) ===================== */
header h1 {
    color: #1a2d5a;
    margin-bottom: 10px;
}

.tagline {
    color: #666;
    margin-bottom: 30px;
}

.user-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 20px;
}

.login-box, .info-box {
    background: #f8f9fa;
    padding: 30px;
    border-radius: 8px;
    margin: 20px 0;
}

.info-box ul {
    list-style: none;
    padding: 0;
}

.info-box li {
    padding: 8px 0;
}

/* Gammel .resept-kort brukt av verify/error */
.resept-kort {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px;
    margin: 15px 0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.detalj-seksjon {
    margin: 20px 0;
}

.detalj-seksjon h3 {
    font-size: 1.1em;
    color: #444;
    border-bottom: 1px solid #eee;
    padding-bottom: 6px;
    margin-bottom: 12px;
}

.detalj-tabell {
    width: 100%;
    border-collapse: collapse;
}

.detalj-tabell th, .detalj-tabell td {
    padding: 8px 12px;
    border-bottom: 1px solid #f0f0f0;
    vertical-align: top;
    text-align: left;
}

.detalj-tabell td:first-child {
    width: 40%;
    color: #666;
}

.detalj-aksjon {
    margin-top: 24px;
    display: flex;
    gap: 12px;
    align-items: center;
}

.btn-stor {
    padding: 12px 28px;
    font-size: 1.05em;
}

footer {
    text-align: center;
    margin-top: 40px;
    color: #999;
    font-size: 0.9em;
}

/* ===================== RESEPTER SIDEBAR LAYOUT ===================== */
.resepter-layout {
    display: flex;
    gap: 2rem;
    align-items: flex-start;
    padding: 1.5rem 2rem;
}

.sidebar {
    width: 260px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.sidebar-kundeinfo {
    background: #f5f7fa;
    border: 1px solid #e0e4ea;
    border-radius: 8px;
    padding: 1rem;
    font-size: 0.95rem;
}

.sidebar-fnr {
    color: #555;
    margin-top: 0.3rem;
    font-size: 0.9rem;
}

.sidebar-seksjon {
    border-top: 1px solid #e0e4ea;
    padding-top: 1rem;
}

.sidebar-label {
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    color: #1a2b4a;
}

.ref-form { width: 100%; }

.ref-input-wrapper {
    display: flex;
    border: 1px solid #c0c8d8;
    border-radius: 6px;
    overflow: hidden;
}

.ref-input {
    flex: 1;
    border: none;
    padding: 0.5rem 0.75rem;
    font-size: 0.9rem;
    outline: none;
}

.ref-sok-btn {
    background: white;
    border: none;
    padding: 0.5rem 0.75rem;
    cursor: pointer;
    border-left: 1px solid #c0c8d8;
    font-size: 1rem;
}

.ref-sok-btn:hover { background: #f0f4f8; }

.sidebar-hjelpetekst {
    font-size: 0.82rem;
    color: #666;
    margin-top: 0.5rem;
    line-height: 1.4;
}

/* BARN1: Profilvelger */
.profil-velger-seksjon {
    padding-bottom: 0.5rem;
    margin-bottom: 0.5rem;
}

.profil-velger-tittel {
    font-weight: 700;
    font-size: 0.95rem;
    color: #1a1a2e;
    margin-bottom: 0.75rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #e0e4ea;
}

.profil-rad {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.6rem 0.75rem;
    border-radius: 8px;
    margin-bottom: 0.25rem;
    cursor: pointer;
    transition: background 0.15s;
    color: #1a1a2e;
}

.profil-rad:hover { background: #f0f4ff; }

.profil-rad-aktiv {
    background: #eef2ff;
    border: 1.5px solid #4f6ef7;
}

.profil-radio {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: 2px solid #aab0c0;
    flex-shrink: 0;
    display: inline-block;
    background: #fff;
}

.profil-radio-aktiv {
    border-color: #4f6ef7;
    background: #4f6ef7;
    box-shadow: inset 0 0 0 3px #fff;
}

.profil-info {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.profil-navn {
    font-weight: 600;
    font-size: 0.9rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.profil-fnr {
    font-size: 0.78rem;
    color: #6b7280;
    margin-top: 1px;
}

.legg-til-barn-wrapper {
    margin-top: 0.5rem;
    border-top: 1px solid #e0e4ea;
    padding-top: 0.75rem;
}

.legg-til-barn-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: none;
    border: 1.5px dashed #4f6ef7;
    border-radius: 8px;
    color: #4f6ef7;
    font-size: 0.88rem;
    font-weight: 600;
    padding: 0.5rem 0.75rem;
    cursor: pointer;
    width: 100%;
    transition: background 0.15s;
}

.legg-til-barn-btn:hover { background: #eef2ff; }

.legg-til-ikon { font-size: 1.1rem; line-height: 1; }

.barn-form {
    margin-top: 0.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.barn-form.skjult { display: none; }

.barn-fnr-input {
    width: 100%;
    padding: 0.5rem 0.75rem;
    border: 1.5px solid #d1d5db;
    border-radius: 6px;
    font-size: 0.9rem;
    box-sizing: border-box;
}

.barn-fnr-input:focus { outline: none; border-color: #4f6ef7; }

.barn-sok-btn {
    background: #4f6ef7;
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 0.5rem;
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
}

.barn-sok-btn:hover { background: #3b5bdb; }

.barn-hjelpetekst { font-size: 0.78rem; color: #6b7280; margin: 0; }

.sidebar-eldre {
    font-size: 0.88rem;
    color: #333;
    line-height: 1.5;
}

.sidebar-loggut {
    text-align: center;
    margin-top: 0.5rem;
}

/* Session-bar under global header på resept-siden */
.resept-session-bar {
    max-width: 1280px; margin: 12px auto 0; padding: 0 24px;
    display: flex; justify-content: flex-end;
}

/* Session-nedtelling */
.session-nedtelling {
    display: inline-flex;
    flex-direction: column;
    gap: 0.2rem;
    font-size: 0.78rem;
    font-weight: 600;
    color: #166534;
    background: #dcfce7;
    border: 1px solid #86efac;
    border-radius: 10px;
    padding: 0.3rem 0.8rem 0.35rem;
    white-space: nowrap;
    transition: background 0.4s, color 0.4s, border-color 0.4s;
    min-width: 130px;
}
.session-timer-tekst {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    letter-spacing: 0.02em;
}
.session-timer-label {
    font-weight: 400;
    opacity: 0.75;
    font-size: 0.72rem;
}
.session-progress-bar {
    height: 4px;
    background: rgba(0,0,0,0.1);
    border-radius: 2px;
    overflow: hidden;
}
.session-progress-fill {
    height: 100%;
    background: currentColor;
    border-radius: 2px;
    transition: width 1s linear;
    width: 100%;
}
.session-nedtelling.advarsel {
    color: #92400e;
    background: #fef3c7;
    border-color: #fcd34d;
}
.session-nedtelling.kritisk {
    color: #991b1b;
    background: #fee2e2;
    border-color: #fca5a5;
    animation: blink-red 1s step-start infinite;
}
.session-nedtelling.utgatt {
    color: #fff;
    background: #dc2626;
    border-color: #dc2626;
}
@keyframes blink-red {
    50% { opacity: 0.5; }
}
.liste-header-right {
    display: flex;
    align-items: center;
    gap: 1rem;
}
.detalj-header-right {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.resepter-main { flex: 1; min-width: 0; }

@media (max-width: 768px) {
    .resepter-layout {
        flex-direction: column;
        padding: 1rem;
        gap: 1rem;
    }
    .sidebar { width: 100%; }
    .resept-grid { grid-template-columns: 1fr; }
    .barn-banner {
        flex-direction: column;
        align-items: flex-start;
    }

    /* Resept-detalj: ett-kolonne layout på mobil */
    .detalj-layout {
        grid-template-columns: 1fr;
    }
    .panel-venstre {
        border-right: none;
        border-bottom: 1px solid #e5e7eb;
        padding: 16px;
    }
    .panel-hyre {
        padding: 16px;
    }
    /* Produktkort: vertikal stack på mobil */
    .produkt-kort {
        flex-direction: column;
        gap: 10px;
        padding: 14px;
    }
    .produkt-bilde-container {
        width: 64px;
        height: 64px;
        flex-shrink: 0;
        align-self: flex-start;
    }
    .produkt-bilde {
        width: 100%;
        height: 100%;
    }
    .produkt-kort-wrapper {
        max-width: 100%;
        overflow: hidden;
    }
    .produkt-info {
        width: 100%;
        min-width: 0;
    }
    .egenandel-rad,
    .trygden-rad,
    .mellomlegg-rad {
        gap: 4px;
    }
    .egenandel-belop,
    .trygden-belop {
        white-space: nowrap;
    }
    .antall-velger {
        width: 100%;
    }
    .antall-btn {
        flex: 0 0 48px;
        width: 48px;
        height: 48px;
        font-size: 1.4em;
    }
    .antall-input {
        flex: 1;
        height: 48px;
    }
    .antall-enhet {
        flex: 0 0 auto;
        height: 48px;
        padding: 0 12px;
    }
    .legg-i-handlekurv-knapp {
        font-size: 0.95rem;
        padding: 12px 16px;
    }
    .detalj-header {
        flex-direction: column;
        gap: 0.5rem;
        padding: 0.75rem 1rem;
    }
    .detalj-header-right {
        width: 100%;
    }
}

/* ===================== REFKODE & BYTTERESERVASJON ===================== */
.refkode-badge {
    display: inline-block;
    background: #e3f2fd;
    color: #1565c0;
    border: 1px solid #90caf9;
    border-radius: 12px;
    padding: 2px 10px;
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.01em;
}

.resept-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 8px;
}

.refhjemmel-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border-radius: 12px;
    padding: 3px 10px;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    border: 1px solid transparent;
}

.hjemmel-paragraf {
    font-weight: 800;
}

.hjemmel-beskrivelse {
    font-weight: 500;
    opacity: 0.85;
    border-left: 1px solid currentColor;
    padding-left: 6px;
}

/* §2 – Forhåndsgodkjent refusjon */
.hjemmel-par2 {
    background: #dbeafe;
    color: #1e40af;
    border-color: #93c5fd;
}

/* §3 – Individuell søknad */
.hjemmel-par3 {
    background: #ffedd5;
    color: #9a3412;
    border-color: #fdba74;
}

/* §4 – Smittsomme sykdommer */
.hjemmel-par4 {
    background: #fee2e2;
    color: #991b1b;
    border-color: #fca5a5;
}

/* §5 – Forbruksmateriell */
.hjemmel-par5 {
    background: #ede9fe;
    color: #5b21b6;
    border-color: #c4b5fd;
}

/* §6 – Næringsmidler */
.hjemmel-par6 {
    background: #ccfbf1;
    color: #0f766e;
    border-color: #5eead4;
}

/* §9 – H-resept */
.hjemmel-par9 {
    background: #dcfce7;
    color: #15803d;
    border-color: #86efac;
}

/* §5-25 – Yrkesskade */
.hjemmel-yrkesskade {
    background: #fef3c7;
    color: #92400e;
    border-color: #fcd34d;
}

/* Hvit resept – ingen refusjon */
.hjemmel-hvit {
    background: #f9fafb;
    color: #6b7280;
    border-color: #d1d5db;
}

/* Ukjent hjemmel */
.hjemmel-ukjent {
    background: #f3f4f6;
    color: #374151;
    border-color: #d1d5db;
}

.bytteresert-melding {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    margin-bottom: 1rem;
    font-size: 0.92rem;
    line-height: 1.5;
}

/* ===================== FRIKORT ===================== */
.frikort-badge {
    display: block;
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-top: 0.4rem;
    text-align: center;
}
.frikort-aktiv {
    background: #d1fae5;
    color: #065f46;
    border: 1.5px solid #6ee7b7;
}
.frikort-ikke {
    background: #f3f4f6;
    color: #6b7280;
    border: 1.5px solid #e5e7eb;
    font-weight: 400;
}
.frikort-oppdater-lenke {
    display: block;
    font-size: 0.78rem;
    color: #6b7280;
    text-align: right;
    margin-top: 0.3rem;
    text-decoration: underline;
}
.frikort-oppdater-lenke:hover { color: #374151; }

.frikort-knapp {
    display: block;
    width: 100%;
    padding: 10px 14px;
    background: #f0f4ff;
    border: 1.5px solid #c7d4f0;
    border-radius: 8px;
    color: #1a2d5a;
    font-size: 0.92rem;
    font-weight: 600;
    text-decoration: none;
    text-align: center;
    transition: background 0.15s, border-color 0.15s;
    margin-top: 0.5rem;
}
.frikort-knapp:hover {
    background: #dce6ff;
    border-color: #8fa8e8;
}

.frikort-kort {
    display: flex;
    align-items: flex-start;
    gap: 1.2rem;
    padding: 1.5rem 2rem;
    border-radius: 12px;
    margin-bottom: 1.5rem;
    border: 2px solid;
}
.frikort-ja {
    background: #f0fdf4;
    border-color: #86efac;
}
.frikort-nei {
    background: #f8faff;
    border-color: #c7d4f0;
}
.frikort-ikon {
    font-size: 2.4rem;
    line-height: 1;
    flex-shrink: 0;
}
.frikort-innhold {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}
.frikort-status-tekst {
    font-size: 1.4rem;
    font-weight: 700;
    color: #1a2d5a;
}
.frikort-ja .frikort-status-tekst { color: #15803d; }
.frikort-melding {
    font-size: 0.95rem;
    color: #555;
}
.frikort-dato {
    font-size: 0.82rem;
    color: #9ca3af;
    margin-top: 0.2rem;
}
.frikort-forklaring {
    font-size: 0.85rem;
    color: #6b7280;
    line-height: 1.6;
    max-width: 520px;
}

/* ===================== PRODUKTBILDE ===================== */
.produkt-bilde-container {
    width: 90px;
    height: 90px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8f9fb;
    border: 1.5px solid #e5e7eb;
    border-radius: 10px;
    padding: 6px;
    align-self: flex-start;
}
.produkt-bilde {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 4px;
}
.produkt-bilde-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.2rem;
    background: transparent;
    border: none;
    border-radius: 0;
    align-self: auto;
}

/* ── Produktdetaljer-knapp ─────────────────────────────────── */
.btn-produktdetaljer {
    display: block;
    width: 100%;
    margin-top: 8px;
    padding: 8px 0;
    background: none;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    color: #4a6fa5;
    font-size: 0.83rem;
    font-weight: 600;
    cursor: pointer;
    letter-spacing: 0.01em;
    transition: background 0.15s, border-color 0.15s;
}
.btn-produktdetaljer:hover {
    background: #f0f4ff;
    border-color: #4a6fa5;
}

/* ── Sidebar overlay ───────────────────────────────────────── */
.sidebar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.35);
    z-index: 1000;
}
.sidebar-overlay.aktiv { display: block; }

/* ── Produktdetaljer sidebar ───────────────────────────────── */
.produkt-sidebar {
    position: fixed;
    top: 0;
    right: 0;
    width: 340px;
    max-width: 92vw;
    height: 100vh;
    background: #fff;
    box-shadow: -4px 0 24px rgba(0,0,0,0.12);
    z-index: 1001;
    transform: translateX(100%);
    transition: transform 0.25s cubic-bezier(.4,0,.2,1);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}
.produkt-sidebar.aktiv { transform: translateX(0); }

.sidebar-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    padding: 20px 20px 16px;
    border-bottom: 1px solid #e2e8f0;
    background: #f8fafc;
    flex-shrink: 0;
}
.sidebar-produktnavn {
    font-size: 0.95rem;
    font-weight: 700;
    color: #1a202c;
    line-height: 1.35;
    flex: 1;
}
.sidebar-lukk {
    background: none;
    border: none;
    font-size: 1.2rem;
    color: #64748b;
    cursor: pointer;
    padding: 2px 6px;
    border-radius: 6px;
    flex-shrink: 0;
    line-height: 1;
}
.sidebar-lukk:hover { background: #e2e8f0; color: #1a202c; }

.sidebar-innhold {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.sidebar-felt {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 12px 0;
    border-bottom: 1px solid #f1f5f9;
}
.sidebar-felt:last-child { border-bottom: none; }

.sidebar-label {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #94a3b8;
}
.sidebar-felt span:last-child {
    font-size: 0.9rem;
    color: #1e293b;
    font-weight: 500;
}

.sidebar-pkvlenke {
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid #e2e8f0;
}
.sidebar-pkvlenke a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #4a6fa5;
    font-size: 0.88rem;
    font-weight: 600;
    text-decoration: none;
}
.sidebar-pkvlenke a:hover { text-decoration: underline; }

/* ═══════════════════════════════════════════════════════════════
   ORDRE / HANDLEKURV / KASSE
   ═══════════════════════════════════════════════════════════════ */

.bestill-form { display: contents; }

/* Kasse-layout */
.kasse-main { padding: 24px 0; }
.kasse-layout { display: grid; grid-template-columns: 1fr 420px; gap: 32px; align-items: start; }
@media (max-width: 900px) { .kasse-layout { grid-template-columns: 1fr; } }

.kasse-seksjon-tittel { font-size: 1.1rem; font-weight: 700; color: #1a3a5c; margin: 0 0 16px; }

.kasse-flash-melding {
    background: #f0fdf4; border: 1px solid #86efac; border-radius: 8px;
    padding: 12px 16px; margin-bottom: 20px; color: #166534; font-size: 0.92rem;
}

/* Linjer */
.kasse-linjer { display: flex; flex-direction: column; gap: 12px; margin-bottom: 16px; }
.kasse-linje {
    background: #fff; border: 1px solid #e2e8f0; border-radius: 10px;
    padding: 16px; position: relative;
}
.kasse-linje-topp { display: flex; justify-content: space-between; gap: 16px; }
.kasse-linje-info { flex: 1; }
.kasse-varenavn { font-weight: 700; font-size: 0.98rem; color: #1a3a5c; margin-bottom: 4px; }
.kasse-meta { font-size: 0.82rem; color: #64748b; margin-bottom: 4px; }
.kasse-rekvirent { font-size: 0.82rem; color: #64748b; }
.kasse-reservert-tag {
    display: inline-block; font-size: 0.75rem; background: #fef3c7;
    color: #92400e; border-radius: 4px; padding: 2px 7px; margin-top: 4px;
}
.kasse-refhjemmel { font-size: 0.8rem; color: #4a6fa5; margin-top: 4px; }
.kasse-barn-tag {
    display: inline-block; font-size: 0.75rem; background: #e0f2fe;
    color: #0369a1; border-radius: 4px; padding: 2px 8px; margin-bottom: 6px;
}
.kasse-linje-pris { text-align: right; white-space: nowrap; }
.kasse-egenandel { font-weight: 700; font-size: 1rem; color: #1a3a5c; }
.kasse-mellomlegg { font-size: 0.8rem; color: #b45309; }
.kasse-helfo { font-size: 0.8rem; color: #059669; margin-top: 2px; }
.kasse-pris-label { font-size: 0.78rem; color: #64748b; margin-right: 4px; }

.kasse-fjern-form { margin-top: 10px; text-align: right; }
.kasse-fjern-btn {
    background: none; border: none; color: #94a3b8; font-size: 0.8rem;
    cursor: pointer; padding: 2px 6px; border-radius: 4px;
}
.kasse-fjern-btn:hover { background: #fee2e2; color: #dc2626; }

.kasse-totalsum {
    display: flex; justify-content: space-between; align-items: center;
    padding: 14px 16px; background: #f8fafc; border-radius: 8px;
    border: 1px solid #e2e8f0; margin-bottom: 12px;
}
.kasse-total-label { font-weight: 600; color: #475569; }
.kasse-total-belop { font-weight: 800; font-size: 1.2rem; color: #1a3a5c; }
.kasse-fortsett-lenke { font-size: 0.85rem; color: #4a6fa5; text-decoration: none; }
.kasse-fortsett-lenke:hover { text-decoration: underline; }

/* Barn-banner */
.barn-banner {
    background: #e0f2fe; border: 1px solid #7dd3fc; border-radius: 8px;
    padding: 10px 16px; margin-bottom: 20px; color: #0369a1; font-size: 0.9rem;
}

/* Adresseskjema */
.kasse-hoyre {
    background: #fff; border: 1px solid #e2e8f0;
    border-radius: 12px; padding: 24px;
    position: sticky; top: 24px;
}
.skjema-gruppe { margin-bottom: 16px; }
.skjema-gruppe-to-kol { display: grid; grid-template-columns: 100px 1fr; gap: 12px; }
.skjema-label { display: block; font-size: 0.82rem; font-weight: 600; color: #475569; margin-bottom: 6px; }
.skjema-input {
    width: 100%; padding: 10px 12px; border: 1.5px solid #cbd5e1;
    border-radius: 8px; font-size: 0.9rem; color: #1e293b;
    transition: border-color .15s;
    box-sizing: border-box;
}
.skjema-input:focus { outline: none; border-color: #4a6fa5; }

/* Leveringsmetode */
.leveringsmetode-valg { display: flex; flex-direction: column; gap: 8px; }
.leveringsmetode-alternativ {
    display: flex; align-items: center; gap: 12px;
    padding: 12px 14px; border: 1.5px solid #e2e8f0;
    border-radius: 8px; cursor: pointer; transition: border-color .15s;
}
.leveringsmetode-alternativ:has(input:checked) { border-color: #4a6fa5; background: #f0f6ff; }
.leveringsmetode-alternativ input[type=radio] { accent-color: #4a6fa5; }
.leveringsmetode-ikon { font-size: 1.4rem; }
.leveringsmetode-alternativ span:last-child { display: flex; flex-direction: column; }
.leveringsmetode-alternativ small { font-size: 0.78rem; color: #64748b; }

.kasse-bekreft-seksjon { margin-top: 20px; padding-top: 16px; border-top: 1px solid #e2e8f0; }
.kasse-info-tekst { font-size: 0.8rem; color: #64748b; margin-bottom: 14px; }
.btn-stor { width: 100%; padding: 14px; font-size: 1rem; }

/* ═══════════════════════════════════════════════════════════════
   ORDRESEDDEL
   ═══════════════════════════════════════════════════════════════ */

.ordreseddel-side { background: #f1f5f9; }
.ordreseddel-container { max-width: 860px; padding: 24px; }

.ordreseddel-nav {
    display: flex; justify-content: space-between; align-items: center;
    margin-bottom: 20px;
}
.btn-skriv-ut {
    background: #fff; border: 1.5px solid #cbd5e1; color: #1a3a5c;
    padding: 8px 16px; border-radius: 8px; cursor: pointer; font-size: 0.88rem;
}

.ordreseddel-dokument {
    background: #fff; border: 1px solid #e2e8f0;
    border-radius: 12px; padding: 40px 48px;
    box-shadow: 0 2px 16px rgba(0,0,0,.06);
}

.ordreseddel-header {
    display: flex; justify-content: space-between; align-items: flex-start;
    margin-bottom: 24px;
}
.ordreseddel-apotek-navn { font-size: 1.1rem; font-weight: 800; color: #1a3a5c; }
.ordreseddel-apotek-detaljer { font-size: 0.78rem; color: #64748b; margin-top: 3px; }
.ordreseddel-tittel { font-size: 1.6rem; font-weight: 900; color: #1a3a5c; margin: 0; text-align: right; }
.ordreseddel-tittel-blokk { text-align: right; }
.ordreseddel-id { font-size: 0.85rem; color: #64748b; margin-top: 4px; }
.ordreseddel-dato { font-size: 0.82rem; color: #94a3b8; }

.ordreseddel-skillelinje { border: none; border-top: 1.5px solid #e2e8f0; margin: 20px 0; }

.ordreseddel-seksjon { margin-bottom: 24px; }
.ordreseddel-seksjon-tittel {
    font-size: 0.8rem; font-weight: 700; text-transform: uppercase;
    letter-spacing: .07em; color: #94a3b8; margin: 0 0 10px;
}

.ordreseddel-tabell { width: 100%; border-collapse: collapse; font-size: 0.88rem; }
.ordreseddel-tabell tr { border-bottom: 1px solid #f1f5f9; }
.ordreseddel-felt-label { color: #64748b; font-weight: 600; padding: 6px 12px 6px 0; width: 130px; white-space: nowrap; }
.ordreseddel-felt-verdi { color: #1e293b; padding: 6px 24px 6px 0; }

/* Barn-seksjon */
.ordreseddel-barn-seksjon { margin-bottom: 16px; }
.ordreseddel-barn-banner {
    background: #e0f2fe; border: 1.5px solid #7dd3fc;
    border-radius: 8px; padding: 10px 16px;
    font-size: 0.92rem; color: #0369a1; font-weight: 600;
}

/* Barn-banner på reseptlinje */
.ordreseddel-linje-barn-banner {
    display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
    background: #e0f2fe; border-left: 4px solid #38bdf8;
    border-radius: 0 6px 6px 0; padding: 6px 12px;
    margin-bottom: 10px; font-size: 0.88rem; color: #0369a1; font-weight: 600;
}
.ordreseddel-linje-barn-navn {
    font-weight: 700; color: #0c4a6e;
}
.ordreseddel-linje-barn-fnr {
    font-family: monospace; color: #0369a1; font-size: 0.85rem;
}
.ordreseddel-barn-alder {
    display: inline-block;
    background: #dbeafe; color: #1e40af;
    font-size: 0.78rem; font-weight: 600; border-radius: 4px;
    padding: 1px 7px; vertical-align: middle;
}
.ordreseddel-barn-tag {
    display: inline-block; font-size: 0.75rem; background: #e0f2fe;
    color: #0369a1; border-radius: 4px; padding: 2px 8px; margin-bottom: 6px;
}

/* Linjer */
.ordreseddel-linje {
    display: flex; gap: 12px;
    padding: 16px 0; border-bottom: 1px solid #f1f5f9;
}
.ordreseddel-linje:last-child { border-bottom: none; }
.ordreseddel-linje-nummer {
    font-size: 1.1rem; font-weight: 800; color: #1a3a5c;
    min-width: 24px; padding-top: 2px;
}
.ordreseddel-linje-innhold { flex: 1; }
.ordreseddel-legemiddel { margin-bottom: 8px; }
.ordreseddel-varenavn { font-weight: 700; font-size: 1rem; color: #1a3a5c; margin-right: 8px; }
.ordreseddel-styrke { font-size: 0.85rem; color: #475569; margin-right: 6px; }
.ordreseddel-pakning { font-size: 0.85rem; color: #64748b; }

.ordreseddel-linje-tabell { width: 100%; border-collapse: collapse; font-size: 0.82rem; margin-bottom: 8px; }
.ordreseddel-linje-tabell td { padding: 3px 12px 3px 0; }
.ordreseddel-resept-id { font-family: monospace; font-size: 0.75rem; color: #94a3b8; }

.ordreseddel-reservert {
    font-size: 0.8rem; background: #fef3c7; color: #92400e;
    border-radius: 4px; padding: 3px 8px; display: inline-block; margin-bottom: 6px;
}
.ordreseddel-prisinfo { font-size: 0.85rem; color: #475569; margin-top: 6px; }
.ordreseddel-pris-label { color: #94a3b8; margin-right: 4px; }
.ordreseddel-mellomlegg { color: #b45309; margin-left: 8px; }
.ordreseddel-helfo { color: #059669; margin-left: 8px; }

/* Footer */
.ordreseddel-footer {
    display: flex; justify-content: space-between; align-items: flex-end;
    margin-top: 8px; font-size: 0.78rem; color: #94a3b8;
}
.ordreseddel-footer-venstre { font-size: 0.88rem; color: #475569; }
.ordreseddel-footer-dato { margin-left: 32px; }

/* Aksjonsknapper */
.ordreseddel-aksjoner {
    display: flex; gap: 12px; justify-content: flex-end;
    margin-top: 20px;
}

/* ── PRINT ── */
@media print {
    .no-print { display: none !important; }
    .ordreseddel-side { background: #fff; }
    .ordreseddel-container { max-width: 100%; padding: 0; }
    .ordreseddel-dokument { border: none; box-shadow: none; padding: 20px; border-radius: 0; }
    .ordreseddel-tittel { font-size: 1.4rem; }
    body { font-size: 11pt; }
}

/* ═══════════════════════════════════════════════════════════════════════
   ANSATTPORTAL
   ═══════════════════════════════════════════════════════════════════════ */

/* ── Innloggingsside ─────────────────────────────────────────────────── */
.ansatt-login-side {
    background: #1a237e;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}
.ansatt-login-wrapper {
    width: 100%;
    max-width: 420px;
    padding: 20px;
}
.ansatt-login-kort {
    background: #fff;
    border-radius: 12px;
    padding: 40px 36px;
    box-shadow: 0 8px 40px rgba(0,0,0,0.25);
}
.ansatt-login-header { text-align: center; margin-bottom: 28px; }
.ansatt-login-logo { font-size: 3rem; margin-bottom: 8px; }
.ansatt-login-tittel { font-size: 1.4rem; color: #1a237e; margin: 0 0 4px; }
.ansatt-login-undertittel { color: #666; font-size: 0.85rem; margin: 0; }
.ansatt-login-feil {
    background: #fff3f3; border: 1px solid #e53935; color: #c62828;
    border-radius: 6px; padding: 10px 14px; margin-bottom: 16px; font-size: 0.9rem;
}
.ansatt-login-info {
    background: #f0fff4; border: 1px solid #43a047; color: #2e7d32;
    border-radius: 6px; padding: 10px 14px; margin-bottom: 16px; font-size: 0.9rem;
}
.ansatt-login-skjema { display: flex; flex-direction: column; gap: 16px; }
.ansatt-login-bunntekst {
    text-align: center; font-size: 0.8rem; color: #888; margin-top: 20px;
}

/* ── Ansatt layout ───────────────────────────────────────────────────── */
.ansatt-side { background: #f5f6fa; min-height: 100vh; }
.ansatt-container { max-width: 1300px; margin: 0 auto; padding: 0 20px 40px; }
.ansatt-header {
    display: flex; align-items: center; justify-content: space-between;
    background: #1a237e; color: #fff;
    padding: 14px 24px; border-radius: 0 0 0 0; margin-bottom: 0;
}
.ansatt-logo { font-size: 1.5rem; margin-right: 10px; }
.ansatt-apotek-navn { font-size: 1.1rem; font-weight: 700; letter-spacing: 0.5px; }
.ansatt-header-hoyre { display: flex; align-items: center; gap: 14px; }
.ansatt-bruker-navn { color: #c5cae9; font-size: 0.9rem; }
.ansatt-seksjons-header { display: flex; align-items: baseline; gap: 12px; margin-bottom: 20px; }
.ansatt-seksjons-header h1 { font-size: 1.5rem; color: #1a237e; margin: 0; }
.ansatt-main { }

/* ── Navigasjonsfaner ────────────────────────────────────────────────── */
.ansatt-nav {
    display: flex; gap: 0;
    background: #283593; padding: 0 24px;
    border-radius: 0 0 8px 8px; margin-bottom: 28px;
}
.ansatt-nav-tab {
    display: inline-block; padding: 10px 20px;
    color: #c5cae9; text-decoration: none;
    font-size: 0.9rem; font-weight: 600;
    border-bottom: 3px solid transparent;
    transition: color 0.15s, border-color 0.15s;
}
.ansatt-nav-tab:hover { color: #fff; border-bottom-color: #7986cb; }
.ansatt-nav-aktiv { color: #fff !important; border-bottom-color: #fff !important; }

/* ── Produktgrid ─────────────────────────────────────────────────────── */
.ansatt-produkt-stats { font-size: 0.85rem; color: #666; align-self: center; margin-left: auto; }
.ansatt-produkt-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 16px; margin-top: 20px;
}
.ansatt-produkt-kort {
    background: #fff; border-radius: 10px;
    border: 1px solid #e8eaf6;
    padding: 14px; display: flex; flex-direction: column; gap: 8px;
    transition: box-shadow 0.15s;
}
.ansatt-produkt-kort:hover { box-shadow: 0 4px 16px rgba(26,35,126,0.1); }
.ansatt-produkt-bilde-wrapper { text-align: center; height: 110px; display: flex; align-items: center; justify-content: center; }
.ansatt-produkt-bilde { max-height: 110px; max-width: 100%; object-fit: contain; border-radius: 6px; }
.ansatt-produkt-bilde-placeholder { font-size: 3rem; color: #c5cae9; }
.ansatt-produkt-vnr { font-size: 0.75rem; color: #999; font-family: monospace; }
.ansatt-produkt-navn { font-size: 0.9rem; font-weight: 600; color: #1a237e; line-height: 1.3; }
.ansatt-produkt-merke { font-size: 0.8rem; color: #666; }
.ansatt-produkt-badges { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 4px; }
.ansatt-badge-aktiv { background: #e8f5e9; color: #2e7d32; font-size: 0.72rem; padding: 2px 7px; border-radius: 10px; font-weight: 600; }
.ansatt-badge-inaktiv { background: #fafafa; color: #999; font-size: 0.72rem; padding: 2px 7px; border-radius: 10px; }
.ansatt-badge-rx { background: #fff3e0; color: #e65100; font-size: 0.72rem; padding: 2px 7px; border-radius: 10px; font-weight: 600; }
.ansatt-badge-pris { background: #e8eaf6; color: #1a237e; font-size: 0.72rem; padding: 2px 7px; border-radius: 10px; font-weight: 600; }
.ansatt-produkt-rediger-btn { margin-top: auto; text-align: center; }

/* ── Paginering ──────────────────────────────────────────────────────── */
.ansatt-paginering { display: flex; gap: 6px; align-items: center; justify-content: center; margin-top: 28px; flex-wrap: wrap; }
.ansatt-side-btn { min-width: 36px; text-align: center; }
.ansatt-side-aktiv { background: #1a237e !important; color: #fff !important; }

/* ── Rediger-side ────────────────────────────────────────────────────── */
.ansatt-produkt-vnr-tittel { font-size: 1rem; color: #888; font-family: monospace; font-weight: 400; }
.ansatt-rediger-layout { display: grid; grid-template-columns: 280px 1fr; gap: 20px; align-items: start; }
@media (max-width: 900px) { .ansatt-rediger-layout { grid-template-columns: 1fr; } }
.ansatt-rediger-sidebar { display: flex; flex-direction: column; gap: 16px; }
.ansatt-rediger-hoved { display: flex; flex-direction: column; gap: 16px; }
.ansatt-rediger-kort {
    background: #fff; border-radius: 10px;
    border: 1px solid #e8eaf6; padding: 20px;
}
.ansatt-rediger-korttittel { font-size: 0.9rem; font-weight: 700; color: #1a237e; margin: 0 0 14px; text-transform: uppercase; letter-spacing: 0.5px; }
.ansatt-rediger-to-kolonner { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 600px) { .ansatt-rediger-to-kolonner { grid-template-columns: 1fr; } }
.ansatt-textarea { width: 100%; min-height: 120px; resize: vertical; }
.ansatt-textarea-liten { width: 100%; min-height: 72px; resize: vertical; }
.ansatt-toggle-rad { display: flex; align-items: center; gap: 8px; cursor: pointer; padding: 6px 0; font-size: 0.9rem; }
.ansatt-toggle-rad input[type=checkbox] { width: 16px; height: 16px; accent-color: #1a237e; }
.ansatt-bilde-preview { text-align: center; margin-bottom: 12px; }
.ansatt-bilde-stor { max-width: 100%; max-height: 160px; object-fit: contain; border-radius: 8px; border: 1px solid #e8eaf6; }
.ansatt-bilde-placeholder-stor { font-size: 4rem; color: #c5cae9; text-align: center; padding: 16px 0; }
.ansatt-bilde-form { display: flex; flex-direction: column; gap: 8px; }
.ansatt-bilde-label { display: flex; flex-direction: column; gap: 4px; cursor: pointer; }
.ansatt-bilde-input { display: none; }
.ansatt-bilde-filnavn { font-size: 0.82rem; color: #555; background: #f5f6fa; border: 1px dashed #c5cae9; border-radius: 6px; padding: 8px 10px; text-align: center; cursor: pointer; }
.ansatt-bilde-filnavn:hover { background: #e8eaf6; }
.ansatt-hint { display: block; font-size: 0.78rem; color: #888; margin-top: 4px; }
.ansatt-rediger-lagre { display: flex; gap: 12px; padding-top: 4px; }

/* ── PIM-filterpanel ─────────────────────────────────────────────────── */
.pim-panel {
    background: #fff; border: 1px solid #e8eaf6;
    border-radius: 10px; padding: 16px 20px;
    margin-bottom: 20px; display: flex; flex-direction: column; gap: 12px;
}
.pim-sok-form { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.pim-sok-form .skjema-input { flex: 1; min-width: 220px; }
.pim-totalt { margin-left: auto; font-size: 0.82rem; color: #888; white-space: nowrap; }
.pim-filter-gruppe { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.pim-filter-tittel { font-size: 0.75rem; font-weight: 700; text-transform: uppercase; color: #888; letter-spacing: 0.5px; min-width: 54px; }
.pim-filter-chip {
    display: inline-flex; align-items: center; gap: 5px;
    padding: 4px 12px; border-radius: 20px;
    font-size: 0.82rem; font-weight: 600; text-decoration: none;
    background: #f5f6fa; color: #555;
    border: 1.5px solid #e0e0e0;
    transition: all 0.15s;
}
.pim-filter-chip:hover { border-color: #9fa8da; color: #1a237e; background: #e8eaf6; }
.pim-filter-aktiv { background: #1a237e !important; color: #fff !important; border-color: #1a237e !important; }
.pim-filter-aktiv .pim-chip-tall { background: rgba(255,255,255,0.25); color: #fff; }
.pim-chip-gronn { border-color: #c8e6c9; color: #2e7d32; background: #f1f8f1; }
.pim-chip-graa  { border-color: #e0e0e0; color: #777; }
.pim-chip-rod   { border-color: #ffcdd2; color: #c62828; background: #fff5f5; }
.pim-chip-oransje { border-color: #ffe0b2; color: #e65100; background: #fffbf5; }
.pim-chip-tall  { background: rgba(0,0,0,0.08); border-radius: 10px; padding: 1px 6px; font-size: 0.75rem; }

/* ── Produktkort PIM-elementer ───────────────────────────────────────── */
.pim-kort-mangel { border-color: #ffe0b2; background: #fffdf9; }
.pim-completeness-bar {
    position: relative; height: 5px;
    background: #eee; border-radius: 3px; overflow: hidden;
    display: flex; align-items: center;
}
.pim-completeness-fill { height: 100%; border-radius: 3px; transition: width 0.3s; }
.pim-fill-gronn { background: #43a047; }
.pim-fill-gul   { background: #ffa726; }
.pim-fill-rod   { background: #ef5350; }
.pim-completeness-tall {
    position: absolute; right: 0;
    font-size: 0.65rem; color: #999;
    background: #fff; padding: 0 2px;
    line-height: 1;
}
.pim-mangler-liste { display: flex; flex-wrap: wrap; gap: 3px; margin: 4px 0; }
.katalog-kort-bilde-rx { max-height: 100%; max-width: 100%; object-fit: contain; opacity: 0.85; }
.katalog-rx-knapp { background: #5a4fcf; color: #fff; font-size: 0.82rem; }
.katalog-rx-knapp:hover { background: #4a3fbf; }
.katalog-rx-bestill-wrapper { display: flex; flex-direction: column; gap: 12px; margin-top: 16px; }
.katalog-rx-info-boks { background: #f0eeff; border: 1px solid #c5bbf5; border-radius: 8px; padding: 12px 16px; font-size: 0.9rem; color: #3d3080; line-height: 1.5; }

.pim-mangler-tag {
    font-size: 0.68rem; padding: 1px 5px;
    background: #fff3e0; color: #bf360c;
    border-radius: 4px; border: 1px solid #ffccbc;
}

/* ── Flash-meldinger ─────────────────────────────────────────────────── */
.ansatt-melding {
    border-radius: 6px; padding: 10px 16px; margin-bottom: 16px; font-size: 0.9rem;
}
.ansatt-melding-ok { background: #f0fff4; border: 1px solid #43a047; color: #2e7d32; }
.ansatt-melding-feil { background: #fff3f3; border: 1px solid #e53935; color: #c62828; }

/* ── Filter-bar ──────────────────────────────────────────────────────── */
.ansatt-filter-bar {
    background: #fff; border-radius: 8px; padding: 16px 20px;
    margin-bottom: 20px; border: 1px solid #e8eaf6;
}
.ansatt-filter-skjema { display: flex; align-items: flex-end; gap: 20px; flex-wrap: wrap; }
.ansatt-filter-gruppe { display: flex; flex-direction: column; gap: 4px; }
.ansatt-filter-label { font-size: 0.8rem; font-weight: 600; color: #555; text-transform: uppercase; }
.ansatt-filter-select {
    border: 1px solid #ccc; border-radius: 6px; padding: 7px 10px;
    font-size: 0.9rem; background: #f9f9f9;
}
.ansatt-filter-sok { flex: 1; flex-direction: row !important; align-items: center !important; }
.ansatt-filter-sok .skjema-input { flex: 1; }

/* ── Ordre-tabell ────────────────────────────────────────────────────── */
.ansatt-tabell-wrapper { overflow-x: auto; }
.ansatt-tabell {
    width: 100%; border-collapse: collapse;
    background: #fff; border-radius: 8px; overflow: hidden;
    box-shadow: 0 1px 6px rgba(0,0,0,0.08);
}
.ansatt-tabell thead tr { background: #e8eaf6; }
.ansatt-tabell th {
    text-align: left; padding: 11px 14px;
    font-size: 0.8rem; font-weight: 700; color: #3949ab;
    text-transform: uppercase; letter-spacing: 0.5px;
}
.ansatt-tabell td { padding: 12px 14px; font-size: 0.9rem; border-top: 1px solid #f0f0f0; }
.ansatt-tabell tr:hover td { background: #f8f9ff; }
.ordre-rad-ny td { border-left: 3px solid #e53935; }
.ansatt-tom-liste { text-align: center; color: #888; padding: 32px; }
.ansatt-ordre-id { white-space: nowrap; }
.ansatt-barn-tag { font-size: 0.8rem; color: #ff8f00; margin-top: 2px; }
.ansatt-adresse-liten { font-size: 0.8rem; color: #777; margin-top: 2px; }
.ansatt-antall-badge {
    background: #e8eaf6; color: #3949ab; border-radius: 20px;
    padding: 2px 10px; font-weight: 700; font-size: 0.9rem;
}

/* ── Status-badges ───────────────────────────────────────────────────── */
.ansatt-status-badge {
    display: inline-block; border-radius: 20px; padding: 3px 10px;
    font-size: 0.78rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px;
}
.status-ny          { background: #fff3e0; color: #e65100; }
.status-mottatt     { background: #e3f2fd; color: #1565c0; }
.status-under_ekspedering { background: #fffde7; color: #f57f17; }
.status-ekspedert   { background: #e8f5e9; color: #2e7d32; }
.status-sendt       { background: #f3e5f5; color: #6a1b9a; }
.status-kansellert  { background: #ffebee; color: #b71c1c; }

/* ── Aksjon-celler ───────────────────────────────────────────────────── */
.ansatt-aksjoner { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.ansatt-status-form { display: flex; align-items: center; gap: 6px; }
.ansatt-status-select {
    border: 1px solid #ccc; border-radius: 6px; padding: 4px 8px; font-size: 0.85rem;
}

/* ── Checkbox-kolonne ────────────────────────────────────────────────── */
.bulk-checkbox-col { width: 40px; text-align: center; padding: 0 8px; }
.bulk-checkbox-col input[type="checkbox"] { width: 16px; height: 16px; cursor: pointer; accent-color: #1a237e; }

/* ── Bulk-handlinger bar ─────────────────────────────────────────────── */
.bulk-bar {
    display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
    background: #e8eaf6; border: 1.5px solid #3949ab; border-radius: 8px;
    padding: 10px 16px; margin-bottom: 16px; animation: slideDown 0.15s ease;
}
@keyframes slideDown { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: translateY(0); } }
.bulk-teller {
    font-weight: 600; color: #1a237e; font-size: 0.92rem; min-width: 72px;
}
.bulk-status-form { display: flex; align-items: center; gap: 8px; }

/* ── Liten btn-variant ───────────────────────────────────────────────── */
.btn-liten { padding: 5px 12px !important; font-size: 0.82rem !important; }

/* ═══════════════════════════════════════════════════════════════════════
   PRODUKTKATALOG (OTC)
   ═══════════════════════════════════════════════════════════════════════ */

/* ── Layout ─────────────────────────────────────────────────────────── */
.katalog-side { background: #f5f6fa; min-height: 100vh; font-family: 'Inter', sans-serif; }

/* ── Katalog layout ──────────────────────────────────────────────────── */
.katalog-layout {
    max-width: 1280px; margin: 0 auto;
    display: flex; gap: 24px; padding: 24px 24px 48px;
    align-items: flex-start;
}
.katalog-sidepanel {
    width: 220px; flex-shrink: 0;
    background: #fff; border-radius: 10px;
    border: 1px solid #e8eaf6; padding: 16px;
    position: sticky; top: 110px;
}
.katalog-panel-tittel {
    font-size: 0.82rem; font-weight: 700; text-transform: uppercase;
    letter-spacing: 0.06em; color: #888; margin-bottom: 10px;
}
.katalog-underkat-liste { list-style: none; padding: 0; margin: 0; }
.katalog-underkat-liste li + li { border-top: 1px solid #f0f0f0; }
.katalog-underkat-lenke {
    display: block; padding: 8px 6px; font-size: 0.88rem;
    color: #333; text-decoration: none; border-radius: 4px;
}
.katalog-underkat-lenke:hover { background: #e8eaf6; color: #1a237e; }
.katalog-main { flex: 1; min-width: 0; }

/* ── Topp-rad ────────────────────────────────────────────────────────── */
.katalog-topp-rad { display: flex; align-items: baseline; gap: 12px; margin-bottom: 20px; }
.katalog-tittel { font-size: 1.5rem; font-weight: 700; color: #1a237e; margin: 0; }
.katalog-antall { font-size: 0.88rem; color: #888; }

/* ── Brødsmuler ──────────────────────────────────────────────────────── */
.katalog-brodsmule { font-size: 0.84rem; color: #888; margin-bottom: 16px; display: flex; align-items: center; flex-wrap: wrap; gap: 2px; }
.katalog-brodsmule a { color: #5c6bc0; text-decoration: none; }
.katalog-brodsmule a:hover { text-decoration: underline; }
.brodsmule-pil { color: #ccc; padding: 0 4px; }
.brodsmule-aktiv { color: #333; font-weight: 500; }

/* ── Produktgrid ─────────────────────────────────────────────────────── */
.katalog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 16px;
}
.katalog-produktkort {
    background: #fff; border-radius: 10px;
    border: 1px solid #e8eaf6;
    display: flex; flex-direction: column;
    transition: box-shadow 0.15s, transform 0.15s;
    overflow: hidden; position: relative;
}
.katalog-kort-lenke { text-decoration: none; color: inherit; display: flex; flex-direction: column; flex: 1; }
.katalog-produktkort:hover { box-shadow: 0 4px 16px rgba(26,35,126,0.12); transform: translateY(-2px); }
.katalog-kort-bilde {
    height: 160px; display: flex; align-items: center; justify-content: center;
    background: #f8f9ff; border-bottom: 1px solid #f0f0f0; overflow: hidden;
}
.katalog-kort-bilde img { max-height: 140px; max-width: 100%; object-fit: contain; padding: 8px; }
.katalog-kort-bilde-placeholder {
    font-size: 3rem; display: flex; align-items: center; justify-content: center;
    width: 100%; height: 100%; color: #c5cae9;
}
.katalog-kort-info { padding: 12px; flex: 1; display: flex; flex-direction: column; gap: 4px; }
.katalog-kort-merke { font-size: 0.75rem; font-weight: 600; color: #5c6bc0; text-transform: uppercase; letter-spacing: 0.04em; }
.katalog-kort-navn { font-size: 0.9rem; font-weight: 500; color: #1a237e; line-height: 1.35; flex: 1; }
.katalog-kort-pris { font-size: 1rem; font-weight: 700; color: #1a237e; margin-top: 6px; }
.katalog-kort-pris-ukjent { color: #888; font-weight: 400; font-size: 0.85rem; }

/* ── Tom liste / paginering ──────────────────────────────────────────── */
.katalog-tom { text-align: center; padding: 60px 20px; color: #888; display: flex; flex-direction: column; align-items: center; gap: 16px; }
.katalog-paginering { display: flex; align-items: center; justify-content: center; gap: 16px; margin-top: 32px; }
.katalog-side-teller { font-size: 0.9rem; color: #666; }

/* ── Detaljside ──────────────────────────────────────────────────────── */
.katalog-detalj-wrapper { max-width: 1100px; margin: 0 auto; padding: 24px 24px 60px; }
.katalog-detalj-kort {
    display: flex; gap: 40px; background: #fff;
    border-radius: 12px; border: 1px solid #e8eaf6; padding: 32px; margin-bottom: 24px;
}
.katalog-detalj-bilde-wrapper { flex-shrink: 0; }
.katalog-detalj-bilde {
    width: 280px; height: 280px;
    display: flex; align-items: center; justify-content: center;
    background: #f8f9ff; border-radius: 10px; overflow: hidden;
}
.katalog-detalj-bilde img { max-width: 100%; max-height: 100%; object-fit: contain; padding: 12px; }
.katalog-detalj-bilde-placeholder { font-size: 5rem; color: #c5cae9; display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; }
.katalog-detalj-info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 12px; }
.katalog-detalj-merke { font-size: 0.82rem; font-weight: 700; color: #5c6bc0; text-transform: uppercase; letter-spacing: 0.06em; }
.katalog-detalj-merke-rad {
    display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
}
.katalog-detalj-merke--lenke {
    text-decoration: none;
    font-size: 0.78rem; font-weight: 600;
    color: #5c6bc0;
    padding: 3px 10px;
    background: #ede9fe;
    border-radius: 6px;
    transition: background 0.15s, color 0.15s;
    white-space: nowrap;
}
.katalog-detalj-merke--lenke:hover {
    background: #5c6bc0;
    color: #fff;
}
.katalog-detalj-navn { font-size: 1.6rem; font-weight: 700; color: #1a237e; margin: 0; line-height: 1.3; }
.katalog-detalj-pris { font-size: 1.8rem; font-weight: 800; color: #1a237e; }
.katalog-detalj-ingress { font-size: 0.97rem; color: #444; line-height: 1.6; }
.katalog-detalj-meta { display: flex; flex-wrap: wrap; gap: 8px; }
.katalog-meta-badge { background: #e8eaf6; color: #3949ab; border-radius: 6px; padding: 3px 10px; font-size: 0.78rem; font-weight: 500; }
.katalog-detalj-tabs { display: flex; flex-direction: column; gap: 16px; }
.katalog-detalj-seksjon { background: #fff; border-radius: 10px; border: 1px solid #e8eaf6; padding: 24px; }
.katalog-detalj-seksjon h2 { font-size: 1rem; font-weight: 700; color: #1a237e; margin: 0 0 12px; padding-bottom: 10px; border-bottom: 1px solid #e8eaf6; }
.katalog-detalj-tekst { font-size: 0.93rem; color: #444; line-height: 1.7; white-space: pre-wrap; }
.katalog-detalj-tilbake { display: flex; gap: 12px; margin-top: 24px; }

/* Rx bestill-wrapper */
.katalog-rx-bestill-wrapper { display: flex; flex-direction: column; gap: 12px; margin-top: 8px; }
.katalog-rx-info-boks { background: #fff8e1; border: 1.5px solid #ffe082; border-radius: 8px; padding: 12px 14px; font-size: 0.88rem; color: #6d4c00; line-height: 1.5; }

/* Toast */
.katalog-toast-ok { position: fixed; top: 72px; right: 24px; background: #2e7d32; color: #fff; padding: 12px 20px; border-radius: 8px; font-weight: 600; font-size: 0.95rem; box-shadow: 0 4px 16px rgba(0,0,0,0.18); z-index: 9999; animation: fadeOut 3s forwards; }
@keyframes fadeOut { 0%,70% { opacity:1; } 100% { opacity:0; pointer-events:none; } }

/* Handlekurv-ikon badge (legacy) */
.katalog-handlekurv-ikon { position: relative; font-size: 1.4rem; text-decoration: none; margin-right: 4px; }
.katalog-handlekurv-badge { position: absolute; top: -6px; right: -10px; background: #e53935; color: #fff; font-size: 0.65rem; font-weight: 700; min-width: 18px; height: 18px; border-radius: 9px; display: flex; align-items: center; justify-content: center; padding: 0 4px; }

/* ── Handlekurv-side ──────────────────────────────────────────────── */
.kurv-wrapper { max-width: 960px; margin: 32px auto; padding: 0 24px; }
.kurv-tittel { font-size: 1.6rem; font-weight: 700; color: #1a237e; margin-bottom: 24px; }
.kurv-tom { text-align: center; padding: 64px 0; }
.kurv-tom-ikon { font-size: 4rem; margin-bottom: 16px; }
.kurv-tom p { color: #666; font-size: 1.1rem; margin-bottom: 20px; }
.kurv-innhold { display: grid; grid-template-columns: 1fr 320px; gap: 32px; align-items: start; }
@media (max-width: 720px) { .kurv-innhold { grid-template-columns: 1fr; } }
.kurv-resept-badge { display: inline-block; background: #e8eaf6; color: #3949ab; font-size: 0.68rem; font-weight: 700; letter-spacing: 0.06em; padding: 2px 8px; border-radius: 4px; text-transform: uppercase; }
.kurv-login-banner { display: flex; align-items: center; gap: 12px; background: #f5f5ff; border: 1.5px solid #c5cae9; border-radius: 10px; padding: 12px 14px; margin-bottom: 12px; font-size: 1.2rem; }
.kurv-linjer { display: flex; flex-direction: column; gap: 0; border: 1.5px solid #e8eaf6; border-radius: 12px; overflow: hidden; background: #fff; }
.kurv-linje { display: grid; grid-template-columns: 72px 1fr auto; gap: 16px; align-items: center; padding: 16px; border-bottom: 1px solid #f0f0f8; }
.kurv-linje:last-child { border-bottom: none; }
.kurv-linje-bilde { width: 72px; height: 72px; border-radius: 8px; overflow: hidden; background: #f5f5ff; display: flex; align-items: center; justify-content: center; }
.kurv-linje-bilde img { width: 100%; height: 100%; object-fit: contain; }
.kurv-linje-bilde-placeholder { width: 72px; height: 72px; display: flex; align-items: center; justify-content: center; font-size: 1.8rem; }
.kurv-linje-merke { font-size: 0.72rem; font-weight: 700; color: #5c6bc0; text-transform: uppercase; letter-spacing: 0.05em; }
.kurv-linje-navn { display: block; font-size: 0.92rem; font-weight: 600; color: #1a237e; text-decoration: none; line-height: 1.3; margin: 2px 0 4px; }
.kurv-linje-navn:hover { text-decoration: underline; }
.kurv-linje-enhetspris { font-size: 0.78rem; color: #888; }
/* Bunnrad: antall + fjern-knapp + pris ved siden av hverandre */
.kurv-linje-bunn { display: flex; align-items: center; gap: 12px; }
.kurv-linje-handlinger { display: flex; align-items: center; gap: 8px; }
.kurv-antall-form { display: flex; }
.kurv-fjern-knapp { background: none; border: none; color: #aaa; font-size: 1rem; cursor: pointer; padding: 4px 8px; border-radius: 4px; flex-shrink: 0; }
.kurv-fjern-knapp:hover { background: #fce4ec; color: #c62828; }
.kurv-linje-subtotal { font-size: 1rem; font-weight: 700; color: #1a237e; text-align: right; margin-left: auto; display: flex; flex-direction: column; align-items: flex-end; gap: 2px; }
.kurv-pris-mangler { color: #aaa; font-size: 0.8rem; font-weight: 400; }
.kurv-orig-pris { font-size: 0.78rem; font-weight: 400; color: #aaa; text-decoration: line-through; }
.kurv-rabatt-badge { display: inline-block; background: #e53935; color: #fff; font-size: 0.68rem; font-weight: 700; padding: 2px 6px; border-radius: 4px; }
.kurv-kampanje-hint { font-size: 0.72rem; color: #e65100; font-weight: 500; }
/* Mobil: image til venstre, info + bunnrad stables vertikalt */
@media (max-width: 600px) {
    .kurv-linje { grid-template-columns: 64px 1fr; grid-template-rows: auto auto; gap: 6px 10px; padding: 12px; align-items: start; }
    .kurv-linje-bilde-lenke { grid-row: 1 / 3; align-self: start; }
    .kurv-linje-info { grid-column: 2; }
    .kurv-linje-bunn { grid-column: 2; justify-content: space-between; }
    .kurv-linje-bilde { width: 64px; height: 64px; }
    .kurv-linje-bilde-placeholder { width: 64px; height: 64px; }
    .kurv-linje-subtotal { margin-left: 0; }
}
.kurv-sammendrag { background: #fff; border: 1.5px solid #e8eaf6; border-radius: 12px; padding: 24px; display: flex; flex-direction: column; gap: 12px; position: sticky; top: 80px; }
.kurv-total-rad { display: flex; justify-content: space-between; font-size: 0.95rem; color: #333; }
.kurv-frakt-rad { display: flex; justify-content: space-between; font-size: 0.88rem; color: #888; }
.kurv-total-sum { font-size: 1.15rem; font-weight: 700; color: #1a237e; border-top: 1.5px solid #e8eaf6; padding-top: 12px; margin-top: 4px; }
.kurv-kasse-knapp { display: block; text-align: center; margin-top: 8px; }
.kurv-fortsett-lenke { text-align: center; font-size: 0.85rem; color: #5c6bc0; text-decoration: none; }
.kurv-fortsett-lenke:hover { text-decoration: underline; }

/* ── Kasse ────────────────────────────────────────────────────────── */
.kasse-layout { display: grid; grid-template-columns: 1fr 340px; gap: 40px; align-items: start; }
.kasse-skjema { display: flex; flex-direction: column; gap: 24px; }
.kasse-seksjon { background: #fff; border: 1.5px solid #e8eaf6; border-radius: 12px; padding: 24px; }
.kasse-seksjon-tittel { font-size: 1rem; font-weight: 700; color: #1a237e; margin: 0 0 16px; }
.kasse-felt { display: flex; flex-direction: column; gap: 6px; }
.kasse-felt label { font-size: 0.83rem; font-weight: 600; color: #555; }
.kasse-felt input { padding: 10px 12px; border: 1.5px solid #c5cae9; border-radius: 8px; font-size: 0.95rem; color: #1a237e; outline: none; transition: border-color 0.15s; width: 100%; box-sizing: border-box; }
.kasse-felt input:focus { border-color: #3949ab; }
.kasse-felt-rad { display: flex; flex-direction: column; gap: 12px; }
.kasse-felt-rad-2 { flex-direction: row; gap: 16px; }
.kasse-felt-rad-2 .kasse-felt { flex: 1; min-width: 0; }
.kasse-leveringsvalg { display: flex; flex-direction: column; gap: 12px; }
.kasse-leveringsalternativ { display: flex; align-items: center; gap: 12px; cursor: pointer; }
.kasse-leveringsalternativ input[type="radio"] { accent-color: #3949ab; width: 18px; height: 18px; flex-shrink: 0; }
.kasse-lev-kort { display: flex; align-items: center; gap: 12px; background: #f5f5ff; border: 1.5px solid #c5cae9; border-radius: 10px; padding: 12px 16px; flex: 1; transition: border-color 0.15s; }
.kasse-lev-ikon { font-size: 1.5rem; }
.kasse-lev-tittel { font-weight: 600; color: #1a237e; font-size: 0.92rem; }
.kasse-lev-info { font-size: 0.78rem; color: #666; margin-top: 2px; }
.kasse-betaling-info { display: flex; align-items: flex-start; gap: 14px; background: #f0fdf4; border: 1.5px solid #a7f3d0; border-radius: 10px; padding: 14px 16px; }
.kasse-betaling-ikon { font-size: 1.4rem; }
.kasse-betaling-tittel { font-weight: 600; color: #14532d; font-size: 0.92rem; }
.kasse-betaling-tekst { font-size: 0.8rem; color: #166534; margin-top: 3px; }
.kasse-bekreft-knapp { padding: 14px; font-size: 1rem; width: 100%; box-sizing: border-box; }
.kasse-oversikt { background: #fff; border: 1.5px solid #e8eaf6; border-radius: 12px; padding: 24px; position: sticky; top: 80px; }
.kasse-oversikt-linjer { display: flex; flex-direction: column; gap: 12px; margin-bottom: 16px; border-bottom: 1.5px solid #f0f0f8; padding-bottom: 16px; }
.kasse-oversikt-linje { display: grid; grid-template-columns: 44px 1fr auto; gap: 10px; align-items: center; }
.kasse-ovl-bilde { width: 44px; height: 44px; border-radius: 6px; background: #f5f5ff; overflow: hidden; display: flex; align-items: center; justify-content: center; }
.kasse-ovl-bilde img { width: 100%; height: 100%; object-fit: contain; }
.kasse-ovl-navn { font-size: 0.82rem; font-weight: 600; color: #1a237e; line-height: 1.3; }
.kasse-ovl-antall { font-size: 0.75rem; color: #888; margin-top: 2px; }
.kasse-ovl-pris { font-size: 0.88rem; font-weight: 700; color: #1a237e; white-space: nowrap; }
@media (max-width: 780px) {
    .kasse-layout { grid-template-columns: 1fr; gap: 20px; }
    /* Ordresammendrag øverst på mobil */
    .kasse-oversikt { order: -1; position: static; }
    .kasse-seksjon { padding: 16px; }
    /* E-post og telefon stables vertikalt */
    .kasse-felt-rad-2 { flex-direction: column; gap: 12px; }
}
@media (max-width: 480px) {
    .kurv-wrapper { padding: 0 12px; }
    .kurv-tittel { font-size: 1.3rem; margin-bottom: 16px; }
}

/* ── Kasse-bekreftelse ─────────────────────────────────────────────── */
.bek-kort { max-width: 600px; margin: 40px auto; background: #fff; border: 1.5px solid #e8eaf6; border-radius: 16px; padding: 40px 36px; text-align: center; }
.bek-suksess-ikon { width: 64px; height: 64px; background: #2e7d32; color: #fff; border-radius: 50%; font-size: 2rem; display: flex; align-items: center; justify-content: center; margin: 0 auto 16px; font-weight: 700; }
.bek-tittel { font-size: 1.6rem; font-weight: 700; color: #1a237e; margin: 0 0 8px; }
.bek-ingress { color: #555; font-size: 0.95rem; margin-bottom: 24px; }
.bek-ordrenr-boks { background: #f5f5ff; border: 1.5px solid #c5cae9; border-radius: 10px; padding: 14px 20px; margin-bottom: 24px; }
.bek-ordrenr-label { font-size: 0.75rem; font-weight: 600; color: #888; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 4px; }
.bek-ordrenr { font-size: 1.1rem; font-weight: 700; color: #1a237e; letter-spacing: 0.04em; }
.bek-detaljer { text-align: left; border-top: 1.5px solid #f0f0f8; border-bottom: 1.5px solid #f0f0f8; padding: 16px 0; margin-bottom: 20px; display: flex; flex-direction: column; gap: 8px; }
.bek-detalj-rad { display: flex; gap: 12px; font-size: 0.88rem; }
.bek-detalj-label { font-weight: 600; color: #555; min-width: 130px; }
.bek-linjer { display: flex; flex-direction: column; gap: 10px; text-align: left; margin-bottom: 16px; }
.bek-linje { display: grid; grid-template-columns: 44px 1fr auto; gap: 12px; align-items: center; }
.bek-linje-bilde { width: 44px; height: 44px; border-radius: 6px; background: #f5f5ff; overflow: hidden; display: flex; align-items: center; justify-content: center; }
.bek-linje-bilde img { width: 100%; height: 100%; object-fit: contain; }
.bek-linje-navn { font-size: 0.85rem; font-weight: 600; color: #1a237e; }
.bek-linje-antall { font-size: 0.75rem; color: #888; margin-top: 2px; }
.bek-linje-pris { font-size: 0.9rem; font-weight: 700; color: #1a237e; white-space: nowrap; }
.bek-total { display: flex; justify-content: space-between; font-size: 1.05rem; font-weight: 700; color: #1a237e; border-top: 1.5px solid #e8eaf6; padding-top: 12px; margin-bottom: 28px; }
.bek-knapper { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ── Anbefalte produkter ─────────────────────────────────────────────── */
.anbefalte-wrapper { margin-top: 40px; }
.anbefalte-tittel { font-size: 1.2rem; font-weight: 700; color: #1a237e; margin-bottom: 20px; }
.anbefalte-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 16px; }
.anbefalte-kort { text-decoration: none; background: #fff; border: 1.5px solid #e8eaf6; border-radius: 12px; overflow: hidden; display: flex; flex-direction: column; transition: box-shadow 0.15s, border-color 0.15s; }
.anbefalte-kort:hover { box-shadow: 0 4px 16px rgba(57,73,171,0.12); border-color: #9fa8da; }
.anbefalte-bilde { height: 130px; background: #f5f5ff; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.anbefalte-bilde img { width: 100%; height: 100%; object-fit: contain; padding: 8px; }
.anbefalte-bilde-placeholder { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; font-size: 2rem; }
.anbefalte-info { padding: 10px 12px; display: flex; flex-direction: column; gap: 3px; flex: 1; }
.anbefalte-merke { font-size: 0.68rem; font-weight: 700; color: #5c6bc0; text-transform: uppercase; letter-spacing: 0.05em; }
.anbefalte-navn { font-size: 0.82rem; font-weight: 600; color: #1a237e; line-height: 1.3; }
.anbefalte-pris { font-size: 0.88rem; font-weight: 700; color: #3949ab; margin-top: 4px; }

/* ══ HJEMMESIDE ════════════════════════════════════════════════════════ */
.hjem-side { padding: 0; background: #f5f6f8; }
.hjem-hero { background: linear-gradient(135deg, #EBF4FF 0%, #DBEAFE 60%, #EFF6FF 100%); border-bottom: 1px solid #BFDBFE; padding: 52px 24px 60px; }
.hjem-hero-inner { max-width: 1200px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 32px; }
.hjem-hero-tittel { font-size: 2.4rem; font-weight: 900; color: #1E3A8A; line-height: 1.15; margin-bottom: 14px; }
.hjem-hero-ingress { font-size: 1rem; color: #475569; max-width: 480px; line-height: 1.6; margin-bottom: 28px; }
.hjem-hero-knapper { display: flex; gap: 12px; flex-wrap: wrap; }
.hjem-hero-cta { font-size: 1rem; padding: 12px 28px; }
.hjem-hero-resept-btn { background: #fff; border: 2px solid #93C5FD; color: #1D4ED8; padding: 11px 22px; border-radius: 8px; font-weight: 700; font-size: 0.92rem; text-decoration: none; transition: background 0.15s; }
.hjem-hero-resept-btn:hover { background: #EFF6FF; }
.hjem-hero-bilder { display: flex; gap: 16px; flex-shrink: 0; }
.hjem-hero-badge-stor, .hjem-hero-badge-liten { background: linear-gradient(135deg, #EF4444 0%, #DC2626 100%); border-radius: 50%; display: flex; flex-direction: column; align-items: center; justify-content: center; box-shadow: 0 4px 16px rgba(220,38,38,0.3); }
.hjem-hero-badge-stor { width: 110px; height: 110px; }
.hjem-hero-badge-liten { width: 80px; height: 80px; }
.hjem-hero-badge-pris { font-size: 2rem; font-weight: 900; color: #fff; line-height: 1; }
.hjem-hero-badge-txt { font-size: 0.65rem; font-weight: 700; color: rgba(255,255,255,0.9); text-align: center; }
.hjem-resept-banner { background: #F0FDF4; border-top: 1px solid #BBF7D0; border-bottom: 1px solid #BBF7D0; padding: 18px 24px; }
.hjem-resept-inner { max-width: 1200px; margin: 0 auto; display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.hjem-resept-ikon { font-size: 2rem; flex-shrink: 0; }
.hjem-resept-tekst { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.hjem-resept-tekst strong { font-size: 0.95rem; color: #166534; }
.hjem-resept-tekst span { font-size: 0.82rem; color: #4B7C5F; }
.hjem-resept-knapp { white-space: nowrap; }
.hjem-seksjon { padding: 40px 24px; background: #F8FAFC; }
.hjem-seksjon--lys { background: #fff; }
.hjem-seksjon-inner { max-width: 1200px; margin: 0 auto; }
.hjem-seksjon-topp { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 20px; flex-wrap: wrap; gap: 8px; }
.hjem-seksjon-tittel { font-size: 1.35rem; font-weight: 800; color: #1E3A8A; margin-bottom: 2px; }
.hjem-seksjon-sub { font-size: 0.82rem; color: #94A3B8; }
.hjem-se-alle { font-size: 0.88rem; font-weight: 700; color: #2563EB; text-decoration: none; white-space: nowrap; }
.hjem-se-alle:hover { text-decoration: underline; }
.hjem-produkt-rad { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; }
.hjem-produkt-rad--4 { grid-template-columns: repeat(4, 1fr); }
.hjem-kategorier { background: #fff; }
.hjem-kat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 12px; margin-top: 16px; }
.hjem-kat-kort { background: #F0F7FF; border: 1px solid #DBEAFE; border-radius: 14px; padding: 18px 12px; display: flex; flex-direction: column; align-items: center; gap: 6px; text-decoration: none; transition: transform 0.15s, box-shadow 0.15s; position: relative; }
.hjem-kat-kort:hover { transform: translateY(-2px); box-shadow: 0 4px 16px rgba(37,99,235,0.12); background: #EFF6FF; }
.hjem-kat-ikon { font-size: 1.8rem; }
.hjem-kat-navn { font-size: 0.8rem; font-weight: 700; color: #1E3A8A; text-align: center; }
.hjem-kat-badge { position: absolute; top: 6px; right: 6px; background: #EF4444; color: #fff; font-size: 0.65rem; font-weight: 900; padding: 1px 6px; border-radius: 8px; }
.hjem-usp { background: #EFF6FF; border-top: 1px solid #DBEAFE; border-bottom: 1px solid #DBEAFE; padding: 36px 24px; }
.hjem-usp-inner { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.hjem-usp-kort { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; }
.hjem-usp-ikon { font-size: 2rem; }
.hjem-usp-kort strong { font-size: 0.9rem; color: #1E3A8A; font-weight: 700; }
.hjem-usp-kort span { font-size: 0.78rem; color: #64748B; line-height: 1.4; }
.hjem-footer { background: #F8FAFC; border-top: 1px solid #E2E8F0; padding: 28px 24px; }
.hjem-footer-inner { max-width: 1200px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px; }
.hjem-footer-logo { font-size: 1.1rem; font-weight: 800; color: #1E3A8A; }
.hjem-footer-lenker { display: flex; gap: 20px; }
.hjem-footer-lenker a { font-size: 0.85rem; color: #64748B; text-decoration: none; }
.hjem-footer-lenker a:hover { color: #1E3A8A; }
.hjem-footer-copy { font-size: 0.75rem; color: #94A3B8; }

/* Responsiv hjem + katalog */
@media (max-width: 900px) {
    .hjem-hero-tittel { font-size: 1.7rem; }
    .hjem-hero-bilder { display: none; }
    .hjem-produkt-rad { grid-template-columns: repeat(3, 1fr); }
    .hjem-produkt-rad--4 { grid-template-columns: repeat(2, 1fr); }
    .hjem-usp-inner { grid-template-columns: repeat(2, 1fr); }
    .hjem-footer-inner { flex-direction: column; text-align: center; }
    .katalog-layout { flex-direction: column; padding: 16px; }
    .katalog-sidepanel { width: 100%; position: static; }
    .katalog-grid { grid-template-columns: repeat(2, 1fr); }
    .katalog-detalj-kort { flex-direction: column; }
    .katalog-detalj-bilde { width: 100%; height: 220px; }
}
@media (max-width: 600px) {
    .hjem-produkt-rad { grid-template-columns: repeat(2, 1fr); }
    .hjem-kat-grid { grid-template-columns: repeat(3, 1fr); }
    .hjem-usp-inner { grid-template-columns: 1fr 1fr; }
}

/* ════════════════════════════════════════════════════════════════
   GLOBAL HEADER – state of the art 2026
   ════════════════════════════════════════════════════════════════ */

/* ── Topplinje ──────────────────────────────────────────────── */
.header-topbar {
    background: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
    font-size: 0.78rem;
    color: #6b7280;
}
.header-topbar-inner {
    max-width: 1280px; margin: 0 auto;
    display: flex; justify-content: center; align-items: center; gap: 36px;
    padding: 7px 24px;
}
.header-topbar span { display: flex; align-items: center; gap: 5px; }

/* ── Hovedmeny ──────────────────────────────────────────────── */
.site-header {
    background: #fff;
    border-bottom: 1px solid #e5e7eb;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
    position: sticky;
    top: 0;
    z-index: 200;
}
.site-header-inner {
    max-width: 1280px; margin: 0 auto;
    display: flex; align-items: center; gap: 16px;
    padding: 0 24px;
    height: 60px;
}

/* Logo */
.site-logo {
    display: flex; align-items: center; gap: 6px;
    text-decoration: none; flex-shrink: 0;
    font-weight: 800; font-size: 1.25rem;
    color: #2563EB;
}
.site-logo-pill { font-size: 1.3rem; }

/* Søk */
.site-sok {
    flex: 1;
    display: flex; align-items: center;
}
.site-sok-input {
    flex: 1;
    border: 2px solid #e5e7eb;
    border-right: none;
    border-radius: 999px 0 0 999px;
    padding: 9px 18px;
    font-size: 0.95rem;
    outline: none;
    background: #f9fafb;
    transition: border-color 0.15s, background 0.15s;
}
.site-sok-input:focus {
    border-color: #2563EB;
    background: #fff;
}
.site-sok-knapp {
    border: 2px solid #2563EB;
    border-left: none;
    border-radius: 0 999px 999px 0;
    background: #2563EB;
    color: #fff;
    padding: 9px 16px;
    cursor: pointer;
    display: flex; align-items: center;
    transition: background 0.15s;
}
.site-sok-knapp:hover { background: #1d4ed8; border-color: #1d4ed8; }

/* Søk-wrapper (for dropdown-posisjonering) */
.site-sok-wrapper {
    flex: 1; max-width: 560px;
    position: relative;
}
.site-sok-wrapper .site-sok {
    max-width: 100%;
    flex: 1;
    width: 100%;
}

/* ── Autocomplete dropdown ──────────────────────────────────────────── */
.sok-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 6px);
    left: 0; right: 0;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.13);
    z-index: 9999;
    overflow: hidden;
}
.sok-treff {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    cursor: pointer;
    transition: background 0.1s;
    border-bottom: 1px solid #f3f4f6;
}
.sok-treff:last-of-type { border-bottom: none; }
.sok-treff:hover, .sok-treff--aktiv { background: #f0f4ff; }
.sok-treff-bilde {
    width: 52px; height: 52px;
    object-fit: contain;
    border-radius: 8px;
    background: #f8f9ff;
    flex-shrink: 0;
    border: 1px solid #f0f0f0;
    padding: 4px;
}
.sok-treff-bilde--tom {
    display: flex; align-items: center; justify-content: center;
    font-size: 1.4rem;
}
.sok-treff-bilde--kategori {
    display: flex; align-items: center; justify-content: center;
    font-size: 1.5rem;
    background: #f0f4ff;
    border-radius: 8px;
    border: none;
}
.sok-treff--kategori { background: #f8faff; border-bottom: 1px solid #e8edf5; }
.sok-treff--kategori:hover, .sok-treff--kategori.sok-treff--aktiv { background: #eff4ff; }
.sok-treff-sti {
    font-size: 0.84rem; color: #2563eb; font-weight: 600; line-height: 1.3;
}
.sok-treff-info { flex: 1; min-width: 0; }
.sok-treff-topp { display: flex; align-items: center; gap: 6px; margin-bottom: 2px; }
.sok-treff-merke {
    font-size: 0.68rem; font-weight: 700;
    color: #5c6bc0; text-transform: uppercase; letter-spacing: 0.05em;
}
.sok-treff-kampanje {
    font-size: 0.62rem; font-weight: 700;
    background: #fef2f2; color: #b91c1c;
    padding: 1px 5px; border-radius: 4px;
}
.sok-treff-navn {
    font-size: 0.88rem; font-weight: 600;
    color: #1a237e; line-height: 1.3;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.sok-treff-pris {
    font-size: 0.82rem; font-weight: 700;
    color: #2e7d32; margin-top: 2px;
}
.sok-kjop {
    flex-shrink: 0;
    background: #2e7d32; color: #fff;
    border: none; border-radius: 6px;
    padding: 6px 12px;
    font-size: 0.78rem; font-weight: 700;
    cursor: pointer; white-space: nowrap;
    transition: background 0.15s;
}
.sok-kjop:hover { background: #1b5e20; }
.sok-kjop--ok { background: #388e3c; }
/* Kjøp-wrapper i søkedropdown — smalere enn på produktkort */
.sok-kjop-wrapper { padding: 0; min-width: 110px; }
.sok-kjop-wrapper .kjop-btn { font-size: 0.78rem; padding: 7px 0; }
.sok-antall-rad { height: 36px; }
.sok-antall-rad .kjop-antall-btn { flex: 0 0 34px; height: 36px; font-size: 1.1rem; }
.sok-antall-rad .kjop-antall-tall {
    font-size: 1rem; font-weight: 800;
    color: #1a1a1a; min-width: 28px;
}

.sok-se-alle {
    display: block;
    padding: 11px 16px;
    font-size: 0.84rem; font-weight: 600;
    color: #2563EB; text-decoration: none;
    text-align: center;
    background: #f8faff;
    transition: background 0.1s;
}
.sok-se-alle:hover { background: #eff6ff; }

/* Nav-ikoner */
.site-nav {
    margin-left: auto;
    display: flex; align-items: center; gap: 2px;
    flex-shrink: 0;
}
.site-nav-ikon {
    display: flex; flex-direction: column; align-items: center; gap: 2px;
    text-decoration: none; color: #374151;
    padding: 6px 10px; border-radius: 8px;
    font-size: 0.7rem; font-weight: 500;
    min-width: 52px; text-align: center;
    position: relative;
    background: none; border: none; cursor: pointer;
    transition: color 0.15s, background 0.15s;
}
.site-nav-ikon:hover { color: #2563EB; background: #eff6ff; }
.site-nav-ikon--rx { color: #b91c1c; }
.site-nav-ikon--rx:hover { color: #991b1b; background: #fef2f2; }
.site-nav-ikon--farmasi { color: #065f46; }
.site-nav-ikon--farmasi:hover { color: #047857; background: #ecfdf5; }

/* Badge på Resepter-ikon */
.site-nav-badge {
    position: absolute; top: 2px; right: 6px;
    background: #dc2626; color: #fff;
    font-size: 0.55rem; font-weight: 800;
    width: 14px; height: 14px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
}

/* Handlekurv-badge */
.site-nav-kurv { position: relative; }
.site-kurv-badge {
    position: absolute; top: 0; right: 2px;
    background: #2563EB; color: #fff;
    font-size: 0.6rem; font-weight: 800;
    min-width: 16px; height: 16px;
    border-radius: 999px; padding: 0 3px;
    display: flex; align-items: center; justify-content: center;
    border: 2px solid #fff;
}

/* ── Resepter dropdown ──────────────────────────────────────── */
.site-rx-wrapper { position: relative; }
.site-rx-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    width: 270px;
    background: #fff;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    box-shadow: 0 8px 24px rgba(0,0,0,0.13);
    z-index: 500;
    overflow: hidden;
}
.site-rx-wrapper.open .site-rx-dropdown { display: block; }
.site-rx-cta {
    display: flex; align-items: center; gap: 8px;
    background: #b91c1c; color: #fff;
    font-size: 0.93rem; font-weight: 700;
    text-decoration: none;
    padding: 14px 18px;
    transition: background 0.15s;
}
.site-rx-cta:hover { background: #991b1b; color: #fff; }
.site-rx-lenker { padding: 8px 0; border-bottom: 1px solid #f0f0f0; }
.site-rx-lenke {
    display: flex; align-items: center; gap: 12px;
    padding: 11px 18px;
    font-size: 0.88rem; color: #374151;
    text-decoration: none;
    transition: background 0.12s, color 0.12s;
}
.site-rx-lenke svg { flex-shrink: 0; color: #6b7280; }
.site-rx-lenke:hover { background: #f0f4ff; color: #2563EB; }
.site-rx-lenke:hover svg { color: #2563EB; }
.site-rx-lenke--highlight {
    color: #065f46; font-weight: 600;
}
.site-rx-lenke--highlight svg { color: #065f46; }
.site-rx-lenke--highlight:hover { background: #ecfdf5; color: #047857; }
.site-rx-service {
    display: flex; align-items: center; gap: 8px;
    background: #e8f4fd; color: #1e5a8a;
    font-size: 0.82rem;
    padding: 12px 18px;
}

/* ── Hamburger (alltid synlig) ──────────────────────────────── */
.site-hamburger {
    display: flex;
    flex-direction: column; align-items: center; justify-content: center; gap: 5px;
    background: none; border: none; cursor: pointer;
    padding: 6px 10px; border-radius: 6px;
    flex-shrink: 0; color: #374151;
}
.site-hamburger:hover { background: #f3f4f6; }
.site-hamburger-streker {
    display: flex; flex-direction: column; gap: 5px; width: 22px;
}
.site-hamburger span {
    display: block; height: 2px; width: 100%;
    background: #374151; border-radius: 2px;
    transition: transform 0.25s, opacity 0.25s;
    transform-origin: center;
}
.site-hamburger.open .site-hamburger-streker span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.site-hamburger.open .site-hamburger-streker span:nth-child(2) { opacity: 0; }
.site-hamburger.open .site-hamburger-streker span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── Mobilmeny: full-screen slide-in overlay ────────────────── */
.site-mobilmeny-overlay {
    display: none;
    position: fixed; inset: 0;
    background: rgba(0,0,0,0.45);
    z-index: 1100;
}
.site-mobilmeny-overlay.open { display: block; }

.site-mobilmeny {
    position: fixed;
    top: 0; left: 0;
    width: min(320px, 88vw);
    height: 100dvh;
    background: #fff;
    z-index: 1200;
    display: flex; flex-direction: column;
    transform: translateX(-100%);
    transition: transform 0.28s cubic-bezier(0.4,0,0.2,1);
    overflow: hidden;
}
.site-mobilmeny.open { transform: translateX(0); }

/* Topplinje i mobilmenyen */
.mobilmeny-header {
    display: flex; align-items: center; justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid #f0f0f0;
    flex-shrink: 0;
}
.mobilmeny-logo {
    font-size: 1.2rem; font-weight: 800; color: #2563eb; text-decoration: none;
    display: flex; align-items: center; gap: 6px;
}
.mobilmeny-lukk {
    background: none; border: none; cursor: pointer;
    font-size: 1.5rem; color: #374151; padding: 4px 8px;
    border-radius: 6px; line-height: 1;
}
.mobilmeny-lukk:hover { background: #f3f4f6; }

.site-mobilmeny-inner {
    flex: 1; overflow-y: auto;
    padding: 8px 0 40px;
}

.mobilmeny-lenke {
    display: flex; align-items: center; gap: 12px;
    padding: 13px 20px;
    font-size: 0.97rem; color: #374151;
    text-decoration: none;
    transition: background 0.1s;
    border: none; background: none; width: 100%;
}
.mobilmeny-lenke:hover, .mobilmeny-lenke:active { background: #f3f4f6; }
.mobilmeny-lenke--rx {
    color: #b91c1c; font-weight: 700;
    background: #fff5f5;
    border-radius: 8px; margin: 4px 12px; padding: 13px 16px;
    width: calc(100% - 24px);
}
.mobilmeny-lenke--rx:hover { background: #fee2e2; }
.mobilmeny-lenke--symptom { color: #6b7280; font-size: 0.93rem; padding-left: 28px; }
.mobilmeny-seksjon-tittel {
    padding: 16px 20px 4px;
    font-size: 0.7rem; font-weight: 700;
    color: #9ca3af; letter-spacing: 0.09em;
    text-transform: uppercase;
}

/* ── Kategorimeny: skjult (erstattet av hamburgermeny) ─────── */
.site-katbar {
    display: none;
}
.site-katbar::-webkit-scrollbar { display: none; }
.site-katbar-inner {
    max-width: 1280px; margin: 0 auto;
    display: flex; gap: 0; padding: 0 24px;
    white-space: nowrap;
}
.site-katlenke {
    padding: 11px 14px;
    font-size: 0.86rem; font-weight: 500;
    color: #444; text-decoration: none;
    border-bottom: 3px solid transparent;
    transition: all 0.15s; flex-shrink: 0;
}
.site-katlenke:hover { color: #1a237e; border-bottom-color: #c5cae9; }
.site-katlenke.aktiv { color: #1a237e; border-bottom-color: #1a237e; font-weight: 600; }
.site-katlenke--symptom {
    color: #6b7280; font-style: italic; font-size: 0.83rem;
}
.site-katlenke--symptom:hover { color: #2563EB; border-bottom-color: #2563EB; font-style: normal; }

/* ════════════════════════════════════════════════════════════
   MOBIL BREAKPOINTS
   ════════════════════════════════════════════════════════════ */
@media (max-width: 900px) {
    .site-skjul-mobil { display: none !important; }
    .topbar-skjul-mobil { display: none !important; }
}

@media (max-width: 768px) {
    .site-header-inner {
        height: auto;
        flex-wrap: wrap;
        padding: 10px 16px;
        gap: 10px;
    }
    .site-logo { order: 1; }
    .site-nav { order: 2; margin-left: auto; gap: 0; }
    .site-sok-wrapper, .site-sok {
        order: 3;
        flex-basis: 100%;
        max-width: 100%;
    }
    /* Skjul farmasi og label-tekst på ikoner (mobil) */
    .site-nav-ikon--farmasi { display: none; }
    .site-rx-dropdown { width: min(270px, 90vw); right: 0; }
    .site-nav-ikon span:not(.site-kurv-badge):not(.site-nav-badge):last-child {
        display: none;
    }
}

/* ══ KAMPANJE ══════════════════════════════════════════════════════════ */

.kampanje-hero {
    background: linear-gradient(135deg, #34D399 0%, #10B981 100%);
    padding: 32px 24px;
    margin-bottom: 0;
}
.kampanje-hero-inner {
    max-width: 1200px;
    margin: 0 auto;
}
.kampanje-hero-periode {
    font-size: 0.78rem;
    font-weight: 700;
    color: rgba(255,255,255,0.85);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 4px;
}
.kampanje-hero-tittel {
    font-size: 1.6rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 20px;
}
.kampanje-kort-rad {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}
.kampanje-kort {
    background: rgba(255,255,255,0.15);
    border: 2px solid rgba(255,255,255,0.3);
    border-radius: 16px;
    padding: 20px 16px;
    display: flex;
    align-items: flex-start;
    gap: 16px;
    text-decoration: none;
    position: relative;
    transition: transform 0.15s, background 0.15s;
    backdrop-filter: blur(4px);
}
.kampanje-kort:hover {
    background: rgba(255,255,255,0.25);
    transform: translateY(-2px);
}
.kampanje-kort-badge {
    position: absolute;
    top: -10px; right: 16px;
    background: #e53935; color: #fff;
    font-size: 1.1rem; font-weight: 900;
    padding: 4px 12px; border-radius: 20px;
    box-shadow: 0 2px 8px rgba(229,57,53,0.5);
}
.kampanje-kort-ikon { font-size: 2.2rem; line-height: 1; flex-shrink: 0; margin-top: 4px; }
.kampanje-kort-tittel { font-size: 1.05rem; font-weight: 800; color: #fff; line-height: 1.2; }
.kampanje-kort-merker { font-size: 0.78rem; color: rgba(255,255,255,0.9); margin-top: 3px; }
.kampanje-kort-vilkar { font-size: 0.72rem; color: rgba(255,255,255,0.75); margin-top: 5px; font-style: italic; }

/* ── Kampanjepris på produktdetalj ─────────────────────────────────── */
.katalog-detalj-kampanje-wrapper { margin: 8px 0 12px; }
.katalog-detalj-kampanje-badge {
    display: inline-block;
    background: #e53935; color: #fff;
    font-size: 0.78rem; font-weight: 800;
    padding: 3px 12px; border-radius: 14px; letter-spacing: 0.03em;
}
.katalog-detalj-pris-original { font-size: 1.1rem; text-decoration: line-through; color: #999; }
.katalog-detalj-pris-kampanje { font-size: 1.8rem; font-weight: 900; color: #e53935; }
.katalog-detalj-kampanje-vilkar { font-size: 0.75rem; color: #888; margin-top: 5px; font-style: italic; }

/* ── Kampanje bildekort (forside) ───────────────────────────────────── */
.kampanje-bildekort-rad {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px; margin-top: 8px;
}
.kampanje-bildekort {
    background: #fff; border-radius: 16px; overflow: hidden;
    text-decoration: none; box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    position: relative; transition: transform 0.18s, box-shadow 0.18s;
    display: flex; flex-direction: column;
}
.kampanje-bildekort:hover { transform: translateY(-3px); box-shadow: 0 8px 28px rgba(0,0,0,0.13); }
.kampanje-bildekort-img {
    width: 100%; aspect-ratio: 1/1; object-fit: contain; background: #fff; padding: 12px;
}
.kampanje-bildekort-badge {
    position: absolute; top: 12px; right: 12px;
    background: #EF4444; color: #fff;
    font-size: 1.25rem; font-weight: 900;
    width: 60px; height: 60px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 2px 10px rgba(239,68,68,0.45); z-index: 2;
}
.kampanje-bildekort-bunn {
    padding: 14px 16px 16px; border-top: 1px solid #F1F5F9; background: #F8FAFC; flex: 1;
}
.kampanje-bildekort-tittel { font-size: 1rem; font-weight: 800; color: #1E3A8A; margin-bottom: 3px; }
.kampanje-bildekort-sub { font-size: 0.78rem; color: #64748B; }
@media (max-width: 768px) {
    .kampanje-bildekort-rad { grid-template-columns: 1fr; gap: 12px; }
    .kampanje-kort-rad { grid-template-columns: 1fr; }
}

/* ── Kjøp-knapp på produktkort (Rx / OTC tekst) ─────────────────────── */
.katalog-kort-kjop-form { padding: 0 10px 10px; margin: 0; }
.katalog-kort-kjop-knapp {
    width: 100%; background: #1D4ED8; color: #fff;
    border: none; border-radius: 7px;
    padding: 8px 10px; font-size: 0.78rem; font-weight: 700;
    cursor: pointer; transition: background 0.15s;
    display: flex; align-items: center; justify-content: center; gap: 5px;
    white-space: nowrap; text-decoration: none;
}
.katalog-kort-kjop-knapp:hover { background: #1E40AF; }
.katalog-rx-knapp { background: #b91c1c; }
.katalog-rx-knapp:hover { background: #991b1b; }

/* ── Kjøp-knapp / antall-velger (Apotea-stil) ───────────────────────── */
.katalog-kort-kjop-wrapper { padding: 0 14px 14px; }
.kjop-knapp-rad { display: flex; }
.katalog-detalj-kjop-wrapper { margin-top: 16px; max-width: 50%; }
.kjop-detalj.kjop-knapp-rad { display: flex; }
.kjop-btn-stor { font-size: 1.05rem; padding: 14px 0; }
.kjop-detalj.kjop-antall-rad { height: 52px; }
.kjop-detalj .kjop-antall-btn { flex: 0 0 52px; height: 52px; font-size: 1.5rem; }
.kjop-detalj .kjop-antall-tall { font-size: 1.15rem; }
.kjop-btn {
    width: 100%; padding: 10px 0;
    background: #2e7d32; color: #fff;
    border: none; border-radius: 8px;
    font-size: 0.95rem; font-weight: 700;
    cursor: pointer; transition: background 0.15s;
}
.kjop-btn:hover { background: #1b5e20; }
.kjop-antall-rad {
    display: flex; align-items: center;
    border: 2px solid #2e7d32; border-radius: 8px; overflow: hidden; width: 100%;
}
.kjop-antall-btn {
    flex: 0 0 40px; height: 40px;
    background: #2e7d32; color: #fff;
    border: none; font-size: 1.3rem; font-weight: 700;
    cursor: pointer; transition: background 0.15s;
    display: flex; align-items: center; justify-content: center;
}
.kjop-antall-btn:hover { background: #1b5e20; }
.kjop-antall-tall { flex: 1; text-align: center; font-size: 1rem; font-weight: 700; color: #2e7d32; }
/* Kompakt antall-kontroll i handlekurven */
.kurv-antall-rad {
    display: inline-flex; align-items: center;
    border: 2px solid #2e7d32; border-radius: 8px; overflow: hidden;
    width: 110px; flex-shrink: 0;
}
.kurv-antall-btn {
    flex: 0 0 32px; height: 36px;
    background: #2e7d32; color: #fff;
    border: none; font-size: 1.2rem; font-weight: 700;
    cursor: pointer; transition: background 0.15s;
    display: flex; align-items: center; justify-content: center;
}
.kurv-antall-btn:hover { background: #1b5e20; }
.kurv-antall-tall {
    flex: 1; text-align: center; font-size: 0.95rem; font-weight: 700;
    color: #2e7d32; border: none; outline: none; background: transparent;
    -moz-appearance: textfield; width: 100%; min-width: 0;
}
.kurv-antall-tall::-webkit-inner-spin-button,
.kurv-antall-tall::-webkit-outer-spin-button { -webkit-appearance: none; }

/* ── Kampanjebadge og -pris på produktkort ──────────────────────────── */
.katalog-produktkort { position: relative; }
.kampanje-produktbadge {
    position: absolute; top: 8px; right: 8px;
    background: #e53935; color: #fff;
    font-size: 0.72rem; font-weight: 900;
    padding: 3px 8px; border-radius: 12px;
    z-index: 2; box-shadow: 0 1px 4px rgba(229,57,53,0.4);
}
.katalog-kort-kampanjepris-wrapper {
    display: flex; flex-wrap: wrap; align-items: center; gap: 4px; margin-top: 2px;
}
.katalog-kort-pris-original { font-size: 0.78rem !important; text-decoration: line-through; color: #999 !important; }
.katalog-kort-pris-kampanje { font-size: 1rem !important; font-weight: 800 !important; color: #e53935 !important; }
.katalog-kort-rabatt-tag {
    font-size: 0.68rem; background: #ffebee; color: #c62828;
    padding: 1px 6px; border-radius: 8px; font-weight: 700;
}

/* ── Rabatt i handlekurv ────────────────────────────────────────────── */
.kurv-rabatt-badge {
    display: inline-block; background: #e53935; color: #fff;
    font-size: 0.68rem; font-weight: 800;
    padding: 2px 8px; border-radius: 10px; margin-left: 6px;
}
.kurv-orig-pris { font-size: 0.78rem; text-decoration: line-through; color: #999; margin-right: 4px; }
.kurv-kampanje-hint {
    display: block; font-size: 0.72rem; color: #e53935; font-weight: 600;
    margin-top: 4px; background: #fff3f3;
    border: 1px dashed #e53935; border-radius: 8px;
    padding: 2px 8px; text-align: center;
}

/* ══ MIN SIDE ══════════════════════════════════════════════════════════ */
.ms-layout {
    max-width: 1200px; margin: 32px auto; padding: 0 24px;
    display: grid; grid-template-columns: 240px 1fr; gap: 28px; align-items: start;
}
.ms-panel {
    background: #fff; border-radius: 14px; border: 1px solid #E2E8F0;
    padding: 24px 20px; position: sticky; top: 80px;
    display: flex; flex-direction: column; gap: 20px;
}
.ms-avatar-seksjon { text-align: center; }
.ms-avatar {
    width: 64px; height: 64px;
    background: linear-gradient(135deg, #1D4ED8, #2563EB);
    color: #fff; font-size: 1.6rem; font-weight: 800; border-radius: 50%;
    display: flex; align-items: center; justify-content: center; margin: 0 auto 10px;
}
.ms-avatar-navn { font-size: 0.95rem; font-weight: 700; color: #1E3A8A; }
.ms-avatar-fnr  { font-size: 0.78rem; color: #94A3B8; margin-top: 2px; }
.ms-nav { display: flex; flex-direction: column; gap: 4px; }
.ms-nav-lenke {
    display: block; padding: 8px 12px; border-radius: 8px;
    font-size: 0.875rem; font-weight: 600; color: #475569;
    text-decoration: none; transition: background 0.12s, color 0.12s;
}
.ms-nav-lenke:hover { background: #F0F7FF; color: #1D4ED8; }
.ms-nav-aktiv { background: #EFF6FF; color: #1D4ED8; }
.ms-nav-idporten { background: #F0FDF4 !important; color: #166534 !important; border: 1px solid #BBF7D0; }
.ms-nav-idporten:hover { background: #DBEAFE !important; }
.ms-loggut-form { margin-top: 4px; }
.ms-loggut-knapp {
    width: 100%; background: none; border: 1px solid #E2E8F0; border-radius: 8px;
    padding: 8px; font-size: 0.82rem; color: #64748B; cursor: pointer; transition: background 0.12s;
}
.ms-loggut-knapp:hover { background: #FEF2F2; color: #DC2626; border-color: #FCA5A5; }
.ms-main { display: flex; flex-direction: column; gap: 20px; }
.ms-seksjon {
    background: #fff; border-radius: 14px; border: 1px solid #E2E8F0; padding: 24px 28px;
}
.ms-seksjon-tittel {
    font-size: 1.05rem; font-weight: 800; color: #1E3A8A;
    margin-bottom: 16px; padding-bottom: 12px; border-bottom: 1px solid #F1F5F9;
}
.ms-velkomst { font-size: 1.5rem; font-weight: 900; color: #1E3A8A; margin-bottom: 4px; }
.ms-velkomst-sub { font-size: 0.88rem; color: #64748B; margin-bottom: 20px; }
.ms-stats-rad { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.ms-stat-kort {
    background: #F8FAFC; border: 1px solid #E2E8F0; border-radius: 10px;
    padding: 16px 12px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 4px;
}
.ms-stat-tall { font-size: 1.8rem; font-weight: 900; color: #1D4ED8; line-height: 1; }
.ms-stat-lenke { font-size: 1.4rem; text-decoration: none; }
.ms-stat-etikett { font-size: 0.72rem; color: #94A3B8; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; }
.ms-profil-grid { display: flex; flex-direction: column; gap: 0; }
.ms-profil-rad { display: flex; align-items: center; padding: 10px 0; border-bottom: 1px solid #F1F5F9; }
.ms-profil-rad:last-child { border-bottom: none; }
.ms-profil-etikett { width: 180px; font-size: 0.82rem; color: #94A3B8; font-weight: 600; flex-shrink: 0; }
.ms-profil-verdi { font-size: 0.9rem; color: #1E293B; font-weight: 500; }
.ms-tom-liste { text-align: center; padding: 32px; color: #94A3B8; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.ms-ordre-header {
    display: grid; grid-template-columns: 80px 1fr 1fr 1fr 1fr 1fr;
    padding: 8px 12px; font-size: 0.72rem; font-weight: 700; color: #94A3B8;
    text-transform: uppercase; letter-spacing: 0.05em;
    background: #F8FAFC; border-radius: 8px; margin-bottom: 4px;
}
.ms-ordre-rad {
    display: grid; grid-template-columns: 80px 1fr 1fr 1fr 1fr 1fr;
    padding: 12px 12px; font-size: 0.875rem;
    border-bottom: 1px solid #F1F5F9; align-items: center; transition: background 0.1s;
}
.ms-ordre-rad:hover { background: #F8FAFC; border-radius: 8px; }
.ms-ordre-rad:last-child { border-bottom: none; }
.ms-ordre-id    { font-weight: 700; color: #1D4ED8; }
.ms-ordre-dato  { color: #475569; }
.ms-ordre-total { font-weight: 700; color: #1E293B; }
.ms-status-badge { display: inline-block; font-size: 0.72rem; font-weight: 700; padding: 3px 10px; border-radius: 20px; }
.status-mottatt     { background: #DBEAFE; color: #1D4ED8; }
.status-ekspedering { background: #FEF9C3; color: #A16207; }
.status-sendt       { background: #DCFCE7; color: #166534; }
.status-kansellert  { background: #FEE2E2; color: #DC2626; }
.ms-adresse-kort { background: #F8FAFC; border: 1px solid #E2E8F0; border-radius: 10px; padding: 16px 20px; display: inline-block; margin-bottom: 8px; }
.ms-adresse-linje  { font-size: 0.9rem; color: #1E293B; line-height: 1.7; }
.ms-adresse-metode { font-size: 0.8rem; color: #64748B; margin-top: 6px; }
.ms-adresse-info   { font-size: 0.78rem; color: #94A3B8; }
.ms-snarvei-rad { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.ms-snarvei-kort {
    background: #F0F7FF; border: 1px solid #DBEAFE; border-radius: 12px;
    padding: 18px 12px; text-align: center; text-decoration: none;
    display: flex; flex-direction: column; align-items: center; gap: 6px;
    font-size: 0.82rem; font-weight: 700; color: #1E3A8A; transition: transform 0.15s, background 0.15s;
}
.ms-snarvei-kort:hover { transform: translateY(-2px); background: #EFF6FF; }
.ms-snarvei-ikon { font-size: 1.6rem; }
@media (max-width: 900px) {
    .ms-layout { grid-template-columns: 1fr; }
    .ms-panel { position: static; }
    .ms-stats-rad { grid-template-columns: repeat(2, 1fr); }
    .ms-snarvei-rad { grid-template-columns: repeat(2, 1fr); }
    .ms-ordre-header, .ms-ordre-rad { grid-template-columns: 70px 1fr 1fr 1fr; }
    .ms-ordre-header span:nth-child(5), .ms-ordre-header span:nth-child(6),
    .ms-ordre-rad   span:nth-child(5), .ms-ordre-rad   span:nth-child(6) { display: none; }
}

/* ══ LOGIN / REGISTRERING ══════════════════════════════════════════════ */

.auth-wrapper {
    min-height: calc(100vh - 120px);
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 48px 16px;
}

.auth-kort {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 16px rgba(0,0,0,0.10);
    padding: 40px 36px;
    width: 100%;
    max-width: 420px;
}

/* Vipps Login-knapp */
.auth-vipps-knapp {
    display: flex; align-items: center; justify-content: center; gap: 12px;
    width: 100%; padding: 14px 20px;
    background: #FF5B24; color: #fff;
    border-radius: 8px; border: none;
    font-size: 1rem; font-weight: 600;
    text-decoration: none; cursor: pointer;
    margin-bottom: 4px; transition: background 0.15s;
}
.auth-vipps-knapp:hover { background: #e04e1c; }
.auth-vipps-logo { height: 22px; fill: white; }
.auth-separator {
    display: flex; align-items: center; gap: 12px;
    color: #9ca3af; font-size: 0.9rem; margin: 16px 0;
}
.auth-separator::before, .auth-separator::after {
    content: ''; flex: 1; height: 1px; background: #e5e7eb;
}
.auth-undertittel { font-size: 1.05rem; font-weight: 600; color: #374151; margin: 0 0 12px; }

.auth-logo {
    text-align: center;
    font-size: 1.5rem;
    font-weight: 700;
    color: #2563EB;
    margin-bottom: 8px;
}

.auth-tittel {
    font-size: 1.6rem;
    font-weight: 700;
    color: #111827;
    margin-bottom: 24px;
    text-align: center;
}

.auth-undertittel {
    font-size: 1.05rem;
    font-weight: 600;
    color: #374151;
    margin-bottom: 16px;
}

/* ID-porten-knapp */
.btn-idporten {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    width: 100%;
    padding: 14px 20px;
    background: #1A56DB;
    color: #fff;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.15s;
    margin-bottom: 4px;
}
.btn-idporten:hover { background: #1447B0; }
.btn-idporten-ikon { font-size: 1.3rem; }
.btn-idporten-sub {
    font-size: 0.78rem;
    font-weight: 400;
    opacity: 0.85;
}

/* Skillelinje */
.auth-deler {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 20px 0;
    color: #9CA3AF;
    font-size: 0.9rem;
}
.auth-deler::before,
.auth-deler::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #E5E7EB;
}

/* Skjema */
.auth-form { display: flex; flex-direction: column; gap: 16px; }

.auth-felt-gruppe { display: flex; flex-direction: column; gap: 6px; }

.auth-etikett {
    font-size: 0.88rem;
    font-weight: 600;
    color: #374151;
}

.auth-pakrevd { color: #EF4444; }

.auth-input {
    padding: 10px 14px;
    border: 1.5px solid #D1D5DB;
    border-radius: 7px;
    font-size: 1rem;
    color: #111827;
    transition: border-color 0.15s;
    width: 100%;
}
.auth-input:focus {
    outline: none;
    border-color: #2563EB;
    box-shadow: 0 0 0 3px rgba(37,99,235,0.12);
}

.auth-logg-inn-knapp {
    width: 100%;
    padding: 12px;
    font-size: 1rem;
    font-weight: 600;
    margin-top: 4px;
}

/* Meldinger */
.auth-melding {
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 0.92rem;
    margin-bottom: 16px;
}
.auth-melding--ok { background: #D1FAE5; color: #065F46; }
.auth-melding--feil { background: #FEE2E2; color: #991B1B; }

/* Bunn */
.auth-bunn {
    margin-top: 24px;
    text-align: center;
    font-size: 0.92rem;
    color: #6B7280;
}
.auth-registrer-lenke {
    color: #2563EB;
    font-weight: 600;
    text-decoration: none;
    margin-left: 6px;
}
.auth-registrer-lenke:hover { text-decoration: underline; }

/* Min side – profilredigering */
.ms-profil-skjema { width: 100%; }
.ms-profil-grid--edit { gap: 12px; }
.ms-profil-rad--edit { align-items: flex-start; flex-direction: column; gap: 4px; }
.ms-profil-input {
    padding: 8px 12px;
    border: 1.5px solid #D1D5DB;
    border-radius: 6px;
    font-size: 0.95rem;
    width: 100%;
    max-width: 320px;
    color: #111827;
}
.ms-profil-input:focus {
    outline: none;
    border-color: #2563EB;
}

/* Min side – ID-porten-lenke */
.ms-nav-idporten {
    color: #1A56DB !important;
    background: #EFF6FF;
    border-radius: 6px;
    font-weight: 600;
}
.ms-nav-idporten:hover { background: #DBEAFE !important; }

@media (max-width: 480px) {
    .auth-kort { padding: 28px 20px; }
}

/* ── Innlogget-navn i header ─────────────────────────────────────────── */
.katalog-innlogget-navn {
    font-size: 0.88rem;
    color: #374151;
    font-weight: 500;
    white-space: nowrap;
}

/* ── ID-porten kobling på Min side ──────────────────────────────────── */
.ms-idporten-koblet {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 20px;
    background: #D1FAE5;
    border-radius: 10px;
    border: 1px solid #A7F3D0;
}
.ms-idporten-koblet-ikon { font-size: 1.6rem; }
.ms-idporten-ukoblet { max-width: 480px; }

/* ── Vipps betalingsknapp ───────────────────────────────────────────────── */
.btn-vipps {
    background: #ff5b24;
    color: #fff;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-weight: 700;
    letter-spacing: 0.01em;
    margin-bottom: 10px;
}
.btn-vipps:hover { background: #e04d1a; }
.vipps-logo-btn { height: 22px; width: auto; filter: brightness(0) invert(1); }
.kasse-bekreft-sekundaer { margin-top: 4px; }
.status-venter { background: #fff3cd; color: #856404; border-radius: 6px; padding: 2px 8px; }
.status-venter_betaling { background: #fff3cd; color: #856404; }

.vipps-betaling-info { margin-top: 4px; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.vipps-badge { font-size: 0.72rem; padding: 2px 7px; border-radius: 10px; font-weight: 600; white-space: nowrap; }
.vipps-captured { background: #d1fae5; color: #065f46; }
.vipps-reserved { background: #fff3cd; color: #92400e; }
.vipps-beloep { font-size: 0.75rem; color: #374151; font-weight: 600; }

/* ── Kasse: tilbake-lenke og login-seksjon ─────────────────────── */
.kasse-tilbake { display: inline-flex; align-items: center; gap: 6px; color: #555; font-size: 0.9rem; text-decoration: none; margin-bottom: 20px; }
.kasse-tilbake:hover { color: #1a237e; }
.kasse-venstre { display: flex; flex-direction: column; gap: 0; }

.kasse-login-knapper { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.kasse-login-btn { flex: 1; min-width: 160px; text-align: center; padding: 14px 20px; font-size: 1rem; font-weight: 700; border-radius: 8px; text-decoration: none; display: flex; align-items: center; justify-content: center; box-sizing: border-box; height: 54px; }

.btn-login-epost { background: #fff; color: #1a237e; border: 2px solid #1a237e; }
.btn-login-epost:hover { background: #f0f4ff; }

.vipps-logo-tekst { font-style: italic; font-weight: 900; letter-spacing: -0.5px; }

.kasse-login-gjest { font-size: 0.85rem; color: #666; margin: 0; }
.kasse-login-gjest a { color: #1a237e; }
.kasse-gjest-lenke { text-decoration: underline; }

.kasse-oversikt-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.kasse-oversikt-rediger { font-size: 0.85rem; color: #1a237e; text-decoration: none; }
.kasse-oversikt-rediger:hover { text-decoration: underline; }

/* ═══════════════════════════════════════════════════════════════
   EKSPEDER RESEPT – Ansatt POS-modul
   ═══════════════════════════════════════════════════════════════ */

/* Statistikkrad */
.eksp-statistikk-rad {
    display: flex;
    gap: 16px;
    margin-bottom: 28px;
}
.eksp-stat-kort {
    flex: 1;
    background: #fff;
    border-radius: 10px;
    padding: 18px 20px;
    text-align: center;
    border: 2px solid #e0e0e0;
    box-shadow: 0 2px 6px rgba(0,0,0,.05);
}
.eksp-stat-tall { font-size: 2rem; font-weight: 800; line-height: 1; }
.eksp-stat-etikett { font-size: 0.82rem; color: #666; margin-top: 4px; }
.eksp-stat-ok   { border-color: #c8e6c9; } .eksp-stat-ok   .eksp-stat-tall { color: #2e7d32; }
.eksp-stat-feil { border-color: #ffcdd2; } .eksp-stat-feil .eksp-stat-tall { color: #c62828; }
.eksp-stat-venter { border-color: #fff9c4; } .eksp-stat-venter .eksp-stat-tall { color: #f57f17; }

/* Skjema */
.eksp-skjema-seksjon {
    background: #fff;
    border-radius: 12px;
    padding: 24px 28px;
    margin-bottom: 28px;
    border: 1px solid #e8eaf0;
    box-shadow: 0 2px 8px rgba(0,0,0,.06);
}
.eksp-skjema-seksjon h2 { margin: 0 0 20px 0; font-size: 1.1rem; color: #1a237e; }
.eksp-skjema-rad {
    display: flex;
    gap: 16px;
    margin-bottom: 14px;
    flex-wrap: wrap;
}
.eksp-felt { display: flex; flex-direction: column; flex: 1; min-width: 200px; }
.eksp-felt label { font-size: 0.82rem; font-weight: 600; color: #444; margin-bottom: 5px; }
.eksp-felt-bred { flex: 2; }
.eksp-felt-smal { flex: 0 0 140px; min-width: 120px; }
.eksp-input-uuid { font-family: monospace; font-size: 0.85rem; }
.eksp-input-readonly { background-color: #f5f5f5; color: #555; cursor: default; }
.eksp-varenr-wrapper { display: flex; gap: 6px; align-items: center; }
.eksp-spinner { font-size: 1rem; }
.eksp-eik-resultat { font-size: 0.78rem; margin-top: 4px; min-height: 16px; }
.eksp-skjema-knapper { margin-top: 20px; }
.eksp-send-knapp { font-size: 1rem; padding: 12px 28px; }

/* Historikk */
.eksp-historikk-seksjon {
    background: #fff;
    border-radius: 12px;
    padding: 24px 28px;
    border: 1px solid #e8eaf0;
    box-shadow: 0 2px 8px rgba(0,0,0,.06);
}
.eksp-historikk-seksjon h2 { margin: 0 0 18px 0; font-size: 1.1rem; color: #1a237e; }
.eksp-resept-id { font-family: monospace; font-size: 0.82rem; color: #555; }
.eksp-rad-feil { background: #fff8f8; }

/* Badges */
.eksp-badge {
    display: inline-block;
    padding: 2px 9px;
    border-radius: 10px;
    font-size: 0.75rem;
    font-weight: 600;
    white-space: nowrap;
}
.eksp-badge-ok     { background: #e8f5e9; color: #2e7d32; }
.eksp-badge-feil   { background: #ffebee; color: #c62828; cursor: help; }
.eksp-badge-venter { background: #fffde7; color: #f57f17; }

/* ── M9.1 FNR-oppslag ──────────────────────────────────────────────────── */
.eksp-pasient-navn {
    font-size: 1.05rem;
    font-weight: 600;
    color: #1565c0;
    margin: 12px 0 8px;
}

.eksp-resept-liste {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 8px;
}

.eksp-resept-kort {
    background: #f8fafe;
    border: 1.5px solid #c5d8f5;
    border-radius: 8px;
    padding: 12px 16px;
    cursor: pointer;
    min-width: 240px;
    max-width: 360px;
    flex: 1 1 240px;
    transition: border-color .15s, box-shadow .15s;
}
.eksp-resept-kort:hover {
    border-color: #1976d2;
    box-shadow: 0 2px 8px rgba(25,118,210,.15);
}
.eksp-resept-kort-valgt {
    border-color: #1976d2;
    background: #e3f0ff;
    box-shadow: 0 2px 10px rgba(25,118,210,.25);
}

.eksp-resept-kort-navn {
    font-weight: 600;
    font-size: .95rem;
    margin-bottom: 4px;
}

.eksp-resept-kort-detalj {
    font-size: .82rem;
    color: #555;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 4px;
}

.eksp-resept-status {
    color: #2e7d32;
    font-weight: 500;
}

.eksp-resept-kort-id {
    font-size: .72rem;
    color: #999;
    font-family: monospace;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ══════════════════════════════════════════════════════════════════════════
   Ansatt sidebar-layout (Reseptur/Kasse/Nettordrer/...)
   ══════════════════════════════════════════════════════════════════════════ */
.ansatt-layout {
    display: flex;
    min-height: 100vh;
    background: #f5f7fa;
}

.ansatt-sidebar {
    width: 240px;
    flex-shrink: 0;
    background: #1e293b;
    color: #e2e8f0;
    display: flex;
    flex-direction: column;
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
}

.sb-top {
    padding: 18px 20px;
    border-bottom: 1px solid #334155;
}
.sb-logo       { font-size: 1.15rem; font-weight: 700; color: #fff; }
.sb-apotek     { font-size: .78rem; color: #94a3b8; margin-top: 2px; }
.sb-bruker     { margin-top: 14px; padding-top: 12px; border-top: 1px solid #334155; }
.sb-bruker-navn  { font-weight: 600; font-size: .9rem; }
.sb-bruker-rolle { font-size: .72rem; color: #64748b; text-transform: uppercase; letter-spacing: .4px; }

.sb-moduler { display: flex; flex-direction: column; padding: 8px 0; }

.sb-lenke {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 20px;
    color: #cbd5e1;
    text-decoration: none;
    font-size: .92rem;
    border-left: 3px solid transparent;
    transition: background .12s, border-color .12s, color .12s;
}
.sb-lenke:hover { background: #334155; color: #fff; }
.sb-lenke.sb-aktiv {
    background: #0f172a;
    color: #fff;
    border-left-color: #38bdf8;
    font-weight: 600;
}
.sb-ikon { font-size: 1.1rem; width: 22px; text-align: center; }
.sb-tekst { flex: 1; }
.sb-badge {
    background: #38bdf8;
    color: #0f172a;
    border-radius: 10px;
    padding: 1px 8px;
    font-size: .72rem;
    font-weight: 700;
    min-width: 18px;
    text-align: center;
}
.sb-badge-varsel { background: #f97316; color: #fff; }
.sb-skille { height: 1px; background: #334155; margin: 8px 14px; }
.sb-lenke-logout { color: #94a3b8; }
.sb-lenke-logout:hover { background: #7f1d1d; color: #fff; }

.ansatt-hovedinnhold {
    flex: 1;
    padding: 24px 32px;
    overflow-x: auto;
}
.ansatt-sidetittel {
    margin: 0 0 20px 0;
    color: #1e293b;
    font-size: 1.6rem;
    font-weight: 700;
}
.ansatt-underarbeid {
    background: #fff;
    padding: 40px;
    border-radius: 10px;
    border: 2px dashed #cbd5e1;
    text-align: center;
    color: #64748b;
}
.ansatt-underarbeid h2 { margin: 0 0 10px 0; color: #1e293b; }

/* M22 merknader i historikk-tabellen */
.eksp-m22-merknader {
    font-size: .78rem;
    color: #b91c1c;
    white-space: pre-wrap;
    margin-top: 4px;
    max-width: 280px;
    line-height: 1.3;
}
