/* ------------------------------------------------------------
   LeanVal resAPI / CoAnalyst – Global Styles
   ------------------------------------------------------------ */

@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;500;700&family=Roboto+Slab:wght@400;600;700&display=swap');

html,
body {
    font-family: var(--typography-font-family-base);
    font-size: var(--typography-body-size);
    line-height: var(--typography-line-height);
    color: var(--typography-font-color-base);
    margin: 0;
    padding: 0;
    background-color: var(--neutral-gray-50);
}

.container {
    max-width: var(--layout-container-max);
    margin: 0 auto;
}

/* -----------------------------------
   Typography
----------------------------------- */
h1,
.h1 {
    font-family: var(--typography-font-family-title);
    font-size: var(--typography-h1-size);
    font-weight: var(--typography-fw-bold);
    margin-top: var(--space-md);
    margin-bottom: var(--space-md);
    color: var(--h1-color, var(--palette-blue-500));
}

h2,
.h2 {
    font-family: var(--typography-font-family-base);
    font-size: var(--typography-h2-size);
    font-weight: var(--typography-fw-bold);
    margin-top: var(--space-lg);
    margin-bottom: var(--space-md);
    color: var(--brand-secondary);
}

h3,
.h3 {
    font-family: var(--typography-font-family-base);
    font-size: var(--typography-h3-size);
    font-weight: var(--typography-fw-bold);
    margin-top: var(--space-md);
    margin-bottom: var(--space-sm);
    color: var(--h3-color, var(--brand-primary));
}

h4,
.h4 {
    font-size: var(--typography-h4-size);
    font-weight: var(--typography-fw-semibold);
    margin-top: var(--space-sm);
    margin-bottom: var(--space-xs);
    color: var(--typography-font-color-gray);
}

h5,
.h5 {
    font-size: var(--typography-h5-size);
    font-weight: var(--typography-fw-normal);
    margin-top: var(--space-xs);
    margin-bottom: var(--space-xs);
    color: var(--typography-font-color-gray);
}

h6,
.h6 {
    font-size: var(--typography-h6-size);
    font-weight: var(--typography-fw-normal);
    margin-top: 0;
    margin-bottom: var(--space-xs);
    color: var(--typography-font-color-gray);
}

p {
    font-size: var(--typography-body-size);
    color: var(--typography-font-color-base);
    margin-bottom: var(--space-sm);
    line-height: var(--typography-line-height);
}

/* Bold shortcuts */
.fw-bold {
    font-weight: var(--typography-fw-bold);
}

.fw-normal {
    font-weight: var(--typography-fw-normal);
}

/* -----------------------------------
   Spacing Utilities
----------------------------------- */
.mt-xs {
    margin-top: var(--space-xs);
}

.mt-sm {
    margin-top: var(--space-sm);
}

.mt-md {
    margin-top: var(--space-md);
}

.mt-lg {
    margin-top: var(--space-lg);
}

.mt-xl {
    margin-top: var(--space-xl);
}

.mt-xxl {
    margin-top: var(--space-xxl);
}

/* -----------------------------------
   Logos & Images
----------------------------------- */
.brand-logo {
    height: auto;
    display: block;
    margin-bottom: var(--space-md);
}

.logo-research {
    width: var(--logo-width-research);
}

.logo-coanalyst {
    width: var(--logo-width-coanalyst);
}

.logo-company {
    width: var(--image-company-logo-width);
    height: var(--image-company-logo-height);
}

/* -----------------------------------
   Tables
----------------------------------- */
.table {
    width: 100%;
    border-collapse: collapse;
}

.table-bordered td {
    border-top: var(--border-thin);
    border-bottom: var(--border-thin);
}

.comment-table td {
    vertical-align: middle;
    padding: var(--space-sm);
    text-align: left;
    /* ursprünglich: center */
}

.comment-table td:first-child {
    font-weight: var(--typography-fw-bold);
    text-align: left;
    white-space: nowrap;
}

