/* =========================================================
   Adel Documentos — Estilo Padronizado
   ========================================================= */

/* ── Reset e Base (Com Poppins) ─────────────────────────────────── */
.adel-formulario-wrapper,
#adel-app-lista-documentos,
.adel-modal-overlay,
#adel-notificacoes-container,
.adel-confirm-overlay {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: 14px;
    color: #1a1a2e;
    box-sizing: border-box;
}

.adel-formulario-wrapper *,
#adel-app-lista-documentos *,
.adel-modal-overlay *,
.adel-confirm-overlay * {
    font-family: 'Poppins', sans-serif;
    box-sizing: border-box;
}

.adel-formulario-wrapper h3, 
.adel-modal-content h2, 
.adel-confirm-title, 
.adel-notificacao h4 {
    font-weight: 600; 
    letter-spacing: -0.01em;
}

/* ── Formulários (Inputs, Selects, Textareas) ─────────── */
.adel-formulario-wrapper {
    background: #fff;
    padding: 32px;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0,0,0,.03);
    margin: 20px auto;
}

.adel-formulario-wrapper h3 {
    font-size: 18px;
    font-weight: 600;
    margin: 0 0 24px;
    color: #0f172a;
    border-bottom: 1px solid #f1f5f9;
    padding-bottom: 16px;
}

.adel-form-requisicao label,
.adel-modal-sidebar label {
    font-size: 13px;
    font-weight: 600;
    color: #475569;
    display: block;
    margin-bottom: 6px;
    margin-top: 12px;
}

.adel-form-requisicao input,
.adel-form-requisicao select,
.adel-form-requisicao textarea,
.adel-modal-sidebar input,
.adel-modal-sidebar select,
.adel-modal-sidebar textarea {
    background: #f8fafc !important;
    border: 1px solid #cbd5e1 !important;
    padding: 10px 14px !important;
    color: #1e293b !important;
    font-size: 14px !important;
    font-weight: 400 !important;
    border-radius: 8px !important;
    box-shadow: inset 0 1px 2px rgba(0,0,0,0.01) !important;
}

.adel-form-requisicao input:focus,
.adel-form-requisicao select:focus,
.adel-form-requisicao textarea:focus,
.adel-modal-sidebar input:focus,
.adel-modal-sidebar select:focus,
.adel-modal-sidebar textarea:focus {
    background: #ffffff;
    border-color: #3b82f6;
    outline: none;
}

.adel-form-requisicao textarea,
.adel-modal-sidebar textarea {
    min-height: 80px;
    resize: vertical;
}

/* ── Selects Customizados para Formulários (Correção de Largura e Scrollbar) ── */
.form-custom-dropdown {
    width: 100% !important;
    min-width: 100% !important;
    margin-top: 0;
    position: relative; /* Garante o alinhamento correto da aba absoluta */
}

.form-custom-dropdown .dropdown-trigger {
    background: #f8fafc !important;
    border: 1px solid #cbd5e1 !important;
    padding: 10px 14px !important;
    color: #1e293b !important;
    font-size: 14px !important;
    font-weight: 400 !important;
    border-radius: 8px !important;
    box-shadow: inset 0 1px 2px rgba(0,0,0,0.01) !important;
}

/* A Lista Suspensa Blindada contra Encolhimento */
.form-custom-dropdown .dropdown-list {
    max-height: 220px;
    border-color: #cbd5e1 !important;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1) !important;
    z-index: 9999 !important; /* Garante que fique por cima de qualquer input abaixo dele */
    
    /* Gerenciamento de Rolagem Inteligente */
    overflow-y: auto !important;
    overflow-x: hidden !important; /* Mata definitivamente a barra horizontal indesejada */
    
    /* DINÂMICA DE LARGURA INDEPENDENTE: */
    min-width: 100% !important;     /* Nunca fica menor que o campo de clique */
    width: max-content !important;   /* Expande para o tamanho do maior texto (Ex: Estado por extenso) */
    max-width: 380px !important;     /* Limite de segurança opcional para telas muito pequenas */
    white-space: nowrap !important;  /* Impede o texto de quebrar linha de forma feia */
}

/* CUSTOMIZAÇÃO DA BARRA DE ROLAGEM (Scrollbar Minimalista) */
.form-custom-dropdown .dropdown-list::-webkit-scrollbar {
    width: 6px !important; /* Barra vertical bem fininha e discreta */
}

