﻿/* =========================================================
   ACCRO — SINGLE SOURCE OF TRUTH (NO CONFLICTS)
   Drawer system:
   - Drawer element: .app-sidenav
   - Open class:     .app-sidenav.is-open
   - Overlay:        .nav-overlay
   - Overlay open:   .nav-overlay.is-open
========================================================= */

/* =========================================================
   THEME TOKENS
========================================================= */
:root {
    --brand: #3b82f6;
    --brand-2: #2563eb;
    --ink: #0f172a;
    --muted: rgba(15,23,42,.68);
    --border: rgba(15,23,42,.10);
    --border-soft: rgba(15,23,42,.08);
    --shadow: 0 .75rem 2rem rgba(0,0,0,.06);
    --sidenav-width: 320px; /* desktop fixed width */
    --card-radius: 16px;
    --card-pad: 16px;
    --drawer-w: min(82vw, 320px); /* mobile drawer width */
}

/* =========================================================
   BASE / DEFAULTS
========================================================= */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html, body {
    height: 100%;
    margin: 0;
    padding: 0;
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", "Apple Color Emoji","Segoe UI Emoji";
    color: var(--ink);
    background: transparent;
}

a, .btn-link {
    color: #2563eb;
}

    a:hover, .btn-link:hover {
        color: #1d4ed8;
    }

.btn-primary {
    color: #fff;
    background-color: #2563eb;
    border-color: #1d4ed8;
}

    .btn-primary:hover {
        background-color: #1d4ed8;
        border-color: #1e40af;
    }

.btn:focus,
.btn:active:focus,
.btn-link.nav-link:focus,
.form-control:focus,
.form-check-input:focus {
    box-shadow: 0 0 0 .1rem #fff, 0 0 0 .25rem rgba(59,130,246,.35);
}

/* Content padding (desktop) */
.content {
    padding-top: 1.1rem;
}

@media (max-width: 991.98px) {
    .content {
        padding-top: 0;
    }
}

/* Validation */
.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid #e50000;
}

.validation-message {
    color: #e50000;
}

.darker-border-checkbox.form-check-input {
    border-color: #929292;
}

/* =========================================================
   PAGE SHELL BACKGROUND (NO PURPLE)
========================================================= */
.page-shell {
    position: relative;
    overflow: hidden;
    min-height: 100vh;
    background: radial-gradient(1200px 600px at 15% -10%, rgba(59,130,246,.18), transparent 55%), linear-gradient(180deg, #f8fafc 0%, #ffffff 55%, #f8fafc 100%);
}

    .page-shell::before {
        content: "";
        position: absolute;
        inset: 0;
        background-image: radial-gradient(rgba(2,6,23,.06) 1px, transparent 1px);
        background-size: 24px 24px;
        opacity: .35;
        pointer-events: none;
    }

    .page-shell::after {
        content: "";
        position: absolute;
        inset: -200px -200px auto auto;
        width: 520px;
        height: 520px;
        background: radial-gradient(circle at 30% 30%, rgba(14,165,233,.22), transparent 55%);
        filter: blur(18px);
        opacity: .7;
        pointer-events: none;
    }

.section-pad {
    padding-top: 3rem;
    padding-bottom: 3rem;
}

/* =========================================================
   CRITICAL: REMOVE BLAZOR TEMPLATE SIDEBAR GRADIENT
   (The purple/blue bar you see on the left)
========================================================= */
.sidebar,
.page > .sidebar,
.sidebar .top-row,
.sidebar .navbar,
.sidebar .navbar-brand,
.sidebar .nav-scrollable {
    background: transparent !important;
    background-image: none !important;
}

    /* Some templates set color/opacity on nav links globally */
    .sidebar a,
    .sidebar .nav-link {
        color: inherit;
        opacity: 1;
    }

/* =========================================================
   LAYOUT: SIDENAV + MAIN (DESKTOP)
   - IMPORTANT: main must NOT use margin-left hacks.
========================================================= */
.page {
    display: flex;
    min-height: 100vh;
}

    /* Sidebar wrapper holds the NavShell/NavMenu */
    .page > .sidebar {
        flex: 0 0 var(--sidenav-width);
        width: var(--sidenav-width);
    }

    /* Main fills remaining width */
    .page > main,
    .main {
        flex: 1 1 auto;
        min-width: 0;
        margin-left: 0; /* <-- removes the weird offset bug */
    }

/* Mobile: sidebar wrapper takes no space because drawer is fixed */
@media (max-width: 991.98px) {
    .page {
        display: block;
    }

        .page > .sidebar {
            width: 0 !important;
            flex: 0 0 0 !important;
        }

        .page > main, .main {
            margin-left: 0 !important;
        }
}

/* =========================================================
   NAV / SIDENAV — BASE + DESKTOP
========================================================= */

/* Neutralize template defaults (but keep ours visible) */
.nav-scrollable {
    background: transparent !important;
}

    .nav-scrollable form button.nav-link {
        background: transparent !important;
        border: 0 !important;
        width: 100%;
        text-align: left;
    }

/* Sidenav container */
.app-sidenav {
    position: sticky; /* desktop */
    top: 0;
    height: 100vh;
    width: var(--sidenav-width);
    /* IMPORTANT: needed because we use ::before absolute */
    position: sticky;
    top: 0;
    overflow: hidden;
    background: radial-gradient(900px 520px at -10% 10%, rgba(59,130,246,.06), transparent 55%), linear-gradient(180deg, rgba(248,250,252,.96) 0%, rgba(255,255,255,.94) 55%, rgba(248,250,252,.96) 100%);
    border-right: 1px solid rgba(15,23,42,.10);
    display: flex;
    flex-direction: column;
    transform: none; /* desktop: no drawer transform */
}

    .app-sidenav::before {
        content: "";
        position: absolute;
        inset: 0;
        pointer-events: none;
        opacity: .18;
        background-image: radial-gradient(rgba(2,6,23,.07) 1px, transparent 1px);
        background-size: 26px 26px;
    }

    .app-sidenav > * {
        position: relative;
        z-index: 1;
    }

/* Header */
.sidenav-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 12px 16px;
    flex: 0 0 auto;
}

