/* --- 1. IMPORTAÇÃO DA FONTE (Obrigatório no início) --- */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@800&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600;700;800&display=swap');

:root {
    --acc-primary: #EA95A8;
    --acc-bg: #fff;
    --acc-border: #e2e8f0;
    --acc-text: #1e293b;
    --acc-hover: #FFF0F5;
    --acc-green-bg: #dcfce7;
    --acc-green-txt: #166534;
    --acc-red-bg: #fee2e2;
    --acc-red-txt: #991b1b;
    --zebra-pink: #FFF0F5;
}

.acc-wrapper {
    font-family: 'Inter', sans-serif;
    color: var(--acc-text);
    width: 100%;
    margin: 0 auto;
}

/* FILTROS - SANFONA */
.filter-section {
    background: linear-gradient(135deg, #ffffff 0%, #FFF0F5 100%);
    border: 2px solid #fce7f3;
    border-radius: 16px;
    margin-bottom: 25px;
    box-shadow: 0 4px 12px rgba(234, 149, 168, 0.1);
    overflow: visible;  /* Permite dropdown aparecer fora do card */
}

.filter-header-collapsed {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-header-collapsed:hover {
    background: linear-gradient(135deg, #FFF0F5 0%, #fce7f3 100%);
}

.filter-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 1rem;
    font-weight: 800;
    color: var(--acc-primary);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.filter-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, var(--acc-primary) 0%, #d67a90 100%);
    border-radius: 50%;
    transition: all 0.3s ease;
}

.filter-arrow svg {
    width: 16px;
    height: 16px;
    fill: white;
    transition: transform 0.3s ease;
}

.filter-content {
    padding: 0 25px 25px;
    animation: slideDown 0.3s ease;
    position: relative;
    z-index: 100;  /* Garante que dropdown fique acima de tudo */
}

.filter-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 15px;
}

/* Wrapper do botão Expandir Todos */
.toggle-all-wrapper {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 20px;
}

.toggle-all-wrapper .btn-milky {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

#toggle-all-icon {
    font-size: 14px;
    transition: transform 0.3s ease;
}

#toggle-all-icon.rotated {
    transform: rotate(180deg);
}

