/* ======================================================= */
/* ESTILOS ESPECÍFICOS PARA O MÓDULO DE IMPORTAÇÕES        */
/* ======================================================= */

/* Área de Soltar Ficheiros Minimalista */
#dropzoneArea {
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all 0.2s ease;
    border: 1px dashed #cbd5e1;
    border-radius: 6px;
    padding: 20px;
    background: #fbfbfc;
    text-align: center;
}

#dropzoneArea:hover {
    border-color: var(--primary-color) !important;
    background-color: #f0fdf4 !important;
}

#dropzoneArea.dragover {
    border-color: var(--primary-color) !important;
    background-color: #dcfce7 !important;
    transform: scale(1.01);
}

#dropzoneArea i {
    font-size: 2rem;
    color: #94a3b8;
    margin-bottom: 8px;
    display: block;
}

#dropzoneArea p {
    font-size: 0.85em;
    color: #64748b;
    margin: 0 0 5px 0;
    font-weight: 500;
}

.loja-card-select:hover .card-icon {
    transform: scale(1.05);
}

#nomeArquivoSelecionado {
    word-break: break-all;
    background: #e2e8f0;
    padding: 6px 10px;
    border-radius: 4px;
    display: inline-block;
    max-width: 100%;
    font-size: 0.8em;
    margin-top: 10px;
    color: var(--primary-color);
    font-weight: 700;
}

/* ESTILOS DA TABELA DE PREVIEW (POWER QUERY STYLE) */
.tabela-container-preview {
    max-height: 350px;
    overflow: auto;
    border: 1px solid #eee;
    border-radius: 6px;
    background: #ffffff;
}

.tabela-preview-excel th {
    background: #fbfbfc !important;
    color: #495057 !important;
    font-size: 0.8em !important;
    font-weight: 700 !important;
    padding: 6px 10px !important;
    border-right: 1px solid #eee;
    border-bottom: 1px solid #eee !important;
    white-space: nowrap;
}

.tabela-preview-excel td {
    padding: 6px 10px !important;
    font-size: 0.8em !important;
    border-right: 1px solid #eee;
    border-bottom: 1px solid #eee;
    color: #495057;
    max-width: 250px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.tabela-preview-excel tr:hover td {
    background-color: #f8fafc;
}

/* CÉLULA COM ERRO */
.celula-erro {
    background-color: #fef2f2 !important;
    color: #ef4444 !important;
    font-weight: 600;
    position: relative;
}

.linha-erro {
    border-left: 3px solid #ef4444;
}

.celula-linha-num {
    background: #fbfbfc;
    font-weight: 700;
    color: #94a3b8;
    text-align: center;
    border-right: 1px solid #eee !important;
}

/* ======================================================= */
/* DROPDOWN CUSTOMIZADO (SELEÇÃO DE LOJA) BLINDADO         */
/* ======================================================= */
.custom-dropdown-container {
    position: relative;
    user-select: none;
    width: 100%;
    text-align: left;
}

.custom-select-trigger {
    height: 32px !important;
    /* Mesma altura de inputs minimalistas */
    padding: 0 10px;
    font-size: 0.85em;
    color: #495057;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    box-sizing: border-box;
    transition: border-color 0.2s ease;
}

.seta-dropdown {
    font-size: 0.8em;
    color: #94a3b8;
    transition: transform 0.2s ease;
}

.custom-dropdown-container.open .seta-dropdown {
    transform: rotate(180deg);
}

.custom-dropdown-container.open .custom-select-trigger {
    border-color: var(--primary-color);
}

.custom-select-options {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    list-style: none;
    padding: 4px 0;
    margin: 0;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-5px);
    transition: all 0.2s ease;
    max-height: 180px;
    overflow-y: auto;
}

.custom-dropdown-container.open .custom-select-options {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.custom-select-options li {
    padding: 6px 12px;
    color: #495057;
    font-size: 0.85em;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.1s ease;
    text-align: left;
}

.custom-select-options li:hover {
    background-color: #fbfbfc;
    color: var(--primary-color);
}

.custom-select-options li.selected {
    background-color: #f0fdf4;
    font-weight: 600;
    color: var(--primary-color);
}