.sidenav-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--ink);
}

.sidenav-header {
    padding: 4px 8px !important;
    gap: 6px !important;
}

.sidenav-brand {
    gap: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
}

.brand-logo {
    height: 72px !important;
    width: auto !important;
    max-width: 220px !important;
    display: block;
    margin: 0 !important;
}

/* Scroll area */
.app-sidenav .nav-scrollable {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    padding: 6px 10px 14px 10px;
}

/* Nav items */
.nav-groups {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.nav-group {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.nav-group-title {
    padding: 8px 10px 2px 10px;
    font-size: .75rem;
    color: rgba(15,23,42,.55);
    text-transform: uppercase;
    letter-spacing: .08em;
}

.nav-link.nav-item,
button.nav-link.nav-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 10px;
    border-radius: 10px;
    color: rgba(15,23,42,.82) !important;
    text-decoration: none;
    line-height: 1.1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

    .nav-link.nav-item:hover,
    button.nav-link.nav-item:hover {
        background: rgba(15,23,42,.035) !important;
        color: rgba(15,23,42,.92) !important;
    }

    .nav-link.nav-item.active {
        background: rgba(59,130,246,.08) !important;
        color: var(--ink) !important;
        font-weight: 700;
        position: relative;
    }

        .nav-link.nav-item.active::before {
            content: "";
            position: absolute;
            left: 6px;
            top: 10px;
            bottom: 10px;
            width: 3px;
            border-radius: 999px;
            background: rgba(59,130,246,.65);
        }

.nav-ic {
    width: 20px;
    min-width: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    opacity: .88;
}

.nav-txt {
    overflow: hidden;
    text-overflow: ellipsis;
}

.nav-toggle {
    width: 100%;
    border: 0;
    background: transparent;
    text-align: left;
}

    .nav-toggle:focus {
        outline: none;
        box-shadow: none;
    }

.nav-left {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.nav-chev {
    opacity: .55;
    margin-left: auto;
}

.nav-sub {
    margin-left: 10px;
    padding-left: 10px;
    border-left: 1px dashed rgba(15,23,42,.12);
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.nav-subitem {
    padding: 9px 10px;
    border-radius: 10px;
}

.nav-footer {
    margin-top: 6px;
    padding-top: 6px;
    border-top: 1px solid rgba(15,23,42,.10);
}

.nav-btn {
    width: 100%;
    border: 0 !important;
    background: transparent !important;
    text-align: left;
}

/* =========================================================
   MOBILE DRAWER (ONE IMPLEMENTATION ONLY)
   - Drawer opens via .app-sidenav.is-open (transform)
   - Overlay covers only the area to the RIGHT of the drawer
   - Hamburger always clickable (z-index above all)
========================================================= */

/* Hidden by default (desktop) */
.nav-overlay {
    display: none;
}

.nav-mobile-toggle {
    display: none;
}

@media (max-width: 991.98px) {

    /* Hamburger: always reachable */
    .nav-mobile-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        position: fixed;
        top: 10px;
        left: 10px;
        width: 44px;
        height: 44px;
        border: 1px solid rgba(15,23,42,.10);
        background: rgba(255,255,255,.92);
        backdrop-filter: blur(8px);
        border-radius: 12px;
        font-size: 26px;
        line-height: 1;
        cursor: pointer;
        color: var(--ink);
        z-index: 4000; /* above drawer + overlay */
        pointer-events: auto;
    }

    /* Drawer becomes fixed and hidden off-screen */
    .app-sidenav {
        position: fixed;
        top: 0;
        left: 0;
        bottom: 0;
        width: var(--drawer-w);
        height: 100dvh;
        min-height: 100dvh;
        transform: translateX(-110%);
        transition: transform .22s ease;
        z-index: 3001; /* above overlay */
        pointer-events: auto;
    }

        .app-sidenav.is-open {
            transform: translateX(0);
        }

    /* Overlay covers only outside drawer */
    .nav-overlay {
        display: block;
        position: fixed;
        top: 0;
        bottom: 0;
        left: var(--drawer-w);
        right: 0;
        background: rgba(0,0,0,.45);
        opacity: 0;
        pointer-events: none;
        transition: opacity .22s ease;
        z-index: 3000; /* below drawer and button */
    }

        .nav-overlay.is-open {
            opacity: 1;
            pointer-events: auto;
        }

    /* Safety: ensure drawer content clickable */
    .app-sidenav,
    .app-sidenav * {
        pointer-events: auto;
    }
}

/* =========================================================
   DASHBOARD (Projects / Time)
========================================================= */
.dash-head {
    padding: 2px 2px 0 2px;
}

.dash-title {
    font-size: 1.25rem;
    font-weight: 800;
    letter-spacing: .2px;
}

.dash-subtitle {
    font-size: .95rem;
}

.dash-card {
    border: 1px solid var(--border-soft);
    border-radius: var(--card-radius);
    box-shadow: var(--shadow);
}

    .dash-card .card-body {
        padding: var(--card-pad);
    }

    .dash-card .card-header {
        border-bottom: 1px solid var(--border-soft);
        background: rgba(248,250,252,.65);
    }

.dash-card-title {
    font-weight: 800;
    letter-spacing: .15px;
}

.dash-card-sub {
    font-size: .9rem;
}

.dash-badge {
    background: rgba(59,130,246,.12);
    border: 1px solid rgba(59,130,246,.22);
    color: #1d4ed8;
    font-weight: 700;
}

.dash-badge-soft {
    background: rgba(15,23,42,.04);
    border: 1px solid rgba(15,23,42,.08);
    color: rgba(15,23,42,.75);
    font-weight: 700;
}

.dash-badge-warn {
    background: rgba(245,158,11,.14);
    border: 1px solid rgba(245,158,11,.22);
    color: #92400e;
    font-weight: 700;
}

.dash-seg {
    display: inline-flex;
    background: rgba(15,23,42,.04);
    border: 1px solid rgba(15,23,42,.08);
    border-radius: 999px;
    padding: 3px;
    gap: 3px;
}

.dash-seg-btn {
    border: 0;
    background: transparent;
    padding: .55rem .85rem;
    border-radius: 999px;
    font-weight: 800;
    color: rgba(15,23,42,.78);
}

    .dash-seg-btn.active {
        background: #fff;
        border: 1px solid rgba(15,23,42,.10);
        box-shadow: 0 .35rem 1.2rem rgba(0,0,0,.06);
        color: var(--ink);
    }

/* KPI */
.kpi {
    border: 1px solid rgba(15,23,42,.08);
    background: linear-gradient(180deg, rgba(255,255,255,.86), rgba(255,255,255,.72));
    border-radius: 14px;
    padding: 12px 12px;
    height: 100%;
}

.kpi-compact {
    padding: 10px 10px;
}

.kpi-label {
    font-size: .82rem;
    color: rgba(15,23,42,.62);
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
    margin-bottom: 6px;
}

.kpi-value {
    font-weight: 900;
    font-size: 1.3rem;
    letter-spacing: .2px;
    line-height: 1.1;
}

.kpi-unit {
    font-size: .9rem;
    font-weight: 800;
    color: rgba(15,23,42,.55);
    margin-left: 4px;
}

.kpi-mini {
    font-size: .86rem;
    color: #6c757d;
    margin-top: 6px;
}

/* Search */
.dash-search {
    width: min(360px, 100%);
}

    .dash-search .input-group-text {
        background: rgba(15,23,42,.04);
        border-color: rgba(15,23,42,.10);
    }

    .dash-search .form-control {
        border-color: rgba(15,23,42,.10);
    }

/* Progress */
.dash-progress {
    height: 10px;
    border-radius: 999px;
    background: rgba(15,23,42,.06);
    overflow: hidden;
}

    .dash-progress .progress-bar {
        background: linear-gradient(90deg, rgba(37,99,235,.85), rgba(59,130,246,.85));
        border-radius: 999px;
    }

/* Tables */
.dash-table-wrap {
    border: 1px solid rgba(15,23,42,.08);
    border-radius: 14px;
    overflow: hidden;
}

.dash-table {
    margin: 0;
}

    .dash-table thead th {
        position: sticky;
        top: 0;
        z-index: 2;
        background: rgba(248,250,252,.92);
        border-bottom: 1px solid rgba(15,23,42,.10);
    }

.dash-th {
    font-size: .82rem;
    color: rgba(15,23,42,.70);
    text-transform: uppercase;
    letter-spacing: .08em;
    font-weight: 900;
}

.dash-td {
    vertical-align: middle;
}

.dash-pill {
    display: inline-flex;
    align-items: center;
    padding: .25rem .55rem;
    border-radius: 999px;
    border: 1px solid rgba(15,23,42,.10);
    background: rgba(255,255,255,.75);
    font-weight: 800;
    font-size: .85rem;
}

.dash-row.is-selected {
    outline: 2px solid rgba(59,130,246,.18);
    background: rgba(59,130,246,.06);
}

.dash-expand td {
    padding: 0 !important;
    border-top: 0;
}

.dash-expand-inner {
    padding: 14px;
    background: radial-gradient(900px 300px at 10% 0%, rgba(59,130,246,.10), transparent 60%), linear-gradient(180deg, rgba(248,250,252,.80), rgba(255,255,255,.90));
    border-top: 1px solid rgba(15,23,42,.08);
}

.mini-card {
    border: 1px solid rgba(15,23,42,.08);
    border-radius: 14px;
    background: rgba(255,255,255,.86);
    padding: 12px;
    height: 100%;
}

.mini-card-title {
    font-weight: 900;
    letter-spacing: .2px;
    margin-bottom: 8px;
}

.mini-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 4px 0;
}

.dash-hr {
    border: 0;
    border-top: 1px solid rgba(15,23,42,.10);
    margin: 14px 0;
}

.dash-subtable thead th {
    background: rgba(248,250,252,.92);
}

.dash-subtable tfoot th,
.dash-subtable tfoot td {
    background: rgba(248,250,252,.65);
    font-weight: 900;
}

.dash-foot {
    background: rgba(248,250,252,.80);
}

    .dash-foot th, .dash-foot td {
        border-top: 1px solid rgba(15,23,42,.12) !important;
        font-weight: 900;
    }

/* =========================================================
   HERO
========================================================= */
.hero-wrap {
    position: relative;
    background: radial-gradient(1100px 500px at 20% -10%, rgba(59,130,246,.20), transparent 55%), linear-gradient(180deg, rgba(15,23,42,.78), rgba(15,23,42,.65));
    border-bottom: 1px solid rgba(0,0,0,.06);
}

.hero-bg {
    position: relative;
    border-radius: 1.25rem;
    overflow: hidden;
    box-shadow: 0 1.25rem 3rem rgba(0,0,0,.18);
    border: 1px solid rgba(255,255,255,.12);
    background: #0b1220;
}

    .hero-bg img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        opacity: .92;
        display: block;
        transform: scale(1.02);
    }

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(2,6,23,.90) 0%, rgba(2,6,23,.70) 45%, rgba(2,6,23,.12) 80%, rgba(2,6,23,0) 100%);
}

