:root {
    --bg: #0f172a;
    --bg-soft: #111827;
    --panel: #ffffff;
    --panel-soft: #f8fafc;
    --line: #e5e7eb;
    --text: #0f172a;
    --muted: #64748b;
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --danger: #dc2626;
    --danger-soft: #fef2f2;
    --success: #16a34a;
    --success-soft: #f0fdf4;
    --warning: #d97706;
    --warning-soft: #fff7ed;
    --radius: 18px;
    --shadow: 0 16px 40px rgba(15, 23, 42, 0.08);
}

* {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
    font-family: Inter, Arial, Helvetica, sans-serif;
    color: var(--text);
    background: #eef2ff;
}

a {
    color: var(--primary);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

strong {
    font-weight: 700;
}

.login-body {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: radial-gradient(circle at top left, #1e3a8a, #0f172a 50%, #020617 100%);
}

.login-card {
    width: 100%;
    max-width: 460px;
    background: rgba(255,255,255,0.98);
    border-radius: 26px;
    box-shadow: 0 24px 70px rgba(0,0,0,0.28);
    padding: 32px;
}

.login-brand,
.brand {
    display: flex;
    align-items: center;
    gap: 14px;
}

.brand-badge {
    width: 52px;
    height: 52px;
    border-radius: 16px;
    background: linear-gradient(135deg, #2563eb, #1e40af);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    letter-spacing: 0.04em;
    box-shadow: 0 14px 30px rgba(37, 99, 235, 0.35);
}

.login-brand h1,
.brand h1 {
    margin: 0;
    font-size: 1.5rem;
}

.login-brand p,
.brand p,
.topbar p,
.panel-head p,
.login-note,
.muted,
.info-label,
.stat-label {
    margin: 4px 0 0;
    color: var(--muted);
    font-size: 0.95rem;
}

.app-shell {
    display: grid;
    grid-template-columns: 300px 1fr;
    min-height: 100vh;
}

.sidebar {
    background: linear-gradient(180deg, #0f172a 0%, #111827 100%);
    color: #fff;
    padding: 28px 22px;
    position: sticky;
    top: 0;
    height: 100vh;
}

.sidebar .brand h1,
.sidebar .brand p {
    color: #fff;
}

.nav-links {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 28px;
}

.nav-links a {
    color: #dbeafe;
    padding: 13px 14px;
    border-radius: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: 0.2s ease;
}

.nav-links a:hover,
.nav-links a.active {
    background: rgba(255,255,255,0.08);
    color: #fff;
}

.main-content {
    padding: 28px;
}

.topbar {
    margin-bottom: 24px;
}

.topbar h2,
.panel-head h3 {
    margin: 0;
    font-size: 1.55rem;
}

.panel {
    background: var(--panel);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    border: 1px solid rgba(255,255,255,0.6);
    padding: 24px;
    margin-bottom: 24px;
}

.panel-head {
    margin-bottom: 18px;
}

.panel-head-row,
.actions-row,
.toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.narrow-panel {
    max-width: 900px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
    margin-bottom: 24px;
}

.stat-card {
    background: linear-gradient(180deg, #ffffff, #f8fafc);
    border-radius: var(--radius);
    padding: 22px;
    box-shadow: var(--shadow);
    border: 1px solid var(--line);
}

.stat-card-warning {
    background: linear-gradient(180deg, #fff7ed, #fffbeb);
    border-color: #fed7aa;
}

.stat-value {
    display: block;
    font-size: 2rem;
    margin-top: 10px;
}

.content-grid {
    display: grid;
    gap: 24px;
}

.two-col {
    grid-template-columns: 380px 1fr;
}

.two-col-wide {
    grid-template-columns: 1.1fr 1fr;
}

.single-mobile {
    grid-template-columns: 1fr;
}

.form-panel {
    align-self: start;
}

.stack-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.form-grid {
    display: grid;
    gap: 16px;
}

.form-grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.form-grid-3 { grid-template-columns: 2fr 1fr 1fr; }
.form-grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

label {
    font-weight: 700;
    font-size: 0.95rem;
}

input,
select,
textarea,
button {
    font: inherit;
}

input,
select,
textarea {
    width: 100%;
    padding: 13px 14px;
    border: 1px solid #dbe3ef;
    border-radius: 14px;
    background: #fff;
    color: var(--text);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: #93c5fd;
    box-shadow: 0 0 0 4px rgba(59,130,246,0.12);
}

textarea {
    resize: vertical;
    min-height: 120px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 0;
    border-radius: 14px;
    padding: 12px 16px;
    cursor: pointer;
    font-weight: 700;
    text-decoration: none;
    transition: transform 0.15s ease, opacity 0.2s ease, background 0.2s ease;
}

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

.btn-block {
    width: 100%;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #fff;
}

.btn-secondary {
    background: #e2e8f0;
    color: #0f172a;
}

.btn-danger {
    background: #fee2e2;
    color: #991b1b;
}

.btn-ghost {
    background: #f8fafc;
    color: #334155;
    border: 1px solid #e2e8f0;
}

.btn-small {
    padding: 9px 12px;
    border-radius: 12px;
    font-size: 0.88rem;
}

.alert {
    border-radius: 16px;
    padding: 14px 16px;
    margin-bottom: 20px;
    border: 1px solid transparent;
    font-weight: 600;
}

.alert-success {
    background: var(--success-soft);
    border-color: #bbf7d0;
    color: #166534;
}

.alert-danger {
    background: var(--danger-soft);
    border-color: #fecaca;
    color: #991b1b;
}

.table-wrap {
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
    min-width: 760px;
}

thead th {
    text-align: left;
    padding: 14px 12px;
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #64748b;
    border-bottom: 1px solid var(--line);
    background: #f8fafc;
}

tbody td {
    padding: 14px 12px;
    border-bottom: 1px solid #eef2f7;
    vertical-align: top;
}

tbody tr:hover {
    background: #f8fbff;
}

.empty-row {
    text-align: center;
    color: var(--muted);
    padding: 22px !important;
}

.table-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.badge {
    display: inline-flex;
    align-items: center;
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.04em;
}

.badge-success {
    background: #dcfce7;
    color: #166534;
}

.badge-danger {
    background: #fee2e2;
    color: #991b1b;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    background: var(--panel-soft);
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 18px;
    margin-bottom: 18px;
}

.info-label {
    display: block;
    margin-bottom: 6px;
}

.text-danger {
    color: var(--danger);
    font-weight: 700;
}

.toolbar input {
    min-width: 320px;
    flex: 1;
}

@media (max-width: 1200px) {
    .stats-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .two-col,
    .two-col-wide {
        grid-template-columns: 1fr;
    }

    .form-grid-4,
    .form-grid-3 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 900px) {
    .app-shell {
        grid-template-columns: 1fr;
    }

    .sidebar {
        position: relative;
        height: auto;
    }

    .main-content {
        padding: 18px;
    }

    .stats-grid,
    .form-grid-2,
    .form-grid-3,
    .form-grid-4,
    .info-grid {
        grid-template-columns: 1fr;
    }

    .toolbar input {
        min-width: 0;
        width: 100%;
    }
}

.product-thumb {
    width: 58px  !important;
    height: 58px !important;
    object-fit: cover;
    border-radius: 12px;
    border: 1px solid var(--line);
    background: #f8fafc;
}
.product-thumb-large {
    width: 150px;
    height: 150px;
    object-fit: cover;
    border-radius: 18px;
    border: 1px solid var(--line);
    background: #f8fafc;
}
.current-image-row {
    display: flex;
    gap: 16px;
    align-items: center;
    flex-wrap: wrap;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: #f8fafc;
}
.checkbox-row {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
}
.checkbox-row input { width: auto; }
.image-placeholder {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 58px;
    height: 58px;
    border-radius: 12px;
    background: #f1f5f9;
    color: var(--muted);
    font-size: 0.78rem;
    font-weight: 700;
}
table td img {
    max-width: 58px;
    max-height: 58px;
    width: 58px;
    height: 58px;
    object-fit: cover;
    display: block;
}
td:first-child {
    width: 70px;
    min-width: 70px;
}

/* Hard fix product photos in product table */
td > img.product-thumb {
    width: 58px !important;
    height: 58px !important;
    max-width: 58px !important;
    max-height: 58px !important;
    object-fit: cover !important;
    display: block !important;
}
.product-thumb {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    cursor: zoom-in;
    position: relative;
    z-index: 1;
}

.product-thumb:hover {
    transform: scale(3);
    position: absolute;
    z-index: 9999;
    box-shadow: 0 20px 50px rgba(0,0,0,0.35);
}
.table-wrap {
    overflow: visible !important;
}

table {
    overflow: visible !important;
}
.image-modal {
    display: none;
    position: fixed;
    z-index: 99999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.8);
    align-items: center;
    justify-content: center;
}

.image-modal img {
    max-width: 90%;
    max-height: 90%;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.5);
    background: #fff;
    padding: 10px;
    cursor: zoom-out;
}
/* =========================================================
   Mobiele optimalisatie - toegevoegd door ChatGPT
   Desktop blijft zoveel mogelijk hetzelfde; onderstaande regels
   werken vooral op tablets/telefoons.
   ========================================================= */

html,
body {
    max-width: 100%;
    overflow-x: hidden;
}

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

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

.data-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 760px;
}

@media (max-width: 900px) {
    .app-shell,
    .layout {
        display: block;
        width: 100%;
        min-height: 100vh;
    }

    .sidebar {
        position: static;
        width: 100%;
        height: auto;
        padding: 16px;
        border-radius: 0 0 22px 22px;
    }

    .sidebar .brand {
        align-items: flex-start;
    }

    .brand-badge {
        width: 44px;
        height: 44px;
        border-radius: 14px;
        flex: 0 0 auto;
    }

    .sidebar .brand h1,
    .login-brand h1,
    .brand h1 {
        font-size: 1.2rem;
        line-height: 1.2;
    }

    .nav-links,
    .nav {
        display: flex;
        flex-direction: row;
        gap: 8px;
        margin-top: 16px;
        overflow-x: auto;
        padding-bottom: 6px;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: thin;
    }

    .nav-links a,
    .nav a {
        flex: 0 0 auto;
        white-space: nowrap;
        padding: 10px 12px;
        border-radius: 12px;
        font-size: 0.92rem;
    }

    .main-content,
    .content {
        width: 100%;
        padding: 14px;
    }

    .topbar {
        margin-bottom: 14px;
    }

    .topbar h2,
    .panel-head h3 {
        font-size: 1.25rem;
        line-height: 1.25;
    }

    .panel {
        width: 100%;
        padding: 16px;
        margin-bottom: 16px;
        border-radius: 16px;
    }

    .panel-head-row,
    .actions-row,
    .toolbar {
        align-items: stretch;
    }

    .actions-row,
    .toolbar {
        display: grid;
        grid-template-columns: 1fr;
        width: 100%;
        gap: 10px;
    }

    .panel-head-row > *,
    .toolbar > *,
    .actions-row > * {
        min-width: 0;
    }

    .btn,
    button.btn,
    .toolbar button,
    .toolbar a {
        width: 100%;
        min-height: 44px;
    }

    input,
    select,
    textarea {
        font-size: 16px; /* voorkomt iPhone zoom bij invoer */
        padding: 12px 13px;
    }

    .stats-grid,
    .form-grid,
    .form-grid-2,
    .form-grid-3,
    .form-grid-4,
    .info-grid,
    .two-col,
    .two-col-wide,
    .content-grid {
        grid-template-columns: 1fr !important;
        gap: 12px;
    }

    .stat-card {
        padding: 16px;
        border-radius: 16px;
    }

    .stat-value {
        font-size: 1.55rem;
    }
}

@media (max-width: 760px) {
    body {
        background: #eef2ff;
    }

    .login-body {
        padding: 14px;
    }

    .login-card {
        padding: 22px;
        border-radius: 20px;
    }

    .table-wrap {
        overflow: visible !important;
        width: 100%;
    }

    table,
    .data-table {
        min-width: 0 !important;
        width: 100% !important;
    }

    table thead,
    .data-table thead {
        display: none;
    }

    table,
    table tbody,
    table tr,
    table td,
    .data-table,
    .data-table tbody,
    .data-table tr,
    .data-table td {
        display: block;
    }

    table tr,
    .data-table tr {
        background: #fff;
        border: 1px solid var(--line);
        border-radius: 16px;
        box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
        margin-bottom: 12px;
        padding: 10px;
        overflow: hidden;
    }

    table tbody tr:hover,
    .data-table tbody tr:hover {
        background: #fff;
    }

    table td,
    .data-table td {
        width: 100% !important;
        min-width: 0 !important;
        border: 0;
        border-bottom: 1px solid #eef2f7;
        padding: 9px 4px;
        overflow-wrap: anywhere;
        word-break: normal;
    }

    table td:last-child,
    .data-table td:last-child {
        border-bottom: 0;
    }

    table td::before,
    .data-table td::before {
        content: attr(data-label);
        display: block;
        margin-bottom: 4px;
        color: var(--muted);
        font-size: 0.74rem;
        font-weight: 800;
        letter-spacing: 0.04em;
        text-transform: uppercase;
    }

    table td[colspan]::before,
    .data-table td[colspan]::before {
        display: none;
    }

    .table-actions,
    td .table-actions {
        display: grid;
        grid-template-columns: 1fr;
        gap: 8px;
    }

    td .btn,
    .data-table td .btn {
        width: 100%;
        margin: 2px 0;
    }

    .product-thumb:hover {
        transform: none;
        position: static;
        box-shadow: none;
    }

    td:first-child {
        width: 100% !important;
        min-width: 0 !important;
    }

    td:first-child .product-thumb,
    td:first-child img.product-thumb,
    td > img.product-thumb {
        width: 74px !important;
        height: 74px !important;
        max-width: 74px !important;
        max-height: 74px !important;
    }

    .image-placeholder {
        width: 74px;
        height: 74px;
    }

    .product-thumb-large {
        width: 120px;
        height: 120px;
    }

    .current-image-row {
        align-items: flex-start;
    }
}

@media (max-width: 420px) {
    .main-content,
    .content {
        padding: 10px;
    }

    .panel {
        padding: 12px;
        border-radius: 14px;
    }

    .sidebar {
        padding: 14px 10px;
    }

    .nav-links a,
    .nav a {
        font-size: 0.86rem;
        padding: 9px 10px;
    }
}

/* -------------------------------------------------
   MBB UI + gebruiksgemak optimalisatie 2026-05-22
   Desktop blijft breed; mobiel krijgt compacte kaarten.
------------------------------------------------- */
html {
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
}

body {
    overflow-x: hidden;
}

::selection {
    background: rgba(37, 99, 235, 0.18);
}

.main-content {
    max-width: 1600px;
    width: 100%;
}

.topbar {
    background: rgba(255,255,255,0.72);
    border: 1px solid rgba(255,255,255,0.7);
    border-radius: 22px;
    padding: 18px 20px;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.05);
    backdrop-filter: blur(10px);
}

.panel,
.stat-card,
.login-card {
    transition: box-shadow 0.18s ease, transform 0.18s ease, border-color 0.18s ease;
}

.panel:hover,
.stat-card:hover {
    box-shadow: 0 20px 48px rgba(15, 23, 42, 0.10);
}

.panel-head-row {
    align-items: flex-start;
}

.panel-head h3,
.topbar h2 {
    letter-spacing: -0.02em;
}

.nav-links a {
    display: flex;
    align-items: center;
    min-height: 44px;
}

.nav-links a.active {
    box-shadow: inset 3px 0 0 #93c5fd;
}

.btn,
input,
select,
textarea {
    min-height: 44px;
}

.btn:disabled,
button:disabled,
input[type="submit"]:disabled {
    opacity: 0.65;
    cursor: wait;
    transform: none !important;
}

.btn:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 3px solid rgba(37,99,235,0.24);
    outline-offset: 2px;
}

input[type="checkbox"],
input[type="radio"] {
    min-height: 0;
    accent-color: var(--primary);
}

.table-wrap {
    border-radius: 16px;
}

thead th {
    position: sticky;
    top: 0;
    z-index: 2;
}

tbody tr:nth-child(even) {
    background: #fcfdff;
}

.table-actions .btn {
    white-space: nowrap;
}

.badge {
    white-space: nowrap;
}

.alert {
    box-shadow: 0 10px 26px rgba(15, 23, 42, 0.06);
}

.empty-row {
    background: #f8fafc;
    border-radius: 14px;
}

img {
    max-width: 100%;
    height: auto;
}

.product-thumb,
.product-thumb-large {
    image-rendering: auto;
}

#reader {
    overflow: hidden;
    border-radius: 18px;
    border: 1px solid var(--line);
    background: #f8fafc;
}