.form-custom-dropdown .dropdown-list::-webkit-scrollbar-track {
    background: #f1f5f9 !important; /* Fundo do trilho combinando com o design */
    border-radius: 0 8px 8px 0;    /* Alinha as bordas arredondadas do canto da caixinha */
}

.form-custom-dropdown .dropdown-list::-webkit-scrollbar-thumb {
    background: #cbd5e1 !important; /* Cor do indicador de rolagem */
    border-radius: 4px !important;
}

.form-custom-dropdown .dropdown-list::-webkit-scrollbar-thumb:hover {
    background: #94a3b8 !important; /* Escurece suavemente ao passar o mouse */
}

.form-custom-dropdown .dropdown-list li.disabled-option {
    color: #94a3b8;
    background: #f8fafc;
    cursor: not-allowed;
}
.form-custom-dropdown .dropdown-list li.disabled-option:hover {
    background: #f8fafc;
    color: #94a3b8;
}

.form-custom-dropdown .dropdown-trigger::after {
    display: none !important;
}

/* ── Botões Globais ───────────────────────────────────────────── */
.button, button[type="submit"] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 16px;
    border-radius: 8px !important;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    border: 1px solid #d1d5db;
    background: #fff;
    color: #374151;
    transition: all 0.2s;
    text-decoration: none;
}
.button:hover, button[type="submit"]:hover {
    background: #f9fafb;
    border-color: #9ca3af;
}
.button:active, button[type="submit"]:active { 
    transform: scale(.97); 
}

.button-primary, button[type="submit"], #adel-btn-aprovar {
    background: #111827 !important;
    color: #fff !important;
    border: none !important;
}
.button-primary:hover, button[type="submit"]:hover, #adel-btn-aprovar:hover {
    background: #1f2937 !important;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

#adel-btn-recusar, #adel-btn-desaprovar {
    background: #fef2f2 !important;
    color: #b91c1c !important;
    border: 1px solid #fca5a5 !important;
}
#adel-btn-recusar:hover, #adel-btn-desaprovar:hover {
    background: #fee2e2 !important;
}

#adel-btn-download {
    background: #eff6ff !important;
    color: #3b82f6 !important;
    border: 1px solid #bfdbfe !important;
}
#adel-btn-download:hover { 
    background: #eff6ff !important; 
}

/* ── Cabeçalho da Tabela e Filtros ─────────── */
.adel-painel-topbar {
    background: #ffffff;
    padding: 20px 25px;
    margin-top: 20px;
    margin-bottom: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    display: flex;
    gap: 20px;
    align-items: flex-end;
    flex-wrap: wrap;
    border: none;
}

.adel-painel-info {
    display: flex;
    flex-direction: column;
    align-items: left;
    gap: 15px;
    flex: 1;
}

.adel-painel-info h3 {
    margin: 0;
    font-size: 25px;
    font-weight: 600;
    color: #333333;
    border: none;
    padding: 0;
}

.adel-badge-count {
    background: #f4f7f9;
    color: #888888;
    font-size: 12px;
    font-weight: 700;
    padding: 6px 14px;
    border-radius: 50px;
    width: fit-content;
}

.adel-painel-controls {
    display: flex;
    align-items: flex-end;
    gap: 20px;
}

.adel-filter-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.adel-filter-group label {
    font-size: 12px;
    font-weight: 700;
    color: #888888;
    text-transform: uppercase;
    margin: 0;
}

.adel-sort-group {
    display: flex;
    background: #ffffff;
    border: 1px solid #dddddd;
    border-radius: 8px;
    padding: 4px;
    gap: 6px;
}

