/* Modal Minha Conta */
.minha-conta-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 10000;
    overflow: auto;
    font-family: 'Inter', sans-serif;
}

.minha-conta-modal .modal-wrapper {
    background-color: #fefefe;
    margin: 3% auto;
    border: 1px solid #888;
    width: 90%;
    max-width: 1400px;
    max-height: 92vh;
    min-height: 600px;
    position: relative;
    display: flex;
    flex-direction: column;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease-in-out;
    border-radius: 8px;
}

/* Header com barra de endereço - igual ao modal de Texto/Imagem */
.minha-conta-modal .modal-header-top-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: #EFF0F4;
    padding: 10px 16px 4px 16px;
    color: #333;
    font-size: 0.9em;
    flex-shrink: 0;
}

.minha-conta-modal .modal-header-left {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-grow: 1;
}

.minha-conta-modal .modal-header-title {
    font-weight: 600;
    color: #6b7280;
    font-size: 14px;
}

.minha-conta-modal .bullet-cinza {
    color: #ABABAB;
}

.minha-conta-modal .modal-address-bar {
    display: flex;
    position: relative;
    align-items: center;
    flex-grow: 1;
    background-color: #EFF0F4;
    border-radius: 4px;
    padding: 3px 5px;
    overflow: hidden;
}

.minha-conta-modal #minha-conta-link-input {
    flex-grow: 1;
    border: 1px solid #e6e8eb;
    background: #fafafa;
    padding: 0 10px;
    border-radius: 6px;
    font-size: 13px;
    color: #4b5563;
    cursor: text;
    outline: none;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    height: 34px;
}

.minha-conta-modal .modal-header-right {
    display: flex;
    align-items: center;
    gap: 8px;
}

.minha-conta-modal .modal-header-action-btn {
    background: none;
    border: none;
    cursor: pointer;
    color: #666;
    padding: 0 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 4px;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.minha-conta-modal .modal-header-action-btn:hover {
    background-color: rgba(0, 0, 0, 0.05);
    color: #333;
}

.minha-conta-modal .modal-header-action-btn.close-btn:hover {
    background-color: #F15F56;
    color: white;
}

.minha-conta-modal .modal-header-action-btn i {
    font-size: 18px;
}

/* Conteúdo do modal */
.minha-conta-modal .modal-content {
    padding: 24px;
    flex-grow: 1;
    overflow-y: scroll;
    border: 0 !important;
    min-height: 0;
    font-family: 'Inter', sans-serif;
}

/* Seção de filtros de pesquisa */
.minha-conta-filters {
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid #E8E8E8;
}

.filtros-pesquisa-titulo {
    display: none;
    /* Removido - agora está na mesma linha */
}

.filtros-pesquisa {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.filtro-row {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: nowrap;
    width: 100%;
}

.filtro-row::before {
    content: "Filtros de Pesquisa";
    font-size: 14px;
    font-weight: 500;
    color: #ACB5BD;
    margin-right: 4px;
}

.filtro-separator {
    color: #d1d5db;
    font-size: 14px;
    font-weight: 200;
    margin: 0 4px;
    opacity: 0.6;
}

.filtro-row .btn-aplicar-minha-conta {
    margin-left: auto;
    flex-shrink: 0;
}

.filtro-row .btn-imprimir {
    padding: 8px 16px;
    background: white;
    border: 1px solid #E8E8E8;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
    color: #F15F56;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
    margin-left: 8px;
}

.filtro-row .btn-imprimir:hover {
    background: #f8f9fa;
    border-color: #F15F56;
    color: #F15F56;
}

.filtro-row .btn-imprimir:focus {
    outline: none;
}

.filtro-radio-label {
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    color: #2c3e50;
    white-space: nowrap;
    margin: 0;
}

.filtro-radio-label input[type="radio"] {
    accent-color: #F15F56;
    cursor: pointer;
}

.filtro-date-wrapper {
    position: relative;
    flex: 0 0 auto;
    display: flex;
    align-items: center;
}

.mc-filtro-data-input {
    padding: 6px 36px 6px 12px;
    border: 1px solid #e3e7ed;
    border-radius: 6px;
    font-size: 14px;
    width: 280px;
    cursor: pointer;
    background: white;
    color: #4b5a6c;
    font-weight: 500;
    box-sizing: border-box;
    transition: border 0.2s;
}

.mc-filtro-data-input:focus {
    border-color: #F15F56;
    outline: none;
    box-shadow: 0 0 0 2px rgba(241, 95, 86, 0.1);
}

/* Ícone do calendário (igual Texto/Imagem) - apenas dentro do modal */
.minha-conta-modal .filtro-date-wrapper .calendar-icon-modal,
.minha-conta-modal .flatpickr-wrapper .calendar-icon-modal {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    pointer-events: none;
    color: #4b5a6c;
    display: block !important;
    z-index: 1;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="%23000" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><rect x="3" y="4" width="18" height="18" rx="2" ry="2"></rect><line x1="16" y1="2" x2="16" y2="6"></line><line x1="8" y1="2" x2="8" y2="6"></line><line x1="3" y1="10" x2="21" y2="10"></line></svg>');
}

/* Garante que o wrapper do Flatpickr seja relativo para posicionar o ícone - apenas dentro do modal */
.minha-conta-modal .flatpickr-wrapper {
    position: relative;
}

.filtro-destacar-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1 1 auto;
    min-width: 0;
}

.btn-aplicar-minha-conta {
    padding: 8px 20px;
    background: #F15F56;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}

.btn-aplicar-minha-conta:hover {
    background: #E04E47;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(241, 95, 86, 0.25);
}

.filtro-destacar-label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    font-weight: 500;
    color: #2c3e50;
    white-space: nowrap;
    margin: 0;
}

.filtro-destacar-label i {
    color: #F15F56;
}

.filtro-destacar-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    flex: 1 1 auto;
    min-width: 200px;
}

