/* ================================================
   INGRESOS CSS - GAMMA FINANZAS
   Page-specific styles (base in theme.css)
   ================================================ */

/* ============================================
   LAYOUT
   ============================================ */
main {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem;
}

.container {
    display: grid;
    gap: 2rem;
}

.header-actions {
    display: flex;
    gap: 0.5rem;
}

.section-header button,
.header-actions button {
    padding: 0.5rem 0.9rem;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    font-size: 0.85rem;
}

/* ============================================
   DATA LIST
   ============================================ */
.data-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
}

/* ============================================
   INGRESO ITEM CARD
   ============================================ */
.ingreso-item {
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 1rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
    transition: all var(--transition);
    display: flex;
    flex-direction: row;
    align-items: stretch;
    width: 100%;
    min-height: 110px;
    overflow: hidden;
    position: relative;
}

.ingreso-item:hover {
    background: var(--bg-card-hover);
    box-shadow: var(--shadow);
}

.ingreso-info {
    flex: 1;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.ingreso-title {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.1rem;
    flex: 1;
}

.ingreso-amount {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--success);
}

.ingreso-status {
    flex: 0 0 auto;
    display: flex;
    gap: 0.4rem;
    justify-content: center;
}

.ingreso-actions {
    width: 190px;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    align-items: stretch;
    justify-content: center;
}

/* ============================================
   CARD CONTENT (Alternate layout)
   ============================================ */
.card-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.card-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0;
    color: var(--text-primary);
}

.card-monto {
    font-size: 1.35rem;
    font-weight: 700;
    margin: 0;
    color: var(--success);
}

.card-details {
    display: flex;
    gap: 1rem;
    font-size: 0.78rem;
    color: var(--text-secondary);
    justify-content: center;
}

.card-status {
    margin-top: auto;
}

.card-actions {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    width: 190px;
    justify-content: center;
    align-items: stretch;
}

/* ============================================
   PERSONA SELECTOR
   ============================================ */
.persona-selector {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.persona-input {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.personas-list {
    max-height: 200px;
    overflow-y: auto;
    margin-bottom: 1rem;
}

/* ============================================
   FORMULARIOS (page-specific)
   ============================================ */
form {
    padding: 1.5rem;
}

.form-column {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.form-group.full-width {
    grid-column: 1 / -1;
    margin-top: 0.75rem;
}

.checkbox-group,
.radio-group {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.checkbox-group label,
.radio-group label {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-weight: normal;
    cursor: pointer;
}

/* ============================================
   DETAIL NOTES
   ============================================ */
.detail-notes {
    border-top: 1px solid var(--border);
    padding-top: 1rem;
    margin-top: 1rem;
}

.detail-notes label {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 0.4rem;
    display: block;
}

.detail-notes p {
    font-size: 0.95rem;
    color: var(--text-primary);
    line-height: 1.5;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
    .data-list {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    main {
        padding: 1rem;
    }

    .ingreso-item {
        flex-direction: column;
        min-height: auto;
        padding: 0.75rem;
    }

    .ingreso-info {
        flex-direction: column;
        gap: 0.4rem;
    }

    .ingreso-actions {
        width: 100%;
        flex-direction: row;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    main {
        padding: 0.5rem;
    }

    .ingreso-item {
        padding: 0.5rem;
    }

    .ingreso-title {
        font-size: 0.78rem;
    }

    .ingreso-amount {
        font-size: 0.95rem;
    }
}