/* wenn ich andere Spalten zentrieren will:
.comment-table td:nth-child(2),
.comment-table td:nth-child(n+2) {
    text-align: center;
}
*/
.comment-text {
    white-space: pre-wrap;
}

/* CoAnalyst table */
.table-fixed {
    width: var(--layout-table-width);
    margin: 0 auto;
}

.coanalyst-table td {
    vertical-align: middle;
    border-bottom: var(--border-thin);
    border-top: var(--border-thin);
    padding: var(--space-sm);
    text-align: left;
}

.coanalyst-table td:nth-child(2) {
    text-align: left;
}

/* Column widths via colgroup */
col.w-300 {
    width: 300px;
}

col.w-550 {
    width: 550px;
}

col.w-150 {
    width: 150px;
}

col.w-140 {
    width: 140px;
}

col.w-130 {
    width: 130px;
}

/* -----------------------------------
   Links
----------------------------------- */
a {
    color: var(--brand-primary);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* -----------------------------------
   Alerts & Helpers
----------------------------------- */
.alert {
    margin-top: var(--space-md);
    border-radius: var(--border-radius);
}

/* -----------------------------------
   Miscellaneous
----------------------------------- */
hr {
    border: none;
    border-top: var(--border-thin);
    margin: var(--space-lg) 0;
}

/* PORTFOLIOS.HTML*/

/* -----------------------------
   Grid (Kachel-Layout)
----------------------------- */
.tiles-grid {
    display: grid;
    grid-template-columns: 1fr;
    /* mobile: einspaltig */
    gap: var(--space-md, 16px);
}

/* ab ~Tablet: 12er Grid */
@media (min-width: 768px) {
    .tiles-grid {
        grid-template-columns: repeat(12, 1fr);
    }
}

/* Spalten-Utilities NUR innerhalb des Grids (präfix t-) */
.tiles-grid>.t-span-12 {
    grid-column: span 12;
}

@media (min-width: 768px) {
    .tiles-grid>.t-span-6 {
        grid-column: span 6;
    }

    .tiles-grid>.t-span-9 {
        grid-column: span 9;
    }

    .tiles-grid>.t-span-8 {
        grid-column: span 8;
    }

    .tiles-grid>.t-span-4 {
        grid-column: span 4;
    }

    .tiles-grid>.t-span-3 {
        grid-column: span 3;
    }

    .tiles-grid>.t-span-12 {
        grid-column: span 12;
    }
}

/* Fallback, falls Grid nicht unterstützt wird */
@supports not (display: grid) {
    .tiles-grid {
        display: flex;
        flex-wrap: wrap;
    }

    .tiles-grid>.tile {
        width: 100%;
    }

    @media (min-width: 768px) {
        .tiles-grid>.tile.span-6 {
            width: 50%;
        }
    }
}

/* -----------------------------
   Tiles
----------------------------- */
.tile {
    background: var(--surface, #fff);
    border: var(--border-thin, 1px) solid var(--border-color, #e6e6e6);
    border-radius: var(--radius-lg, 4px);
    /* #ak */
    box-shadow: var(--shadow-sm, 0 1px 3px rgba(0, 0, 0, .06));
    padding: var(--space-md, 16px);
    min-width: 0;
}

.tile-title {
    margin: 0 0 var(--space-sm, 8px);
    font-weight: var(--typography-fw-semibold, 600);
    /*font-size: 1.1rem;*/
}

.tile-no-padding {
    margin: 40px 0 0 0;
    padding: 0;
    background: transparent;
    border: none;
}


.tile h3,
.tile .h3 {
    margin-top: 0;
    margin-bottom: var(--space-sm, 8px);
}

.tile h3::after,
.tile .h3::after {
    content: "";
    display: block;
    width: 60px;
    /* Breite der Linie */
    height: 2.5px;
    /* Dicke der Linie */
    background-color: var(--h3-color, var(--neutral-gray-600));
    /* Farbe */
    margin-top: 4px;
    /*border-radius: 2px;*/
    /* optional für runde Enden */
}

.tile-body {
    line-height: 1.5;
}

/* “Prose”-Text (lange Absätze) */
.prose p {
    margin: 0 0 .75em;
}

.prose ul,
.prose ol {
    margin: 0 0 .75em 1.25em;
}

.prose-box {
    width: 100%;
    height: 480px;
    background: var(--neutral-white);
    overflow-y: auto;
    padding: 1em;
    box-sizing: border-box;
}

.prose-box-klein {
    width: 100%;
    height: 320px;
    background: var(--neutral-white);
    overflow-y: auto;
    padding: 1em;
    box-sizing: border-box;
}


/* Meta-Daten als kompakte Definition List */
.meta-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: .5rem .75rem;
}

.meta-list dt {
    font-weight: var(--typography-fw-bold, 700);
}

.meta-list dd {
    margin: 0;
}

@media (min-width: 600px) {
    .meta-list {
        grid-template-columns: 180px 1fr;
    }
}

/* Tabellen innerhalb von Tiles (rein für Daten, nicht Layout) */
.simple-table {
    width: 100%;
    border-collapse: collapse;
}

.simple-table th,
.simple-table td {
    padding: .5rem .6rem;
    border-bottom: var(--border-thin, 1px) solid var(--border-color, #e6e6e6);
    text-align: left;
    /* Standard: linksbündig = bessere Lesbarkeit */
}

/* Tabelle Rendite-Risiko */
.risk-table {
    width: 100%;
    border-collapse: collapse;
    text-align: center;
    font-size: 0.9rem;
}

.risk-table th {
    text-align: center;
    font-weight: var(--typography-fw-bold);
    padding-bottom: 4px;
}

.risk-table td {
    padding: 0.2rem 0.5rem !important;
    line-height: 1.1 !important;
}

.risk-table th:nth-child(1),
.risk-table td:nth-child(1) {
    text-align: left;
}

.risk-table th:nth-child(2),
.risk-table td:nth-child(2) {
    background-color: var(--palette-opal-100);
}

.risk-table tr:nth-child(8) {
    font-weight: var(--typography-fw-bold);
}


/* Table LARS */
.portfolio-table-lars {
    width: 100%;
    border-collapse: collapse;
    text-align: center;
    font-size: 0.9rem;
}

.portfolio-table-lars td {
    vertical-align: middle;
    padding: .35rem .5rem;
}

.portfolio-table-lars th:nth-child(1),
.portfolio-table-lars td:nth-child(1) {
    width: 90px;
    min-width: 90px;
    max-width: 90px;
}

.portfolio-table-lars th:nth-child(2),
.portfolio-table-lars td:nth-child(2) {
    width: 180px;
    min-width: 180px;
    max-width: 180px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-align: left;
}

.lars-cell-two-lines>div:first-child {
    font-weight: 600;
    line-height: 1.1;
}

.lars-cell-two-lines>div+div {
    font-weight: 400;
    line-height: 1.1;
}


/* Table NEWS */
.portfolio-table-news {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    font-size: 0.9rem;
}

.portfolio-table-news td {
    vertical-align: middle;
    padding: .35rem .5rem;
}

.portfolio-table-news th:nth-child(1),
.portfolio-table-news td:nth-child(1) {
    width: 90px;
    min-width: 90px;
    max-width: 90px;
}

.portfolio-table-news th:nth-child(2),
.portfolio-table-news td:nth-child(2) {
    width: 180px;
    min-width: 180px;
    max-width: 180px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-align: left;
}


/* Table TRANSACTIONS */
.portfolio-table-transactions {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    font-size: 0.9rem;
}

.portfolio-table-transactions td {
    vertical-align: middle;
    padding: .35rem .5rem;
}

.portfolio-table-transactions th:nth-child(1),
.portfolio-table-transactions td:nth-child(1) {
    width: 90px;
    min-width: 90px;
    max-width: 90px;
}

.portfolio-table-transactions th:nth-child(2),
.portfolio-table-transactions td:nth-child(2) {
    width: 180px;
    min-width: 180px;
    max-width: 180px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-align: left;
}

/* Table TRANSACTIONS HISTORIC */
.portfolio-table-trans_historic {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    font-size: 0.9rem;
}

.portfolio-table-trans_historic td {
    vertical-align: middle;
    padding: .35rem .5rem;
}

.portfolio-table-trans_historic th:nth-child(1),
.portfolio-table-trans_historic td:nth-child(1) {
    width: 90px;
    min-width: 90px;
    max-width: 90px;
}


/* Modus-Toggle-Gruppe */
.mode-toggles .lv-btn {
    background: var(--neutral-white);
    color: var(--palette-gold);
    border: 2px solid var(--palette-gold);
    margin: 10px 0 10px 0;
}

/* Aktiver Button („primary“) innerhalb der Gruppe */
.mode-toggles .lv-btn.primary {
    background: var(--palette-gold);
    color: var(--neutral-white);
    border: 2px solid var(--palette-gold);
}

/* Optional: Hover für nicht-aktive Buttons */
.mode-toggles .lv-btn:not(.primary):hover {
    background: var(--palette-gold-100);
    color: var(--palette-gold);
    opacity: 0.95;
}

/* Button Anmeldung Research-Plattform */
.lv-btn-center {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    /* Falls schmaler Bildschirm, umbrechen */
    gap: 16px;
}

.lv-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 250px;
    height: 50px;
    background: var(--palette-gold);
    color: var(--neutral-white);
    text-decoration: none;
    border-radius: 10px;
    letter-spacing: .2px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, .08);
    transition: transform .06s ease, box-shadow .2s ease, opacity .2s ease;
    border: none;
    cursor: pointer;
}

.lv-btn:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, .12);
    background: var(--palette-gold-400);
    color: var(--neutral-white);
    opacity: .96;
}