.filtro-destacar-input {
    width: 100%;
    padding: 6px 36px 6px 12px;
    border: 1px solid #F6F7FA;
    border-radius: 8px;
    font-size: 14px;
    background: #F6F7FA;
    box-sizing: border-box;
}

.filtro-destacar-input:focus {
    border-color: #F15F56;
    outline: none;
    box-shadow: 0 0 0 2px rgba(241, 95, 86, 0.1);
}

.btn-destacar-lupa {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    color: #6e7a8e;
    cursor: pointer;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 4px;
    transition: all 0.2s;
}

.btn-destacar-lupa:hover {
    background: rgba(241, 95, 86, 0.1);
    color: #F15F56;
}

.btn-destacar-lupa i {
    font-size: 14px;
    color: #ABABAB;
}

/* Estatísticas (agora dentro de minha-conta-tabs) */
.minha-conta-tabs .estatistica-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #2c3e50;
    margin: 0;
    padding: 8px 12px;
    background: transparent;
    border-radius: 6px;
    transition: none;
}

.minha-conta-tabs .estatistica-item:hover {
    background: #E8E8E8;
}

.estatistica-icon {
    font-size: 16px;
    color: #858E96;
    flex-shrink: 0;
}

.estatistica-label {
    font-weight: 500;
}

.estatistica-valor {
    font-weight: 700;
    color: #F15F56;
}

/* Tabs e opções de visualização */
.minha-conta-tabs-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #F6F7FA;
    padding: 12px 24px;
    margin-left: -24px;
    margin-right: -24px;
    margin-bottom: 32px;
    position: relative;
}

.minha-conta-tabs {
    display: flex;
    align-items: center;
    gap: 28px;
}

.minha-conta-modal .tab-link {
    padding: 8px 0;
    background: transparent;
    border: none;
    border-bottom: 3px solid transparent;
    font-size: 14px;
    font-weight: 500;
    color: #666;
    cursor: pointer;
    transition: all 0.2s;
    margin: 0;
    position: relative;
}

.minha-conta-modal .tab-link.active {
    color: #F15F56;
    border-bottom-color: transparent;
}

.minha-conta-modal .tab-link.active::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -14px;
    height: 3px;
    background: #F15F56;
}

.minha-conta-modal .tab-link.disabled {
    color: #ccc;
    cursor: not-allowed;
    opacity: 0.6;
}

.tab-ultima-atualizacao {
    font-size: 14px;
    color: #858E96;
    margin-left: 0;
}

.tab-ultima-atualizacao span {
    font-weight: 500;
    color: #858E96;
}

