/* ============================================================
   Transparencia 360° — Portal Vecino
   Requiere t360-base.css
   ============================================================ */

/* ------------------------------------------------------------
   Summary Header
   ------------------------------------------------------------ */
.t360-summary {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 20px;
    background: #f8fafc;
    padding: 14px 16px;
    border-radius: var(--t360-radius);
    border: 1px solid var(--t360-border-color);
}

@media (min-width: 768px) {
    .t360-summary {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        padding: 16px 20px;
        margin-bottom: 25px;
    }
}

.t360-summary__title {
    margin: 0 0 4px 0;
    font-size: 1.25rem;
    font-weight: 700;
    color: #334155;
}

@media (min-width: 768px) {
    .t360-summary__title { font-size: 1.5rem; }
}

.t360-summary__welcome {
    margin: 0;
    color: var(--t360-text-muted);
    font-size: 0.9rem;
}

.t360-summary__balance {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    flex-shrink: 0;
}

/* ------------------------------------------------------------
   Balance Chips
   ------------------------------------------------------------ */
.t360-balance-chip {
    padding: 10px 16px;
    border-radius: var(--t360-radius-sm);
    text-align: center;
    min-width: 110px;
    flex: 1;
}

@media (min-width: 480px) {
    .t360-balance-chip { flex: 0 0 auto; }
}

.t360-balance-chip__label {
    display: block;
    font-size: 0.7rem;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.04em;
    margin-bottom: 3px;
}

.t360-balance-chip__value {
    font-size: 1.15rem;
    font-weight: 800;
}

.t360-balance-chip--income                            { background: #ecfdf5; border: 1px solid #10b981; }
.t360-balance-chip--income .t360-balance-chip__label  { color: #047857; }
.t360-balance-chip--income .t360-balance-chip__value  { color: #064e3b; }

.t360-balance-chip--debt                              { background: #fef2f2; border: 1px solid #ef4444; }
.t360-balance-chip--debt .t360-balance-chip__label    { color: #b91c1c; }
.t360-balance-chip--debt .t360-balance-chip__value    { color: #7f1d1d; }

/* ------------------------------------------------------------
   Period Selector
   ------------------------------------------------------------ */
.t360-period-form {
    background: #f8fafc;
    padding: 12px 14px;
    border-radius: var(--t360-radius-sm);
    margin-bottom: 20px;
    border: 1px solid var(--t360-border-color);
}

.t360-period-form__inner {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

@media (min-width: 480px) {
    .t360-period-form__inner {
        flex-direction: row;
        align-items: flex-end;
        flex-wrap: wrap;
        gap: 12px;
    }
}

/* ------------------------------------------------------------
   Batch Upload
   ------------------------------------------------------------ */
.t360-batch-section {
    margin-top: 20px;
    background: #eff6ff;
    padding: 16px 20px;
    border-radius: var(--t360-radius);
    border: 1px solid #bfdbfe;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
}

.t360-batch-section .t360-btn {
    width: 100%;
    justify-content: center;
    white-space: normal;
    text-align: center;
}

@media (min-width: 640px) {
    .t360-batch-section {
        flex-direction: row;
        align-items: center;
    }

    .t360-batch-section .t360-btn {
        width: auto;
        white-space: nowrap;
        flex-shrink: 0;
    }
}

.t360-batch-section__hint {
    margin: 0;
    color: #1e40af;
    font-size: 0.875rem;
    line-height: 1.4;
}

.t360-period-note {
    color: #64748b;
    font-size: 0.85rem;
    text-align: center;
    margin-top: 20px;
}