.hero-content {
    position: absolute;
    inset: 0;
    padding: 2.25rem;
    display: flex;
    align-items: center;
}

.hero-card {
    max-width: 680px;
    color: #fff;
}

    .hero-card .lead {
        color: rgba(255,255,255,.82);
    }

.hero-accent {
    color: #93c5fd;
}

@media (max-width: 991.98px) {
    .hero-content {
        padding: 1.5rem;
    }

    .hero-overlay {
        background: linear-gradient(180deg, rgba(2,6,23,.86) 0%, rgba(2,6,23,.62) 55%, rgba(2,6,23,.18) 100%);
    }

    .hero-card {
        max-width: 100%;
    }
}

@media (max-width: 575.98px) {
    .hero-content {
        padding: 1.25rem;
    }
}

/* Chart boxes */
.dash-chart-box {
    position: relative;
    width: 100%;
}

.dash-chart-box-lg {
    height: 360px;
}

.dash-chart-box-sm {
    height: 360px;
}

.dash-chart-box canvas {
    width: 100% !important;
    height: 100% !important;
    display: block;
}

/* =========================================================
   FINANCIAL FORECAST
========================================================= */
.fin-forecast .page-title {
    font-weight: 900;
    letter-spacing: .2px;
}

.fin-forecast .card {
    border: 1px solid var(--border-soft);
    border-radius: var(--card-radius);
    box-shadow: var(--shadow);
}

    .fin-forecast .card .card-header {
        background: rgba(248,250,252,.65);
        border-bottom: 1px solid var(--border-soft);
    }

