/* =============================================================
   FUNDAE DOCUMENT LIST / PANEL - REDESIGN (Material Design)
   ============================================================= */

.fundae-documentation-card {
    display: flex !important;
    flex-direction: column !important;
    height: auto !important;
    max-height: none !important;
}

.fundae-documentation-card .general-card__grid {
    padding: 0 !important;
    flex: 1 !important;
    min-height: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    overflow: hidden !important;
}

.fundae-company-list {
    display: grid;
    gap: 0.75rem;
    flex: 1 !important;
    overflow-y: auto !important;
    padding: 1rem !important;
}

.fundae-company-list::-webkit-scrollbar {
    width: 6px;
}

.fundae-company-list::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.fundae-company-list::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 10px;
}

.fundae-company-list::-webkit-scrollbar-thumb:hover {
    background: var(--gf-primary);
}

.fundae-company-panel {
    border: 1px solid var(--gf-border);
    border-radius: 12px;
    background: #fff;
    overflow: hidden;
    margin-bottom: 0.5rem;
}

.fundae-company-panel__summary {
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.85rem 1rem;
    cursor: pointer;
    background: #fff;
    transition: background 0.2s ease;
}

.fundae-company-panel__summary:hover {
    background: #f8fafc;
}

.fundae-company-panel[open] > .fundae-company-panel__summary {
    background: #f1f5f9;
    border-bottom: 1px solid #e2e8f0;
}

.fundae-company-panel__summary::-webkit-details-marker {
    display: none;
}

.fundae-company-panel__content {
    padding: 1rem;
    background: #fbfcfe;
    max-height: 400px;
    overflow-y: auto;
}

.fundae-company-panel__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    width: 100%;
}

.fundae-company-panel__identity {
    min-width: 0;
}

.fundae-company-panel__header h4 {
    margin: 0;
    font-size: 0.95rem;
    font-weight: 700;
    color: #1e293b;
}

.fundae-company-panel__header p {
    margin: 0.2rem 0 0;
    font-size: 0.78rem;
    color: #64748b;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.fundae-company-panel__summary-meta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.fundae-company-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 24px;
    padding: 0 0.75rem;
    border-radius: 6px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.025em;
    border: 1px solid transparent;
}

.fundae-company-chip--neutral {
    color: #475569;
    background: #f1f5f9;
    border-color: #e2e8f0;
}

.fundae-company-chip--warning {
    color: #92400e;
    background: #fef3c7;
    border-color: #fcd34d;
}

.fundae-company-chip--success {
    color: #065f46;
    background: #d1fae5;
    border-color: #6ee7b7;
}

.fundae-company-panel__progress {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding-left: 0.75rem;
    border-left: 1px solid #e2e8f0;
    margin-left: 0.25rem;
}

.fundae-company-panel__progress strong {
    font-size: 0.9rem;
    font-weight: 800;
    color: var(--gf-primary);
}

.fundae-company-panel__progress span {
    font-size: 0.7rem;
    font-weight: 600;
    color: #64748b;
}

.fundae-document-list {
    display: grid;
    gap: 0.75rem;
}

.fundae-doc-category {
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    overflow: hidden;
    background: #fff;
    margin-bottom: 0.5rem;
}

.fundae-doc-category__summary {
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.65rem 0.85rem;
    background: #f8fafc;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.8rem;
    color: #475569;
    border-bottom: 1px solid #e2e8f0;
}

.fundae-doc-category__title {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.fundae-doc-category__meta {
    font-size: 0.7rem;
    font-weight: 700;
    color: #94a3b8;
}

.fundae-doc-category__body {
    padding: 0.75rem;
    display: grid;
    gap: 0.5rem;
    background: #fff;
}

.fundae-document-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    min-width: 0;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    background: #fff;
    padding: 0.6rem 0.85rem;
    transition: all 0.2s ease;
}

.fundae-document-row:hover {
    border-color: var(--gf-primary);
    box-shadow: 0 2px 6px rgba(13, 110, 253, 0.08);
}

/* Eliminado borde rojo para pendientes */
.fundae-document-row.is-pending {
    border-left: none;
}

.fundae-document-row.is-partial {
    border-left: 4px solid #f59e0b;
}

.fundae-document-row.is-valid {
    border-left: 4px solid #10b981;
}

.fundae-document-row__meta {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex: 1;
    min-width: 0;
}

.fundae-document-row__label {
    font-size: 0.85rem;
    font-weight: 500;
    color: #334155;
    margin: 0;
}

.fundae-document-row__form {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.fundae-document-row__actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.fundae-document-row__status-label {
    font-size: 0.72rem;
    color: #64748b;
    font-weight: 500;
    margin-right: 0.5rem;
    white-space: nowrap;
}

.fundae-document-row.is-valid .fundae-document-row__status-label {
    color: #10b981;
}

.fundae-document-action-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.4rem 0.75rem;
    border-radius: 8px;
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    background: #f1f5f9;
    color: #475569;
    border: 1px solid transparent;
}

.fundae-document-action-btn:hover {
    background: #e2e8f0;
    color: #1e293b;
}

.fundae-document-action-btn .material-symbols-outlined {
    font-size: 1.1rem;
}

.fundae-document-action-btn--view {
    background: #eff6ff;
    color: #2563eb;
}

.fundae-document-action-btn--view:hover {
    background: #dbeafe;
}

.fundae-document-action-btn--disabled {
    opacity: 0.4;
    cursor: not-allowed;
    background: #f8fafc;
    color: #94a3b8;
}

.fundae-document-row__file {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}
