/* Estilos para página de despesas */

.btn {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    background: #2563eb;
    color: #fff;
    border: none;
    padding: .5rem .875rem;
    border-radius: .5rem;
    cursor: pointer;
    font-weight: 600;
    font-size: .875rem;
    transition: all 0.2s ease;
}

.btn:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

.btn.secondary {
    background: #10b981;
}

.btn.neutral {
    background: #64748b;
}

.btn.sm {
    padding: .25rem .5rem;
    font-size: .75rem;
    border-radius: .375rem;
}

.btn i {
    font-size: .875rem;
}

.btn.cancel {
    background: #64748b;
}

.badge {
    padding: .25rem .5rem;
    border-radius: 9999px;
    font-size: .75rem;
    font-weight: 700;
}

.badge.success {
    background: #16a34a;
    color: #fff;
}

.badge.warning {
    background: #f59e0b;
    color: #fff;
}

.badge.gray {
    background: #475569;
    color: #fff;
}

/* Modais */
.modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .4);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.modal.show {
    display: flex;
}

.modal-content {
    background: #fff;
    color: #111827;
    border-radius: 12px;
    width: 100%;
    max-width: 680px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, .25);
    overflow: hidden;
}

.modal-header {
    padding: 1rem 1.25rem;
    background: #1d4ed8;
    color: #fff;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.modal-body {
    padding: 1rem 1.25rem;
}

.modal-footer {
    padding: .75rem 1.25rem;
    background: #f8fafc;
    display: flex;
    justify-content: flex-end;
    gap: .5rem;
}

/* Grid de formulários */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: .75rem;
}

.field label {
    display: block;
    color: #374151;
    font-weight: 600;
    font-size: .8125rem;
    margin-bottom: .25rem;
}

.field input,
.field select {
    width: 100%;
    padding: .5rem .75rem;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    font-size: .875rem;
}

.field input:focus,
.field select:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.field.full-width {
    grid-column: 1 / -1;
}