.lv-btn:active {
    transform: translateY(1px);
}

.lv-btn:focus {
    outline: 2px solid #99873e;
    outline-offset: 3px;
}


/* Tables Allgemein */

.cell-icon {
    height: 14px;
    display: inline-block;
}

.cell-icon-report {
    height: 40px;
    display: inline-block;
}

.cell-icon-card {
    height: 100px;
    display: inline-block;
}

.cell-icon-separator {
    display: block;
    width: 100%;
    height: auto;
    max-width: 100%;
    object-fit: contain;
    margin: 0;
    padding: 0;
    border: none;
    background: transparent;
}


.cell-logo-img {
    max-height: 40px;
    max-width: 70px;
    height: auto;
    width: auto;
    object-fit: contain;
    vertical-align: middle;
}

.cell-news-text {
    white-space: normal;
}

.cell-research {
    color: #0066cc;
    /* schönes Blau */
    text-decoration: underline;
    font-weight: 500;
}

.cell-research:hover {
    color: #004a99;
    /* etwas dunkler beim Hover */
}

/* Factsheet als PDF */
.pdf-fs-thumbnail {
    display: block;
    max-width: 100%;
    max-height: 400px;
    height: auto;
    width: auto;
    object-fit: contain;
    margin: 0 auto;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    /* weicher Übergang */
    cursor: pointer;
    /* zeigt Hand-Cursor beim Drüberfahren */
}

