/* ============================================================
   DATOS BANCARIOS PARA PAGO DE EMPLEADOS
   Combos (custom-dropdown) + helpers de canvas. Reutiliza ribbon/grid
   de cuentas-bancarias.css y el overlay de canvas-shared.css.
   Acento institucional via var(--fl-accent) (guinda).
   ============================================================ */

/* ===== Título de sección dentro del canvas ===== */
.form-section-title {
    font-size: 14px;
    font-weight: 600;
    color: #323130;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.form-section-title i { color: var(--fl-accent); }

/* ===== Overlay de carga dentro del canvas ===== */
.canvas-autofill-overlay {
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

.autofill-indicator {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: #323130;
}

/* Tarjeta de progreso al exportar (centrada por .canvas-overlay) */
.export-progress {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #fff;
    padding: 16px 24px;
    border-radius: 12px;
    box-shadow: 0 16px 40px rgba(10, 26, 43, 0.28);
    font-size: 14px;
    color: #323130;
}

.export-progress .spinner-border { color: var(--fl-accent); }

/* ===== Custom dropdown (combo no nativo, con ellipsis + multiselección) ===== */
.custom-dropdown { position: relative; width: 100%; }

.dropdown-trigger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    cursor: pointer;
    text-align: left;
    width: 100%;
    background: rgba(255, 255, 255, 0.85);
    color: #323130;
    font-size: 0.9375rem;
    font-family: inherit;
    padding: 10px 14px;
    border: 1px solid #8a8886;
    border-radius: 2px;
    transition: border-color 0.1s;
    box-sizing: border-box;
}

.dropdown-trigger:hover:not(:disabled) { border-color: #323130; }
.custom-dropdown.open .dropdown-trigger { border-color: var(--fl-accent); }
.dropdown-trigger:disabled { background: #f3f2f1; color: #a19f9d; cursor: not-allowed; }

.dropdown-text { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.dropdown-text.placeholder { color: #605e5c; font-style: italic; }

.dropdown-caret { flex-shrink: 0; color: #605e5c; transition: transform 0.15s; font-size: 12px; }
.custom-dropdown.open .dropdown-caret { transform: rotate(180deg); color: var(--fl-accent); }

.dropdown-list {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    background: #fff;
    border: 1px solid #d2d0ce;
    border-radius: 4px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    max-height: 320px;
    overflow-y: auto;
    z-index: 20;
    padding: 4px 0;
    animation: dropdownSlide 0.15s ease-out;
}

@keyframes dropdownSlide {
    from { opacity: 0; transform: translateY(-4px); }
    to   { opacity: 1; transform: translateY(0); }
}

.dropdown-item {
    display: block;
    width: 100%;
    text-align: left;
    padding: 8px 14px;
    border: none;
    background: transparent;
    cursor: pointer;
    font-family: inherit;
    font-size: 13px;
    color: #323130;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: background-color 0.1s;
}

.dropdown-item:hover { background: #f3f2f1; }
.dropdown-item.selected { background: var(--fl-accent-soft); color: var(--fl-accent); font-weight: 600; }
.dropdown-item.placeholder { color: #605e5c; font-style: italic; }

.dropdown-item-multi { display: flex; align-items: center; gap: 8px; }
.dropdown-item-multi i { font-size: 15px; color: var(--fl-accent); flex-shrink: 0; }
.dropdown-item-multi span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dropdown-item-all { border-bottom: 1px solid #edebe9; font-weight: 600; color: #605e5c; }

.dropdown-empty { padding: 12px 14px; font-size: 13px; color: #a19f9d; font-style: italic; text-align: center; }

.dropdown-list::-webkit-scrollbar { width: 8px; }
.dropdown-list::-webkit-scrollbar-track { background: #f3f2f1; }
.dropdown-list::-webkit-scrollbar-thumb { background: #c8c6c4; border-radius: 4px; }
.dropdown-list::-webkit-scrollbar-thumb:hover { background: #a19f9d; }