.minha-conta-view-options {
    display: flex;
    gap: 8px;
}

.view-option {
    padding: 6px 12px;
    background: none;
    border: none;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
    color: #666;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 6px;
}

.view-option:hover:not(.disabled) {
    background: #f8f9fa;
    border-color: #F15F56;
    color: #F15F56;
}

.view-option.active {
    background: none;
    color: #F15F56;
    font-weight: 600;
}

.view-option.active:focus {
    outline: none;
}

.view-option.disabled {
    color: #858E96;
    cursor: not-allowed;
    opacity: 0.6;
}

/* Seção de resultados */
.minha-conta-resultados {
    margin-bottom: 24px;
}

.resultados-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.resultados-titulo {
    font-size: 18px;
    font-weight: 600;
    color: #2c3e50;
    margin: 0;
}

/* Botão Imprimir agora está na filtro-row, estilos aplicados acima */

/* Tabelas */
.resultado-categoria {
    margin-bottom: 24px;
}

.categoria-header {
    background: #2c3e50;
    color: white;
    padding: 12px 16px;
    font-size: 14px;
    font-weight: 600;
    border-radius: 6px 6px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.categoria-total {
    background: rgba(255, 255, 255, 0.2);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 13px;
}

.resultado-table-wrapper {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.resultado-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border: none;
    border-radius: 8px;
    overflow: hidden;
}

.resultado-table thead {
    background: #F6F7FA;
}

.resultado-table th {
    background: #E8E8E8;
    padding: 10px 16px;
    text-align: left;
    font-size: 14px;
    font-weight: 500;
    color: #2c3e50;
    border: none;
    border-bottom: 1px solid #E8E8E8;
    cursor: pointer;
    user-select: none;
    position: relative;
    padding-right: 24px;
}

.resultado-table th:hover {
    background: #E8E8E8;
}

.resultado-table th.sortable::after {
    content: '\f0dc';
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    position: absolute;
    right: 12px;
    color: #858E96;
    font-size: 12px;
}

.resultado-table th.sort-asc::after {
    content: '\f0de';
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    color: #F15F56;
}

.resultado-table th.sort-desc::after {
    content: '\f0dd';
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    color: #F15F56;
}

.resultado-table tbody tr {
    background: white;
    border-bottom: 1px solid #F6F7FA;
}

.resultado-table tbody tr:nth-child(even) {
    background: #F6F7FA;
}

.resultado-table tbody tr:last-child {
    border-bottom: none;
}

.resultado-table td {
    padding: 4px 16px;
    font-size: 13px;
    color: #2c3e50;
    border: none;
    vertical-align: middle;
}

.resultado-table tbody tr:hover {
    background: #E8E8E8;
}

.resultado-table tbody tr:nth-child(even):hover {
    background: #E8E8E8;
}


.nome-arquivo {
    font-family: 'Courier New', monospace;
    font-size: 12px;
    color: #666;
}

/* Badges de Tipo */
.resultado-table td .tipo-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
    color: #2c3e50;
    background: #E8E8E8;
    vertical-align: middle;
}

.resultado-table td .tipo-badge.tipo-assinatura-ae {
    background: #E3F2FD;
    color: #1976D2;
}

.resultado-table td .tipo-badge.tipo-internacionais,
.resultado-table td .tipo-badge.tipo-assinatura-ap,
.resultado-table td .tipo-badge.tipo-assinatura-afp {
    background: #e0fff7;
    color: #0f9b7e;
}

.resultado-table td .tipo-badge.tipo-avulsa {
    background: #F3E5F5;
    color: #7B1FA2;
}

.resultado-table td .tipo-badge.tipo-acervo-ec {
    background: #FFF3E0;
    color: #E65100;
}

/* Excedente icon */
.excedente-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 12px;
    height: 12px;
    margin-right: 4px;
    font-size: 12px;
    line-height: 12px;
    color: #FF9800;
}

.excedente-icon i {
    font-size: 12px;
    line-height: 12px;
    color: inherit;
}

.tipo-badge.tipo-excedente {
    border-left: 3px solid #FF9800;
}

/* Paginação */
.minha-conta-paginacao {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 24px;
    padding: 16px 0;
    border-top: 1px solid #E8E8E8;
}

.paginacao-info {
    flex: 0 0 auto;
}