.pdf-fs-thumbnail:hover {
    transform: scale(1.05);
    /* leicht vergrößern */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
    /* dezenter Schatten */
}

.pdf-fs-thumbnail:active {
    transform: scale(0.98);
    /* kleiner beim Klick */
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.svg-pto_logos {
    display: block;
    max-width: 100%;
    max-height: 400px;
    height: auto;
    width: auto;
    object-fit: contain;
    margin: 20 auto;

}

/* Tabelle Über-Untergewichtung */

.portfolio-table-weighting-index {
    width: 100%;
    border-collapse: separate;
    border-spacing: 20px;
    /* Abstand zwischen den Spalten */
}

.portfolio-table-weighting-index th {
    color: var(--neutral-white);
    font-size: 1.2rem;
    font-weight: 600;
    text-align: center;
    padding: 15px 10px;
    border-radius: 3px;
}

.col-overweight {
    background-color: var(--palette-island);
}

.col-neutral {
    background-color: var(--brand-primary);
}

.col-underweight {
    background-color: var(--palette-red);
}

.svg-weighting-index {
    display: block;
    max-width: 100%;
    max-height: 400px;
    height: auto;
    width: auto;
    object-fit: contain;
    margin: 20 auto;

}

/* Tabelle Card Dashboard*/
table#card {
    margin-top: 20px;
}

