/*
Theme Name: Astra Child
Template: astra
*/

/* Estilos para a página de Lançamentos do Cliente (COM STATUS E BOTÕES) */

.cliente-lancamentos-wrapper {
    max-width: 960px;
    margin: 20px auto;
    padding: 20px;
    background-color: #f9f9f9;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    font-family: Arial, sans-serif;
}

.voltar-button {
    display: inline-block;
    margin-bottom: 20px;
    padding: 8px 15px;
    background-color: #0073aa;
    color: white;
    text-decoration: none!important;
    border-radius: 5px;
}

.cliente-info-header {
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.cliente-info-header h1 {
    font-size: 2em;
    margin-bottom: 5px;
    color: #333;
}

.cliente-info-header p {
    font-size: 0.9em;
    color: #666;
    margin: 0;
}

.novo-servico-button {
    display: inline-block;
    margin-top: 15px;
    padding: 10px 20px;
    background-color: #28a745;
    color: white;
    text-decoration: none!important;
    border-radius: 5px;
    font-weight: bold;
}

.resumo-totais {
    display: flex;
    justify-content: space-around;
    gap: 20px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.cartao-total {
    background-color: #fff;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    flex: 1;
    min-width: 250px;
}

.cartao-total h3 {
    font-size: 1.1em;
    color: #555;
    margin-top: 0;
    margin-bottom: 10px;
}

.cartao-total .valor {
    font-size: 2em;
    font-weight: bold;
    margin: 0;
}

/* Cores para os cartões de totais */
.cartao-total.pendente .valor { color: #dc3545; /* Vermelho */ }
.cartao-total.recebido .valor { color: #28a745; /* Verde */ }
.cartao-total.adiantado .valor { color: #007bff; /* Azul */ }
.cartao-total.geral .valor { color: #555; /* Cor neutra para total geral */ }


.cartao-total .detalhe {
    font-size: 0.8em;
    color: #888;
}

.servicos-lista h2 {
    font-size: 1.5em;
    color: #333;
    margin-top: 0;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.servico-item {
    background-color: #fff;
    border-radius: 8px;
    padding: 15px 20px;
    margin-bottom: 15px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.servico-info {
    flex: 1;
    min-width: 200px;
}

.servico-info .nome-servico {
    font-weight: bold;
    color: #333;
    margin-bottom: 5px;
}

.servico-info .descricao-servico,
.servico-info .detalhes-adicionais {
    font-size: 0.9em;
    color: #666;
    margin-bottom: 5px;
}

.servico-valor-status {
    text-align: right;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.servico-valor-status .valor-servico {
    font-size: 1.2em;
    font-weight: bold;
    margin-bottom: 5px;
}

/* Estilos para o status individual */
.status {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.8em;
    font-weight: bold;
    color: white;
    text-transform: uppercase;
    margin-top: 5px;
}

.status.pendente { background-color: #ffc107; color: #333; /* Amarelo */ }
.status.recebido { background-color: #28a745; /* Verde */ }
.status.adiantado { background-color: #007bff; /* Azul */ }

/* Estilos para o botão de alterar status */
.btn-alterar-status {
    background-color: #007bff;
    color: white;
    border: none;
    padding: 8px 12px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 0.85em;
    margin-top: 10px;
    transition: background-color 0.3s ease;
}

.btn-alterar-status:hover {
    background-color: #0056b3;
}

/* Responsividade básica */
@media (max-width: 768px) {
    .resumo-totais {
        flex-direction: column;
        align-items: center;
    }
    .cartao-total {
        width: 100%;
    }
    .servico-item {
        flex-direction: column;
        align-items: flex-start;
    }
    .servico-valor-status {
        text-align: left;
        width: 100%;
        margin-top: 10px;
        align-items: flex-start;
    }
}

/* Estilo para o botão Gerar Extrato */
.gerar-extrato-button {
    background-color: #6c757d;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 0.9em;
    font-weight: bold;
    margin-top: 15px;
    display: inline-block;
    margin-left: 10px;
    transition: background-color 0.3s ease;
}

.gerar-extrato-button:hover {
    background-color: #5a6268;
}

/* Estilos para o formulário de novo lançamento */
.novo-lancamento-wrapper {
    max-width: 600px;
    margin: 20px auto;
    padding: 20px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.novo-lancamento-wrapper h2 {
    font-size: 1.8em;
    margin-bottom: 20px;
    color: #333;
    text-align: center;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    color: #555;
}

.form-group input[type="number"],
.form-group select {
    width: 100%;
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
    font-size: 1em;
}

#submit-lancamento {
    width: 100%;
    padding: 12px;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 1.1em;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

#submit-lancamento:hover {
    background-color: #0056b3;
}

#form-message {
    margin-top: 15px;
    text-align: center;
    font-weight: bold;
}