.fin-forecast .dash-muted {
    color: rgba(15,23,42,.62);
    font-size: .92rem;
}

.fin-forecast .dash-big {
    font-size: 2.05rem;
    font-weight: 900;
    line-height: 1.1;
    letter-spacing: .2px;
}

.fin-forecast .dash-divider {
    border-top: 1px solid rgba(15,23,42,.10);
    margin: 1rem 0;
}

.fin-forecast .dash-pill {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    padding: .30rem .65rem;
    border-radius: 999px;
    border: 1px solid rgba(15,23,42,.10);
    background: rgba(255,255,255,.78);
    font-weight: 900;
    font-size: .85rem;
}

.fin-forecast .dash-chart-box {
    border: 1px solid rgba(15,23,42,.08);
    border-radius: 14px;
    background: rgba(255,255,255,.86);
    padding: 12px;
}

.fin-forecast .nav-tabs {
    border-bottom: 1px solid rgba(15,23,42,.10);
}

    .fin-forecast .nav-tabs .nav-link {
        border: 0;
        border-bottom: 2px solid transparent;
        font-weight: 800;
        color: rgba(15,23,42,.70);
    }

        .fin-forecast .nav-tabs .nav-link:hover {
            color: rgba(15,23,42,.88);
            background: rgba(15,23,42,.03);
        }

        .fin-forecast .nav-tabs .nav-link.active {
            color: var(--ink);
            background: transparent;
            border-bottom: 2px solid rgba(59,130,246,.75);
        }

.fin-forecast .cashflow-table-wrapper {
    max-height: 600px;
    overflow-y: auto;
    border: 1px solid rgba(15,23,42,.08);
    border-radius: 14px;
}

.fin-forecast .cashflow-table thead th {
    position: sticky;
    top: 0;
    background: rgba(248,250,252,.92);
    z-index: 2;
    border-bottom: 1px solid rgba(15,23,42,.10);
}

.fin-forecast .cashflow-table tfoot th,
.fin-forecast .cashflow-table tfoot td {
    position: sticky;
    bottom: 0;
    background: rgba(248,250,252,.92);
    z-index: 2;
    border-top: 1px solid rgba(15,23,42,.10);
}

.fin-forecast canvas {
    width: 100% !important;
    display: block;
}