.card-h2-color {
    color: var(--brand-secondary);
}

.card-h3-color {
    color: var(--typography-font-color-base);
}

/* Standard Card-Styling */
.card-section {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    padding: 16px;
}

/* Hover-Effekt */
.card-section:hover {
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
    cursor: pointer;
}


/* Tabelle Monitoring Aktie*/
table#monitoring {
    width: 100%;
    border-collapse: collapse;
    border: 1px solid var(--border);
    font-size: 0.9rem;
    table-layout: fixed;
    margin-bottom: 30px;
}

#monitoring th,
#monitoring td {
    border: 1px solid var(--border);
    padding: 0.15rem 0.1rem;
    text-align: center;
    background: #fff;

}

#monitoring th {
    text-align: center;
    font-weight: 600;
    position: sticky;
    top: 0;
    z-index: 2;
}

/* Erste/letzte Spalte: feste Breiten */
#monitoring th:nth-child(1),
#monitoring td:nth-child(1) {
    width: 150px;
    min-width: 150px;
    max-width: 150px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-align: left;
}


#monitoring th:not(:first-child):not(:last-child),
#monitoring td:not(:first-child):not(:last-child) {
    width: 40px;
    min-width: 40px;
    max-width: 40px;

}

#monitoring th:last-child,
#monitoring td:last-child {
    width: auto;
    min-width: 100px;
    text-align: left;
    padding: 0.15rem 0.5rem;
}


#monitoring th.rotate {
    height: 60px;
    white-space: nowrap;
    vertical-align: middle;
    padding: 0;
    position: relative;
}

#monitoring th.rotate>div {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%) rotate(-90deg);
    /*transform-origin: bottom left;*/
    /* passt so */
    white-space: nowrap;
}

#monitoring td.name {
    text-align: left;
    white-space: nowrap;
}

.name-line {
    font-weight: 600;
}

.isin-line {
    font-size: 0.85rem;
    color: var(--muted);
}

#monitoring td.signal {
    font-weight: 600;
}

.sticky-col {
    position: sticky;
    left: 0;
    z-index: 1;
    background: #fff;
}

/* Responsive Chart-Container (16:9) */
.chart-box {
    width: 100%;
    height: 480px;
    background: #f5f5f7;
}

.chart-box-klein {
    width: 100%;
    height: 120px;
    background: #f5f5f7;
}

.chart-box-perf {
    width: 100%;
    aspect-ratio: 16 / 12;
    /*
    height: 480px;
    height: 100%;
    aspect-ratio: 16 / 9;
    */
    /* moderner Weg */
    background: #f5f5f7;
}

.chart-box-area {
    width: 100%;
    aspect-ratio: 16 / 10;
    /*
    height: 480px;
    aspect-ratio: 16 / 9;
    */
    /* moderner Weg */
    background: #f5f5f7;
}

.chart-box-sector {
    width: 100%;
    aspect-ratio: 16 / 12;
    /*
    height: 480px;
    */
    background: #f5f5f7;
}

.chart-box-rendite {
    width: 100%;
    aspect-ratio: 16 / 12;
    /*
    height: 480px;
    */
    background: #f5f5f7;
}

/* Fallback für ältere Browser ohne aspect-ratio */
@supports not (aspect-ratio: 1) {
    .chart-box {
        position: relative;
        padding-top: 56.25%;
    }

    .chart-box>* {
        position: absolute;
        inset: 0;
    }
}

/* Kopfbereich */
.lv-header {
    margin: var(--space-lg, 24px) 0;
}

.lv-title {
    margin: .25rem 0 0;
    padding: 1rem .5rem .5rem .5rem;
}

.lv-subtitle {
    color: #555;
    padding: 1rem .5rem;
}


