/* Área dos noivos — complementa styles.css */

.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
input[type="email"],
input[type="password"],
input[type="search"] {
  width: 100%; font: inherit; font-size: 16px; color: var(--ink);
  padding: 11px 14px; background: #fff;
  border: 1px solid #e3d9cd; border-radius: 3px;
}
input[type="email"]:focus,
input[type="password"]:focus,
input[type="search"]:focus { outline: none; border-color: var(--terra); box-shadow: 0 0 0 3px rgba(203, 78, 2, .12); }

/* ---------- Login ---------- */
.login { min-height: 100vh; display: grid; place-items: center; padding: 24px 16px; }
.login__card { width: min(420px, 100%); padding: 40px 36px 30px; text-align: center; }
.logo--login { height: 100px; width: 108px; margin: 0 auto; }
.login__card h1 { font-size: 48px; color: var(--blue); margin-top: 4px; }
.login__card .subtitle { margin-bottom: 24px; }
.login__card .field { text-align: left; }
.login__card .btn { width: 100%; margin-top: 6px; }
.login__card .form-error { margin: 0 0 12px; }
.login__back { display: inline-block; margin-top: 18px; font-size: 15px; }

/* ---------- Barra ---------- */
.admin-bar { background: var(--paper); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 10; }
.admin-bar__inner { height: 68px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.admin-bar__brand { display: flex; align-items: center; gap: 14px; color: var(--blue); }
.admin-bar__brand:hover { text-decoration: none; }
.admin-bar__brand > span:last-child {
  font-family: var(--serif); font-weight: 600; font-size: 14px;
  letter-spacing: .26em; text-transform: uppercase;
}
.admin-bar__actions { display: flex; align-items: center; gap: 16px; }
.admin-bar__user { font-size: 14px; color: var(--muted); }

.admin-main { padding: 28px 0 60px; }
.demo-banner {
  background: var(--blush); border: 1px solid var(--terra-soft); border-radius: var(--radius);
  padding: 12px 16px; margin: 0 0 20px; font-size: 15px;
}
.demo-banner code { font-size: 14px; }

/* ---------- Estatísticas ---------- */
.stats { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; margin-bottom: 22px; }
.stat { padding: 18px 18px 16px; display: flex; flex-direction: column; }
.stat__value { font-family: var(--serif); font-size: 38px; font-weight: 500; line-height: 1; color: var(--blue); }
.stat__label {
  font-family: var(--serif); font-weight: 600; font-size: 12px;
  letter-spacing: .2em; text-transform: uppercase; color: var(--terra); margin-top: 10px;
}
.stat__note { font-size: 13.5px; color: var(--muted); margin-top: 2px; }
.stat--accent { background: var(--blue); border-color: var(--blue); }
.stat--accent .stat__value,
.stat--accent .stat__label { color: #fff; }
.stat--accent .stat__note { color: #e2eaf7; }

/* ---------- Tabela ---------- */
.table-card { padding: 0; overflow: hidden; }
.toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; padding: 16px 18px; border-bottom: 1px solid var(--line); }
.search { position: relative; flex: 1 1 260px; max-width: 380px; }
.search .icon { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--muted); }
.search input { padding-left: 36px; }
.toolbar__right { display: flex; gap: 10px; margin-left: auto; }

.segmented { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; padding: 3px; background: #fff; }
.segmented button {
  font: inherit; font-size: 14.5px; border: 0; background: none; color: var(--ink);
  padding: 6px 16px; border-radius: 999px; cursor: pointer;
}
.segmented button.is-active { background: var(--terra); color: #fff; }

.table-wrap { overflow-x: auto; }
.rsvp-table { width: 100%; border-collapse: collapse; font-size: 15px; }
.rsvp-table th {
  text-align: left; white-space: nowrap;
  font-family: var(--serif); font-weight: 600; font-size: 12px;
  letter-spacing: .16em; text-transform: uppercase; color: var(--blue);
  padding: 12px 14px; background: #f8f3ed; border-bottom: 1px solid var(--line);
}
.rsvp-table th[data-sort] { cursor: pointer; user-select: none; }
.rsvp-table th[data-sort]:hover { color: var(--terra); }
.rsvp-table th.is-sorted::after { content: " ↓"; color: var(--terra); }
.rsvp-table th.is-sorted[data-dir="asc"]::after { content: " ↑"; }
.rsvp-table td { padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.rsvp-table tbody tr:hover { background: #fdf9f4; }
.rsvp-table tr.is-no td { color: var(--muted); }
.rsvp-table td.strong { font-weight: 500; color: var(--ink); }
.rsvp-table a { color: inherit; }
.nowrap { white-space: nowrap; }
.obs { min-width: 200px; max-width: 320px; font-size: 14.5px; }
.cell-list { list-style: none; margin: 0; padding: 0; }
.cell-list li + li { margin-top: 2px; }
.col-actions { width: 44px; text-align: right; }

.badge { display: inline-block; font-size: 13px; padding: 2px 10px; border-radius: 999px; white-space: nowrap; }
.badge--yes { background: #e3ede2; color: #44683f; }
.badge--no { background: #f1e4e0; color: #9a4b3b; }

.icon-btn {
  background: none; border: 0; cursor: pointer; color: var(--muted);
  width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%; font-size: 17px;
}
.icon-btn:hover { color: #b03a2e; background: #f6e6e2; }

.empty { text-align: center; padding: 40px 16px; color: var(--muted); margin: 0; }

@media (max-width: 1100px) {
  .stats { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 640px) {
  .stats { grid-template-columns: repeat(2, 1fr); }
  .admin-bar__user { display: none; }
  .toolbar__right { margin-left: 0; width: 100%; }
  .toolbar__right .btn { flex: 1; }
  .search { max-width: none; }
}

.stat__value { font-variant-numeric: lining-nums; }
.rsvp-table td.strong { min-width: 150px; }
.cell-list li { white-space: nowrap; }

/* Bebés (0–3) vs crianças (4–9, pagam) */
.stats { grid-template-columns: repeat(6, 1fr); }
.stat--baby { background: var(--blue-soft); border-color: var(--blue-light); }
.kid-item { display: flex; align-items: center; gap: 8px; flex-wrap: nowrap; }
.kid-item + .kid-item { margin-top: 5px; }
.age-tag {
  font-family: var(--serif); font-weight: 600; font-size: 10.5px;
  letter-spacing: .12em; text-transform: uppercase;
  padding: 2px 8px; border-radius: 999px; flex-shrink: 0;
}
.age-tag--baby { background: var(--blue-light); color: #3f5a85; }
.age-tag--kid { background: var(--blush); color: var(--terra-dark); }
@media (max-width: 1100px) { .stats { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 640px) { .stats { grid-template-columns: repeat(2, 1fr); } }

/* Hotéis */
.hotels-admin { margin-top: 24px; }
.title--sm { font-size: 20px; }
.hotels-admin .subtitle { margin: 2px 0 0; font-size: 14px; }
.hotels-admin__help { margin: 0; padding: 12px 18px; font-size: 14.5px; color: var(--muted); border-bottom: 1px solid var(--line); }
.cell-input { min-width: 180px; padding: 7px 10px !important; font-size: 14.5px !important; }
.cell-input.is-saved { border-color: #6a9a62 !important; }
.rsvp-table input[type="checkbox"] { width: 18px; height: 18px; accent-color: var(--terra); cursor: pointer; }
