/* ═══════════════════════════════════════════════════════════════
   assets/style.css — Crosara Dashboard
   Mobile-first responsive: sidebar colapsável, grids adaptáveis
   ═══════════════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

/* ─── RESET ──────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
    background: #F7F5F9;
    color: #1a1a2e;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    height: 100%;
}

/* ═══════════════════════════════════════════════════════════
   LAYOUT — desktop: sidebar fixa | mobile: sidebar overlay
   ═══════════════════════════════════════════════════════════ */

#app-shell {
    display: grid;
    grid-template-columns: 260px 1fr;
    height: 100vh;
    overflow: hidden;
    position: relative;
}

/* ─── SIDEBAR ────────────────────────────────────────────── */
#sidebar {
    background: #0d0515;
    border-right: 1px solid rgba(95,25,84,0.35);
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    overflow-x: hidden;
    z-index: 200;
    box-shadow: 4px 0 24px rgba(0,0,0,0.4);
    transition: transform 0.3s ease;
}

#sidebar-logo {
    padding: 20px 20px 14px;
    border-bottom: 1px solid rgba(95,25,84,0.25);
    text-align: center;
    flex-shrink: 0;
}

#sidebar-logo img {
    max-width: 140px;
    max-height: 55px;
    object-fit: contain;
    filter: drop-shadow(0 0 12px rgba(95,25,84,0.7));
}

#sidebar-logo .logo-fallback {
    font-family: 'Inter', sans-serif;
    font-size: 1.5rem;
    font-weight: 800;
    color: #fff;
}
#sidebar-logo .logo-fallback span { color: #9B2085; }

#sidebar-nav {
    flex: 1;
    padding: 12px 10px;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.nav-section-label {
    font-size: 0.6rem;
    font-weight: 600;
    color: rgba(255,255,255,0.25);
    letter-spacing: 2px;
    text-transform: uppercase;
    padding: 10px 8px 4px;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border-radius: 10px;
    cursor: pointer;
    color: rgba(255,255,255,0.55);
    font-size: 0.88rem;
    font-weight: 500;
    transition: all 0.2s ease;
    border: 1px solid transparent;
    text-decoration: none;
    background: transparent;
    width: 100%;
    text-align: left;
    -webkit-tap-highlight-color: transparent;
}

.nav-item:hover, .nav-item:focus {
    background: rgba(95,25,84,0.18);
    color: rgba(255,255,255,0.85);
    border-color: rgba(95,25,84,0.3);
}

.nav-item.active {
    background: linear-gradient(135deg, rgba(95,25,84,0.45), rgba(155,32,133,0.25));
    color: #fff;
    border-color: rgba(95,25,84,0.5);
    box-shadow: 0 0 16px rgba(95,25,84,0.25), inset 0 1px 0 rgba(255,255,255,0.06);
}

.nav-item .nav-icon {
    font-size: 1.1rem;
    width: 22px;
    text-align: center;
    flex-shrink: 0;
}

#sidebar-footer {
    padding: 10px 14px;
    border-top: 1px solid rgba(95,25,84,0.2);
    font-size: 0.7rem;
    color: rgba(255,255,255,0.22);
    text-align: center;
    flex-shrink: 0;
}

/* ─── BOTÃO HAMBURGUER (mobile) ──────────────────────────── */
#sidebar-toggle {
    display: none;
    position: fixed;
    top: 12px;
    left: 12px;
    z-index: 300;
    background: #5F1954;
    color: #fff;
    border: none;
    border-radius: 10px;
    width: 40px;
    height: 40px;
    font-size: 1.2rem;
    cursor: pointer;
    box-shadow: 0 2px 12px rgba(95,25,84,0.4);
    align-items: center;
    justify-content: center;
    -webkit-tap-highlight-color: transparent;
}

/* Overlay escuro ao abrir sidebar no mobile */
#sidebar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 150;
}