.paginacao-texto {
    font-size: 14px;
    color: #2c3e50;
    font-weight: 600;
    margin-left: 10px;
}

.paginacao-controls {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
    justify-content: center;
}

.paginacao-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border: 1px solid #E8E8E8;
    background: white;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
    color: #2c3e50;
    font-size: 14px;
}

.paginacao-btn:hover:not(:disabled) {
    background: #F6F7FA;
    border-color: #F15F56;
    color: #F15F56;
}

.paginacao-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    background: #F6F7FA;
}

.paginacao-pages {
    font-size: 14px;
    color: #2c3e50;
    font-weight: 500;
    margin: 0 8px;
    min-width: 80px;
    text-align: center;
}

.paginacao-per-page {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 0 0 auto;
    margin-right: 10px;
}

.paginacao-per-page label {
    font-size: 14px;
    color: #2c3e50;
    font-weight: 500;
    margin: 0;
}

.per-page-select {
    border: none;
    border-radius: 4px;
    background: white;
    font-size: 14px;
    color: #2c3e50;
    cursor: pointer;
    transition: all 0.2s ease;
    font-weight: 600;
}

.per-page-select:hover {
    border-color: #F15F56;
}

.per-page-select:focus {
    outline: none;
    border-color: #F15F56;
    box-shadow: 0 0 0 2px rgba(241, 95, 86, 0.1);
}

/* Destaque de palavras */
.resultado-table td.highlight {
    background-color: #fff3cd !important;
}

.resultado-table td .highlight-text {
    background-color: #ffeb3b;
    padding: 2px 0px;
    border-radius: 3px;
    font-weight: 600;
}

/* Disclaimer */
.minha-conta-disclaimer {
    margin-top: 24px;
    padding: 24px;
    background: #FEF2F1;
    border: 1px solid #F15F56;
    border-radius: 8px;
}

.minha-conta-disclaimer p {
    margin: 0 0 8px 0;
    font-size: 13px;
    font-weight: bold;
    color: #5C5C5C;
    line-height: 1.5;
}

.minha-conta-disclaimer p:last-child {
    margin-bottom: 0;
}

/* Mensagens */
.minha-conta-mensagem {
    text-align: center;
    padding: 60px 20px;
    color: #666;
}

.minha-conta-mensagem i {
    font-size: 48px;
    color: #ddd;
    margin-bottom: 16px;
}

.minha-conta-mensagem p {
    font-size: 16px;
    margin: 0;
}

/* Loading */
.minha-conta-loading {
    text-align: center;
    padding: 60px 20px;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #F15F56;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 16px;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* Card Informativo do Pacote */
.minha-conta-pacote-card {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    background: #F6F7FA;
    border: 1px solid #E8E8E8;
    border-radius: 8px;
    padding: 20px;
    margin: 24px 0;
    transition: all 0.3s ease;
}

.minha-conta-pacote-card:hover {
    border-color: #F15F56;
    box-shadow: 0 2px 8px rgba(241, 95, 86, 0.1);
}

.pacote-card-icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #F15F56;
    border-radius: 50%;
    color: white;
    font-size: 20px;
}

.pacote-card-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.pacote-card-titulo {
    margin: 0;
    font-size: 16px;
    font-weight: 700;
    color: #2c3e50;
    font-family: 'Inter', sans-serif;
}

.pacote-card-topicos {
    margin: 0;
    padding-left: 20px;
    list-style: none;
    font-size: 14px;
    color: #4b5a6c;
    line-height: 1.6;
    font-family: 'Inter', sans-serif;
}

.pacote-card-topicos li {
    position: relative;
    padding-left: 16px;
    margin-bottom: 8px;
}

.pacote-card-topicos li:last-child {
    margin-bottom: 0;
}

.pacote-card-topicos li::before {
    content: '\f00c';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    position: absolute;
    left: 0;
    color: #F15F56;
    font-size: 12px;
    line-height: 1.5;
    top: 2px;
}

.pacote-card-subtitulo {
    margin: 0;
    font-size: 14px;
    color: #2c3e50;
    font-weight: 600;
    line-height: 1.5;
    font-family: 'Inter', sans-serif;
}