.adel-btn-sort {
    background: transparent;
    border: none;
    padding: 8px 15px;
    font-size: 13px;
    font-weight: 600;
    color: #888888;
    border-radius: 6px !important;
    cursor: pointer;
    transition: all 0.2s;
}
.adel-btn-sort:hover { color: #333; }
.adel-btn-sort.active {
    background: #eff6ff;
    color: #333;
    border: 1px solid #94a3b8 !important;
}

/* ── Dropdown Customizado ────────────────────────────────── */
.custom-dropdown { 
    position: relative; 
    min-width: 220px; 
}

.dropdown-trigger { 
    padding: 10px 15px; 
    background: #fff; 
    border: 1px solid #ddd; 
    border-radius: 8px; 
    font-size: 13px; 
    font-weight: 500; 
    cursor: pointer; 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    color: #333;
    transition: border-color 0.2s;
}
.dropdown-trigger:hover { border-color: #0073aa; }
.dropdown-trigger::after { 
    content: "▼"; 
    font-size: 9px; 
    color: #bbb; 
    margin-left: 10px; 
    transition: transform 0.2s; 
}

.custom-dropdown.open .dropdown-trigger::after { 
    transform: rotate(180deg); 
}

.dropdown-list { 
    display: none; 
    position: absolute; 
    top: calc(100% + 5px); 
    left: 0; 
    background: #fff; 
    width: 100%; 
    z-index: 100; 
    border-radius: 8px; 
    box-shadow: 0 10px 25px rgba(0,0,0,0.1); 
    list-style: none; 
    padding: 8px 0; 
    border: 1px solid #eee; 
    margin: 0; 
    max-height: 250px; 
    overflow-y: auto;
}

.custom-dropdown.open .dropdown-list { 
    display: block; 
    animation: adel-fade-in 0.2s ease; 
}

@keyframes adel-fade-in { 
    from { opacity: 0; transform: translateY(-5px); } 
    to { opacity: 1; transform: translateY(0); } 
}

.dropdown-list li { 
    padding: 10px 15px; 
    font-size: 13px; 
    font-weight: 500; 
    cursor: pointer; 
    color: #555; 
    transition: background 0.2s; 
}
.dropdown-list li:hover { 
    background: #f4f7f9; 
    color: #0073aa; 
}

/* ── Tabela de Listagem ────────────────────── */
.adel-tabela-container {
    background: #ffffff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
    border: none;
    margin-top: 0;
}

.adel-tabela {
    width: 100%;
    border-collapse: collapse;
    border: none !important;
    margin: 0px;
}

.adel-tabela thead, .adel-tabela thead tr {
    border: none !important;
    background: #f8fafb;
}

.adel-tabela th {
    padding: 20px;
    text-align: left;
    font-size: 14px;
    color: #666666;
    font-weight: 600;
    border: none !important;
}

.adel-tabela td {
    padding: 16px 20px;
    font-size: 14px;
    color: #333333;
    border: none !important;
    vertical-align: middle;
}

.adel-tabela tr:nth-child(even) { background-color: #fafbfc; }
.adel-tabela tr:hover { background-color: #f1f6f9; }

/* ── Botões de Ação na Tabela (Estrutura e Cores) ────────────────────── */
.adel-btn-previa,
.adel-btn-edit,
.adel-btn-delete,
a.adel-btn-table-download,
button.adel-btn-table-download {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 6px 14px !important;
    border-radius: 6px !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    text-decoration: none !important;
    box-shadow: 0 1px 2px rgba(0,0,0,0.02) !important;
    margin: 0 !important;
}

/* Ver Prévia (Cinza/Neutro) */
.adel-btn-previa {
    background: #f8fafc !important;
    border: 1px solid #cbd5e1 !important;
    color: #475569 !important;
}
.adel-btn-previa:hover {
    background: #f1f5f9 !important;
    border-color: #94a3b8 !important;
    color: #0f172a !important;
    transform: translateY(-1px);
}

/* Editar (Azul Vibrante) */
.adel-btn-edit {
    background: #3b82f6 !important;
    border: 1px solid #2563eb !important;
    color: #ffffff !important;
}
.adel-btn-edit:hover {
    background: #2563eb !important;
    border-color: #1d4ed8 !important;
    color: #ffffff !important;
    transform: translateY(-1px);
}

/* Download (Azul Claro) - Blindado para Links e Botões */
a.adel-btn-table-download, 
button.adel-btn-table-download {
    background-color: #eff6ff !important;
    border-width: 1px !important;
    border-style: solid !important;
    border-color: #bfdbfe !important;
    color: #3b82f6 !important;
}
a.adel-btn-table-download:hover, 
button.adel-btn-table-download:hover {
    background-color: #dbeafe !important;
    border-color: #93c5fd !important;
    color: #2563eb !important;
    transform: translateY(-1px) !important;
}

/* Lixeira (Vermelho Claro) */
.adel-btn-delete {
    background: #fef2f2 !important;
    border: 1px solid #fecaca !important;
    color: #ef4444 !important;
}
.adel-btn-delete:hover {
    background: #fee2e2 !important;
    border-color: #fca5a5 !important;
    color: #dc2626 !important;
    transform: translateY(-1px);
}

/* ── Status ─────────────────────────────────── */
.adel-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    font-weight: 500;
    color: #333333;
    text-transform: capitalize;
    background: transparent;
    padding: 0;
}

.adel-status-badge::before {
    content: '';
    display: inline-block;
    height: 11px;
    width: 11px;
    border-radius: 50%;
}

.adel-status-aprovado::before { background-color: #28a745; box-shadow: 0 0 8px rgba(40, 167, 69, 0.5); }
.adel-status-pendente::before { background-color: #ffc107; box-shadow: 0 0 8px rgba(255, 193, 7, 0.5); }
.adel-status-em-edicao::before { background-color: #0073aa; box-shadow: 0 0 8px rgba(0, 115, 170, 0.5); }
.adel-status-reprovado::before { background-color: #dc3545; box-shadow: 0 0 8px rgba(220, 53, 69, 0.5); }

/* ── POP-UP PRINCIPAL RESTAURADO (Mesa de Trabalho) ────────────────────────── */
.adel-modal-overlay {
    display: none;
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(17, 24, 39, 0.6);
    backdrop-filter: blur(4px);
    z-index: 10000;
    align-items: center;
    justify-content: center;
}

.adel-modal-content {
    background: #f3f4f6;
    width: 95%;
    max-width: 1400px;
    height: 92vh;
    border-radius: 20px;
    padding: 24px;
    box-shadow: 0 25px 50px -12px rgba(0,0,0,0.25);
    display: flex;
    flex-direction: column;
    position: relative;
}

.adel-modal-close {
    position: absolute;
    top: 24px; right: 24px;
    background: #e5e7eb;
    color: #4b5563;
    border: none;
    width: 36px; height: 36px;
    border-radius: 10px;
    cursor: pointer;
    font-weight: bold;
    font-size: 16px;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}
.adel-modal-close:hover { background: #d1d5db; color: #111827; border-radius: 10px !important;}

.adel-modal-split {
    display: flex;
    gap: 20px;
    align-items: stretch;
    height: calc(100% - 40px);
}

.adel-modal-pdf-container {
    flex: 2;
    height: 100%;
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05);
}

.adel-botoes-container {
    padding: 16px 20px;
    background: #fff;
    border-top: 1px solid #e5e7eb;
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}

.adel-modal-sidebar {
    flex: 1;
    background: #fff;
    padding: 24px;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    height: 100%;
    overflow-y: auto;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05);
}
.adel-modal-sidebar::-webkit-scrollbar { width: 6px; }
.adel-modal-sidebar::-webkit-scrollbar-track { background: #f1f1f1; border-radius: 4px; }
.adel-modal-sidebar::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 4px; }

.adel-modal-sidebar ul li {
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid #f3f4f6;
}
.adel-modal-sidebar ul li strong {
    font-size: 11px;
    text-transform: uppercase;
    color: #6b7280;
    letter-spacing: .5px;
}
.adel-modal-sidebar ul li div[id^="display-"] {
    font-size: 14px;
    color: #111827;
    margin-top: 4px;
    line-height: 1.5;
}

.adel-edit-icon {
    cursor: pointer;
    font-size: 12px;
    text-decoration: none;
    color: #3b82f6;
    float: right;
    background: #eff6ff;
    padding: 3px 8px;
    border-radius: 6px;
    transition: background 0.2s;
}
.adel-edit-icon:hover { background: #dbeafe; color: #1d4ed8; }

.adel-lock-warning {
    background: #fffbeb;
    color: #92400e;
    padding: 12px 16px;
    border-radius: 8px;
    border-left: 4px solid #f59e0b;
    margin-bottom: 16px;
    font-size: 13px;
}

/* ── Modal de Confirmação Customizado ──────────────────────── */
.adel-confirm-overlay {
    display: none;
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(17, 24, 39, 0.6);
    backdrop-filter: blur(4px);
    z-index: 10005;
    align-items: center;
    justify-content: center;
}

.adel-confirm-box {
    background: #ffffff;
    width: 90%;
    max-width: 400px;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 20px 25px -5px rgba(0,0,0,0.1), 0 10px 10px -5px rgba(0,0,0,0.04);
    text-align: center;
    animation: adel-zoom-in 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes adel-zoom-in {
    from { transform: scale(0.9); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.adel-confirm-icon {
    width: 48px;
    height: 48px;
    background: #fef2f2;
    color: #ef4444;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin: 0 auto 16px;
}

.adel-confirm-title {
    font-size: 18px;
    margin: 0 0 8px;
}

.adel-confirm-text {
    font-size: 14px;
    color: #475569;
    margin: 0 0 24px;
    line-height: 1.5;
}

.adel-confirm-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
}

.adel-confirm-actions .button {
    flex: 1;
}

.adel-confirm-btn-danger { background: #ef4444 !important; color: white !important; border: none !important; }
.adel-confirm-btn-danger:hover { background: #dc2626 !important; }

.adel-confirm-btn-warning { background: #f59e0b !important; color: white !important; border: none !important; }
.adel-confirm-btn-warning:hover { background: #d97706 !important; }

/* ── Alerta Global (Notificações) ─────────────────────── */
#adel-notificacoes-container {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.adel-notificacao {
    background: #ffffff;
    padding: 16px;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 10px 25px -5px rgba(0,0,0,0.1), 0 8px 10px -6px rgba(0,0,0,0.05);
    width: 340px;
    position: relative;
    animation: adel-slide-in 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    align-items: flex-start;
    gap: 14px;
}

@keyframes adel-slide-in {
    from { transform: translateX(120%); opacity: 0; }
    to   { transform: translateX(0);    opacity: 1; }
}

.adel-notificacao-icon {
    background: #eff6ff;
    color: #3b82f6;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 16px;
}

.adel-notificacao-content { flex: 1; }
.adel-notificacao h4 { margin: 0 0 4px 0; font-size: 14px; }
.adel-notificacao p { margin: 0; font-size: 13px; color: #475569; line-height: 1.5; }

.adel-notificacao-fechar {
    background: transparent;
    border: none;
    color: #94a3b8;
    cursor: pointer;
    padding: 6px;
    margin: -6px -6px 0 0;
    border-radius: 6px;
    transition: all 0.2s;
    font-size: 12px;
    line-height: 1;
}
.adel-notificacao-fechar:hover { background: #f1f5f9; color: #334155; }

.adel-notificacao-actions {
    margin-top: 12px;
    display: flex;
    gap: 8px;
}

.adel-btn-notif-previa {
    background: #ffffff;
    color: #0f172a;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    padding: 6px 12px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.adel-btn-notif-previa:hover {
    background: #f1f5f9 !important;
    border-color: #94a3b8 !important;
    color: #0f172a !important;
}

/* Download (Azul Claro) */
.adel-btn-notif-download {
    background: #eff6ff !important;
    border: 1px solid #bfdbfe !important;
    color: #3b82f6 !important;
}
.adel-btn-notif-download:hover {
    background: #dbeafe !important;
    border-color: #93c5fd !important;
    color: #2563eb !important;
}

/* FORÇANDO O ENQUADRAMENTO DO BOTÃO DE DOWNLOAD DA TABELA */
button.adel-btn-table-download {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 6px 14px !important;
    border-radius: 6px !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    margin: 0 !important;
    
    /* Cores e Borda separadas para o tema não conseguir sobrescrever */
    background-color: #eff6ff !important;
    color: #3b82f6 !important;
    border-width: 1px !important;
    border-style: solid !important;
    border-color: #bfdbfe !important;
    box-shadow: 0 1px 2px rgba(0,0,0,0.02) !important;
}

button.adel-btn-table-download:hover {
    background-color: #dbeafe !important;
    border-color: #93c5fd !important;
    color: #2563eb !important;
    transform: translateY(-1px) !important;
}

/* Proteção extra para impedir cópia/cliques na barra nativa do iframe de visualização */
.adel-modal-pdf-container iframe {
    user-select: none;
    -webkit-user-select: none;
}

/* ── Novos Filtros (Data e CPF) ─────────────────────────── */
.adel-input-search, .adel-input-date {
    padding: 10px 12px !important;
    border: 1px solid #cbd5e1 !important;
    border-radius: 8px !important;
    font-size: 13px !important;
    background: #fff !important;
    color: #334155 !important;
    transition: all 0.2s;
}
.adel-input-search:focus, .adel-input-date:focus {
    border-color: #0073aa !important;
    outline: none;
}

.adel-date-range {
    display: flex;
    align-items: center;
    gap: 8px;
}
.adel-date-range span {
    font-size: 12px;
    color: #64748b;
    font-weight: 500;
}

/* ── Cabeçalhos de Tabela Ordenáveis ────────────────────── */
.adel-tabela th.sortable {
    cursor: pointer;
    user-select: none;
    transition: background 0.2s;
    position: relative;
    padding-right: 25px; /* Espaço para a setinha */
}
.adel-tabela th.sortable:hover {
    background: #f1f5f9;
    color: #0f172a;
}
.sort-icon {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 10px;
    color: #94a3b8;
}
.adel-tabela th.sortable.active .sort-icon {
    color: #0f172a;
    font-weight: bold;
}

/* ── Botões de Anexo (GED) ─────────────────────────── */
.adel-btn-anexo {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 6px 14px !important;
    border-radius: 6px !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    text-decoration: none !important;
    box-shadow: 0 1px 2px rgba(0,0,0,0.02) !important;
    margin: 0 !important;
    border: 1px solid #cbd5e1 !important;
    background: #f8fafc !important;
}
.adel-btn-anexo:hover { 
    background: #f8fafc !important;
    border-color: #94a3b8 !important;
    color: #0f172a !important;
    transform: translateY(-1px);
}

.adel-btn-anexo-done {
    background: #e9f5db !important; 
    color: #111111; 
    border: 1px solid #b6c197 !important; 
    padding: 6px 12px; 
    border-radius: 6px; 
    font-size: 13px; 
    cursor: pointer; 
    display: inline-flex; 
    align-items: center; 
    gap: 6px; 
    transition: all 0.2s;
}
.adel-btn-anexo-done:hover { background: #d8f3dc; border-radius: 6px !important; transform: translateY(-1px);}

/* ── Botão Customizado de Upload de Arquivo ────────────────── */
.adel-btn-custom-file {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    color: #475569;
    padding: 10px 24px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.02);
}

.adel-btn-custom-file:hover {
    background: #f8fafc;
    border-color: #94a3b8;
    color: #0f172a;
    box-shadow: 0 4px 6px rgba(0,0,0,0.04);
}

/* O código abaixo é o que cria a bolinha! */
.adel-status-assinado::before {
    background-color: #b6c197;
    box-shadow: 0 0 8px #b6c197;
}

/* Estilo das Bolinhas de Status */
.status-circle { 
    width: 18px; 
    height: 18px; 
    border-radius: 50%; 
    cursor: pointer; 
    transition: all 0.2s ease; 
    border: 2px solid transparent; 
    box-shadow: 0 2px 4px rgba(0,0,0,0.1); 
}
.status-circle:hover { transform: scale(1.15); }
.status-circle.active { 
    transform: scale(1.15); 
    border: 2px solid #1e293b; /* Anel escuro quando selecionado */
    box-shadow: 0 0 8px rgba(0,0,0,0.3); 
}

/* Cores Padrão - Você pode mudar os códigos Hexadecimal se quiser */
.status-pendente { background-color: #f59e0b; } /* Laranja */
.status-andamento { background-color: #3b82f6; } /* Azul */
.status-assinado { background-color: #10b981; } /* Verde */
.status-cancelado { background-color: #ef4444; } /* Vermelho */

/* ==========================================
   TOOLTIPS CUSTOMIZADOS (Balões de Ajuda)
   ========================================== */
.adel-tooltip {
    position: relative;
    display: inline-block;
}

/* Oculta o balão por padrão */
.adel-tooltip::before,
.adel-tooltip::after {
    position: absolute;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s ease-in-out;
    z-index: 9999;
    pointer-events: none;
}

/* O corpo do balão escuro */
.adel-tooltip::after {
    content: attr(data-tooltip);
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(0);
    background-color: #1e293b; /* Azul marinho muito escuro */
    color: #ffffff;
    font-size: 12px;
    font-family: sans-serif;
    font-weight: normal;
    padding: 8px 12px;
    border-radius: 6px;
    white-space: normal;
    width: max-content;
    max-width: 250px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    line-height: 1.4;
    text-align: center;
}

/* A setinha apontando para baixo */
.adel-tooltip::before {
    content: '';
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(6px);
    border-width: 6px;
    border-style: solid;
    border-color: #1e293b transparent transparent transparent;
}

/* Quando passa o mouse: Anima para cima e aparece */
.adel-tooltip:hover::after {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(-8px);
}
.adel-tooltip:hover::before {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(-2px);
}