/* ─── CONTEÚDO PRINCIPAL ─────────────────────────────────── */
#main-content {
    overflow-y: auto;
    overflow-x: hidden;
    background: #F7F5F9;
    position: relative;
    color: #1a1a2e;
    min-width: 0;
}

/* ─── UPLOAD SIDEBAR ─────────────────────────────────────── */
#sidebar-upload {
    padding: 12px;
    border-top: 1px solid rgba(95,25,84,0.25);
    margin-top: auto;
    flex-shrink: 0;
}

#sidebar-upload .upload-label {
    font-size: 0.6rem;
    font-weight: 600;
    color: rgba(255,255,255,0.3);
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 8px;
    display: block;
}

/* ─── CARDS ──────────────────────────────────────────────── */
.card {
    background: #FFFFFF;
    border: 1px solid rgba(95,25,84,0.12);
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 2px 12px rgba(95,25,84,0.07);
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, #5F1954, #9B2085);
    border-radius: 16px 16px 0 0;
}

.card-title {
    font-family: 'Inter', sans-serif;
    font-size: 0.72rem;
    font-weight: 600;
    color: rgba(95,25,84,0.6);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 8px;
}

.card-value {
    font-family: 'Inter', sans-serif;
    font-size: 1.8rem;
    font-weight: 800;
    color: #1a1a2e;
    line-height: 1;
}

