/* Estilo geral para o container */
/*
.reports-container {
    font-family: 'Poppins', sans-serif;
    max-width: 100%; 
    padding: 20px;
    background-color: #f9f9f9; 
    border: 1px solid #ddd; 
    border-radius: 8px; 
}
*/

/* Estilo geral para tabelas */
#orderlist table,
table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    font-size: 13px;
    font-family: 'Poppins', sans-serif;
}

#orderlist table thead,
.reports-container table thead tr {
    background-color: #47767E; /* Cabeçalho em azul */
    color: #fff; /* Texto branco */
    text-align: left;
    font-weight: bold;
}

#orderlist table tbody tr,
table th, table td {
    padding: 12px 15px;
    border: 1px solid #ddd; /* Borda leve */
}

table tbody tr:nth-child(even) {
    background-color: #f9f9f9; /* Linhas pares com fundo mais claro */
}

table tbody tr:hover {
    background-color: #f1f1f1; /* Hover suave */
}

table a {
    color: #47767E;
    text-decoration: none;
    font-weight: bold;
}

table a:hover {
    color: #d14e03;
    text-decoration: underline;
}

select[name="shipping_status"] {
    font-family: 'Poppins', sans-serif;
    border-radius: 5px;
    font-size: 13px;
    height: auto;
    border-color: #47767E;
}

/* Botão View Link */
.view-affiliate-link {
    background-color: #47767E;
    color: #ffffff;
    border: none;
    padding: 10px 20px;
    cursor: pointer;
    border-radius: 5px;
    font-family: 'Poppins', sans-serif;
    font-size: 12px;
    font-weight: bold;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.view-affiliate-link:hover {
    background-color: #d14e03;
    transform: scale(1.05);
}

/* Popup de links */
.affiliate-link-popup {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: #47767E;
    color: #ffffff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    width: 90%; /* Aumenta a largura para comportar melhor o link */
    max-width: 600px; /* Permite mais espaço */
    word-wrap: break-word; /* Garante a quebra do link */
    overflow-wrap: break-word; /* Alternativa para compatibilidade */
    text-align: center;
}

.affiliate-link-popup .popup-content p {
    font-size: 16px;
    margin-bottom: 10px;
}

.affiliate-link-popup .popup-content p:nth-child(2) {
    font-size: 13px;
    color: #fff;
    word-wrap: break-word; /* Mantém a quebra de linha */
    overflow-wrap: break-word; /* Alternativa compatível */
    background-color: #35585E;
    padding: 10px;
    border-radius: 4px;
    margin-top: 10px;
    text-align: left; /* Deixa o texto alinhado corretamente */
    overflow-x: auto; /* Permite rolagem caso seja necessário */
    max-width: 100%; /* Ajusta ao tamanho do popup */
    white-space: normal; /* Permite múltiplas linhas */
}

.affiliate-link-popup .close-popup {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 20px;
    cursor: pointer;
    color: #fff;
}

.affiliate-link-popup .close-popup:hover {
    color: #d14e03;
}

/* Botão Copy Affiliate Link */
table.affiliate-products-report .copy-affiliate-link {
    background-color: #47767E;
    color: #ffffff;
    border: none;
    padding: 8px 12px;
    cursor: pointer;
    border-radius: 5px;
    font-family: 'Poppins', sans-serif;
    font-size: 12px;
    font-weight: bold;
    transition: background-color 0.3s ease, transform 0.3s ease;
    display: inline-block;
    margin-top: 5px;
}

table.affiliate-products-report .copy-affiliate-link:hover {
    background-color: #d14e03;
    transform: scale(1.05);
}

/* Mensagem de confirmação */
.copy-message {
    color: #28a745; /* Cor verde */
    font-size: 12px;
    font-family: 'Poppins', sans-serif;
    margin-left: 10px; /* Espaçamento entre o botão e a mensagem */
    display: inline-block;
}

/* Ajustes para tabelas com classe específica */
table.affiliate-products-report {
    margin-top: 20px;
}

table.affiliate-products-report th {
    background-color: #47767E;
    color: #ffffff;
    padding: 10px;
    text-align: left;
}

table.affiliate-products-report td {
    padding: 10px;
}

table.affiliate-products-report tr:nth-child(even) {
    background-color: #f9f9f9;
}

table.affiliate-products-report tr:hover {
    background-color: #f1f1f1;
}

/* Links do botão */
table.affiliate-products-report a {
    text-decoration: none;
    color: #47767E;
    font-weight: bold;
}

table.affiliate-products-report a:hover {
    text-decoration: underline;
    color: #d14e03;
}

/* Estilo para a mensagem flutuante */
.floating-message {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 9999;
    padding: 10px 20px;
    font-family: 'Poppins', sans-serif;
    font-size: 13px;
    border-radius: 5px;
    color: #ffffff;
    background-color: #28a745; /* Cor verde para sucesso */
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    opacity: 1;
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.floating-message.error {
    background-color: #dc3545; /* Cor vermelha para erro */
}

.floating-message.fade-out {
    opacity: 0;
    transform: translateX(-50%) translateY(-10px);
}

/* Responsividade */
@media (max-width: 768px) {
    table th, table td {
        font-size: 12px;
        padding: 8px;
    }

    .reports-container {
        padding: 15px;
    }
}

/*
#variations-container {
    display: flex;
    justify-content: center;
    align-items: center;
}
*/