.pacote-card-dica {
    margin: 0;
    margin-top: 4px;
    font-size: 13px;
    color: #858E96;
    font-style: italic;
    line-height: 1.5;
    font-family: 'Inter', sans-serif;
}

/* Responsividade */
@media (max-width: 768px) {
    .minha-conta-modal .modal-wrapper {
        width: 100%;
        margin: 0;
        border-radius: 8px;
        max-height: 100vh;
    }

    .minha-conta-modal .modal-content {
        padding: 16px;
    }

    /* ========== FILTROS ========== */
    .filtro-row {
        flex-direction: row;
        flex-wrap: wrap;
        align-items: center;
        gap: 12px;
    }

    /* Ajustar título "Filtros de Pesquisa" (::before) em mobile - mesma linha que o radio */
    .filtro-row::before {
        content: "Filtros de Pesquisa";
        display: inline-block;
        margin-right: 0;
        margin-bottom: 0;
        font-size: 13px;
        font-weight: 600;
        color: #2c3e50;
        flex-shrink: 0;
    }

    /* Ocultar separadores "|" em mobile */
    .filtro-row .filtro-separator {
        display: none;
    }

    /* Ajustar label do radio - mesma linha que o título */
    .filtro-radio-label {
        display: inline-flex;
        align-items: center;
        padding-left: 10px;
        margin: 0;
        flex-shrink: 0;
        flex-basis: auto;
    }

    /* Inputs e botão ocupam linha completa */
    .filtro-date-wrapper,
    .filtro-destacar-wrapper {
        flex-basis: 100%;
        width: 100%;
        position: relative;
        /* Garante que o ícone do calendário fique posicionado dentro do input */
    }

    /* Flatpickr wrapper deve ocupar 100% da largura em mobile */
    .minha-conta-modal .flatpickr-wrapper {
        width: 100% !important;
        display: block !important;
    }

    .mc-filtro-data-input {
        width: 100%;
        box-sizing: border-box;
        padding-right: 36px;
        /* Espaço para o ícone do calendário */
    }

    /* Garantir que o ícone do calendário fique dentro do input em mobile */
    /* A regra geral já define o posicionamento, mas garantimos que funcione em mobile */
    .minha-conta-modal .filtro-date-wrapper .calendar-icon-modal,
    .minha-conta-modal .flatpickr-wrapper .calendar-icon-modal {
        position: absolute !important;
        right: 12px !important;
        top: 50% !important;
        transform: translateY(-50%) !important;
        z-index: 1 !important;
    }

    .filtro-destacar-input-wrapper {
        width: 100%;
    }

    /* Botões Aplicar e Imprimir full-width */
    .filtro-row .btn-aplicar-minha-conta,
    .filtro-row .btn-imprimir {
        flex-basis: 100%;
        width: 100%;
        margin-left: 0;
        margin-top: 4px;
        justify-content: center;
    }

    /* ========== ESTATÍSTICAS (agora dentro de minha-conta-tabs) ========== */
    .minha-conta-tabs .estatistica-item {
        width: auto;
        padding: 0;
    }

    /* ========== TABS E OPÇÕES ========== */
    .minha-conta-tabs-wrapper {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
        padding: 16px;
        margin-left: -16px;
        margin-right: -16px;
    }

    .minha-conta-tabs {
        flex-wrap: wrap;
        gap: 16px;
        width: 100%;
        padding: 0px 12px;
    }

    /* Última Atualização em linha separada em telas muito pequenas */
    .minha-conta-tabs .tab-ultima-atualizacao {
        width: 100%;
        margin-top: 8px;
        padding-top: 8px;
        border-top: 1px solid #E8E8E8;
        font-size: 12px;
    }

    .minha-conta-view-options {
        width: 100%;
        justify-content: space-between;
    }

    .resultados-header {
        flex-direction: column;
        gap: 12px;
        align-items: stretch;
    }

    /* ========== TABELA ========== */
    .resultado-table-wrapper {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .resultado-table {
        font-size: 12px;
        min-width: 900px;
    }

    .resultado-table th {
        padding: 8px 10px;
        font-size: 12px;
    }

    .resultado-table td {
        padding: 6px 10px;
        font-size: 12px;
    }

    /* Badges de tipo mais compactos em mobile */
    .resultado-table td .tipo-badge {
        padding: 3px 6px;
        font-size: 11px;
    }

    /* ========== PAGINAÇÃO ========== */
    .minha-conta-paginacao {
        flex-direction: column;
        gap: 16px;
        align-items: stretch;
    }

    .paginacao-info {
        width: 100%;
        text-align: center;
    }

    .paginacao-texto {
        margin-left: 0;
        font-size: 13px;
        word-break: break-word;
    }

    .paginacao-controls {
        flex-wrap: wrap;
        gap: 6px;
        justify-content: center;
        width: 100%;
    }

    /* Botões de navegação mais compactos */
    .paginacao-btn {
        width: 36px;
        height: 36px;
        font-size: 13px;
    }

    .paginacao-pages {
        font-size: 13px;
        margin: 0 4px;
        min-width: auto;
        padding: 0 8px;
    }

    .paginacao-per-page {
        width: 100%;
        justify-content: center;
        margin-right: 0;
        margin-top: 8px;
        padding-top: 12px;
        border-top: 1px solid #E8E8E8;
    }

    .paginacao-per-page label {
        font-size: 13px;
        white-space: nowrap;
    }

    .per-page-select {
        font-size: 13px;
        min-width: 80px;
    }

    /* Card informativo em mobile */
    .minha-conta-pacote-card {
        flex-direction: column;
        padding: 16px;
        gap: 12px;
    }

    .pacote-card-icon {
        width: 36px;
        height: 36px;
        font-size: 18px;
    }

    .pacote-card-titulo {
        font-size: 15px;
    }

    .pacote-card-topicos,
    .pacote-card-subtitulo {
        font-size: 13px;
    }

    .pacote-card-topicos li {
        margin-bottom: 6px;
    }

    .pacote-card-dica {
        font-size: 12px;
    }
}

/* Breakpoint adicional para telas muito pequenas (< 480px) */
@media (max-width: 480px) {
    .minha-conta-modal .modal-content {
        padding: 16px;
    }

    .minha-conta-filters {
        padding-bottom: 12px;
        margin-bottom: 16px;
    }

    .filtro-row {
        gap: 10px;
    }

    .minha-conta-tabs .estatistica-item {
        font-size: 13px;
    }

    .minha-conta-tabs-wrapper {
        padding: 12px 16px;
    }

    .minha-conta-tabs {
        gap: 12px;
    }

    /* ========== TABELA - TELAS MUITO PEQUENAS ========== */
    .resultado-table {
        font-size: 11px;
        min-width: 800px;
        /* Reduzido de 900px para melhor aproveitamento */
    }

    .resultado-table th {
        padding: 6px 8px;
        font-size: 11px;
    }

    .resultado-table td {
        padding: 5px 8px;
        font-size: 11px;
    }

    /* Ocultar coluna UF em telas muito pequenas */
    .resultado-table th:nth-child(4),
    .resultado-table td:nth-child(4) {
        display: none;
    }

    /* Ajustar larguras das colunas restantes */
    .resultado-table th:nth-child(1) {
        width: 18%;
    }

    /* Tipo */
    .resultado-table th:nth-child(2) {
        width: 12%;
    }

    /* Data */
    .resultado-table th:nth-child(3) {
        width: 10%;
    }

    /* Hora */
    .resultado-table th:nth-child(5) {
        width: 40%;
    }

    /* Retranca */
    .resultado-table th:nth-child(6) {
        width: 12%;
    }

    /* Crédito */
    .resultado-table th:nth-child(7) {
        width: 8%;
    }

    /* Nome */

    .resultado-table td .tipo-badge {
        padding: 2px 5px;
        font-size: 10px;
    }

    /* ========== PAGINAÇÃO - TELAS MUITO PEQUENAS ========== */
    .paginacao-controls {
        gap: 4px;
    }

    .paginacao-btn {
        width: 32px;
        height: 32px;
        font-size: 12px;
    }

    .paginacao-pages {
        font-size: 12px;
        margin: 0 2px;
        padding: 0 4px;
    }

    .paginacao-texto {
        font-size: 12px;
    }

    .paginacao-per-page {
        flex-direction: column;
        gap: 8px;
        align-items: center;
    }

    .paginacao-per-page label {
        font-size: 12px;
    }

    .per-page-select {
        font-size: 12px;
        width: 100px;
    }
}