@media (min-width: 901px) {
    .sidebar {
        overflow-y: auto;
    }

    .sidebar::-webkit-scrollbar {
        width: 8px;
    }

    .sidebar::-webkit-scrollbar-thumb {
        background: rgba(255,255,255,0.18);
        border-radius: 999px;
    }
}

@media (max-width: 900px) {
    .topbar {
        margin-bottom: 14px;
        padding: 14px;
        border-radius: 18px;
    }

    .brand-badge {
        width: 42px;
        height: 42px;
        border-radius: 13px;
    }

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

    .brand p {
        display: none;
    }

    .actions-row,
    .toolbar,
    .panel-head-row {
        align-items: stretch;
    }

    .actions-row > *,
    .toolbar > * {
        flex: 1 1 100%;
    }

    .actions-row .btn,
    .toolbar .btn {
        width: 100%;
    }
}

@media (max-width: 760px) {
    table tr,
    .data-table tr {
        position: relative;
    }

    table td::before,
    .data-table td::before {
        opacity: 0.85;
    }

    table td:empty,
    .data-table td:empty {
        display: none;
    }

    .btn {
        min-height: 46px;
        padding: 12px 14px;
    }

    input,
    select,
    textarea {
        font-size: 16px;
    }

    .panel-head {
        margin-bottom: 12px;
    }

    .panel-head p,
    .topbar p {
        font-size: 0.88rem;
    }

    .stat-card {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
    }

    .stat-value {
        margin-top: 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
    }
}