/* =========================================================
   OFFER RESPOND (Public link page) — NO PURPLE
========================================================= */
.offer-respond-page {
    width: 100%;
    min-height: calc(100vh - 40px);
    display: grid;
    place-items: center;
    padding: 28px 16px;
    background: radial-gradient(900px 420px at 20% 0%, rgba(59,130,246,.12), transparent 55%), linear-gradient(180deg, #f7f7fb, #ffffff);
    font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
    color: #111827;
}

    .offer-respond-page .offer-card {
        width: min(860px, 100%);
        background: rgba(255,255,255,.92);
        border: 1px solid rgba(15,23,42,.10);
        border-radius: 18px;
        box-shadow: 0 18px 55px rgba(17,24,39,.10);
        overflow: hidden;
        backdrop-filter: blur(6px);
    }

    .offer-respond-page .offer-card-header {
        padding: 22px 22px 14px;
        border-bottom: 1px solid rgba(15,23,42,.10);
        background: radial-gradient(900px 150px at 0% 0%, rgba(59,130,246,.14), transparent 60%);
    }

    .offer-respond-page .title {
        font-size: 22px;
        font-weight: 900;
        letter-spacing: -0.02em;
        margin-bottom: 6px;
    }

    .offer-respond-page .subtitle {
        color: rgba(15,23,42,.65);
        font-size: 14px;
        line-height: 1.35;
    }

    .offer-respond-page .offer-card-body {
        padding: 20px 22px 22px;
    }

    .offer-respond-page .pill-row {
        display: flex;
        gap: 10px;
        flex-wrap: wrap;
        margin-bottom: 14px;
    }

    .offer-respond-page .pill {
        display: inline-flex;
        align-items: center;
        gap: 8px;
        padding: 7px 11px;
        border-radius: 999px;
        border: 1px solid rgba(15,23,42,.10);
        background: rgba(248,250,252,.9);
        font-size: 13px;
        font-weight: 700;
    }

        .offer-respond-page .pill b {
            font-weight: 900;
        }

    .offer-respond-page .pill-muted {
        background: rgba(255,255,255,.85);
        color: rgba(15,23,42,.78);
    }

    .offer-respond-page .section {
        margin-top: 10px;
    }

    .offer-respond-page .label {
        display: block;
        font-weight: 900;
        font-size: 13px;
        margin-bottom: 8px;
        letter-spacing: .02em;
    }

    .offer-respond-page .textarea {
        width: 100%;
        min-height: 120px;
        resize: vertical;
        border: 1px solid rgba(15,23,42,.16);
        border-radius: 14px;
        padding: 12px 12px;
        font-size: 14px;
        outline: none;
        background: rgba(255,255,255,.95);
        transition: box-shadow 140ms ease, border-color 140ms ease, transform 140ms ease;
    }

        .offer-respond-page .textarea:focus {
            border-color: rgba(59,130,246,.60);
            box-shadow: 0 0 0 5px rgba(59,130,246,.14);
        }

    .offer-respond-page .hint {
        margin-top: 8px;
        color: rgba(15,23,42,.60);
        font-size: 12.5px;
    }

    .offer-respond-page .actions {
        display: flex;
        gap: 12px;
        margin-top: 16px;
        flex-wrap: wrap;
    }

    .offer-respond-page .offer-btn {
        border: 0;
        border-radius: 14px;
        padding: 12px 14px;
        font-weight: 900;
        font-size: 14px;
        cursor: pointer;
        display: inline-flex;
        align-items: center;
        gap: 10px;
        transition: transform 70ms ease, filter 120ms ease, opacity 120ms ease, box-shadow 140ms ease;
        box-shadow: 0 12px 26px rgba(17,24,39,.12);
        color: #fff;
        user-select: none;
    }

        .offer-respond-page .offer-btn:active {
            transform: translateY(1px);
        }

        .offer-respond-page .offer-btn:disabled {
            opacity: 0.65;
            cursor: not-allowed;
            box-shadow: none;
        }

    .offer-respond-page .btn-accept {
        background: linear-gradient(180deg, #22c55e, #16a34a);
    }

    .offer-respond-page .btn-reject {
        background: linear-gradient(180deg, #ef4444, #dc2626);
    }

    .offer-respond-page .offer-btn:hover:not(:disabled) {
        filter: brightness(1.03);
    }

    .offer-respond-page .status {
        margin-top: 16px;
        padding: 14px 14px;
        border-radius: 14px;
        border: 1px solid rgba(15,23,42,.10);
        background: rgba(248,250,252,.90);
        display: flex;
        gap: 12px;
        align-items: flex-start;
    }

    .offer-respond-page .status-title {
        font-weight: 950;
        margin-bottom: 6px;
    }

    .offer-respond-page .status-text {
        color: rgba(15,23,42,.78);
        line-height: 1.45;
        white-space: pre-wrap;
    }

    .offer-respond-page .status-info {
        border-color: rgba(59,130,246,.25);
        background: rgba(239,246,255,.95);
    }

    .offer-respond-page .status-success {
        border-color: rgba(34,197,94,.25);
        background: rgba(240,253,244,.95);
    }

    .offer-respond-page .status-error {
        border-color: rgba(239,68,68,.25);
        background: rgba(254,242,242,.95);
    }

    .offer-respond-page .details {
        margin-top: 10px;
        color: rgba(15,23,42,.80);
    }

        .offer-respond-page .details summary {
            cursor: pointer;
            font-weight: 900;
            color: rgba(15,23,42,.92);
            margin-bottom: 6px;
        }

        .offer-respond-page .details pre {
            background: #0b1220;
            color: #e5e7eb;
            padding: 12px;
            border-radius: 12px;
            overflow: auto;
            max-width: 100%;
            font-size: 12px;
            line-height: 1.4;
        }

    .offer-respond-page .spinner {
        width: 18px;
        height: 18px;
        border-radius: 999px;
        border: 3px solid rgba(59,130,246,0.25);
        border-top-color: rgba(59,130,246,0.95);
        animation: offer-respond-spin 900ms linear infinite;
        margin-top: 2px;
    }

    .offer-respond-page .btn-spinner {
        width: 14px;
        height: 14px;
        border-radius: 999px;
        border: 3px solid rgba(255,255,255,0.35);
        border-top-color: rgba(255,255,255,0.95);
        animation: offer-respond-spin 900ms linear infinite;
    }

@keyframes offer-respond-spin {
    to {
        transform: rotate(360deg);
    }
}

/* ================================
   FIX: Mobile topbar má ALDREI vera flex-item á desktop
   + stilla burger + logo á mobile
================================ */

/* Default: fela mobile-topbar alltaf */
.mobile-topbar {
    display: none;
}

/* ================================
   MOBILE/TABLET: drawer + topbar
   (keep existing behavior)
================================ */
@media (max-width: 991.98px) {

    /* topbar */
    .mobile-topbar {
        display: grid;
        grid-template-columns: 44px 1fr 44px;
        align-items: center;
        height: 64px;
        padding: 0 12px;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        background: rgba(255,255,255,.85);
        backdrop-filter: blur(8px);
        border-bottom: 1px solid rgba(15,23,42,.08);
        z-index: 3500;
    }

        .mobile-topbar .nav-mobile-toggle {
            position: static !important;
            width: 44px;
            height: 44px;
            font-size: 26px;
            line-height: 1;
        }

    .mobile-brand {
        justify-self: center;
        display: inline-flex;
        align-items: center;
        text-decoration: none;
    }

    /* ✅ bigger logo (your request) */
    .mobile-logo {
        height: 44px; /* TABLET default */
        width: auto;
        max-width: min(260px, 65vw);
        object-fit: contain;
        display: block;
    }

    /* push page content below topbar */
    .page > main {
        padding-top: 64px;
    }

    /* drawer base */
    .app-sidenav {
        position: fixed;
        left: 0;
        width: var(--drawer-w);
        transform: translateX(-110%);
        transition: transform .22s ease;
        z-index: 3001;
    }

        .app-sidenav.is-open {
            transform: translateX(0);
        }

    .nav-overlay {
        display: block;
        position: fixed;
        left: var(--drawer-w);
        right: 0;
        background: rgba(0,0,0,.45);
        opacity: 0;
        pointer-events: none;
        transition: opacity .22s ease;
        z-index: 3000;
    }

        .nav-overlay.is-open {
            opacity: 1;
            pointer-events: auto;
        }
}

/* PHONE: logo má vera stærra en tablet */
@media (max-width: 575.98px) {
    .mobile-logo {
        height: 56px; /* veldu 52–60 eftir smekk */
        max-width: min(300px, 70vw);
    }
}


/* ================================
   PHONE FIX: links/text not visible
   - force proper stacking order
   - ensure scroll area has height
   - allow wrapping
================================ */
@media (max-width: 575.98px) {

    :root {
        --mobile-topbar-h: 64px;
    }

    /* Drawer undir topbar + solid viewport fallback */
    .app-sidenav {
        top: var(--mobile-topbar-h) !important;
        left: 0;
        right: auto;
        bottom: 0 !important;
        /* Fallback: 100vh ef dvh/svh hegðar sér undarlega */
        height: calc(100vh - var(--mobile-topbar-h)) !important;
        height: calc(100svh - var(--mobile-topbar-h)) !important; /* iOS friendly */
        min-height: 0 !important;
        display: flex !important;
        flex-direction: column !important;
        overflow: hidden !important;
        background: #fff !important;
        z-index: 3001 !important;
    }

        /* Pseudo-element má ekki “sitja ofan á” */
        .app-sidenav::before {
            z-index: 0 !important;
            pointer-events: none !important;
            opacity: .08 !important;
        }

        /* Allt inni í drawer þarf að vera ofan á ::before */
        .app-sidenav > * {
            position: relative !important;
            z-index: 2 !important;
        }

    /* Overlay líka undir topbar */
    .nav-overlay {
        top: var(--mobile-topbar-h) !important;
        bottom: 0 !important;
    }

    /* ✅ Lykillinn: ekki reikna height – leyfa flex að gefa pláss */
    .app-sidenav .nav-scrollable {
        flex: 1 1 auto !important;
        min-height: 0 !important;
        overflow-y: auto !important;
        overflow-x: hidden !important;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 16px !important;
    }

    /* Wrap text */
    .app-sidenav .nav-link.nav-item,
    .app-sidenav button.nav-link.nav-item {
        white-space: normal !important;
        overflow: visible !important;
        text-overflow: clip !important;
        align-items: flex-start;
    }

    .app-sidenav .nav-txt {
        display: block !important;
        overflow: visible !important;
        line-height: 1.2 !important;
        word-break: break-word;
    }

    /* Force visible */
    .app-sidenav a,
    .app-sidenav .nav-link {
        opacity: 1 !important;
        visibility: visible !important;
        color: rgba(15,23,42,.92) !important;
    }
}


/* === OVERRIDE: stoppa risalógó í topbar === */
.mobile-topbar .mobile-logo {
    height: 44px !important; /* tablet/mobile default */
    width: auto !important;
    max-height: 44px !important;
    max-width: min(260px, 65vw) !important;
    object-fit: contain;
    display: block;
}

/* Phone: aðeins stærra */
@media (max-width: 575.98px) {
    .mobile-topbar .mobile-logo {
        height: 56px !important;
        max-height: 56px !important;
        max-width: min(300px, 70vw) !important;
    }
}

/* =========================================================
   FIX: Nav linkar sjást ekki á síma/tablet
   - template/scoped css getur sett .nav-scrollable { display:none; }
   - calc(...) getur líka gefið 0px hæð
   Lausn: flex layout + forced display + proper min-height
========================================================= */

@media (max-width: 991.98px) {

    /* Drawer undir topbar (ef þú notar topbar) */
    :root {
        --mobile-topbar-h: 64px;
    }

    .app-sidenav {
        top: var(--mobile-topbar-h) !important;
        height: calc(100dvh - var(--mobile-topbar-h)) !important;
        min-height: calc(100dvh - var(--mobile-topbar-h)) !important;
        /* ✅ Lykilatriði: flex column svo scroll svæðið fái pláss */
        display: flex !important;
        flex-direction: column !important;
        /* Ekki drepa innihaldið */
        overflow: hidden !important;
    }

    .sidenav-header {
        flex: 0 0 auto !important;
    }

    /* ✅ Lykilatriði: ekki display none og ekki hæð 0 */
    .app-sidenav .nav-scrollable {
        display: block !important; /* overrule template/scoped */
        flex: 1 1 auto !important; /* fyllir restina */
        min-height: 0 !important; /* IMPORTANT fyrir overflow í flex */
        overflow-y: auto !important;
        overflow-x: hidden !important;
        -webkit-overflow-scrolling: touch;
    }

    /* Bara til öryggis: nav sjálft á að vera sýnilegt */
    .app-sidenav .nav-groups,
    .app-sidenav nav,
    .app-sidenav .nav-group {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
    }

    /* Ef eitthvað scoped/template er að setja linka ósýnilega */
    .app-sidenav a,
    .app-sidenav .nav-link,
    .app-sidenav .nav-txt {
        opacity: 1 !important;
        visibility: visible !important;
    }
}

/* PHONE: leyfa texta að brjóta línu */
@media (max-width: 575.98px) {
    .app-sidenav .nav-link.nav-item,
    .app-sidenav button.nav-link.nav-item {
        white-space: normal !important;
        overflow: visible !important;
        text-overflow: clip !important;
        align-items: flex-start;
    }

    .app-sidenav .nav-txt {
        overflow: visible !important;
        word-break: break-word;
        line-height: 1.2;
    }
}


.search-pill {
    display: flex;
    gap: 10px;
    align-items: center;
    border: 1px solid rgba(0,0,0,0.08);
    background: #fff;
    padding: 10px 14px;
    border-radius: 999px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.06);
}

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

.modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(15,23,42,0.45);
    z-index: 2000;
}

.search-modal {
    position: fixed;
    top: 64px;
    right: 18px;
    width: min(980px, calc(100vw - 36px));
    border-radius: 18px;
    background: linear-gradient(180deg, #ffffff, #fbfbff);
    z-index: 1001;
    box-shadow: 0 30px 80px rgba(0,0,0,0.25);
    overflow: hidden;
    display: grid;
    grid-template-columns: 1fr;
}

.search-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 16px;
    background: linear-gradient(90deg, rgba(99,102,241,0.15), rgba(34,197,94,0.12));
    border-bottom: 1px solid rgba(0,0,0,0.06);
}

    .search-header .title {
        font-weight: 700;
        display: flex;
        gap: 10px;
        align-items: center;
    }

.icon-btn {
    border: 0;
    background: transparent;
    width: 40px;
    height: 40px;
    border-radius: 12px;
}

    .icon-btn:hover {
        background: rgba(0,0,0,0.05);
    }

.search-body {
    padding: 14px 16px;
}

.search-input-row {
    display: flex;
    gap: 10px;
    align-items: center;
}

.search-input {
    flex: 1;
    padding: 12px 12px;
    border-radius: 14px;
    border: 1px solid rgba(0,0,0,0.12);
    outline: none;
}

    .search-input:focus {
        border-color: rgba(99,102,241,0.55);
        box-shadow: 0 0 0 4px rgba(99,102,241,0.15);
    }

.primary-btn {
    border: 0;
    background: linear-gradient(90deg, #6366f1, #22c55e);
    color: white;
    padding: 12px 14px;
    border-radius: 14px;
    font-weight: 700;
}

    .primary-btn:hover {
        filter: brightness(0.98);
    }

.results {
    margin-top: 14px;
    display: grid;
    gap: 10px;
}

.result-card {
    border: 1px solid rgba(0,0,0,0.06);
    background: white;
    border-radius: 16px;
    padding: 12px 12px;
    box-shadow: 0 12px 30px rgba(0,0,0,0.05);
}

.result-top {
    display: flex;
    justify-content: space-between;
    gap: 10px;
}

.result-title {
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 10px;
}

.result-desc {
    margin-top: 6px;
    color: rgba(0,0,0,0.7);
}

.pill {
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(99,102,241,0.10);
    color: rgba(67,56,202,1);
    font-weight: 700;
    white-space: nowrap;
}

.result-actions {
    margin-top: 10px;
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

.link-btn, .go-btn {
    border: 1px solid rgba(0,0,0,0.08);
    background: #fff;
    padding: 10px 12px;
    border-radius: 12px;
}

.go-btn {
    border: 0;
    background: rgba(34,197,94,0.15);
}

.details {
    border-top: 1px solid rgba(0,0,0,0.06);
    background: linear-gradient(180deg, rgba(99,102,241,0.05), rgba(34,197,94,0.04));
}

.details-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
}

.details-title {
    font-weight: 900;
    display: flex;
    gap: 10px;
    align-items: center;
}

.details-body {
    padding: 0 16px 16px 16px;
}

.kv {
    display: grid;
    grid-template-columns: 140px 1fr;
    gap: 12px;
    padding: 8px 0;
}

.k {
    font-weight: 800;
    color: rgba(0,0,0,0.7);
}

.v code {
    background: rgba(0,0,0,0.06);
    padding: 2px 6px;
    border-radius: 8px;
}

.friendly {
    margin: 10px 0 14px 0;
    background: white;
    border: 1px solid rgba(0,0,0,0.06);
    border-radius: 14px;
    padding: 12px;
}

.empty-state {
    margin-top: 16px;
    padding: 20px;
    border: 1px dashed rgba(0,0,0,0.18);
    border-radius: 16px;
    text-align: center;
    color: rgba(0,0,0,0.7);
}

.empty-ic {
    font-size: 28px;
    margin-bottom: 6px;
}

/* Backdrop er ok, en modal þarf að takmarka hæð */
.search-modal {
    position: fixed;
    inset: 6vh auto auto 50%;
    transform: translateX(-50%);
    width: min(1100px, 96vw);
    max-height: 88vh; /* ✅ takmarka hæð */
    display: flex; /* ✅ header/body/details layout */
    flex-direction: column;
    overflow: hidden; /* ✅ ekki scrolla heildar boxið */
    z-index: 2001;
}

/* Body fær scroll ef leitarniðurstöður verða langar */
.search-body {
    overflow: auto; /* ✅ scroll */
    padding: 16px;
    flex: 1 1 auto; /* ✅ tekur plássið */
    min-height: 0; /* ✅ mikilvægt í flex til að overflow virki */
}

/* Details panel: líka scroll */
.details {
    border-top: 1px solid rgba(0,0,0,.08);
    display: flex;
    flex-direction: column;
    max-height: 44vh; /* ✅ eða 88vh ef þetta er hliðarpanel */
    overflow: hidden;
}

/* Header fastur, body scrolar */
.details-body {
    overflow: auto; /* ✅ scroll */
    padding: 16px;
    flex: 1 1 auto;
    min-height: 0; /* ✅ overflow fix í flex */
}

/* (valfrjálst) gera layout “tveggja dálka” á desktop */
@media (min-width: 992px) {
    .search-modal {
        flex-direction: row; /* vinstri: leit, hægri: details */
        align-items: stretch;
    }

    .search-body {
        flex: 1 1 60%;
        max-height: 88vh;
    }

    .details {
        flex: 0 0 40%;
        max-height: 88vh;
        border-top: 0;
        border-left: 1px solid rgba(0,0,0,.08);
    }
}

.topbar {
    width: 100%;
}

.topbar-lang select {
    min-width: 140px;
}


/* ===== Search modal: force correct stacking + clickability ===== */
.modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(15,23,42,0.45);
    z-index: 2000; /* ✅ above most UI */
}

.search-modal {
    position: fixed;
    z-index: 2001; /* ✅ always above backdrop */
    pointer-events: auto;
}

    .search-modal * {
        pointer-events: auto; /* ✅ prevents weird overlay issues */
    }

/* Make sure the input is clickable/focusable even if something is funky */
.search-input {
    position: relative;
    z-index: 1;
}

/* Ensure desktop topbar lang is hidden on mobile and mobile-lang is visible */
@media (max-width:991.98px) {
 .topbar-lang { display: none !important; }
 .mobile-lang { display: inline-flex; align-items: center; gap:8px; justify-self: end; }

 /* Ensure mobile topbar is above overlay and drawer */
 .mobile-topbar { z-index:3502; }
 .mobile-lang { z-index:3503; position: relative; }
}

/* On desktop, hide mobile-lang */
@media (min-width:992px) {
 .mobile-lang { display: none !important; }
}

/* =========================================================
   DESKTOP / MOBILE NAV — CLEAN SINGLE IMPLEMENTATION
   Assumes:
   - MainLayout stays as <div class="page"><NavShell /> ...
   - NavShell owns _navOpen and renders .nav-desktop-toggle
   - NavMenu root is .app-sidenav and gets .is-open when open
========================================================= */

/* Keep wide tables/charts scrollable */
.dash-table-wrap,
.table-responsive {
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch;
}

.nav-desktop-toggle {
    display: none;
}

/* =========================
   DESKTOP
========================= */
@media (min-width: 992px) {

    /* Sidebar width is controlled by nav open state */
    .page {
        display: grid !important;
        grid-template-columns: 0 minmax(0, 1fr) !important;
        min-height: 100vh !important;
        transition: grid-template-columns .22s ease;
    }

    .page:has(.app-sidenav.is-open) {
        grid-template-columns: var(--sidenav-width) minmax(0, 1fr) !important;
    }

    .page > .sidebar {
        width: auto !important;
        min-width: 0 !important;
        flex: unset !important;
        overflow: visible !important;
    }

    .page > .sidebar .app-sidenav {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        bottom: 0 !important;
        width: var(--sidenav-width) !important;
        height: 100vh !important;
        transform: translateX(-110%);
        opacity: 0;
        pointer-events: none;
        transition: transform .22s ease, opacity .22s ease;
        z-index: 3001 !important;
        box-shadow: var(--shadow);
    }

    .page > .sidebar .app-sidenav.is-open {
        transform: translateX(0) !important;
        opacity: 1 !important;
        pointer-events: auto !important;
    }

    .page > main,
    .main {
        min-width: 0 !important;
        margin-left: 0 !important;
        overflow-x: hidden !important;
    }

    /* Desktop hamburger is always visible */
    .nav-desktop-toggle {
        display: inline-flex !important;
        align-items: center;
        justify-content: center;
        position: fixed;
        top: 10px;
        width: 44px;
        height: 44px;
        border: 1px solid rgba(15,23,42,.10);
        background: rgba(255,255,255,.92);
        backdrop-filter: blur(8px);
        border-radius: 12px;
        font-size: 26px;
        line-height: 1;
        cursor: pointer;
        color: var(--ink);
        z-index: 4000;
        transition: left .22s ease;
    }

    .page:not(:has(.app-sidenav.is-open)) .nav-desktop-toggle {
        left: 12px;
    }

    .page:has(.app-sidenav.is-open) .nav-desktop-toggle {
        left: calc(var(--sidenav-width) + 12px);
    }

    /* Prevent overlap with the topbar content */
    .topbar {
        padding-left: 64px;
    }

    .nav-overlay {
        display: none !important;
    }

    .mobile-topbar {
        display: none !important;
    }

    .mobile-lang {
        display: none !important;
    }
}

/* =========================
   MOBILE / TABLET
========================= */
@media (max-width: 991.98px) {

    .nav-desktop-toggle {
        display: none !important;
    }

    .mobile-topbar {
        display: grid !important;
        grid-template-columns: 44px 1fr 44px;
        align-items: center;
        height: 64px;
        padding: 0 12px;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        background: rgba(255,255,255,.85);
        backdrop-filter: blur(8px);
        border-bottom: 1px solid rgba(15,23,42,.08);
        z-index: 3502;
    }

    .mobile-topbar .nav-mobile-toggle {
        position: static !important;
        display: inline-flex !important;
        align-items: center;
        justify-content: center;
        width: 44px;
        height: 44px;
        font-size: 26px;
        line-height: 1;
    }

    .mobile-lang {
        display: inline-flex !important;
        align-items: center;
        gap: 8px;
        justify-self: end;
        z-index: 3503;
        position: relative;
    }

    .topbar-lang {
        display: none !important;
    }

    .page {
        display: block !important;
    }

    .page > .sidebar {
        width: 0 !important;
        flex: 0 0 0 !important;
    }

    .page > main,
    .main {
        margin-left: 0 !important;
    }

    .page > main {
        padding-top: 64px;
    }

    .app-sidenav {
        position: fixed !important;
        top: 64px !important;
        left: 0 !important;
        bottom: 0 !important;
        width: var(--drawer-w) !important;
        height: calc(100dvh - 64px) !important;
        min-height: calc(100dvh - 64px) !important;
        transform: translateX(-110%);
        transition: transform .22s ease;
        z-index: 3001 !important;
        overflow: hidden !important;
        display: flex !important;
        flex-direction: column !important;
        background: #fff !important;
        opacity: 1 !important;
        pointer-events: auto !important;
    }

    .app-sidenav.is-open {
        transform: translateX(0) !important;
    }

    .app-sidenav::before {
        z-index: 0 !important;
        pointer-events: none !important;
        opacity: .08 !important;
    }

    .app-sidenav > * {
        position: relative !important;
        z-index: 2 !important;
    }

    .sidenav-header {
        flex: 0 0 auto !important;
    }

    .app-sidenav .nav-scrollable {
        display: block !important;
        flex: 1 1 auto !important;
        min-height: 0 !important;
        overflow-y: auto !important;
        overflow-x: hidden !important;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 16px !important;
    }

    .app-sidenav .nav-groups,
    .app-sidenav nav,
    .app-sidenav .nav-group {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
    }

    .app-sidenav a,
    .app-sidenav .nav-link,
    .app-sidenav .nav-txt {
        opacity: 1 !important;
        visibility: visible !important;
        color: rgba(15,23,42,.92) !important;
    }

    .nav-overlay {
        display: block !important;
        position: fixed;
        top: 64px !important;
        bottom: 0 !important;
        left: var(--drawer-w);
        right: 0;
        background: rgba(0,0,0,.45);
        opacity: 0;
        pointer-events: none;
        transition: opacity .22s ease;
        z-index: 3000;
    }

    .nav-overlay.is-open {
        opacity: 1;
        pointer-events: auto;
    }
}

/* =========================
   PHONE text wrapping
========================= */
@media (max-width: 575.98px) {
    .app-sidenav .nav-link.nav-item,
    .app-sidenav button.nav-link.nav-item {
        white-space: normal !important;
        overflow: visible !important;
        text-overflow: clip !important;
        align-items: flex-start;
    }

    .app-sidenav .nav-txt {
        overflow: visible !important;
        word-break: break-word;
        line-height: 1.2;
    }

    .mobile-topbar .mobile-logo {
        height: 56px !important;
        max-height: 56px !important;
        max-width: min(300px, 70vw) !important;
    }
}

.dash-chart-box {
    position: relative;
    width: 100%;
}

    .dash-chart-box canvas {
        width: 100% !important;
        height: 100% !important;
    }

.dash-chart-box-sm {
    height: 220px;
}

.dash-chart-box-md {
    height: 260px;
}

.dash-chart-box-lg {
    height: 320px;
}
