/* =====================================================
 * 18-views-debts.css - Debts View
 * ===================================================== */

.debts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.debt-card {
    background: white;
    border: 1px solid var(--border);
    border-radius: 0 !important;
    padding: 20px;
    transition: all 0.2s ease;
}

.debt-card:hover {
    border-color: var(--primary);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.debt-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.debt-name {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-dark);
    margin: 0;
}

.debt-type-badge {
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 600;
    background: #fef3c7;
    color: #92400e;
}

.debt-progress {
    margin-bottom: 15px;
}

.progress-bar {
    height: 8px;
    background: #e2e8f0;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 8px;
}

.progress-fill {
    height: 100%;
    background: var(--primary);
    transition: width 0.3s ease;
}

.progress-text {
    font-size: 0.85rem;
    color: var(--text-muted);
    text-align: center;
}

.debt-amounts {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 15px;
}

.debt-amount {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
}

.debt-amount .label {
    color: var(--text-muted);
}

.debt-amount .value {
    font-weight: 600;
    color: var(--text-dark);
}

.debt-amount .value.success {
    color: #16a34a;
}

.debt-amount .value.danger {
    color: #dc2626;
}

.debt-date {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.debt-actions {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    padding-top: 15px;
    border-top: 1px solid #f1f5f9;
}