/* MBB KOR weergave */
.kor-advanced-field {
    display: none !important;
}
.kor-compact-field select {
    font-weight: 600;
}
.muted {
    color: #64748b;
    margin: 0;
}


/* Productgalerij */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 14px;
}

.gallery-card {
    border: 1px solid var(--border, #e5e7eb);
    border-radius: 14px;
    background: var(--surface, #fff);
    padding: 10px;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.06);
}

.gallery-card img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 10px;
    display: block;
    background: #f3f4f6;
}

.gallery-card-body {
    margin-top: 10px;
    display: grid;
    gap: 8px;
}

.gallery-card-body label {
    font-size: 0.78rem;
    opacity: 0.8;
}

.muted-text {
    color: var(--muted, #64748b);
    font-size: 0.9rem;
}

@media (max-width: 760px) {
    .gallery-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }
}

/* Voorraadtelling samenvatting */
.summary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 12px;
    margin: 14px 0;
}

.summary-card {
    border: 1px solid var(--border, #e2e8f0);
    border-radius: 14px;
    padding: 14px;
    background: var(--panel, #ffffff);
}

.summary-card span {
    display: block;
    font-size: 0.85rem;
    color: var(--muted, #64748b);
    margin-bottom: 6px;
}

.summary-card strong {
    display: block;
    font-size: 1.3rem;
}

/* -------------------------------------------------
   Top navigatie zonder zijmenu - toegevoegd 2026-05-30
------------------------------------------------- */
.app-shell-topnav {
    display: block;
    min-height: 100vh;
}

.app-shell-topnav .main-content {
    max-width: 1600px;
    margin: 0 auto;
    padding: 18px 24px 28px;
}

.app-top-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    flex-wrap: wrap;
    margin-bottom: 22px;
}

.topbar-brand {
    min-width: 280px;
}

.topbar-brand h1 {
    margin: 0;
    font-size: 1.35rem;
    letter-spacing: -0.02em;
}

.top-nav-links {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 8px;
    margin-top: 0;
    overflow-x: auto;
    padding-bottom: 4px;
    max-width: 100%;
}

.top-nav-links a {
    color: #1e293b;
    background: #f8fafc;
    border: 1px solid #e5e7eb;
    border-radius: 999px;
    min-height: 38px;
    padding: 9px 13px;
    white-space: nowrap;
    box-shadow: none;
}

.top-nav-links a:hover,
.top-nav-links a.active {
    background: #2563eb;
    border-color: #2563eb;
    color: #ffffff;
    text-decoration: none;
}

.top-nav-links a.active {
    box-shadow: none;
}

@media (max-width: 900px) {
    .app-shell-topnav .main-content {
        padding: 12px;
    }

    .app-top-header {
        align-items: flex-start;
        border-radius: 18px;
    }

    .topbar-brand {
        min-width: 0;
        width: 100%;
    }

    .top-nav-links {
        width: 100%;
    }

    .top-nav-links a {
        flex: 0 0 auto;
        font-size: 0.9rem;
    }
}
