* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    background: #f4efe7;
    color: #111827;
}

/* Black Friday 2026 */
.bf-intelligence {
    margin-top: 10px;
    padding: 10px;
    border-radius: 10px;
    color: #fff;
    background: linear-gradient(135deg, #171717, #3b0b18);
}

.bf-intelligence small {
    display: block;
    margin-top: 6px;
    color: #f4d9df;
    line-height: 1.35;
}

.bf-score {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 6px;
}

.bf-score strong {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    color: #171717;
    background: #f6c344;
    font-size: 18px;
}

table select,
table input {
    min-width: 115px;
    padding: 7px 8px;
    border: 1px solid #d8d0c7;
    border-radius: 7px;
    background: #fff;
}

/* Experiencia executiva Black Friday */
.decision-summary {
    display: grid;
    grid-template-columns: minmax(240px, 1.1fr) minmax(320px, 1.9fr);
    gap: 22px;
    align-items: center;
    margin: 18px 0;
    padding: 22px 24px;
    color: #fff;
    background: linear-gradient(120deg, #111 0%, #24151a 55%, #6b1830 100%);
    border-radius: 18px;
    box-shadow: 0 16px 40px rgba(49, 18, 27, .15);
}

.decision-summary-copy { display: grid; gap: 5px; }
.decision-summary-copy .eyebrow { color: #f2c75c; font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.decision-summary-copy strong { font-size: 22px; line-height: 1.15; }
.decision-summary-copy p { margin: 0; color: #eadde1; font-size: 13px; }
.decision-legend { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; align-items: center; }
.decision-legend a { color: #f6d77f; font-weight: 800; font-size: 12px; text-decoration: none; margin-left: 5px; }
.legend-dot { display: inline-flex; align-items: center; gap: 6px; padding: 7px 9px; border-radius: 999px; font-size: 11px; font-weight: 800; background: rgba(255,255,255,.08); }
.legend-dot::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #aaa; }
.legend-dot.high::before { background: #e64a64; }
.legend-dot.review::before { background: #f2c75c; }
.legend-dot.low::before { background: #72c69f; }

.score-details { margin-top: 8px; border-top: 1px solid rgba(255,255,255,.14); padding-top: 7px; }
.score-details summary { font-size: 12px; font-weight: 800; color: #f6d77f; cursor: pointer; }
.score-breakdown { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 5px 10px; margin-top: 8px; }
.score-breakdown span { display: flex; justify-content: space-between; color: #eadde1; font-size: 11px; }
.score-breakdown b { color: #fff; }
.score-breakdown .protection-points, .score-breakdown .protection-points b { color: #8ee0b9; }

.methodology-header { margin-bottom: 18px; }
.decision-flow { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-bottom: 18px; }
.decision-step { display: flex; gap: 12px; padding: 18px; border: 1px solid #e5d8c8; border-radius: 16px; background: #fff; }
.decision-step p { margin: 5px 0 0; color: #6b7280; font-size: 12px; line-height: 1.45; }
.decision-number { display: grid; place-items: center; width: 32px; height: 32px; flex: 0 0 32px; border-radius: 10px; background: #161616; color: #f2c75c; font-weight: 900; }
.method-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.method-card { padding: 18px; border: 1px solid #e4d8ca; border-radius: 16px; background: #fff; box-shadow: 0 8px 24px rgba(55,35,20,.05); }
.method-card.dominant { border-top: 4px solid #781d38; }
.method-card.protection { background: #edf8f2; border-color: #bde3cd; }
.method-title { display: flex; justify-content: space-between; gap: 12px; align-items: center; }
.method-title span { font-size: 15px; font-weight: 900; }
.method-title strong { color: #781d38; font-size: 15px; }
.method-card p { min-height: 46px; color: #6b7280; font-size: 12px; line-height: 1.45; }
.rule-row { display: flex; justify-content: space-between; padding: 8px 0; border-top: 1px solid #eee7df; font-size: 12px; }
.rule-row b { color: #781d38; }
.decision-scale { margin-top: 18px; padding: 24px; border-radius: 18px; background: #171717; color: #fff; }
.scale-title { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 14px; }
.scale-title h2 { margin: 0; }
.scale-title p { margin: 0; color: #bdb7b9; font-size: 12px; }
.scale-track { display: grid; grid-template-columns: 1.1fr .8fr .8fr .65fr; overflow: hidden; border-radius: 12px; }
.scale-band { display: grid; gap: 3px; min-height: 92px; padding: 15px; color: #171717; }
.scale-band strong { font-size: 18px; }
.scale-band span { font-weight: 900; font-size: 12px; }
.scale-band small { font-size: 11px; }
.scale-band.low { background: #9bdfbe; }
.scale-band.review { background: #f3d578; }
.scale-band.high { background: #ee8a79; }
.scale-band.critical { background: #d95370; color: #fff; }
.method-warning { margin-top: 14px; color: #ddd4d7; font-size: 12px; line-height: 1.5; }

@media (max-width: 1050px) {
    .method-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .decision-summary { grid-template-columns: 1fr; }
    .decision-legend { justify-content: flex-start; }
}

@media (max-width: 760px) {
    .decision-flow, .method-grid { grid-template-columns: 1fr; }
    .scale-track { grid-template-columns: 1fr 1fr; }
    .decision-summary { padding: 18px; }
}

/* =========================================================
   ESTRUTURA GERAL
========================================================= */

.app-shell {
    display: flex;
    min-height: 100vh;
    width: 100%;
    background: #f4efe7;
}

.sidebar {
    width: 220px;
    min-width: 220px;
    background: #eee5d8;
    border-right: 1px solid #dfd2c1;
    padding: 28px 18px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    z-index: 10;
}

.main {
    margin-left: 220px;
    padding: 34px 34px 60px 34px;
    width: calc(100% - 220px);
    min-height: 100vh;
    overflow-x: hidden;
}

/* =========================================================
   LOGO / MENU LATERAL
========================================================= */

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 34px;
}

.brand-logo {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    background: #d2a744;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    font-size: 18px;
    flex-shrink: 0;
}

.brand-text strong,
.brand strong {
    display: block;
    font-size: 15px;
    font-weight: 800;
    color: #111827;
    line-height: 1.15;
}

.brand-text span,
.brand span {
    display: block;
    font-size: 12px;
    color: #374151;
    line-height: 1.2;
    margin-top: 2px;
}

.nav {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.nav a {
    display: block;
    text-decoration: none;
    color: #111827;
    font-size: 14px;
    font-weight: 600;
    padding: 11px 10px;
    border-radius: 12px;
    transition: all 0.18s ease;
}

.nav a:hover {
    background: #fff7df;
    color: #9a6b12;
}

.sidebar-footer {
    display: flex;
    align-items: center;
    gap: 10px;
}

.user-badge {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: #fff1bf;
    color: #a57212;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 13px;
}

.sidebar-footer strong {
    display: block;
    font-size: 13px;
    color: #111827;
}

.sidebar-footer span {
    display: block;
    font-size: 11px;
    color: #6b7280;
}

/* =========================================================
   CABEÇALHOS
========================================================= */

.page-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 24px;
    margin-bottom: 24px;
}

.page-header h1 {
    margin: 0;
    font-size: 30px;
    line-height: 1.1;
    color: #111827;
    letter-spacing: -0.02em;
}

.page-header p {
    margin: 8px 0 0 0;
    color: #6b7280;
    font-size: 14px;
}

.breadcrumb {
    font-size: 12px;
    color: #c2922d;
    margin-bottom: 8px;
    font-weight: 700;
}

.header-actions {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}

/* =========================================================
   BOTÕES
========================================================= */

.btn-primary,
.btn-secondary,
.btn-light {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    border: none;
    cursor: pointer;
    border-radius: 12px;
    padding: 12px 18px;
    font-size: 14px;
    font-weight: 800;
    transition: all 0.18s ease;
    white-space: nowrap;
}

.btn-primary {
    background: #d2a744;
    color: #ffffff;
}

.btn-primary:hover {
    background: #b98f2f;
}

.btn-secondary {
    background: #111827;
    color: #ffffff;
}

.btn-secondary:hover {
    background: #374151;
}

.btn-light {
    background: #ffffff;
    color: #111827;
    border: 1px solid #e5e7eb;
}

.btn-light:hover {
    background: #f9fafb;
}

/* =========================================================
   KPIs
========================================================= */

.kpi-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(160px, 1fr));
    gap: 16px;
    margin-bottom: 20px;
}

.kpi-card {
    background: #ffffff;
    border: 1px solid #e5ded3;
    border-radius: 18px;
    padding: 20px 20px;
    box-shadow: 0 10px 25px rgba(39, 30, 20, 0.06);
}

.kpi-card span {
    display: block;
    font-size: 12px;
    color: #6b7280;
    margin-bottom: 8px;
}

.kpi-card strong {
    display: block;
    font-size: 28px;
    line-height: 1;
    color: #111827;
}

.kpi-card p {
    margin: 12px 0 0 0;
    color: #374151;
    font-size: 13px;
}

/* =========================================================
   CARDS EXPLICATIVOS
========================================================= */

.theory-card,
.filter-card,
.table-card,
.how-card {
    background: #ffffff;
    border: 1px solid #e5ded3;
    border-radius: 18px;
    padding: 20px;
    box-shadow: 0 10px 25px rgba(39, 30, 20, 0.06);
    margin-top: 22px;
}

.theory-grid {
    display: grid;
    grid-template-columns: 1.1fr 1.1fr 1fr;
    gap: 22px;
    align-items: stretch;
}

.theory-column h3,
.methodology-box h3,
.filter-card h3 {
    margin: 0 0 12px 0;
    font-size: 15px;
    color: #111827;
}

.theory-column p,
.theory-column li,
.methodology-box p {
    font-size: 13px;
    line-height: 1.45;
    color: #4b5563;
}

.theory-column ul {
    margin: 0;
    padding-left: 18px;
}

.methodology-box {
    background: #fff2bd;
    border-radius: 16px;
    padding: 18px;
}

/* =========================================================
   FILTROS
========================================================= */

.filters-grid {
    display: grid;
    grid-template-columns: 1.2fr 1.2fr 0.8fr 0.8fr 1.4fr 1fr 1fr 1.2fr;
    gap: 12px;
    align-items: end;
}

.field label {
    display: block;
    font-size: 12px;
    color: #374151;
    font-weight: 800;
    margin-bottom: 5px;
}

input,
select,
textarea {
    width: 100%;
    border: 1px solid #d8d0c4;
    background: #ffffff;
    color: #111827;
    border-radius: 10px;
    padding: 10px 11px;
    font-size: 13px;
    outline: none;
}

textarea {
    resize: vertical;
    min-height: 58px;
}

input:focus,
select:focus,
textarea:focus {
    border-color: #d2a744;
    box-shadow: 0 0 0 3px rgba(210, 167, 68, 0.15);
}

.filter-actions {
    grid-column: 1 / -1;
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
    margin-top: 4px;
}

/* =========================================================
   FAIXAS INFORMATIVAS
========================================================= */

.info-strip {
    background: #fff7cc;
    border: 1px solid #f3e6a8;
    border-radius: 16px;
    padding: 16px 18px;
    margin-bottom: 24px;
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: center;
}

.info-strip strong {
    font-size: 14px;
    color: #111827;
}

.info-strip p {
    margin: 4px 0 0 0;
    font-size: 13px;
    color: #6b7280;
}

.selected-pill {
    background: #fff1bf;
    color: #111827;
    font-weight: 800;
    border-radius: 999px;
    padding: 10px 16px;
    white-space: nowrap;
}

/* =========================================================
   CENÁRIOS
========================================================= */

.section-block {
    margin-top: 24px;
}

.section-title {
    margin-bottom: 14px;
}

.section-title h2 {
    margin: 0;
    font-size: 23px;
    color: #111827;
}

.section-title p {
    margin: 8px 0 0 0;
    color: #6b7280;
    font-size: 14px;
}

.scenario-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(190px, 1fr));
    gap: 16px;
}

.scenario-card {
    text-decoration: none;
    background: #ffffff;
    border: 1px solid #e5ded3;
    border-radius: 18px;
    padding: 18px;
    min-height: 162px;
    box-shadow: 0 10px 25px rgba(39, 30, 20, 0.06);
    transition: all 0.18s ease;
    color: #111827;
}

.scenario-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 32px rgba(39, 30, 20, 0.10);
    border-color: #d2a744;
}

.scenario-icon {
    width: 34px;
    height: 34px;
    border-radius: 11px;
    background: #fff1bf;
    color: #b28219;
    font-weight: 900;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 13px;
    font-size: 13px;
}

.scenario-card h3 {
    margin: 0 0 8px 0;
    font-size: 17px;
    color: #111827;
}

.scenario-card p {
    margin: 0 0 14px 0;
    font-size: 14px;
    line-height: 1.35;
    color: #6b7280;
}

.scenario-card span {
    color: #c2922d;
    font-weight: 800;
    font-size: 13px;
}

/* =========================================================
   GRID DE PRODUTOS - LAYOUT RESTAURADO
========================================================= */

.grid-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    margin-bottom: 18px;
}

.grid-header strong {
    font-size: 15px;
}

.grid-header p {
    margin: 4px 0 0 0;
    color: #6b7280;
    font-size: 12px;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(155px, 1fr));
    gap: 16px;
}

.product-card {
    display: flex;
    flex-direction: column;
    min-height: 480px;
}

.product-image {
    height: 210px;
    background: #f8f5ef;
    border-radius: 14px 14px 0 0;
    border: 1px solid #e1d8cb;
    border-bottom: none;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    color: #6b7280;
    font-size: 12px;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    background: #f8f5ef;
}

.product-info {
    background: #ffffff;
    border: 1px solid #0067d8;
    padding: 12px;
    min-height: 245px;
    font-size: 11px;
    line-height: 1.35;
    color: #111827;
    flex: 1;
}

.product-info strong {
    font-weight: 800;
}

.product-info .name {
    display: block;
    font-weight: 900;
    font-size: 12px;
    margin-bottom: 7px;
    color: #111827;
    text-transform: uppercase;
}

.product-action {
    margin-top: 7px;
}

.select-btn,
.remove-btn {
    width: 100%;
    background: #ffffff;
    border: 1px solid #0067d8;
    color: #0067d8;
    border-radius: 8px;
    padding: 10px 8px;
    font-weight: 900;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.18s ease;
}

.select-btn:hover {
    background: #0067d8;
    color: #ffffff;
}

.select-btn.selected {
    background: #0067d8;
    color: #ffffff;
}

.select-btn:disabled {
    background: #e5e7eb;
    color: #6b7280;
    border-color: #d1d5db;
    cursor: not-allowed;
}

.remove-btn {
    border-color: #dc2626;
    color: #dc2626;
}

.remove-btn:hover {
    background: #dc2626;
    color: #ffffff;
}

.blocked-badge {
    display: inline-block;
    margin-top: 6px;
    padding: 5px 7px;
    border-radius: 8px;
    background: #fee2e2;
    color: #991b1b;
    font-weight: 800;
    font-size: 10px;
}

.bi-badge {
    display: inline-block;
    margin-top: 6px;
    padding: 5px 7px;
    border-radius: 8px;
    background: #fff1bf;
    color: #9a6b12;
    font-weight: 800;
    font-size: 10px;
}

/* =========================================================
   PAGINAÇÃO
========================================================= */

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin: 24px 0;
}

.pagination a,
.pagination span {
    padding: 9px 12px;
    border-radius: 10px;
    background: #ffffff;
    border: 1px solid #e5ded3;
    color: #111827;
    text-decoration: none;
    font-size: 13px;
    font-weight: 800;
}

.pagination .active {
    background: #d2a744;
    color: #ffffff;
    border-color: #d2a744;
}

/* =========================================================
   TABELAS
========================================================= */

.table-card {
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

th {
    text-align: left;
    background: #f6f1e8;
    color: #111827;
    padding: 11px 10px;
    border-bottom: 1px solid #e5ded3;
    white-space: nowrap;
}

td {
    padding: 10px;
    border-bottom: 1px solid #eee7db;
    vertical-align: top;
}

tr:hover td {
    background: #faf7f0;
}

.thumb {
    width: 54px;
    height: 72px;
    object-fit: contain;
    background: #f6f1e8;
    border-radius: 8px;
    border: 1px solid #e5ded3;
}

/* =========================================================
   RESPONSIVO
========================================================= */

@media (max-width: 1300px) {
    .product-grid {
        grid-template-columns: repeat(4, minmax(150px, 1fr));
    }

    .scenario-grid {
        grid-template-columns: repeat(3, minmax(190px, 1fr));
    }

    .filters-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .theory-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 980px) {
    .sidebar {
        position: relative;
        width: 100%;
        min-width: 100%;
        height: auto;
        bottom: auto;
    }

    .app-shell {
        flex-direction: column;
    }

    .main {
        margin-left: 0;
        width: 100%;
        padding: 24px;
    }

    .kpi-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .scenario-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .product-grid {
        grid-template-columns: repeat(2, minmax(150px, 1fr));
    }

    .filters-grid {
        grid-template-columns: 1fr;
    }

    .page-header {
        flex-direction: column;
    }
}

@media (max-width: 640px) {
    .kpi-grid,
    .scenario-grid,
    .product-grid {
        grid-template-columns: 1fr;
    }
}

/* =========================================================
   FILTROS MULTISELECT COM CHECKBOX - VERSÃO FINAL
   ========================================================= */

.multi-filter {
    position: relative;
    width: 100%;
}

.multi-filter-button {
    position: relative;
    width: 100%;
    min-height: 38px;
    height: 38px;
    box-sizing: border-box;

    border: 1px solid #d8d0c4;
    background: #fffdf9;
    border-radius: 10px;

    padding: 9px 34px 9px 11px;

    font-size: 13px;
    color: #111827;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;

    cursor: pointer;
    text-align: left;
}

/* Esconde o símbolo antigo ▾ do HTML */
.multi-filter-button small {
    display: none !important;
}

/* Seta customizada dos filtros com checkbox */
.multi-filter-button::after {
    content: "";
    position: absolute;
    right: 15px;
    top: 50%;

    width: 7px;
    height: 7px;

    border-right: 2px solid #111827;
    border-bottom: 2px solid #111827;

    transform: translateY(-65%) rotate(45deg);
    transition: transform 0.2s ease;
    pointer-events: none;
}

/* Quando o dropdown estiver aberto, a seta vira para cima */
.multi-filter.open .multi-filter-button::after {
    transform: translateY(-35%) rotate(225deg);
}

.multi-filter-button span {
    display: block;
    max-width: 155px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.multi-filter.has-selection .multi-filter-button {
    border-color: #d5a63f;
    background: #fff8e5;
    color: #111111;
    font-weight: 700;
}

.multi-filter.open .multi-filter-button {
    border-color: #111111;
    box-shadow: 0 0 0 3px rgba(17, 17, 17, 0.08);
}

.multi-filter.has-selection .multi-filter-button::after,
.multi-filter.open .multi-filter-button::after {
    border-color: #111827;
}

.multi-filter-panel {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    width: 245px;
    max-height: 310px;
    background: #ffffff;
    border: 1px solid #d8d2c8;
    border-radius: 16px;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.14);
    z-index: 50;
    overflow: hidden;
}

.multi-filter-panel.small {
    width: 190px;
}

.multi-filter-panel.wide {
    width: 315px;
}

.multi-filter.open .multi-filter-panel {
    display: block;
}

.multi-filter-actions {
    display: flex;
    justify-content: space-between;
    gap: 6px;
    padding: 6px 8px;
    border-bottom: 1px solid #eee6da;
    background: #fffaf0;
}

.multi-filter-actions button {
    border: 0;
    background: transparent;
    color: #b98512;
    font-weight: 700;
    font-size: 11px;
    cursor: pointer;
    padding: 2px 0;
}

.multi-filter-actions button:hover {
    color: #111111;
}

.multi-filter-options {
    max-height: 300px;
    overflow-y: auto;
    padding: 4px;
}

.multi-filter-options.compact {
    max-height: 220px;
}

.multi-filter-options label {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 3px 6px;
    border-radius: 7px;
    cursor: pointer;
    font-size: 11px;
    line-height: 1.05;
    color: #111827;
    min-height: 22px;
}

.multi-filter-options label:hover {
    background: #f7f1e8;
}

.multi-filter-options input[type="checkbox"] {
    width: 12px;
    height: 12px;
    accent-color: #d5a63f;
    flex-shrink: 0;
    margin: 0;
}

.multi-filter-options span {
    display: block;
    line-height: 1.05;
    word-break: normal;
}

/* =========================================================
   PADRONIZAÇÃO FINAL DAS SETAS DOS FILTROS
   ========================================================= */

.filters-grid {
    align-items: end;
}

.filters-grid .field {
    position: relative;
}

/* Select normal, como "Ordenar por" */
.filters-grid .field > select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;

    background-image: none !important;
    background-color: #fffdf9;

    padding-right: 34px !important;
    cursor: pointer;
}

/* Remove seta nativa no IE/Edge antigo */
.filters-grid .field > select::-ms-expand {
    display: none;
}

/* Seta customizada para SELECT normal */
.filters-grid .field:has(> select)::after {
    content: "";
    position: absolute;
    right: 15px;
    top: 39px;

    width: 7px;
    height: 7px;

    border-right: 2px solid #111827;
    border-bottom: 2px solid #111827;

    transform: rotate(45deg);
    pointer-events: none;
}

/* Altura padrão para inputs/selects/botões */
.filters-grid .field input,
.filters-grid .field select,
.multi-filter-button {
    height: 38px;
    box-sizing: border-box;
}

/* Garante que o dropdown não fique cortado dentro do card */
.filter-card {
    position: relative;
    z-index: 10;
    overflow: visible;
}

.section-block,
.theory-card,
.kpi-grid {
    position: relative;
    z-index: 1;
}

/* =========================================================
   AJUSTE DO USUÁRIO NO RODAPÉ DA SIDEBAR
   ========================================================= */

.sidebar-footer {
    max-width: 100%;
    overflow: hidden;
}

.sidebar-footer > div:last-child {
    min-width: 0;
    max-width: 100%;
    overflow: hidden;
}

.sidebar-footer strong,
.sidebar-footer span {
    max-width: 140px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.user-badge {
    flex-shrink: 0;
}

/* =========================================================
   SALVAR / CARREGAR SELEÇÃO DO USUÁRIO
========================================================= */

.selection-save-strip {
    margin-top: 0;
    margin-bottom: 20px;
}

.selection-save-actions {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}

.estoque-total-destaque {
    background: #dff5e1;
    border: 1px solid #9ed8a5;
    border-radius: 8px;
    padding: 5px 8px;
    margin: 6px 0;
    color: #145c22;
    font-weight: 700;
}

.analise-card{margin:12px 0;padding:14px;border:1px solid #d7ded9;border-radius:10px;background:#f3f7f4;color:#24382b}.analise-card p{font-size:13px;line-height:1.5}.analise-card summary{cursor:pointer;margin-top:10px;font-weight:600}
/* Curadoria: catálogo compacto, mantendo fotos com 210px de altura. */
:root{--catalog-border:#e2e5e8;--catalog-ink:#20262b;--catalog-accent:#274a41}
.app-shell{background:#f6f7f8}.sidebar{background:#fff;border-right:1px solid var(--catalog-border)}
.main{min-width:0}.page-header{margin-bottom:14px}.page-header h1{font-size:26px}.page-header p{margin:4px 0;font-size:13px}
.catalog-summary{display:flex;gap:20px;flex-wrap:wrap;font-size:13px;margin-bottom:10px;color:#525c65}
.catalog-criteria,.catalog-filters{border:1px solid var(--catalog-border);border-radius:8px;background:#fff;margin:6px 0;font-size:13px}
.catalog-criteria>summary,.catalog-filters>summary{padding:10px 14px;cursor:pointer;font-weight:600}
.catalog-criteria p,.catalog-criteria ul,.catalog-criteria>a{margin:10px 18px;display:block}
.catalog-filters .filter-card{margin:0;padding:14px;box-shadow:none;border:0}.catalog-filters h3{display:none}
.catalog-filters .filters-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}
.catalog-section{margin-top:12px}.catalog-section .grid-header{margin-bottom:6px}.catalog-section .grid-header p{display:none}
.catalog-section .pagination{margin:8px 0;justify-content:flex-end;gap:8px}.catalog-section .pagination a,.catalog-section .pagination span{padding:6px 12px;font-size:12px}
.product-grid{grid-template-columns:repeat(auto-fill,minmax(185px,1fr));gap:12px;align-items:start}
.product-card{min-height:0;border:1px solid var(--catalog-border);border-radius:10px;background:white;overflow:hidden;box-shadow:none}
.product-image{height:210px;border:0;border-radius:0;background:#f5f5f4}.product-image img{background:#f5f5f4}.image-placeholder{padding:20px;text-align:center;color:#68717a}
.product-info.compact-info{min-height:0;border:0;padding:10px 11px 6px;font-size:12px;flex:initial}
.compact-info .name{font-size:12px;font-weight:650;line-height:1.3;height:32px;margin-bottom:5px;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.card-color{font-size:12px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.card-color small{color:#707981;font-size:10px}
.card-price{font-weight:650;margin:6px 0}.card-stock{display:flex;justify-content:space-between;gap:6px;font-size:11px}.card-stock span{color:#68717a}
.card-recommendation{display:block;color:#476057;font-size:11px;margin:6px 0 0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.product-action{margin:6px 10px 0}.select-btn{border:1px solid var(--catalog-accent);border-radius:6px;color:var(--catalog-accent);padding:8px;font-size:12px}.select-btn:hover,.select-btn.selected{background:var(--catalog-accent);color:white}
.analysis-button{border:0;background:transparent;color:#58636b;text-decoration:underline;padding:8px;font-size:11px;cursor:pointer;width:100%}
.analysis-dialog{border:0;border-radius:12px;padding:0;width:min(640px,92vw);max-height:85vh;box-shadow:0 18px 60px #0003;color:var(--catalog-ink)}
.analysis-dialog::backdrop{background:#14202788}.dialog-header{position:sticky;top:0;display:flex;justify-content:space-between;align-items:center;padding:14px 18px;background:white;border-bottom:1px solid var(--catalog-border);z-index:1}
.dialog-header button{cursor:pointer;border:1px solid var(--catalog-border);border-radius:6px;background:white;padding:7px 12px}.analysis-dialog .product-info{border:0;padding:18px;font-size:13px;line-height:1.6;min-height:0}.analysis-dialog .name{font-size:16px}
@media(max-width:1000px){.catalog-filters .filters-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:700px){.sidebar{position:static;width:100%;min-width:0;padding:12px}.app-shell{display:block}.sidebar .nav{display:flex;flex-wrap:wrap;gap:5px}.sidebar .nav a{padding:7px;font-size:12px}.sidebar-footer{display:none}.main{margin-left:0!important;padding:14px!important;width:100%}.product-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.catalog-summary{gap:10px}.product-image{height:210px}.card-stock{flex-wrap:wrap}}
