/**
 * CSS Global Atualizado
 * Inclui estilos originais + correções para header sticky e responsividade
 */

/* Cores personalizadas */
.text-orange {
    color: #FFA500 !important;
}

/* Estilização do dropdown */
#filtroOperadora {
    border-radius: 8px;
    padding: 10px 15px;
    background: #1a1a1a !important;
    width: 120px;
    margin-right: 10px;
}
#filtroOperadora option {
    padding: 12px;
    border-bottom: 1px solid #2d2d2d;
}

/* Botão refresh */
#refreshButton {
    background-color: #6200ea;
    border: none;
    padding: 6px 12px;
    font-size: 14px;
    color: white;
}

/* Badges de status de fatura */
.fatura-faturamento {
    color: black;
    background-color: rgba(40,167,69,0.15);
    padding: 2px 8px;
    border-radius: 4px;
    border: 1px solid #28a745;
    font-weight: 500;
}
.fatura-aguardando {
    color: black;
    background-color: rgba(255,193,7,0.15);
    padding: 2px 8px;
    border-radius: 4px;
    border: 1px solid #ffc107;
    font-weight: 500;
}
.fatura-cancelada {
    color: black;
    background-color: rgba(220,53,69,0.15);
    padding: 2px 8px;
    border-radius: 4px;
    border: 1px solid #dc3545;
    font-weight: 500;
}
.fatura-nao-ativo {
    color: black;
    background-color: rgba(108,117,125,0.15);
    padding: 2px 8px;
    border-radius: 4px;
    border: 1px solid #6c757d;
    font-weight: 500;
}
.fatura-suspenso {
    color: #fd7e14;
    background-color: rgba(253,126,20,0.15);
    padding: 2px 8px;
    border-radius: 4px;
    border: 1px solid #fd7e14;
    font-weight: 500;
}

/* Scrollbars personalizados */
/* WebKit */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
::-webkit-scrollbar-track {
    background: transparent;
    border-radius: 3px;
}
::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 3px;
    transition: all 0.3s;
}
::-webkit-scrollbar-thumb:hover {
    background: #555;
}
/* Firefox */
* {
    scrollbar-width: thin;
    scrollbar-color: #888 transparent;
}

/* Outros estilos globais */
.btn {
    color: #16181a;
}
.custom-select {
    font-size: small !important;
}
.card-header {
    font-size: small !important;
    height: 30px;
    text-align: left;
    padding: 5px;
    margin-bottom: 0;
}
td {
    font-size: small !important;
}
td button {
    font-size: small !important;
}


 /* Container principal para scroll */
 .table-responsive {
    max-width: 100%;
    overflow-x: auto;
    max-height: 500px;
    min-height: 500px;

    overflow-y: auto;
}
/* Ajustes na tabela */
.table.table-fixed {
    width: auto;
    min-width: 100%;
    table-layout: auto;
    border-collapse: separate;
    border-spacing: 0;
    font-size: 0.9em;
}
/* Cabeçalho fixo */
.thead-dark th {
    background-color: #343a40;
    color: white;
    position: sticky;
    top: 0;
    z-index: 2;
    padding: 12px 8px;
    white-space: nowrap;
    vertical-align: middle;
}

.table.table-fixed td {
    padding: 8px;
    vertical-align: middle;
    white-space: nowrap;
    max-width: 200px;
    overflow: hidden;
    text-overflow: ellipsis;
}

tbody tr:nth-child(even) {
    background-color: #f8f9fa;
}
tbody tr:hover {
    background-color: rgba(0,0,0,0.03);
}
.btn-sm {
    padding: 4px 8px;
    font-size: 0.85em;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

/* Estilo atualizado para o .selectpicker */
.selectpicker,
.selectpicker .dropdown-toggle {
    font-size: 14px !important; /* Ajuste o tamanho da fonte */
    padding: 6px 12px !important;
    border-radius: 4px !important;
    background-color: #ffffff !important;
    color: #000000 !important;
    min-width: 150px !important;
    text-align: left !important;
}

/* Estilo para os itens do dropdown */
.selectpicker .dropdown-menu {
    font-size: 14px !important; /* Ajuste o tamanho da fonte no dropdown */
    background-color: #ffffff !important;
    color: #000000 !important;
}

.selectpicker .dropdown-menu li a {
    font-size: 14px !important;
    padding: 8px 12px !important;
    color: #000000 !important;
}

.selectpicker .dropdown-menu li a:hover {
    background-color: #f2f2f2 !important;
    color: #000000 !important;
}

.status-col {
    min-width: 120px;
}

.text-center {
    font-style: italic;
    color: #6c757d;
    padding: 20px!important;
}
.btn svg {
    margin-right: 4px;
}

table {
    border-collapse: collapse; /* Remove espaços entre células */
    width: 100%;
}
th, td {
    border: 1px solid rgba(0, 0, 0, 0.1) !important;  /* Bordas mais claras */
    padding: 8px;
    text-align: left;
    border-collapse: collapse; /* Remove espaçamento entre bordas */
}
th {
    background-color: #f2f2f2; /* Cor de fundo para cabeçalho */
}

.icon-size {
    font-size: 20px !important;
}

.modal-header , .modal-body {
    padding: 0px !important;
}
.modal-header {
    border-bottom: none !important;
}
.modal-body {
    padding: 0px !important;
}
.modal-footer {
    border-top: none !important;
}
#alertOverlay {
    position: fixed;                      /* fixa sobre todo o conteúdo */
    top: 0; left: 0; width: 100%; height: 100%;
    background-color: rgba(0,0,0,0.6);    /* fundo semi-transparente :contentReference[oaicite:4]{index=4} */
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1050;                        /* acima de quase tudo, abaixo de modals se houver */
  }
  #alertOverlay .alert {
    max-width: 90%;
    box-shadow: 0 0 10px rgba(0,0,0,0.3);
  }