/* RESET BÁSICO */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
}

body {
  background: #f2f4f7;
  color: #1f2933;
}

/* CONTAINER PADRÃO */
.app {
  max-width: 420px;
  margin: 0 auto;
  min-height: 100vh;
  background: #f2f4f7;
}

/* HEADER */
.header {
  background: #ffffff;
  padding: 16px;
  text-align: center;
  font-weight: 600;
  font-size: 18px;
  border-bottom: 1px solid #e5e7eb;
}

/* CONTEÚDO */
.content {
  padding: 16px;
}

/* BOTÃO PRINCIPAL */
.btn-primary {
  display: block;
  width: 100%;
  background: #2563eb;
  color: #ffffff;
  text-align: center;
  padding: 14px;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 600;
  margin-bottom: 16px;
}

/* LISTA DE CLIENTES */
.client-card {
  background: #ffffff;
  border-radius: 14px;
  padding: 14px;
  margin-bottom: 14px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.06);
}

.client-name {
  font-weight: 600;
  margin-bottom: 6px;
}

.client-info {
  font-size: 14px;
  color: #4b5563;
}
/* FORM */
.form-card {
  background: #ffffff;
  border-radius: 14px;
  padding: 16px;
  box-shadow: 0 4px 10px rgba(0,0,0,.06);
}

.form-group {
  margin-bottom: 14px;
}

.form-group label {
  display: block;
  font-size: 14px;
  margin-bottom: 6px;
  color: #374151;
}

.form-group input {
  width: 100%;
  padding: 12px;
  border-radius: 10px;
  border: 1px solid #d1d5db;
  font-size: 15px;
}

.privacy-note {
  margin: 4px 0 14px;
  color: #64748b;
  font-size: 12px;
  line-height: 1.4;
}

.privacy-note a {
  color: var(--app-primary);
  font-weight: 700;
  text-decoration: none;
}

.privacy-note a:hover,
.privacy-note a:focus-visible {
  text-decoration: underline;
}

.btn-archive {
  margin-top: 10px;
  background: #e5e7eb;
  border: none;
  border-radius: 8px;
  padding: 8px;
  font-size: 13px;
  cursor: pointer;
}
/* ===== SERVIÇO ===== */

.cliente-card {
  background: #f4f6f8;
  border-radius: 10px;
  padding: 12px;
  margin: 10px 0;
  font-size: 14px;
  line-height: 1.5;
}

.servico-card {
  background: #ffffff;
  border-radius: 10px;
  padding: 12px;
  margin-top: 10px;
}

.servico-card label {
  font-size: 13px;
  font-weight: 600;
  display: block;
  margin-top: 8px;
}

.servico-card input {
  width: 100%;
  padding: 8px;
  border-radius: 8px;
  border: 1px solid #ccc;
}

.servico-card button {
  margin-top: 10px;
  width: 100%;
}
/* ===== VISUAL v1 - FINANCEIRO / APP ===== */

body {
  background: #f4f6f8;
}

.app {
  max-width: 420px;
  margin: 0 auto;
  background: #f4f6f8;
}

.header {
  background: #0a7cff;
  color: #fff;
  padding: 14px;
  text-align: center;
  font-weight: bold;
  font-size: 18px;
}

.content {
  padding: 12px;
}

/* Cards */
.cliente-card,
.servico-card {
  background: #ffffff;
  border-radius: 14px;
  padding: 14px;
  margin-bottom: 12px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.06);
}

/* Resumo financeiro */
.resumo-card h3 {
  margin: 0 0 8px 0;
}

.valor-grande {
  font-size: 22px;
  font-weight: bold;
}

.valor-positivo {
  color: #1db954;
}

.valor-negativo {
  color: #e63946;
}

/* Extrato */
.extrato-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.extrato-info {
  font-size: 14px;
}

.extrato-valor {
  font-weight: bold;
}

/* Botões */
button {
  background: var(--app-primary);
  color: var(--app-button-text);
  border: none;
  border-radius: 10px;
  padding: 10px;
  font-weight: bold;
}

button:active {
  opacity: 0.9;
}

/* Inputs */
input, select {
  width: 100%;
  padding: 8px;
  margin-bottom: 8px;
  border-radius: 8px;
  border: 1px solid #ccc;
}
/* Extrato recolhível */
.extrato-header {
  background: #ffffff;
  border-radius: 14px;
  padding: 14px;
  margin-bottom: 8px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.06);
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
}
/* ===== NOVO GASTO COMPACTO (MOBILE) ===== */
.servico-card {
  padding: 12px;
}

.servico-card h3 {
  font-size: 16px;
  margin-bottom: 8px;
}

.servico-card label {
  font-size: 12px;
  margin-top: 6px;
  margin-bottom: 2px;
  display: block;
}

.servico-card input,
.servico-card select {
  padding: 6px 8px;
  font-size: 14px;
  border-radius: 8px;
  margin-bottom: 6px;
}

.servico-card button {
  margin-top: 8px;
  padding: 8px;
  font-size: 14px;
  border-radius: 10px;
}
/* ===== GRÁFICO PIZZA MAIS COMPACTO ===== */
#graficoPizza {
  max-height: 180px;
}

.grafico-card {
  padding: 12px;
}

.grafico-card h3 {
  font-size: 15px;
  margin-bottom: 8px;
}
/* ===== MENU INFERIOR FIXO ===== */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 64px;
  background: #ffffff;
  display: flex;
  justify-content: space-around;
  align-items: center;
  border-top: 1px solid #ddd;
  z-index: 1000;
}

.bottom-nav a {
  flex: 1;
  text-align: center;
  text-decoration: none;
  color: #777;
  font-size: 12px;
}

.bottom-nav a .icon {
  font-size: 20px;
  display: block;
  margin-bottom: 2px;
}

.bottom-nav a.active {
  color: #1976d2;
  font-weight: bold;
}

/* espaço para não esconder conteúdo */
.app {
  padding-bottom: 70px;
}
.servico-item {
    background: #fff;
    border-radius: 14px;
    padding: 12px;
    margin-bottom: 10px;
    box-shadow: 0 4px 10px rgba(0,0,0,.06);
    font-size: 14px;
}

.servico-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
}

.servico-cliente {
    font-weight: bold;
    font-size: 15px;
}

.servico-total {
    font-weight: bold;
    color: #0f9d58;
}

.servico-info {
    font-size: 13px;
    color: #555;
    margin-bottom: 6px;
}

.servico-status {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: bold;
}

.status-pendente {
    background: #fff3cd;
    color: #856404;
}

.status-executado {
    background: #d4edda;
    color: #155724;
}

.servico-acoes {
    margin-top: 8px;
}

/* ===== TEMA DINAMICO ===== */
:root {
    --app-primary: #0a7cff;
    --app-button-text: #ffffff;
    --app-button-secondary-text: #111827;
}

.header {
    background: var(--app-primary) !important;
}

.btn-primary,
.btn-pdf {
    background: var(--app-primary) !important;
    color: var(--app-button-text) !important;
}

.btn-voltar,
.btn-sec,
.btn-archive {
    color: var(--app-button-secondary-text) !important;
}

.titulo,
.total {
    background: var(--app-primary) !important;
}

.bottom-nav a.active,
.servico-total {
    color: var(--app-primary) !important;
}