/* GRID COM MAIS COLUNAS PARA CABER A LOJA */
.filter-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.filter-grid label {
    font-size: 11px;
    font-weight: 700;
    color: #1e293b;
    display: block;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.ts-control {
    border-radius: 8px !important;
    border: 2px solid #e2e8f0 !important;
    font-size: 14px !important;
    padding: 8px 12px !important;
    min-height: 42px !important;
    z-index: 10 !important;
}

.ts-control:focus,
.ts-control.focus {
    border-color: var(--acc-primary) !important;
    box-shadow: 0 0 0 3px rgba(234, 149, 168, 0.1) !important;
}

.ts-dropdown {
    border: 2px solid #e2e8f0 !important;
    border-radius: 8px !important;
    font-size: 14px !important;
    z-index: 9999 !important;
    max-height: 300px !important;
    overflow-y: auto !important;
}

/* CARDS - PADRONIZADOS */
.acc-item {
    background: #fff;
    border: 2px solid #e2e8f0;
    border-radius: 16px;
    margin-bottom: 25px;
    overflow: hidden;  /* Volta para hidden para manter bordas */
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.acc-item:hover {
    box-shadow: 0 4px 12px rgba(234, 149, 168, 0.15);
    border-color: #fce7f3;
}

/* HEADER CLICÁVEL */
.acc-header {
    padding: 20px 25px 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(135deg, #ffffff 0%, #FFF0F5 100%);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    position: relative;
}

.acc-header:hover {
    background: linear-gradient(135deg, #FFF0F5 0%, #fce7f3 100%);
}

.acc-header.active {
    background: linear-gradient(135deg, #fce7f3 0%, #fdf2f8 100%);
}

.header-left {
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: flex-start;
}

.acc-year {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--acc-primary);
    line-height: 1;
    letter-spacing: 0.5px;
}

.total-with-badge {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.header-total-display {
    font-size: 1.8rem;
    font-weight: 800;
    color: #1e293b;
    line-height: 1;
}

/* CONFERIR VENDAS no header quando fechado */
.conferir-vendas-inline {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 10px;
    pointer-events: none;  /* Não interfere com o clique do header */
}

.conferir-vendas-text {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.85rem;
    font-weight: 800;
    color: var(--acc-primary);
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

.conferir-vendas-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 28px;
    background: linear-gradient(135deg, var(--acc-primary) 0%, #d67a90 100%);
    border: 2px solid #ffffff;
    border-radius: 16px;
    box-shadow: 0 3px 10px rgba(234, 149, 168, 0.3);
    animation: pulseArrowInline 2s infinite;
}

.conferir-vendas-arrow svg {
    width: 16px;
    height: 16px;
    fill: white;
}

@keyframes pulseArrowInline {
    0%, 100% {
        transform: translateY(0);
        box-shadow: 0 3px 10px rgba(234, 149, 168, 0.3);
    }
    50% {
        transform: translateY(3px);
        box-shadow: 0 5px 14px rgba(234, 149, 168, 0.5);
    }
}

.acc-header:hover .conferir-vendas-arrow {
    animation: pulseArrowInlineFast 1s infinite;
}

@keyframes pulseArrowInlineFast {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(4px);
    }
}

.header-right {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.badge-comp {
    font-size: 0.8rem;
    padding: 6px 14px;
    border-radius: 12px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    cursor: help;
}

.b-up {
    background: var(--acc-green-bg);
    color: var(--acc-green-txt);
}

.b-down {
    background: var(--acc-red-bg);
    color: var(--acc-red-txt);
}

.b-neu {
    background: #f1f5f9;
    color: #94a3b8;
}


/* TABELA E SCROLL */
.acc-content {
    display: none;
    animation: slideDown 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    background: #fff;
    border-top: 2px solid #e2e8f0;
    border-radius: 0 0 14px 14px;
    overflow: hidden;
}

.acc-scroll {
    overflow-x: auto;
    overflow-y: auto;
    padding: 0;
    max-height: 650px;
    position: relative;
}

.acc-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    font-size: 0.7rem;  /* Diminuído */
    min-width: 100%;
}

.acc-table th {
    background: linear-gradient(135deg, #EA95A8 0%, #d67a90 100%);
    padding: 10px 8px;
    text-align: center;
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    color: #ffffff;
    text-transform: uppercase;
    font-size: 0.7rem;
    letter-spacing: 0.5px;
    border-bottom: 3px solid #d67a90;
    cursor: pointer;
    user-select: none;
    white-space: nowrap;
    transition: all 0.2s;
    position: sticky;
    top: 0;
    z-index: 40;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.acc-table th:hover {
    background: linear-gradient(135deg, #d67a90 0%, #EA95A8 100%);
    transform: translateY(-1px);
    box-shadow: 0 3px 6px rgba(0,0,0,0.15);
}

.acc-table th.sorted-asc::after {
    content: ' ▲';
    font-size: 10px;
    color: var(--acc-primary);
}

.acc-table th.sorted-desc::after {
    content: ' ▼';
    font-size: 10px;
    color: var(--acc-primary);
}

/* STICKY COLS - NOMES COMPLETOS VISÍVEIS */
.sticky-col {
    position: sticky;
    left: 0;
    z-index: 50 !important;
    background-color: #fff !important;
    border-right: 3px solid #fce7f3;
    min-width: 250px;
    max-width: none;
    box-shadow: 3px 0 6px rgba(234, 149, 168, 0.15);
    font-weight: 700 !important;
    color: #1e293b !important;
    white-space: normal;
    word-wrap: break-word;
    padding: 10px 14px !important;
    line-height: 1.4;
}

.sticky-col-2 {
    position: sticky;
    left: 250px;
    z-index: 50 !important;
    background-color: #fff !important;
    border-right: 3px solid #fce7f3;
    min-width: 50px;
    max-width: 50px;
    box-shadow: 3px 0 6px rgba(234, 149, 168, 0.15);
    font-weight: 700 !important;
    color: #1e293b !important;
    text-align: center !important;
}

.col-total {
    background: linear-gradient(135deg, #fef2f2 0%, #fce7f3 100%) !important;
    font-weight: 800 !important;
    color: #be123c !important;
    font-size: 0.95rem !important;
    border-left: 3px solid var(--acc-primary) !important;
}

.acc-table thead th.sticky-col,
.acc-table thead th.sticky-col-2 {
    z-index: 60 !important;
    background: linear-gradient(135deg, #EA95A8 0%, #d67a90 100%) !important;
    box-shadow: 2px 2px 6px rgba(0, 0, 0, 0.15);
    color: #ffffff !important;
}

/* HOVER NA LINHA INTEIRA - Rosa clarinho */
.acc-table tbody tr:hover td {
    background: #FFF0F5 !important;  /* Rosa bem clarinho */
}

/* Hover nas colunas sticky também */
.acc-table tbody tr:hover td.sticky-col,
.acc-table tbody tr:hover td.sticky-col-2 {
    background: #FFF0F5 !important;
}

.acc-table td {
    padding: 7px 6px;
    border-bottom: 1px solid #f1f5f9;
    text-align: center;
    vertical-align: middle;
    white-space: nowrap;
    background: #ffffff;  /* Sempre branco */
    transition: background 0.2s ease;
}

.cell-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    line-height: 1.2;
    gap: 2px;
}

.val-txt {
    font-weight: 600;
    color: #1e293b;
    font-size: 0.75rem;  /* Diminuído */
}

.comp-badge {
    font-size: 0.55rem;  /* Diminuído */
    font-weight: 700;
    opacity: 0.85;
    cursor: help;
}

/* Dashboard de Análises - Versão Compacta */
.acc-dashboard {
    padding: 20px 25px;
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border-top: 2px solid #e2e8f0;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
    margin-bottom: 15px;
}

.dashboard-card {
    background: #ffffff;
    padding: 12px;
    border-radius: 10px;
    border: 2px solid #e2e8f0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    transition: all 0.2s;
}

.dashboard-card:hover {
    border-color: #fce7f3;
    box-shadow: 0 4px 12px rgba(234, 149, 168, 0.15);
}

.dashboard-card-header {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-bottom: 8px;
    padding-bottom: 8px;
    border-bottom: 2px solid #f1f5f9;
}

.dashboard-title {
    font-size: 0.8rem;
    font-weight: 800;
    color: #1e293b;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.dashboard-subtitle {
    font-size: 0.65rem;
    color: #64748b;
    font-weight: 600;
}

.dashboard-rank-list {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.dashboard-rank-item {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 6px 10px;
    background: linear-gradient(135deg, #fafafa 0%, #f5f5f5 100%);
    border-radius: 8px;
    transition: all 0.2s;
}

.dashboard-rank-item:hover {
    background: linear-gradient(135deg, #FFF0F5 0%, #fce7f3 100%);
    transform: translateX(5px);
}

.rank-row-top {
    display: flex;
    align-items: center;
    gap: 8px;
}

.rank-row-bottom {
    padding-left: 30px;
}

.rank-number {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--acc-primary);
    min-width: 24px;
    text-align: left;
    line-height: 1;
}

.rank-label {
    flex: 1;
    font-size: 0.75rem;
    font-weight: 700;
    color: #1e293b;
    line-height: 1.2;
}

.rank-label-clickable {
    flex: 1;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--acc-primary);
    line-height: 1.2;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s ease;
}

.rank-label-clickable:hover {
    color: #d67a90;
    text-decoration: underline;
}

.rank-value {
    font-size: 0.65rem;
    font-weight: 600;
    color: #64748b;
    text-align: left;
    font-family: 'Inter', sans-serif;
}

.rank-value.positive {
    background: var(--acc-green-bg);
    color: var(--acc-green-txt);
    padding: 4px 10px;
    border-radius: 10px;
    font-weight: 700;
}

.rank-value.negative {
    background: var(--acc-red-bg);
    color: var(--acc-red-txt);
    padding: 4px 10px;
    border-radius: 10px;
    font-weight: 700;
}

.dashboard-big-number {
    font-size: 3rem;
    font-weight: 800;
    color: #1e293b;
    line-height: 1;
    text-align: center;
    margin: 20px 0 10px;
}

.dashboard-big-number.positive {
    color: #166534;
}

.dashboard-big-number.warning {
    color: #ea580c;
}

.dashboard-subtitle-text {
    font-size: 0.75rem;
    color: #64748b;
    text-align: center;
    font-weight: 600;
}

.dashboard-footer {
    background: linear-gradient(135deg, #fef2f2 0%, #fce7f3 100%);
    padding: 12px 16px;
    border-radius: 8px;
    border: 1px solid #fce7f3;
    margin-top: 15px;
}

.dashboard-footer p {
    font-size: 0.75rem;
    color: #334155;
    line-height: 1.5;
    margin: 0;
}

.dashboard-footer strong {
    color: #9d174d;
    font-weight: 700;
}

.txt-up {
    background: var(--acc-green-bg);
    color: var(--acc-green-txt);
    padding: 4px 10px;
    border-radius: 10px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.txt-down {
    background: var(--acc-red-bg);
    color: var(--acc-red-txt);
    padding: 4px 10px;
    border-radius: 10px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

@keyframes slideDown {
    0% {
        opacity: 0;
        transform: translateY(-20px);
        max-height: 0;
    }
    100% {
        opacity: 1;
        transform: translateY(0);
        max-height: 5000px;
    }
}

/* Seta e texto embaixo do dashboard */
.dashboard-expand-trigger {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    padding: 20px;
    margin-top: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    border-top: 2px solid #f1f5f9;
}

.dashboard-expand-trigger:hover {
    background: linear-gradient(135deg, #FFF0F5 0%, #fce7f3 100%);
}

.expand-trigger-text {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.9rem;
    font-weight: 800;
    color: var(--acc-primary);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.expand-indicator-dashboard {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 32px;
    background: linear-gradient(135deg, var(--acc-primary) 0%, #d67a90 100%);
    border: 3px solid #ffffff;
    border-radius: 20px;
    box-shadow: 0 4px 12px rgba(234, 149, 168, 0.4);
    transition: all 0.3s ease;
    animation: pulseArrow 2s infinite;
}

@keyframes pulseArrow {
    0%, 100% {
        transform: translateY(0);
        box-shadow: 0 4px 12px rgba(234, 149, 168, 0.4);
    }
    50% {
        transform: translateY(3px);
        box-shadow: 0 6px 16px rgba(234, 149, 168, 0.6);
    }
}

.expand-indicator-dashboard svg {
    width: 18px;
    height: 18px;
    fill: white;
    transition: all 0.3s ease;
}

.acc-header.active ~ .acc-dashboard .expand-indicator-dashboard svg {
    transform: rotate(180deg);
}

.acc-header.active ~ .acc-dashboard .expand-indicator-dashboard {
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
    animation: none;
}

.dashboard-expand-trigger:hover .expand-indicator-dashboard {
    background: linear-gradient(135deg, #d67a90 0%, var(--acc-primary) 100%);
    transform: scale(1.1);
    animation: pulseArrowFast 1s infinite;
}

@keyframes pulseArrowFast {
    0%, 100% {
        transform: translateY(0) scale(1.1);
    }
    50% {
        transform: translateY(4px) scale(1.15);
    }
}

/* Nome da loja clicável */
.loja-clickable {
    transition: all 0.2s ease;
}

.loja-clickable:hover {
    color: var(--acc-primary) !important;
    background: linear-gradient(135deg, #FFF0F5 0%, #fce7f3 100%) !important;
    transform: translateX(5px);
    font-weight: 800 !important;
}

/* Popup de detalhes */
.milky-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.milky-popup {
    background: white;
    border-radius: 16px;
    width: 90%;
    max-width: 800px;
    max-height: 90vh;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.milky-popup-header {
    padding: 25px 30px;
    background: linear-gradient(135deg, var(--acc-primary) 0%, #d67a90 100%);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.milky-popup-header h3 {
    margin: 0;
    color: white;
    font-size: 1.5rem;
    font-weight: 800;
}

.milky-popup-close {
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid white;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.milky-popup-close:hover {
    background: white;
    color: var(--acc-primary);
}

.milky-popup-body {
    padding: 30px;
    overflow-y: auto;
    max-height: calc(90vh - 100px);
}

.popup-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

.popup-table th {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    padding: 12px;
    text-align: left;
    font-weight: 700;
    color: #1e293b;
    text-transform: uppercase;
    font-size: 0.75rem;
    border-bottom: 2px solid #e2e8f0;
}

.popup-table td {
    padding: 12px;
    border-bottom: 1px solid #f1f5f9;
    font-size: 0.9rem;
}

.popup-table tr:hover {
    background: #FFF0F5;
}

.popup-table-footer td {
    background: linear-gradient(135deg, #fef2f2 0%, #fce7f3 100%);
    font-weight: 800;
    font-size: 1rem;
    border-top: 3px solid var(--acc-primary);
}

.popup-info {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    padding: 15px 20px;
    border-radius: 10px;
    border-left: 4px solid var(--acc-primary);
}

.popup-info p {
    margin: 0;
    font-size: 0.85rem;
    color: #334155;
    line-height: 1.6;
}

/* Nome clicável no ranking */
.rank-label-clickable {
    cursor: pointer;
    transition: all 0.2s ease;
}

.rank-label-clickable:hover {
    color: var(--acc-primary);
    font-weight: 800;
}

/* --- BOTÕES MILKY --- */
.btn-milky {
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    border: 3px solid #000000;
    border-radius: 12px;
    padding: 12px 24px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 5px 5px 0px #000000;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: inline-block;
    text-decoration: none;
    line-height: 1;
}

.btn-milky:active {
    transform: translate(5px, 5px);
    box-shadow: 0px 0px 0px #000000;
}

/* Botão Branco (Limpar Filtros) */
.btn-branco {
    background: #ffffff;
    color: #000000;
    font-size: 13px;
    padding: 10px 20px;
}

.btn-branco:hover {
    background: #f0f0f0;
    transform: translate(2px, 2px);
    box-shadow: 3px 3px 0px #000000;
}

/* Botão Secundário (Expandir/Colapsar Todos) */
.btn-secondary {
    background: #f1f5f9;
    color: #334155;
    font-size: 13px;
    padding: 10px 20px;
}

.btn-secondary:hover {
    background: #e2e8f0;
    transform: translate(2px, 2px);
    box-shadow: 3px 3px 0px #000000;
}

/* Botão Destaque Rosa (Ações Principais) */
.btn-destaque {
    background: #EA95A8;
    color: #ffffff;
}

.btn-destaque:hover {
    background: #d67a90;
    transform: translate(2px, 2px);
    box-shadow: 3px 3px 0px #000000;
}

/* Botão Exportar (Preto) */
.btn-export {
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    background: #1e293b;
    color: #fff;
    border: 3px solid #000000;
    padding: 8px 16px;
    border-radius: 10px;
    font-size: 12px;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 4px 4px 0px #000000;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.btn-export:hover {
    background: #000;
    transform: translate(2px, 2px);
    box-shadow: 2px 2px 0px #000000;
}

.btn-export:active {
    transform: translate(4px, 4px);
    box-shadow: 0px 0px 0px #000000;
}

/* Footer com versão */
.milky-footer {
    text-align: center;
    padding: 20px;
    margin-top: 30px;
    border-top: 1px solid #e2e8f0;
}

.milky-footer p {
    margin: 0;
    font-size: 0.75rem;
    color: #94a3b8;
    font-weight: 500;
    letter-spacing: 0.3px;
}

/* Responsividade */
@media (max-width: 768px) {
    .filter-section {
        padding: 20px;
    }
    
    .filter-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .filter-header {
        flex-direction: column;
        align-items: stretch;
    }
    
    .filter-actions {
        flex-direction: column;
    }
    
    .toggle-all-wrapper {
        justify-content: stretch;
    }
    
    .btn-milky {
        width: 100%;
        text-align: center;
        justify-content: center;
    }
    
    .acc-header {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
        padding: 15px 15px 20px;
    }
    
    .header-left {
        width: 100%;
        gap: 10px;
    }
    
    .header-left .acc-year {
        font-size: 1.3rem;
    }
    
    .header-left .header-total-display {
        font-size: 1.4rem;
    }
    
    .total-with-badge {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .header-right {
        width: 100%;
        flex-direction: column;
        gap: 10px;
    }
    
    .expand-indicator {
        bottom: -14px;
    }
    
    .acc-year {
        font-size: 1.4rem;
    }
    
    .acc-total {
        font-size: 1.1rem;
    }
    
    .btn-export {
        width: 100%;
        justify-content: center;
    }
    
    .acc-scroll {
        padding: 10px;
        max-height: 500px;
    }
    
    .sticky-col {
        min-width: 150px;
        max-width: none;
        font-size: 0.6rem;
        padding: 6px 8px !important;
        line-height: 1.2;
        white-space: normal;
    }
    
    .sticky-col-2 {
        left: 150px;
        min-width: 35px;
        max-width: 35px;
        font-size: 0.55rem;
        padding: 6px 4px !important;
    }
    
    /* ESCONDE DASHBOARD NO MOBILE - Versão Minimalista */
    .acc-dashboard {
        display: none !important;
    }
    
    /* Esconde "Conferir Vendas" no mobile */
    .conferir-vendas-inline {
        display: none !important;
    }
    
    /* Esconde botão Expandir Todos no mobile */
    .toggle-all-wrapper {
        display: none !important;
    }
    
    /* Ajusta tabela para mobile */
    .acc-table {
        font-size: 0.6rem;
    }
    
    .acc-table th {
        font-size: 0.55rem;
        padding: 6px 3px;
    }
    
    .acc-table td {
        padding: 6px 3px;
    }
    
    .val-txt {
        font-size: 0.65rem;
    }
    
    .comp-badge {
        font-size: 0.5rem;
    }
    
    .col-total {
        font-size: 0.75rem !important;
    }
    
    /* Filtros mais compactos */
    .filter-section {
        margin-bottom: 15px;
    }
    
    .filter-header-collapsed {
        padding: 15px 20px;
    }
    
    .filter-title {
        font-size: 0.85rem;
    }
    
    .filter-content {
        padding: 0 20px 20px;
    }
    
    .filter-grid {
        gap: 12px;
    }
    
    .filter-grid label {
        font-size: 0.7rem;
    }
    
    .ts-control {
        font-size: 0.75rem !important;
        padding: 8px 10px !important;
        min-height: 38px !important;
    }
    
    .btn-milky {
        font-size: 0.7rem;
        padding: 10px 18px;
    }
}