/* --- Hard mobile force: immer einspaltig unter 768px --- */
@media (max-width: 767px) {
    .tiles-grid {
        display: grid !important;
        grid-template-columns: 1fr !important;
    }

    .tiles-grid>* {
        grid-column: 1 / -1 !important;
        width: auto !important;
        /* falls irgendein width:50% reinfunkt */
        float: none !important;
        /* falls Floats aus Bootstrap o.ä. greifen */
    }
}


/* ========== Layout Dashboard ========== */

/* Table Performance */

.dashboard-table-performance {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    font-size: 0.8rem;
}

.table-filters {
    margin-bottom: 1rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: center;
}

.table-filters label {
    font-size: 0.8rem;
}

.dashboard-table-performance td {
    vertical-align: middle;
    padding: .25rem .25rem;
}

.dashboard-table-performance th:nth-child(8),
.dashboard-table-performance td:nth-child(8),
.dashboard-table-performance th:nth-child(9),
.dashboard-table-performance td:nth-child(9),
.dashboard-table-performance th:nth-child(10),
.dashboard-table-performance td:nth-child(10) {
    background-color: var(--palette-opal-100);
}


.dashboard-table-performance th:nth-child(10),
.dashboard-table-performance td:nth-child(10) {
    font-weight: var(--typography-fw-bold);
}

.dashboard-table-performance th:nth-child(13),
.dashboard-table-performance td:nth-child(13) {
    font-weight: var(--typography-fw-bold);
}


/* ========== Layout Base ========== */
.lv-body {
    background: #f4f7fb;
}

/* App-Wrapper: Sidebar + Content nebeneinander */
.lv-app {
    display: flex;
    min-height: 100vh;
}

/* Sidebar */
.lv-sidebar {
    width: 260px;
    min-width: 260px;
    background: var(--palette-gold-500);
    /* LeanVal-Blau */
    color: #fff;
    padding: 20px 16px 60px;
    position: sticky;
    top: 0;
    align-self: flex-start;
    height: 100vh;
    overflow-y: auto;
}

.lv-sidebar__brand {
    margin-bottom: 16px;
}

.lv-brand {
    color: #fff;
    text-decoration: none;
    font-weight: 700;
    font-size: 18px;
}

/* Navigation */
.lv-nav__list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.lv-nav__list>li {
    margin: 6px 0;
}

.lv-nav__list a {
    color: #e8f1fb;
    text-decoration: none;
    display: block;
    padding: 6px 8px;
    border-radius: 6px;
}

.lv-nav__list a:hover {
    background: rgba(255, 255, 255, 0.12);
}

.lv-nav__section {
    margin: 14px 0 6px;
    font-size: 12px;
    letter-spacing: .04em;
    text-transform: uppercase;
    opacity: 0.8;
    color: #bcd3ee;
}

/* Sidebar Toggle (Mobile) */
.lv-sidebar__toggle {
    position: sticky;
    bottom: 10px;
    left: 0;
    right: 0;
    margin-top: 16px;
    width: 100%;
    border: 0;
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    padding: 8px 10px;
    border-radius: 6px;
    display: none;
    /* Desktop verstecken */
}

/* Content */
.lv-content {
    flex: 1 1 auto;
    padding: 28px 36px;
    background: #f4f7fb;
}

/* Optional: Überschriften im Content angleichen */
.lv-header .lv-title {
    font-size: 36px;
    line-height: 1.2;
    margin: 0 0 4px 0;
}

.lv-subtitle {
    color: #6a7a90;
}

/* ======= Responsive ======= */
@media (max-width: 1024px) {
    .lv-sidebar {
        width: 220px;
        min-width: 220px;
    }
}

@media (max-width: 860px) {
    .lv-app {
        flex-direction: column;
    }

    .lv-sidebar {
        height: auto;
        position: relative;
        width: 100%;
        min-width: 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    }

    .lv-sidebar__toggle {
        display: block;
    }

    .lv-sidebar:not(.is-open) .lv-nav {
        display: none;
    }

    .lv-content {
        padding: 20px 16px;
    }
}