:root {
  --bg: #fdf7f4;
  --bg-2: #fbeaef;
  --surface: #ffffff;
  --ink: #33303a;
  --muted: #8b8189;
  --border: #f1e5df;
  --primary: #e0557f;
  --primary-dark: #c4406a;
  --soft: #fdeef3;
  --amber: #f6c86a;
  --amber-soft: #fdf3dd;
  --teal: #2aa6a0;
  --ok: #2f9e68;
  --warn: #d98324;
  --danger: #d64545;
  --radius: 20px;
  --radius-sm: 12px;
  --shadow: 0 18px 40px -32px rgba(51, 48, 58, 0.55);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

body {
  margin: 0;
  min-height: 100%;
  background: linear-gradient(180deg, #fdf7f4 0%, #fbeef1 46%, #fdf7f4 100%);
  color: var(--ink);
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  margin: 0 0 6px;
  line-height: 1.25;
}

a { color: var(--primary); }

img { display: block; max-width: 100%; }

/* ------------------------------------------------------- tela de entrada */
/* Medidas tiradas da página de referência: cartão 384 px, raio 16, padding 32,
   conteúdo 320 px, fonte Geist, teal #00b8c4, rosa #f8609c, verde #25d366. */

@font-face {
  font-family: "Geist";
  src: url("assets/fonts/geist.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

.login-body { background: #fdf2f2; }

.login-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px 16px;
  background: #fdf2f2;
  font-family: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

.login-card {
  width: 100%;
  max-width: 384px;
  background: var(--surface);
  border-radius: 16px;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
  padding: 32px;
  text-align: center;
}

.login-logo {
  width: 200px;
  max-width: 100%;
  height: auto;
  margin: 0 auto;
  border-radius: 50%;
}

/* Logo do rodapé da tela de entrada: pequena e por último. */
.login-logo--foot {
  width: 64px;
  margin: 22px auto 0;
  opacity: 0.85;
}

.login-by {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin: 12px 0 0;
  font-size: 14px;
  font-weight: 600;
  line-height: 20px;
  color: #e0397e;
}

.login-by img {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
}

.login-tag {
  margin: 16px 0 0;
  font-size: 12px;
  line-height: 16px;
  color: #8a7e80;
}

.login-ask {
  margin: 4px 0 0;
  font-size: 14px;
  line-height: 20px;
  color: #8a7e80;
}

.login-form {
  margin-top: 24px;
  text-align: left;
}

.login-field + .login-field { margin-top: 16px; }

.login-field label {
  display: block;
  margin-bottom: 4px;
  font-size: 12px;
  font-weight: 600;
  line-height: 16px;
  color: #8a7e80;
}

.login-field input {
  width: 100%;
  height: 38px;
  padding: 8px 12px;
  border: 1px solid #f3dfe6;
  border-radius: 8px;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 14px;
  line-height: 20px;
}

.login-field input:focus {
  outline: none;
  border-color: #00b8c4;
  box-shadow: 0 0 0 3px rgba(0, 184, 196, 0.16);
}

.login-error {
  margin: 10px 0 0;
  font-size: 12px;
  line-height: 16px;
  color: #d64545;
}

.login-btn[disabled] {
  opacity: 0.7;
  cursor: progress;
}

.login-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  border: 0;
  border-radius: 8px;
  color: #fff;
  font: inherit;
  font-size: 14px;
  line-height: 20px;
  text-decoration: none;
  cursor: pointer;
}

.login-btn--enter {
  margin-top: 16px;
  height: 40px;
  padding: 10px 0;
  background: #00b8c4;
  font-weight: 600;
}

.login-btn--enter:hover { background: #00a6b1; }

.login-have {
  margin: 24px 0 0;
  font-size: 12px;
  line-height: 16px;
  color: #8a7e80;
}

.login-btn--signup {
  width: max-content;
  height: 36px;
  margin: 8px auto 0;
  padding: 8px 20px;
  background: #f8609c;
  font-weight: 700;
}

.login-btn--signup:hover { background: #e5558d; }

.login-support {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 21px;
  font-size: 12px;
  font-weight: 600;
  line-height: 16px;
  color: #25d366;
  text-decoration: none;
}

.login-support:hover { text-decoration: underline; }

@media (max-width: 480px) {
  .login-card { padding: 28px 24px; }
  .login-logo { width: 170px; }
  .login-logo--foot { width: 56px; }
}

/* ---------------------------------------------------- página de pagamento */

.pay-card { max-width: 460px; }

.pay-status {
  margin: 10px 0 0;
  font-size: 14px;
  line-height: 21px;
  color: #4b5563;
}

.pay-price {
  margin: 6px 0 14px;
  font-size: 15px;
  font-weight: 600;
  color: var(--primary-dark);
}

.pay-qr {
  width: 232px;
  max-width: 100%;
  margin: 0 auto 14px;
  padding: 10px;
  background: #fff;
  border: 1px solid #f0d9e3;
  border-radius: 14px;
}

.pay-qr svg { display: block; width: 100%; height: auto; }

/* Escolha do plano de acesso: semana, mês ou ano. */
.pay-plans {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 16px 0 4px;
}

.pay-plan {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 10px 6px;
  font: inherit;
  text-align: center;
  color: var(--primary-dark);
  background: #fff;
  border: 1.5px solid #f0d9e3;
  border-radius: 14px;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.pay-plan b { font-size: 13px; line-height: 17px; }

.pay-plan span {
  font-size: 12px;
  font-weight: 700;
  color: var(--primary);
  font-variant-numeric: tabular-nums;
}

.pay-plan:hover { border-color: var(--primary); }

.pay-plan.is-on {
  border-color: var(--primary);
  background: var(--soft);
  box-shadow: 0 0 0 3px rgba(224, 85, 127, 0.14);
}

.pay-label {
  display: block;
  margin: 0 0 6px;
  font-size: 12px;
  font-weight: 600;
  text-align: left;
  color: #6b7280;
}

.pay-code {
  width: 100%;
  padding: 10px 12px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 11px;
  line-height: 17px;
  color: #374151;
  background: var(--soft);
  border: 1px solid #ecd8e1;
  border-radius: 10px;
  resize: vertical;
}

.pay-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.pay-actions .btn,
.pay-actions .login-btn { flex: 1 1 160px; margin: 0; }

.pay-note {
  margin: 12px 0 0;
  font-size: 13px;
  line-height: 20px;
  color: #6b7280;
}

.pay-note--ok { color: #1f6b47; }
.pay-note--wait { color: #8f5310; }

.pay-h2 {
  margin: 22px 0 8px;
  font-size: 15px;
  color: #374151;
}

.pay-history {
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 13px;
}

.pay-history li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid #f3e6ec;
  text-align: left;
  color: #4b5563;
}

.pay-tag {
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 999px;
  background: var(--soft);
  color: #6b7280;
  white-space: nowrap;
}

/* Subtítulos dentro da seção Cobrança do painel */
.billing-h3 {
  margin: 22px 0 8px;
  font-size: 15px;
  color: #374151;
}

.pay-tag--confirmado { background: #e6f6ee; color: #1f6b47; }
.pay-tag--informado { background: var(--amber-soft); color: #8f5310; }
.pay-tag--recusado { background: #fbe9e9; color: #9c2b2b; }

/* Aviso de vencimento no topo do painel */
.billing-warn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin: 0 auto 14px;
  padding: 12px 16px;
  max-width: 900px;
  background: #fff8ec;
  border: 1px solid #f2dfba;
  border-radius: 12px;
  font-size: 14px;
  color: #8f5310;
}

.billing-warn--late { background: #fdf2f2; border-color: #f0c8c8; color: #9c2b2b; }

.logo-mark {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--primary), #f3a15c);
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 20px;
  flex: 0 0 auto;
}

/* --------------------------------------------------------------- topbar */

/* Coluna central única: cabeçalho, menu, conteúdo e rodapé têm a mesma largura,
   para nada ficar grudado nas bordas em tela larga. */
.shell {
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.topbar {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 12px 0;
}

.topbar-logo {
  width: 44px;
  height: 44px;
  object-fit: cover;
  border-radius: 50%;
  background: #fff;
}

#business {
  font-size: 17px;
  font-weight: 700;
}

.who {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.who > span {
  color: var(--muted);
  font-size: 13px;
  margin-right: 4px;
}

/* ----------------------------------------------------------------- nav */

.nav {
  padding: 14px 0 0;
}

.nav .shell {
  gap: 5px;
  justify-content: center;
  flex-wrap: wrap;
}

.nav .shell::-webkit-scrollbar { display: none; }

.nav a {
  padding: 6px 9px;
  border-radius: 999px;
  text-decoration: none;
  color: var(--muted);
  font-weight: 600;
  font-size: 12.5px;
  white-space: nowrap;
  background: transparent;
  transition: background-color 120ms, color 120ms;
}

.nav a:hover {
  background: #fff;
  color: var(--ink);
}

.nav a[aria-current="page"] {
  background: var(--primary);
  color: #fff;
}

/* -------------------------------------------------------------- conteúdo */

.container {
  max-width: 900px;
  margin: 0 auto;
  padding: 22px 24px 44px;
}

.grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 22px;
}

.grid .card { padding: 18px 20px; }

.card h2 { font-size: 17px; }

.card .hint,
.hint {
  color: var(--muted);
  font-size: 13px;
  margin: 0 0 12px;
  line-height: 1.45;
}

.grid .card .hint { margin-bottom: 2px; }

td .hint, th .hint { margin: 0; }

/* Erro do envio da logo: só aparece depois de uma tentativa que falhou. */
.hint.logo-error {
  color: var(--danger);
  margin: 8px 0 0;
  max-width: 46ch;
}

.filters .at {
  color: var(--muted);
  font-size: 13px;
}

.stat {
  font-size: 28px;
  font-weight: 700;
  line-height: 1.1;
}

.section-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}

.section-head h2 { margin: 0; }

.section-head .spacer { margin-left: auto; }

/* ------------------------------------------------------------- controles */

.btn {
  display: inline-block;
  border: 1px solid transparent;
  background: var(--primary);
  color: #fff;
  font: inherit;
  font-weight: 600;
  border-radius: var(--radius-sm);
  padding: 10px 18px;
  cursor: pointer;
  text-decoration: none;
  transition: background-color 120ms, border-color 120ms, color 120ms;
}

.btn:hover { background: var(--primary-dark); }

.btn.ghost {
  background: #fff;
  border-color: var(--border);
  color: var(--ink);
}

.btn.ghost:hover { background: var(--soft); }

.btn.danger { background: var(--danger); }
.btn.danger:hover { background: #b93a3a; }

.btn.small {
  padding: 7px 13px;
  font-size: 13px;
  border-radius: 10px;
}

.btn[disabled] { opacity: 0.6; cursor: default; }

.btn.ghost.active {
  background: var(--soft);
  border-color: var(--primary);
  color: var(--primary-dark);
}

label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 5px;
}

input,
select,
textarea {
  width: 100%;
  font: inherit;
  font-size: 14px;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(224, 85, 127, 0.16);
}

.field { margin-bottom: 14px; }

.field .help {
  color: var(--muted);
  font-size: 12px;
  margin-top: 5px;
}

.form-row {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
}

.row-inline {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}

.row-inline input,
.row-inline select {
  max-width: 260px;
}

.filters {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: flex-end;
  background: #fdfaf9;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 14px 16px;
  margin-bottom: 16px;
}

.filters .field { margin: 0; }

.filters input[type="date"] { width: 150px; }

/* ----------------------------------------------------------------- abas */

.tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 4px 0 16px;
}

.tab {
  border: 1px solid var(--border);
  background: #fff;
  color: var(--muted);
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  border-radius: 999px;
  padding: 7px 15px;
  cursor: pointer;
  transition: background-color 120ms, color 120ms;
}

.tab:hover { background: var(--soft); }

.tab.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

.pill {
  display: inline-block;
  background: var(--soft);
  color: var(--primary-dark);
  border-radius: 999px;
  padding: 3px 11px;
  font-size: 12px;
  font-weight: 600;
  margin-left: 8px;
}

/* -------------------------------------------------------------- tabelas */

.table-wrap { overflow-x: auto; }

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

th, td {
  text-align: left;
  padding: 11px 8px;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}

th {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
}

td.num, th.num { text-align: right; white-space: nowrap; }

td.actions { text-align: right; white-space: nowrap; }

table.compact th, table.compact td { padding: 8px 6px; }

table.compact input { padding: 7px 9px; font-size: 13px; }

table input.money { max-width: 130px; }

.empty {
  color: var(--muted);
  padding: 34px 8px;
  text-align: center;
  font-size: 14px;
}

.badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  background: var(--soft);
  color: var(--primary-dark);
}

.badge.ok { background: #e6f6ee; color: #1f6b47; }
.badge.warn { background: var(--amber-soft); color: #8f5310; }
.badge.danger { background: #fbe9e9; color: #9c2b2b; }

.late { color: var(--danger); font-weight: 600; }

.error-box {
  border: 1px solid #f0c8c8;
  background: #fdf1f1;
  color: #9c2b2b;
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  margin-bottom: 12px;
  font-size: 14px;
}

/* ------------------------------------------------------- resumo de valores */

.summary {
  margin-top: 16px;
  border-top: 1px solid var(--border);
}

.summary > div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 2px;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
}

.summary > div span { color: var(--muted); }

.summary > div strong {
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.summary > div.highlight {
  background: #f1fbf5;
  margin: 8px -12px 0;
  padding: 14px 12px;
  border-radius: 14px;
  border-bottom: none;
  font-weight: 700;
}

.summary > div.highlight strong { font-size: 18px; color: #1f6b47; }

.readonly-value {
  background: #f8f3f0;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  font-size: 14px;
  font-weight: 700;
}

.cost-list { display: grid; gap: 8px; }

.cost-row { display: flex; gap: 8px; align-items: center; }

.cost-row input { flex: 1 1 200px; max-width: none; }

.cost-row input.money { flex: 0 0 140px; max-width: 140px; }

/* Item que já vem pronto (Energia, Aluguel…): o nome não é campo, só o valor. */
.cost-row .cost-label {
  flex: 1 1 200px;
  display: flex;
  align-items: center;
  min-height: 41px;
  padding: 10px 12px;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  background: var(--soft);
  color: var(--primary-dark);
  font-size: 14px;
  font-weight: 600;
}

/* ----------------------------------------------------------- empresa */

.company-logo {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

/* A logo salva também é o botão para trocá-la. */
.logo-pick {
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  border-radius: 16px;
  line-height: 0;
}

.logo-pick:hover img { border-color: var(--primary); }

.logo-pick:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 3px;
}

.company-logo img {
  width: 88px;
  height: 88px;
  object-fit: contain;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: #fff;
  padding: 6px;
}

.company-logo .logo-mark {
  width: 88px;
  height: 88px;
  border-radius: 16px;
  font-size: 32px;
}

/* ---------------------------------------------------------- folha A4 */

#paper-wrap {
  background: #f7f1ee;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 18px;
  overflow-x: auto;
}

.paper {
  background: #fff;
  width: 100%;
  max-width: 794px;
  min-height: 420px;
  margin: 0 auto;
  padding: 34px;
  color: var(--ink);
  font-size: 13px;
  box-shadow: 0 12px 30px -22px rgba(51, 48, 58, 0.5);
}

.paper-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 2px solid var(--ink);
  padding-bottom: 12px;
  margin-bottom: 16px;
}

.paper-brand { display: flex; gap: 12px; align-items: center; }

.paper-brand img { width: 56px; height: 56px; object-fit: contain; }

.paper-name { font-size: 19px; font-weight: 700; }

.paper-contact { color: var(--muted); font-size: 11px; }

.paper-title { text-align: right; font-size: 12px; }

.paper-kind { font-weight: 700; font-size: 16px; letter-spacing: 0.06em; }

.paper-client { margin-bottom: 18px; line-height: 1.5; }

.paper-table { width: 100%; border-collapse: collapse; }

.paper-table th {
  font-size: 10px;
  letter-spacing: 0.06em;
  border-bottom: 1px solid var(--ink);
  padding: 6px 4px;
  color: var(--ink);
}

.paper-table td { padding: 7px 4px; border-bottom: 1px solid var(--border); }

.paper-table .num, .paper-totals strong { text-align: right; font-variant-numeric: tabular-nums; }

.paper-empty { color: var(--muted); text-align: center; padding: 20px 0; }

.paper-totals {
  margin: 18px 0 0 auto;
  max-width: 300px;
  display: grid;
  gap: 6px;
  font-size: 13px;
}

.paper-totals > div { display: flex; justify-content: space-between; gap: 12px; }

.paper-totals span { color: var(--muted); }

.paper-total {
  background: var(--soft);
  padding: 8px 10px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 700;
}

.paper-notes { margin-top: 18px; font-size: 12px; }

.paper-foot { margin-top: 26px; color: var(--muted); font-size: 11px; }

/* --------------------------------------------------------------- rodapé */

.site-foot {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 28px 0 34px;
  color: var(--muted);
  font-size: 13px;
}

.site-foot .foot-inner {
  flex-direction: column;
  gap: 4px;
  text-align: center;
}

.site-foot .logo-mark {
  margin: 0 auto 8px;
  width: 42px;
  height: 42px;
  font-size: 18px;
}

.site-foot .foot-logo {
  width: 46px;
  height: 46px;
  margin: 0 auto 8px;
  border-radius: 50%;
  object-fit: cover;
}

.site-foot strong { color: var(--ink); font-size: 15px; }

.foot-contact { margin-top: 4px; }

.site-foot a { color: var(--primary); text-decoration: none; }

/* ---------------------------------------------------------------- modal */

dialog {
  border: none;
  border-radius: var(--radius);
  padding: 0;
  width: min(580px, calc(100vw - 32px));
  box-shadow: 0 30px 60px -30px rgba(51, 48, 58, 0.55);
}

dialog::backdrop { background: rgba(51, 48, 58, 0.4); }

dialog .modal-head {
  padding: 18px 20px;
  border-bottom: 1px solid var(--border);
  font-weight: 700;
}

dialog .modal-body {
  padding: 20px;
  max-height: 62vh;
  overflow: auto;
}

dialog .modal-foot {
  padding: 15px 20px;
  border-top: 1px solid var(--border);
  display: flex;
  gap: 8px;
  justify-content: flex-end;
  background: #fdfaf9;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%);
  background: var(--ink);
  color: #fff;
  padding: 11px 20px;
  border-radius: 999px;
  font-size: 14px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 160ms;
  z-index: 20;
}

.toast.show { opacity: 1; }

/* --------------------------------------------------------------- impressão */

.print-root { display: none; }

@media print {
  body { background: #fff; }
  .topbar, .nav, .container, .toast, dialog, .site-foot { display: none !important; }
  .print-root { display: block; }
  .print-root .paper {
    box-shadow: none;
    max-width: none;
    padding: 0;
    font-size: 12px;
  }
  @page { margin: 14mm; }
}

/* ------------------------------------------------- administração (/admin) */

.bars {
  display: flex;
  align-items: flex-end;
  gap: 6px;
  padding-top: 8px;
  overflow-x: auto;
}

.bar {
  flex: 1 1 0;
  min-width: 26px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.bar i {
  display: block;
  width: 100%;
  max-width: 34px;
  border-radius: 6px 6px 2px 2px;
  background: linear-gradient(180deg, var(--primary) 0%, #f393b1 100%);
}

.bar-value {
  font-size: 11px;
  font-weight: 700;
  color: var(--ink);
}

.bar-day {
  font-size: 10px;
  color: var(--muted);
  white-space: nowrap;
}

.bar i:hover { background: var(--primary-dark); }

@media (max-width: 720px) {
  .shell { padding: 0 16px; }
  .topbar { padding: 12px 0; }
  .nav { padding: 12px 0 0; }
  .nav .shell {
    overflow-x: auto;
    flex-wrap: nowrap;
    justify-content: flex-start;
    scrollbar-width: none;
  }

  .nav .shell::-webkit-scrollbar { display: none; }
  .nav a { white-space: nowrap; }
  .container { padding: 16px 16px 32px; }
  .card { padding: 18px; }
  .filters { padding: 12px; }
  .filters input[type="date"] { width: 100%; max-width: none; }
  .cost-row { flex-wrap: wrap; }
}