.card-value.accent  { color: #9B2085; }
.card-value.success { color: #1a7a4a; }
.card-value.warning { color: #b87000; }
.card-value.danger  { color: #c0392b; }

.card-sub {
    font-size: 0.78rem;
    color: rgba(26,26,46,0.45);
    margin-top: 4px;
}

/* ─── HEADERS ────────────────────────────────────────────── */
.page-header {
    padding: 24px 32px 0;
    position: relative;
    z-index: 1;
}

.page-title {
    font-family: 'Inter', sans-serif;
    font-size: 1.6rem;
    font-weight: 800;
    color: #1a1a2e;
    line-height: 1.2;
}

.page-title span { color: #9B2085; }

.page-subtitle {
    font-size: 0.85rem;
    color: rgba(95,25,84,0.65);
    margin-top: 4px;
}

/* ─── FILTROS ────────────────────────────────────────────── */
.filtros-bar {
    display: flex;
    gap: 12px;
    padding: 14px 32px;
    flex-wrap: wrap;
    align-items: flex-end;
    background: #FFFFFF;
    border-bottom: 1px solid rgba(95,25,84,0.1);
}

.filtro-label {
    font-size: 0.68rem;
    color: rgba(95,25,84,0.6);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 4px;
}

/* Dash Dropdown */
.Select-control {
    background: #F7F5F9 !important;
    border: 1px solid rgba(95,25,84,0.25) !important;
    border-radius: 10px !important;
    color: #1a1a2e !important;
}

.Select-menu-outer {
    background: #fff !important;
    border: 1px solid rgba(95,25,84,0.2) !important;
    border-radius: 10px !important;
    box-shadow: 0 4px 16px rgba(95,25,84,0.12) !important;
    z-index: 999 !important;
}

.Select-option          { color: #1a1a2e !important; }
.Select-option.is-focused  { background: rgba(95,25,84,0.08) !important; }
.Select-option.is-selected { background: rgba(95,25,84,0.18) !important; color: #5F1954 !important; }
.Select-value-label     { color: #1a1a2e !important; }
.Select-placeholder     { color: rgba(26,26,46,0.35) !important; }

/* ─── GRID CONTEÚDO ──────────────────────────────────────── */
.content-grid {
    padding: 16px 32px;
    display: grid;
    gap: 16px;
    position: relative;
    z-index: 1;
}

.grid-kpis { grid-template-columns: repeat(4, 1fr); }
.grid-2col { grid-template-columns: 1fr 1fr; }
.grid-3col { grid-template-columns: 1fr 1fr 1fr; }
.grid-main { grid-template-columns: 2fr 1fr; }
.grid-full { grid-template-columns: 1fr; }

/* ─── BADGES ─────────────────────────────────────────────── */
.badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 0.72rem;
    font-weight: 600;
}
.badge-primary { background: rgba(95,25,84,0.1);  color: #5F1954; border: 1px solid rgba(95,25,84,0.25); }
.badge-success { background: rgba(26,122,74,0.1);  color: #1a7a4a; border: 1px solid rgba(26,122,74,0.25); }
.badge-warning { background: rgba(184,112,0,0.1);  color: #b87000; border: 1px solid rgba(184,112,0,0.25); }
.badge-danger  { background: rgba(192,57,43,0.1);  color: #c0392b; border: 1px solid rgba(192,57,43,0.25); }

/* ─── INSIGHT BOX ────────────────────────────────────────── */
.insight-box {
    background: linear-gradient(135deg, rgba(95,25,84,0.05), #fff);
    border: 1px solid rgba(95,25,84,0.18);
    border-radius: 14px;
    padding: 18px 20px;
    font-size: 0.88rem;
    line-height: 1.7;
    color: #2d1f3d;
    position: relative;
}

.insight-box::before {
    content: '✦';
    position: absolute;
    top: -8px; left: 16px;
    background: #F7F5F9;
    padding: 0 6px;
    color: #9B2085;
    font-size: 0.8rem;
}

/* ─── BOTÕES ─────────────────────────────────────────────── */
.btn-primary {
    background: linear-gradient(135deg, #5F1954, #9B2085);
    color: #fff;
    border: none;
    border-radius: 10px;
    padding: 10px 24px;
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 4px 16px rgba(95,25,84,0.25);
    -webkit-tap-highlight-color: transparent;
}

.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 6px 20px rgba(95,25,84,0.35); }

.btn-ghost {
    background: transparent;
    color: #9B2085;
    border: 1px solid rgba(95,25,84,0.3);
    border-radius: 10px;
    padding: 8px 18px;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.2s ease;
}
.btn-ghost:hover { background: rgba(95,25,84,0.06); }

/* ─── DIVIDER ────────────────────────────────────────────── */
.divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(95,25,84,0.2), transparent);
    margin: 0 32px;
}

/* ─── SCROLLBAR ──────────────────────────────────────────── */
::-webkit-scrollbar { width: 5px; height: 5px; }
::-webkit-scrollbar-track { background: #F7F5F9; }
::-webkit-scrollbar-thumb { background: rgba(95,25,84,0.22); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: rgba(95,25,84,0.4); }

/* ─── UPLOAD ─────────────────────────────────────────────── */
.dash-upload {
    border: 2px dashed rgba(95,25,84,0.3) !important;
    border-radius: 12px !important;
    background: rgba(95,25,84,0.03) !important;
    transition: all 0.2s ease !important;
    cursor: pointer !important;
    padding: 16px 12px !important;
    text-align: center !important;
    color: rgba(95,25,84,0.5) !important;
    font-size: 0.82rem !important;
}

.dash-upload:hover {
    border-color: rgba(95,25,84,0.55) !important;
    background: rgba(95,25,84,0.07) !important;
}

/* ─── TABELA DASH ────────────────────────────────────────── */
.dash-table-container .dash-spreadsheet-container { background: transparent !important; }

.dash-table-container .dash-spreadsheet td,
.dash-table-container .dash-spreadsheet th {
    background: #fff !important;
    color: #1a1a2e !important;
    border-color: rgba(95,25,84,0.1) !important;
    font-family: 'Inter', sans-serif !important;
    font-size: 0.82rem !important;
}

.dash-table-container .dash-spreadsheet th {
    background: rgba(95,25,84,0.08) !important;
    font-weight: 600 !important;
    color: #5F1954 !important;
}

.dash-table-container .dash-spreadsheet tr:hover td {
    background: rgba(95,25,84,0.04) !important;
}


/* ─── LOGIN ANIMAÇÕES ───────────────────────────────────── */
.orb-wrap { position:fixed;inset:0;z-index:1;pointer-events:none;overflow:hidden; }
    .orb { position:absolute;border-radius:50%;filter:blur(70px);mix-blend-mode:screen; }
    .o1 { width:600px;height:600px;top:-160px;left:-140px;background:radial-gradient(circle,rgba(95,25,84,0.55) 0%,transparent 65%);animation:drift1 18s ease-in-out infinite; }
    .o2 { width:450px;height:450px;bottom:-80px;right:-80px;background:radial-gradient(circle,rgba(140,25,120,0.45) 0%,transparent 65%);animation:drift2 23s ease-in-out infinite; }
    .o3 { width:280px;height:280px;top:50%;left:60%;background:radial-gradient(circle,rgba(190,50,165,0.22) 0%,transparent 65%);animation:drift3 15s ease-in-out infinite; }

    @keyframes drift1 { 0%,100%{transform:translate(0,0)} 33%{transform:translate(50px,-45px)} 66%{transform:translate(-30px,55px)} }
    @keyframes drift2 { 0%,100%{transform:translate(0,0)} 40%{transform:translate(-60px,-50px)} 70%{transform:translate(45px,35px)} }
    @keyframes drift3 { 0%,100%{transform:translate(0,0)} 50%{transform:translate(70px,-55px)} }

    .brand-logo { display:block;margin:0 auto;max-width:180px;max-height:65px;object-fit:contain; }
    .brand-fallback { font-family:'Inter',sans-serif;font-size:2rem;font-weight:800;color:#fff;text-align:center;letter-spacing:-1px; }
    .brand-fallback span { color:#9B2085; }

/* ═══════════════════════════════════════════════════════════
   RESPONSIVIDADE
   ═══════════════════════════════════════════════════════════ */

/* ── Tablet grande (≤1400px) ──────────────────────────────── */
@media (max-width: 1400px) {
    .grid-kpis { grid-template-columns: repeat(3, 1fr); }
}

/* ── Tablet (≤1100px) ─────────────────────────────────────── */
@media (max-width: 1100px) {
    #app-shell {
        grid-template-columns: 220px 1fr;
    }

    .grid-kpis { grid-template-columns: repeat(2, 1fr); }
    .grid-3col { grid-template-columns: 1fr 1fr; }
    .grid-main { grid-template-columns: 1fr; }

    .content-grid { padding: 14px 20px; }
    .filtros-bar  { padding: 12px 20px; }
    .page-header  { padding: 20px 20px 0; }
    .divider      { margin: 0 20px; }
}

/* ── Mobile (≤768px) ──────────────────────────────────────── */
@media (max-width: 768px) {

    html, body { overflow: auto; }

    /* Sidebar vira overlay deslizante */
    #app-shell {
        grid-template-columns: 1fr;
        height: auto;
        min-height: 100vh;
        overflow: visible;
    }

    #sidebar {
        position: fixed;
        top: 0; left: 0;
        width: 260px;
        height: 100vh;
        transform: translateX(-100%);
        box-shadow: none;
    }

    /* Classe adicionada via JS para abrir */
    #sidebar.sidebar-open {
        transform: translateX(0);
        box-shadow: 6px 0 30px rgba(0,0,0,0.5);
    }

    #sidebar-overlay.overlay-open {
        display: block;
    }

    /* Botão hamburguer visível */
    #sidebar-toggle {
        display: flex;
    }

    /* Main content ocupa tela toda */
    #main-content {
        overflow: visible;
        padding-top: 56px; /* espaço pro botão hamburguer */
    }

    /* Grids viram coluna única */
    .grid-kpis { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .grid-2col { grid-template-columns: 1fr; }
    .grid-3col { grid-template-columns: 1fr; }
    .grid-main { grid-template-columns: 1fr; }

    .content-grid { padding: 12px 14px; gap: 12px; }
    .filtros-bar  { padding: 10px 14px; gap: 8px; }
    .page-header  { padding: 14px 14px 0; }
    .divider      { margin: 0 14px; }

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

    .card-value { font-size: 1.5rem; }
    .page-title { font-size: 1.3rem; }

    /* Dropdowns largura total no mobile */
    .Select-control { width: 100% !important; }
}

/* ── Mobile pequeno (≤480px) ──────────────────────────────── */
@media (max-width: 480px) {
    .grid-kpis { grid-template-columns: 1fr 1fr; gap: 8px; }
    .card-value { font-size: 1.3rem; }
    .page-title { font-size: 1.1rem; }
    .content-grid { padding: 10px 10px; gap: 10px; }
    .filtros-bar  { padding: 8px 10px; }
}

/* ── RangeSlider — melhor touch no mobile ─────────────────── */
@media (max-width: 768px) {
    .rc-slider-handle {
        width: 20px !important;
        height: 20px !important;
        margin-top: -8px !important;
    }
}

/* ═══════════════════════════════════════════════════════════
   OVERRIDES MOBILE — sobrescreve estilos inline do Python
   ═══════════════════════════════════════════════════════════ */

@media (max-width: 768px) {

    /* Botão hamburguer sempre visível e acessível */
    #sidebar-toggle {
        display: flex !important;
    }

    /* Título da página */
    #main-content [style*="1.7rem"],
    #main-content [style*="1.6rem"] {
        font-size: 1.2rem !important;
        line-height: 1.3 !important;
    }

    /* Subtítulos e descrições longas — truncar */
    #main-content [style*="0.82rem"],
    #main-content [style*="0.8rem"] {
        font-size: 0.75rem !important;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: 100%;
    }

    /* KPI cards — valor menor e sem quebra */
    #main-content [style*="1.6rem"][style*="fontWeight: 800"],
    #main-content [style*="1.4rem"][style*="fontWeight: 800"],
    #main-content [style*="1.35rem"][style*="fontWeight: 800"] {
        font-size: 1rem !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        line-height: 1.2 !important;
    }

    /* Cards — permitir crescer verticalmente */
    #main-content [style*="borderTop: 3px solid"],
    #main-content [style*="border-top: 3px solid"] {
        overflow: visible !important;
        min-height: 0 !important;
    }

    /* KPI grid — altura automática */
    #kpis-cliente,
    #mercado-kpis,
    #kpis-pdv {
        grid-template-columns: 1fr 1fr !important;
        gap: 8px !important;
        padding: 12px !important;
    }

    /* Label do KPI (ex: VPM TOTAL) — menor */
    #main-content [style*="letterSpacing: 1.5px"],
    #main-content [style*="letter-spacing: 1.5px"] {
        font-size: 0.6rem !important;
        letter-spacing: 0.8px !important;
    }

    /* Subtexto do KPI */
    #main-content [style*="marginTop: 3px"][style*="color: rgba(26"] {
        font-size: 0.65rem !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
    }

    /* Ícone decorativo do KPI — esconder no mobile */
    #main-content [style*="opacity: 0.07"],
    #main-content [style*="opacity: 0.08"] {
        display: none !important;
    }

    /* Headers das seções com linha */
    #main-content [style*="padding: 0 32px"] {
        padding: 0 12px !important;
    }

    /* Padding geral dos blocos principais */
    #main-content [style*="padding: 20px 32px"],
    #main-content [style*="padding: 24px 32px"],
    #main-content [style*="padding: 16px 32px"],
    #main-content [style*="padding: 0 32px 16px"],
    #main-content [style*="padding: 0 32px 24px"],
    #main-content [style*="padding: 0 32px 32px"] {
        padding-left: 12px !important;
        padding-right: 12px !important;
    }

    /* Filtros — dropdowns em coluna */
    #main-content [style*="display: flex"][style*="gap: 16px"] {
        flex-wrap: wrap !important;
        gap: 8px !important;
    }

    /* Dropdowns — largura total */
    #main-content .Select-control,
    #main-content [style*="width: "][style*="px"] .Select {
        width: 100% !important;
        min-width: 0 !important;
    }

    /* Grids inline de 2+ colunas — viram 1 coluna */
    #main-content [style*="gridTemplateColumns: repeat(4"],
    #main-content [style*="gridTemplateColumns: repeat(5"],
    #main-content [style*="gridTemplateColumns: repeat(3"] {
        grid-template-columns: 1fr 1fr !important;
    }

    #main-content [style*="gridTemplateColumns: 1fr 1fr 1fr"],
    #main-content [style*="gridTemplateColumns: 1fr 1.5fr"],
    #main-content [style*="gridTemplateColumns: 1fr 1fr"] {
        grid-template-columns: 1fr !important;
    }

    /* Flex rows que ficam apertadas — viram coluna */
    #main-content [style*="display: flex"][style*="justifyContent: space-between"] {
        flex-direction: column !important;
        gap: 8px !important;
        align-items: flex-start !important;
    }

    /* Header — empilhar título + user/sair em coluna */
    #main-content [style*="padding: 24px 32px 16px"] {
        padding: 52px 12px 10px !important;
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 6px !important;
    }

    /* Bloco user+sair — ficam na mesma linha mas menor */
    #main-content [style*="padding: 24px 32px 16px"] > div:last-child {
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        gap: 8px !important;
    }

    /* Botão sair */
    #main-content #btn-logout {
        padding: 5px 10px !important;
        font-size: 0.72rem !important;
        border-radius: 8px !important;
    }

    /* Nome do usuário */
    #main-content [style*="marginRight: 12px"] {
        font-size: 0.72rem !important;
        margin-right: 0 !important;
    }

    /* Cards com flex — empilhar */
    #main-content [style*="display: flex"][style*="gap: 16px"] > div {
        flex: none !important;
        width: 100% !important;
        min-width: 0 !important;
    }

    /* Gráficos — altura menor no mobile */
    .js-plotly-plot { max-height: 280px; }
    .js-plotly-plot .plot-container { max-height: 280px; }

    /* Tabelas — scroll horizontal */
    .dash-table-container {
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch;
    }

    /* RangeSlider — mais espaço */
    .rc-slider { margin: 8px 0 !important; }
    .rc-slider-handle {
        width: 22px !important;
        height: 22px !important;
        margin-top: -9px !important;
    }

    /* Chat input + botão — empilhar */
    #main-content [style*="display: flex"][style*="gap: 10px"] {
        flex-direction: column !important;
    }

    /* Área de mensagens do chat — menor */
    #cli-chat-mensagens {
        max-height: 260px !important;
    }

    /* Texto do diagnóstico */
    #cli-insight-container p {
        font-size: 0.82rem !important;
        line-height: 1.6 !important;
    }
}

@media (max-width: 480px) {

    /* KPI grid — 2 colunas compactas */
    #main-content [style*="gridTemplateColumns: repeat(4"],
    #main-content [style*="gridTemplateColumns: repeat(5"] {
        grid-template-columns: 1fr 1fr !important;
        gap: 8px !important;
    }

    /* Valores KPI ainda menores */
    #main-content [style*="fontWeight: 800"] {
        font-size: 0.95rem !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
    }

    /* Padding mínimo */
    #main-content [style*="padding: 20px 32px"],
    #main-content [style*="padding: 24px 32px"],
    #main-content [style*="padding: 16px 32px"] {
        padding: 10px !important;
    }

    /* Gráficos ainda menores */
    .js-plotly-plot { max-height: 220px; }
}