:root {
  color-scheme: light;
  --bg: #f5f7fb;
  --panel: #fdfdfd;
  --ink: #07112f;
  --muted: #667085;
  --line: #dbe5f2;
  --line-strong: #c8d6ea;
  --primary: #002284;
  --primary-2: #002284;
  --brand: #0082d8;
  --brand-2: #0082d8;
  --danger: #df180e;
  --warning: #b7791f;
  --success: #067647;
  --soft: #edf6ff;
  --shadow: 0 18px 48px rgba(0, 34, 132, .12);
  --shadow-hover: 0 24px 70px rgba(0, 34, 132, .18);
  --radius: 16px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at top right, rgba(0, 148, 246, .16), transparent 34vw),
    linear-gradient(180deg, #f8fbff 0%, var(--bg) 42%, #eef4fb 100%);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
button, input, textarea, select { font: inherit; }
.ui-icon {
  width: 20px;
  height: 20px;
  display: inline-grid;
  place-items: center;
  flex: 0 0 20px;
  color: currentColor;
}
.ui-icon svg {
  width: 20px;
  height: 20px;
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}
::selection {
  background: rgba(0, 148, 246, .22);
  color: var(--primary);
}
::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}
::-webkit-scrollbar-track {
  background: #edf3fb;
}
::-webkit-scrollbar-thumb {
  background: #b8c7dc;
  border: 2px solid #edf3fb;
  border-radius: 999px;
}
::-webkit-scrollbar-thumb:hover {
  background: #8ea7c7;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

.app-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 244px minmax(0, 1fr);
}
.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
  background: rgba(253, 253, 253, .94);
  border-right: 1px solid rgba(219, 229, 242, .9);
  box-shadow: 14px 0 36px rgba(7, 17, 47, .06);
  backdrop-filter: blur(16px);
  z-index: 5;
}
.sidebar-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 76px;
  padding: 18px;
  border-bottom: 1px solid #e6edf7;
}
.sidebar-logo {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--primary), var(--brand-2));
  color: #fff;
  font-size: 14px;
  font-weight: 900;
  box-shadow: 0 12px 28px rgba(0, 34, 132, .26);
}
.brand-logo {
  display: block;
  max-width: 100%;
  height: auto;
}
.sidebar-brand-logo {
  width: 78px;
  max-height: 52px;
  object-fit: contain;
  flex: 0 0 auto;
}
.sidebar-brand strong {
  display: block;
  font-size: 16px;
  line-height: 1.1;
  letter-spacing: -.01em;
}
.sidebar-brand span:not(.sidebar-logo) {
  display: block;
  color: var(--muted);
  font-size: 12px;
  margin-top: 4px;
}
.side-nav { padding: 14px 10px 28px; }
.sidebar-footer {
  margin: 10px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: linear-gradient(135deg, #f8fbff, #eef7ff);
}
.sidebar-footer strong {
  display: block;
  color: var(--primary-2);
  font-size: 13px;
}
.sidebar-footer span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.35;
}
.side-section {
  margin: 18px 10px 8px;
  color: #475467;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.side-section:first-child { margin-top: 6px; }
.side-link {
  min-height: 44px;
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 2px 0;
  padding: 8px 10px;
  color: #334155;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  border-radius: 14px;
  transition: background .18s ease, color .18s ease, transform .18s ease, box-shadow .18s ease;
  -webkit-tap-highlight-color: transparent;
}
.side-link:hover,
.side-link.active {
  background: linear-gradient(135deg, rgba(0, 34, 132, .08), rgba(0, 148, 246, .10));
  color: var(--primary-2);
  transform: translateX(2px);
}
.side-link.active {
  box-shadow: inset 3px 0 0 var(--brand-2);
}
.side-icon {
  width: 30px;
  height: 30px;
  flex: 0 0 30px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: #eef4fb;
  color: var(--primary-2);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .02em;
  transition: background .18s ease, color .18s ease, transform .18s ease;
}
.side-link:hover .side-icon,
.side-link.active .side-icon {
  background: linear-gradient(135deg, var(--primary-2), var(--brand-2));
  color: #fff;
}

.app-main { min-width: 0; }
.app-topbar {
  min-height: 58px;
  position: sticky;
  top: 0;
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 0 28px;
  background: linear-gradient(90deg, var(--primary) 0%, #00379f 58%, var(--brand) 100%);
  color: #fff;
  box-shadow: 0 8px 30px rgba(0, 34, 132, .22);
}
.app-topbar:before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: var(--danger);
}
.app-topbar strong { font-size: 14px; font-weight: 900; }
.app-topbar span {
  margin-left: 10px;
  color: rgba(255,255,255,.78);
  font-size: 12px;
}
.top-actions { display: flex; align-items: center; gap: 10px; }
.top-logout {
  min-height: 34px;
  padding: 0 13px;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: rgba(255,255,255,.10);
  color: #fff;
  font-size: 13px;
  font-weight: 900;
  text-decoration: none;
  cursor: pointer;
  transition: transform .18s ease, background .18s ease, box-shadow .18s ease;
}
.top-logout:hover {
  background: rgba(255,255,255,.20);
  transform: translateY(-1px);
  box-shadow: 0 10px 20px rgba(0,0,0,.16);
}
.top-login {
  color: #fff;
  font-size: 13px;
  font-weight: 850;
  text-decoration: none;
}
.layout {
  max-width: 1240px;
  margin: 0 auto;
  padding: 30px 32px 48px;
  animation: fadeUp .36s ease both;
}

.panel {
  background: rgba(253, 253, 253, .96);
  border: 1px solid rgba(219, 229, 242, .96);
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 18px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
}
.panel.hero-panel,
.page-hero {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(0, 34, 132, .98), rgba(0, 34, 132, .92) 56%, rgba(0, 130, 216, .88)),
    radial-gradient(circle at 85% 25%, rgba(255,255,255,.24), transparent 28%);
  color: #fff;
  border: 0;
}
.panel.hero-panel p,
.page-hero p { color: rgba(255,255,255,.82); }
.page-hero:after,
.panel.hero-panel:after {
  content: "";
  position: absolute;
  inset: auto -80px -120px auto;
  width: 320px;
  height: 320px;
  border-radius: 999px;
  background: rgba(255,255,255,.10);
}
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px; }
.grid.metrics { grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }
.row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.space { justify-content: space-between; }
.stack { display: grid; gap: 14px; }

h1, h2, h3 { margin: 0 0 10px; letter-spacing: -.02em; }
h1 { font-size: clamp(30px, 4vw, 42px); line-height: 1.08; }
h2 { font-size: 23px; line-height: 1.2; }
h3 { font-size: 17px; line-height: 1.28; }
p { color: var(--muted); line-height: 1.58; }
.muted { color: var(--muted); }
.section-kicker {
  margin-top: -4px;
  margin-bottom: 16px;
  color: #667085;
  font-size: 13px;
}

label {
  display: block;
  font-size: 13px;
  font-weight: 800;
  color: #344054;
  margin: 12px 0 6px;
}
input, textarea, select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 14px;
  background: #fff;
  color: var(--ink);
  outline: none;
  transition: border-color .16s ease, box-shadow .16s ease, background .16s ease;
}
input:hover, textarea:hover, select:hover { border-color: var(--line-strong); }
input:focus, textarea:focus, select:focus {
  border-color: var(--brand-2);
  box-shadow: 0 0 0 4px rgba(0, 148, 246, .14);
}
input:disabled {
  background: #f4f7fb;
  color: #667085;
}
textarea { min-height: 104px; resize: vertical; }
label > input,
label > textarea,
label > select {
  display: block;
  margin-top: 6px;
}
.money-field {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  margin-top: 6px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  transition: border-color .16s ease, box-shadow .16s ease;
}
.money-field:focus-within {
  border-color: var(--brand-2);
  box-shadow: 0 0 0 4px rgba(0, 148, 246, .14);
}
.money-field > span {
  height: 100%;
  display: grid;
  place-items: center;
  padding: 0 12px;
  border-right: 1px solid var(--line);
  color: var(--primary-2);
  background: #f5faff;
  font-size: 13px;
  font-weight: 900;
}
.money-field input {
  margin-top: 0;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}
.money-field input:focus {
  box-shadow: none;
}
.form-grid-two {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.form-grid-two label {
  margin-top: 12px;
}

button, .button {
  border: 1px solid transparent;
  background: linear-gradient(135deg, var(--primary-2), var(--brand));
  color: #fff;
  border-radius: 12px;
  padding: 11px 16px;
  font-weight: 850;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  transition: transform .16s ease, box-shadow .16s ease, background .16s ease, border-color .16s ease;
  box-shadow: 0 10px 22px rgba(0, 34, 132, .14);
  -webkit-tap-highlight-color: transparent;
}
button:hover, .button:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 32px rgba(0, 34, 132, .22);
}
button.secondary, .button.secondary {
  background: #fff;
  color: var(--primary-2);
  border-color: var(--line);
  box-shadow: none;
}
button.secondary:hover, .button.secondary:hover {
  border-color: rgba(0, 130, 216, .42);
  background: #f7fbff;
}
button.danger { border-color: var(--danger); background: var(--danger); }
button:disabled { opacity: .55; cursor: not-allowed; transform: none; box-shadow: none; }
button:focus-visible,
.button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 3px solid rgba(0, 148, 246, .28);
  outline-offset: 2px;
}

.card {
  border: 1px solid rgba(219, 229, 242, .96);
  border-radius: var(--radius);
  padding: 18px;
  background: #fff;
  box-shadow: 0 10px 28px rgba(7, 17, 47, .06);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
  border-color: rgba(0, 148, 246, .26);
}
.feature-card {
  min-height: 160px;
  display: grid;
  align-content: start;
  gap: 10px;
}
.quick-actions {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 14px;
}
.quick-action {
  color: inherit;
  text-decoration: none;
}
.quick-action strong {
  display: block;
  margin-top: 12px;
  font-size: 15px;
}
.quick-action small {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  line-height: 1.45;
}
.feature-icon,
.metric-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(0, 34, 132, .10), rgba(0, 148, 246, .16));
  color: var(--primary-2);
  font-weight: 900;
}
.metric-icon .ui-icon,
.feature-icon .ui-icon {
  color: currentColor;
}
.event-card { padding: 0; overflow: hidden; }
.event-admin-card {
  margin-top: 14px;
  border-left: 4px solid var(--brand-2);
}
.event-admin-card b {
  display: inline-block;
  margin-bottom: 4px;
  font-size: 16px;
}
.admin-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
}
.admin-card-footer strong {
  color: var(--primary-2);
}
.event-cover {
  position: relative;
  overflow: hidden;
  min-height: 138px;
  display: flex;
  align-items: flex-end;
  padding: 18px;
  color: #fff;
  background:
    linear-gradient(135deg, rgba(0, 34, 132, .94), rgba(0, 130, 216, .78)),
    radial-gradient(circle at 80% 10%, rgba(255,255,255,.35), transparent 28%);
}
.event-cover:after {
  content: "";
  position: absolute;
  inset: auto -42px -54px auto;
  width: 132px;
  height: 132px;
  border-radius: 999px;
  border: 26px solid rgba(255,255,255,.10);
}
.event-cover h3 {
  position: relative;
  z-index: 1;
  margin: 0;
  max-width: 92%;
}
.event-body { padding: 18px; }
.empty-state.compact {
  padding: 18px;
}
.public-event-shell {
  min-height: 100vh;
  background: #f4f6f8;
}
.public-event-shell .event-public-top,
.public-event-shell .sympla-event-hero,
.public-event-shell .sympla-event-body,
.public-event-shell .sympla-page-footer {
  margin-left: 0;
  margin-right: 0;
}
.public-event-shell .event-public-top {
  margin-top: 0;
}
.public-event-shell .sympla-page-footer {
  margin-bottom: 0;
}
.event-public-top {
  min-height: 46px;
  display: grid;
  grid-template-columns: 1fr auto auto 1fr;
  gap: 14px;
  align-items: center;
  margin: -30px -32px 0;
  padding: 0 52px;
  background: linear-gradient(90deg, #07112f, var(--primary), var(--brand));
  color: #cbd5e1;
  font-size: 12px;
}
.event-public-top > strong {
  justify-self: start;
  color: #fff;
  font-size: 18px;
  font-weight: 950;
}
.event-top-logo {
  width: 118px;
  max-height: 34px;
  object-fit: contain;
  padding: 4px 8px;
  border-radius: 10px;
  background: rgba(255,255,255,.96);
}
.event-public-top span strong {
  color: #fff;
}
.sympla-event-hero {
  display: grid;
  grid-template-columns: minmax(0, .92fr) minmax(360px, .82fr);
  gap: 46px;
  align-items: center;
  margin: 0 -32px;
  padding: 46px 52px 28px;
  color: #fff;
  background:
    radial-gradient(circle at 12% 92%, rgba(0, 130, 216, .32), transparent 28%),
    radial-gradient(circle at 92% 8%, rgba(255,255,255,.18), transparent 24%),
    linear-gradient(120deg, #07112f, var(--primary) 46%, #003b9f 78%, var(--brand));
}
.sympla-event-copy h1 {
  max-width: 560px;
  color: #fff;
  font-size: clamp(30px, 4vw, 46px);
}
.sympla-event-copy p {
  margin: 8px 0;
  color: #eef2f7;
  font-size: 14px;
}
.sympla-installment {
  width: fit-content;
  display: inline-flex;
  margin-top: 12px;
  padding: 8px 12px;
  border-radius: 999px;
  color: #fff;
  border: 1px solid rgba(255,255,255,.26);
  background: rgba(0, 130, 216, .32);
  font-size: 12px;
  font-weight: 900;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.18);
}
.sympla-event-poster {
  position: relative;
  min-height: 252px;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  padding: 26px;
  border: 1px solid rgba(255,255,255,.22);
  border-radius: 18px;
  background:
    radial-gradient(circle at 76% 20%, rgba(255,255,255,.36), transparent 25%),
    linear-gradient(135deg, rgba(0,34,132,.94), rgba(0,130,216,.72)),
    linear-gradient(45deg, #d9e7ff, #ffffff);
  box-shadow: 0 26px 70px rgba(0,0,0,.28);
}
.sympla-event-poster:before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(0,0,0,.52), transparent 56%),
    repeating-linear-gradient(135deg, rgba(255,255,255,.08) 0 1px, transparent 1px 13px);
}
.sympla-event-poster > * {
  position: relative;
  z-index: 1;
}
.sympla-event-poster span {
  color: rgba(255,255,255,.82);
  font-size: 12px;
  font-weight: 850;
  text-transform: uppercase;
}
.sympla-event-poster h2 {
  max-width: 420px;
  color: #fff;
  font-size: clamp(30px, 4vw, 54px);
}
.sympla-event-poster p {
  margin: 0;
  color: rgba(255,255,255,.86);
}
.sympla-event-poster button {
  min-height: 40px;
  border-radius: 999px;
  color: var(--primary-2);
  background: #fff;
  box-shadow: 0 10px 24px rgba(0,0,0,.18);
}
.sympla-event-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 34px;
  align-items: start;
  margin: 0 -32px;
  padding: 30px 52px 42px;
  background: #f4f6f8;
}
.sympla-event-content {
  min-width: 0;
  max-width: 760px;
}
.sympla-section {
  padding: 0 0 28px;
  margin-bottom: 28px;
  border-bottom: 1px solid #d8dee8;
}
.sympla-section h2,
.sympla-producer h2 {
  margin-bottom: 24px;
  font-size: 22px;
}
.sympla-section h3 {
  margin-top: 18px;
  font-size: 18px;
  text-transform: none;
}
.sympla-section p,
.sympla-section li {
  color: #111827;
  font-size: 15px;
  line-height: 1.55;
}
.sympla-section ul {
  padding-left: 22px;
}
.sympla-ticket-panel {
  position: sticky;
  top: 78px;
  display: grid;
  gap: 14px;
  padding: 18px;
  border: 1px solid rgba(219, 229, 242, .95);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 24px 58px rgba(0, 34, 132, .14);
}
.sympla-ticket-panel > h3 {
  padding: 2px 4px 10px;
  color: #667085;
  font-size: 12px;
}
.sympla-ticket-panel label {
  margin-top: 0;
}
.sympla-ticket-options {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}
.sympla-ticket-option {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  margin: 0;
  padding: 12px;
  border: 1px solid #d0d5dd;
  border-radius: 12px;
  background: #fff;
  cursor: pointer;
  transition: border-color .16s ease, box-shadow .16s ease, transform .16s ease, background .16s ease;
}
.sympla-ticket-option:hover {
  transform: translateY(-1px);
  border-color: rgba(0, 130, 216, .42);
  background: #f8fbff;
  box-shadow: 0 10px 24px rgba(7,17,47,.06);
}
.sympla-ticket-option:has(input:checked) {
  border-color: var(--brand);
  background: #f2f9ff;
  box-shadow: 0 0 0 3px rgba(0, 148, 246, .12);
}
.sympla-ticket-option input {
  width: auto;
  accent-color: var(--brand-2);
}
.sympla-ticket-option span {
  min-width: 0;
}
.sympla-ticket-option strong,
.sympla-ticket-option b,
.sympla-ticket-option small {
  display: block;
}
.sympla-ticket-option strong {
  color: #111827;
  font-size: 13px;
}
.sympla-ticket-option b {
  margin-top: 4px;
  color: #111827;
  font-size: 13px;
}
.sympla-ticket-option small {
  width: fit-content;
  margin-top: 4px;
  padding: 3px 7px;
  border-radius: 999px;
  color: #fff;
  background: var(--primary-2);
  font-size: 10px;
  font-weight: 900;
}
.sympla-ticket-option em {
  color: #667085;
  font-size: 12px;
}
.sympla-ticket-option.is-soldout {
  opacity: .68;
  cursor: not-allowed;
}
.sympla-submit {
  width: 100%;
  min-height: 48px;
  margin-top: 10px;
  border: 0;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--primary-2), var(--brand-2));
  color: #fff;
}
.sympla-ticket-note {
  display: grid;
  gap: 4px;
  margin-top: 12px;
  padding: 12px;
  border: 1px solid #dbeafe;
  border-radius: 12px;
  background: #f5faff;
}
.sympla-ticket-note strong {
  color: var(--primary-2);
  font-size: 13px;
}
.sympla-ticket-note span {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}
.payment-step {
  margin-top: 12px;
}
.payment-step-card {
  display: grid;
  gap: 14px;
  padding: 14px;
  border: 1px solid #c7dcff;
  border-radius: 16px;
  background: linear-gradient(180deg, #ffffff, #f5faff);
  box-shadow: 0 16px 34px rgba(0, 34, 132, .10);
  animation: fadeUp .28s ease both;
}
.payment-step-head {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
}
.payment-step-icon {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  color: #fff;
  background: linear-gradient(135deg, var(--primary-2), var(--brand-2));
  font-size: 12px;
  font-weight: 950;
}
.payment-step-icon .ui-icon {
  color: #fff;
}
.payment-step-icon .ui-icon svg {
  width: 19px;
  height: 19px;
}
.payment-step-head strong {
  display: block;
  color: #111827;
  font-size: 14px;
}
.payment-step-head p,
.payment-help span {
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
}
.payment-loading {
  display: flex;
  gap: 10px;
  align-items: center;
  color: var(--primary-2);
  font-size: 13px;
  font-weight: 800;
}
.loading-spinner.small {
  width: 22px;
  height: 22px;
  border-width: 3px;
}
.pix-checkout {
  display: grid;
  gap: 10px;
}
.pix-qrcode {
  width: min(210px, 100%);
  justify-self: center;
  padding: 10px;
  border: 1px solid #dbeafe;
  border-radius: 16px;
  background: #fff;
}
.payment-step textarea {
  width: 100%;
  min-height: 82px;
  resize: vertical;
  padding: 10px;
  border: 1px solid #ccd7ea;
  border-radius: 12px;
  background: #fff;
  color: #344054;
  font-size: 12px;
  line-height: 1.45;
}
.payment-help {
  display: grid;
  gap: 2px;
  padding: 10px;
  border-radius: 12px;
  background: rgba(0, 34, 132, .06);
}
.payment-help.friendly-error {
  grid-template-columns: 28px minmax(0, 1fr);
  align-items: start;
  gap: 10px;
}
.payment-help.friendly-error .ui-icon {
  width: 24px;
  height: 24px;
  margin-top: 1px;
  color: var(--danger);
}
.payment-help strong {
  color: var(--primary-2);
  font-size: 12px;
}
.card-payment-preview {
  display: grid;
  gap: 12px;
}
.fake-card {
  min-height: 116px;
  display: grid;
  align-content: space-between;
  padding: 16px;
  border-radius: 18px;
  color: #fff;
  background:
    radial-gradient(circle at 82% 20%, rgba(255,255,255,.20), transparent 24%),
    linear-gradient(135deg, #002284, #003aa0 52%, #0082d8);
  box-shadow: 0 18px 34px rgba(0, 34, 132, .20);
}
.fake-card span,
.fake-card small {
  color: rgba(255,255,255,.76);
  font-size: 11px;
  font-weight: 800;
}
.fake-card strong {
  color: #fff;
  letter-spacing: .08em;
}
body.modal-open {
  overflow: hidden;
}
.payment-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  place-items: center;
  padding: 24px;
  background:
    radial-gradient(circle at 22% 18%, rgba(0, 148, 246, .18), transparent 34%),
    rgba(5, 13, 34, .62);
  backdrop-filter: blur(12px);
  animation: fadeIn .18s ease both;
}
.payment-modal-card {
  position: relative;
  width: min(760px, 100%);
  max-height: min(900px, calc(100vh - 42px));
  display: grid;
  gap: 18px;
  overflow: auto;
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, .62);
  border-radius: 24px;
  background:
    linear-gradient(180deg, rgba(255,255,255,.98), rgba(246,250,255,.98));
  box-shadow: 0 34px 90px rgba(0, 18, 70, .34);
  animation: modalRise .26s cubic-bezier(.2,.8,.2,1) both;
}
.payment-modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border: 1px solid #dbe5f2;
  border-radius: 999px;
  background: #fff;
  color: #344054;
  font-size: 22px;
  line-height: 1;
  box-shadow: 0 10px 24px rgba(0, 34, 132, .10);
}
.payment-modal-title {
  padding-right: 42px;
}
.payment-modal-badge {
  display: inline-flex;
  width: fit-content;
  padding: 6px 10px;
  border-radius: 999px;
  color: var(--primary-2);
  background: #eaf4ff;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.payment-modal-title h2 {
  margin: 10px 0 4px;
  color: #07112f;
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.08;
  letter-spacing: -.02em;
}
.payment-modal-title p {
  max-width: 560px;
  margin: 0;
  color: #667085;
  font-size: 14px;
  line-height: 1.5;
}
.payment-modal-summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  padding: 14px;
  border: 1px solid #dbeafe;
  border-radius: 18px;
  background: #f8fbff;
}
.payment-modal-summary > div {
  display: grid;
  gap: 3px;
}
.payment-modal-summary span,
.payment-modal-summary small {
  color: #667085;
  font-size: 12px;
}
.payment-modal-summary strong {
  color: #07112f;
  font-size: 18px;
}
.payment-method-tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
.payment-method-tabs button {
  display: grid;
  gap: 4px;
  min-height: 76px;
  padding: 14px;
  border: 1px solid #d0d5dd;
  border-radius: 16px;
  background: #fff;
  color: #344054;
  text-align: left;
  box-shadow: none;
  transition: transform .16s ease, border-color .16s ease, box-shadow .16s ease, background .16s ease;
}
.payment-method-tabs button:hover {
  transform: translateY(-1px);
  border-color: rgba(0, 130, 216, .45);
  box-shadow: 0 14px 32px rgba(0, 34, 132, .10);
}
.payment-method-tabs button.is-active {
  border-color: var(--brand);
  background: linear-gradient(180deg, #fff, #eef7ff);
  box-shadow: 0 0 0 3px rgba(0, 148, 246, .14), 0 18px 36px rgba(0, 34, 132, .12);
}
.payment-method-tabs strong {
  color: #07112f;
  font-size: 15px;
}
.payment-method-tabs span {
  color: #667085;
  font-size: 12px;
  line-height: 1.3;
}
.payment-modal-body {
  min-height: 260px;
}
.payment-modal-content-card {
  display: grid;
  gap: 16px;
  padding: 18px;
  border: 1px solid #dbe5f2;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 18px 48px rgba(7, 17, 47, .08);
  animation: fadeUp .22s ease both;
}
.payment-modal-content-head strong {
  display: block;
  color: #07112f;
  font-size: 20px;
}
.payment-modal-content-head p {
  margin: 4px 0 0;
  color: #667085;
  font-size: 13px;
}
.payment-pix-layout {
  grid-template-columns: 230px minmax(0, 1fr);
  align-items: start;
}
.payment-code-panel {
  display: grid;
  gap: 10px;
}
.payment-modal-content-card textarea {
  width: 100%;
  min-height: 104px;
  resize: vertical;
  padding: 12px;
  border: 1px solid #ccd7ea;
  border-radius: 14px;
  background: #f8fbff;
  color: #344054;
  font-size: 12px;
  line-height: 1.45;
}
.payment-modal-content-card label {
  color: #344054;
  font-size: 12px;
  font-weight: 900;
}
.payment-card-layout {
  grid-template-columns: minmax(220px, .82fr) minmax(0, 1fr);
  align-items: stretch;
}
.payment-card-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.payment-card-fields label {
  display: grid;
  gap: 6px;
}
.payment-card-fields input,
.payment-card-fields select,
.mp-secure-field {
  height: 42px;
  border: 1px solid #dbe5f2;
  border-radius: 12px;
  background: #f5f7fb;
  color: #667085;
  padding: 0 12px;
}
.payment-card-form {
  display: grid;
  gap: 14px;
}
.payment-holder-fields {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
.payment-holder-fields label {
  display: grid;
  gap: 6px;
}
.payment-holder-fields input,
.payment-holder-fields select,
.payment-card-fields input,
.payment-card-fields select,
.mp-secure-field {
  width: 100%;
  color: #07112f;
  font-weight: 700;
}
.payment-card-fields input:not(:disabled),
.payment-card-fields select,
.payment-holder-fields input,
.payment-holder-fields select,
.mp-secure-field {
  background: #fff;
}
.payment-card-fields input:focus,
.payment-card-fields select:focus,
.payment-holder-fields input:focus,
.payment-holder-fields select:focus,
.mp-secure-field:focus-within {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(0, 148, 246, .12);
  outline: none;
}
.mp-transparent-form {
  gap: 16px;
}
.mp-holder-fields {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}
.mp-holder-fields label:nth-child(1),
.mp-holder-fields label:nth-child(3) {
  grid-column: span 2;
}
.mp-select {
  min-height: 42px;
  border: 1px solid #dbe5f2;
  border-radius: 12px;
  background: #fff;
  color: #07112f;
  font-weight: 800;
  padding: 0 12px;
}
.mp-progress {
  width: 100%;
  height: 5px;
  overflow: hidden;
  border: 0;
  border-radius: 999px;
  background: #edf3fb;
}
.mp-progress::-webkit-progress-bar {
  background: #edf3fb;
}
.mp-progress::-webkit-progress-value {
  background: linear-gradient(90deg, var(--brand-dark), var(--brand-sky));
}
.mp-card-message {
  min-height: 18px;
  margin: 0;
  color: #b42318;
  font-size: 12px;
  font-weight: 800;
}
.payment-card-submit {
  width: 100%;
  min-height: 48px;
}
.payment-success-state {
  display: grid;
  justify-items: center;
  gap: 8px;
  padding: 26px;
  border: 1px solid #bbf7d0;
  border-radius: 18px;
  background: linear-gradient(180deg, #f0fdf4, #ffffff);
  text-align: center;
}
.payment-success-state span {
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: #fff;
  background: #16a34a;
  font-size: 28px;
  font-weight: 950;
}
.payment-success-state strong {
  color: #07112f;
  font-size: 20px;
}
.payment-success-state p {
  margin: 0;
  color: #667085;
}
.payment-help.danger {
  border: 1px solid #ffd6d1;
  background: #fff5f3;
}
.payment-help.danger strong {
  color: var(--danger);
}
.payment-modal-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding-top: 4px;
}
.payment-modal-footer a {
  color: var(--primary-2);
  font-size: 13px;
  font-weight: 900;
}

/* Checkout modal inspired by the legacy school payment flow */
.payment-modal-backdrop {
  background: rgba(0, 0, 0, .68);
  backdrop-filter: blur(2px);
}
.payment-modal-card {
  width: min(430px, calc(100vw - 28px));
  max-height: calc(100vh - 36px);
  gap: 0;
  overflow: auto;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 30px 90px rgba(0, 0, 0, .36);
}
.reference-payment-steps {
  min-height: 76px;
  display: grid;
  grid-template-columns: auto 1fr auto 1fr auto;
  align-items: start;
  gap: 12px;
  padding: 18px 28px 14px;
  background: #08006f;
  color: #fff;
}
.reference-payment-steps i {
  height: 1px;
  margin-top: 11px;
  background: rgba(255, 255, 255, .34);
}
.reference-payment-step {
  display: grid;
  justify-items: center;
  gap: 7px;
  min-width: 46px;
}
.reference-payment-step span {
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  border: 1px solid #1f58d6;
  border-radius: 999px;
  color: #6aa4ff;
  font-size: 11px;
  font-weight: 900;
}
.reference-payment-step strong {
  color: rgba(255, 255, 255, .58);
  font-size: 10px;
  font-weight: 950;
}
.reference-payment-step.is-active span {
  border-color: #ff251a;
  color: #fff;
  background: #ff251a;
}
.reference-payment-step.is-active strong {
  color: #fff;
}
.payment-modal-body {
  min-height: 0;
}
.reference-payment-screen {
  display: grid;
  gap: 18px;
  min-height: 372px;
  padding: 28px 24px 0;
  background: #fff;
}
.reference-payment-head {
  text-align: center;
}
.reference-payment-head h3 {
  margin: 0;
  color: #06006e;
  font-size: 18px;
  line-height: 1.2;
}
.reference-payment-head p {
  margin: 20px 0 0;
  color: #111827;
  font-size: 12px;
}
.reference-summary-box {
  display: grid;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid #eceff5;
  border-radius: 6px;
  background: #fff;
}
.reference-summary-line {
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  min-height: 31px;
}
.reference-summary-line + .reference-summary-line {
  padding-top: 12px;
  border-top: 1px solid #eef0f4;
}
.reference-summary-line strong {
  display: block;
  color: #111827;
  font-size: 12px;
}
.reference-summary-line span {
  display: block;
  overflow: hidden;
  color: #344054;
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.reference-method-icon {
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  justify-self: center;
  color: #0b8edc;
}
.reference-method-icon svg,
.reference-method-icon .ui-icon,
.reference-method-icon .ui-icon svg {
  width: 24px;
  height: 24px;
  stroke-width: 2.3;
}
.reference-method-icon.pix svg {
  fill: #078bd6;
  stroke: #078bd6;
}
.reference-method-icon.credit-card {
  color: #0b8edc;
}
.card-mark {
  position: relative;
  width: 24px;
  height: 18px;
  display: block;
  border: 2px solid #0b8edc;
  border-radius: 3px;
  background: #fff;
}
.card-mark i {
  position: absolute;
  top: 4px;
  left: 0;
  right: 0;
  height: 3px;
  display: block;
  background: #0b8edc;
}
.card-mark b {
  position: absolute;
  left: 4px;
  bottom: 3px;
  width: 8px;
  height: 2px;
  display: block;
  border-radius: 999px;
  background: #0b8edc;
}
.reference-payment-total {
  display: grid;
  justify-items: center;
  gap: 12px;
  margin-top: 2px;
}
.reference-payment-total span {
  color: #111827;
  font-size: 12px;
}
.reference-payment-total strong {
  color: #e01710;
  font-size: 36px;
  font-weight: 950;
  line-height: 1;
}
.reference-payment-primary {
  min-height: 40px;
  border: 0;
  border-radius: 6px;
  background: #0b8edc;
  color: #fff;
  font-size: 14px;
  font-weight: 900;
}
.reference-payment-method-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  align-content: start;
  min-height: 96px;
}
.reference-payment-method-card {
  width: 116px;
  min-height: 74px;
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 4px;
  padding: 10px;
  border: 1px solid #e6e8ee;
  border-radius: 8px;
  background: #fff;
  color: #08006f;
  box-shadow: none;
}
.reference-payment-method-card:hover {
  border-color: #0b8edc;
  box-shadow: 0 10px 24px rgba(11, 142, 220, .12);
  transform: translateY(-1px);
}
.reference-payment-method-card strong {
  color: #08006f;
  font-size: 11px;
  font-weight: 950;
  text-align: center;
  text-transform: uppercase;
}
.reference-payment-method-card > span:not(.reference-method-icon) {
  color: #344054;
  font-size: 9px;
  line-height: 1.1;
  text-align: center;
}
.reference-installment-choice {
  width: min(100%, 320px);
  display: grid;
  gap: 14px;
  margin: 0 auto;
}
.reference-installment-choice label {
  display: grid;
  gap: 7px;
  color: #111827;
  font-size: 12px;
  font-weight: 800;
}
.reference-installment-choice select {
  width: 100%;
  min-height: 42px;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  background: #fff;
  color: #111827;
  font-size: 14px;
  font-weight: 700;
}
.reference-installment-preview {
  display: grid;
  justify-items: center;
  gap: 5px;
  padding: 14px;
  border: 1px solid #e6e8ee;
  border-radius: 8px;
  background: #fbfcff;
  text-align: center;
}
.reference-installment-preview span,
.reference-installment-preview small {
  color: #667085;
  font-size: 11px;
}
.reference-installment-preview strong {
  color: #e01710;
  font-size: 30px;
  font-weight: 950;
  line-height: 1;
}
.reference-loading {
  justify-content: center;
  min-height: 136px;
}
.reference-pix-layout {
  display: grid;
  justify-items: center;
  gap: 12px;
}
.reference-pix-notice {
  display: grid;
  justify-items: center;
  gap: 4px;
  min-height: 56px;
  padding: 10px;
  border: 1px solid #f5b51b;
  border-radius: 6px;
  background: #fffdf3;
  color: #d88800;
  text-align: center;
}
.reference-pix-notice strong {
  color: #d88800;
  font-size: 12px;
}
.reference-pix-notice span {
  color: #a15c00;
  font-size: 11px;
}
.reference-pix-layout .pix-qrcode {
  width: 150px;
  padding: 8px;
  border-radius: 6px;
}
.reference-pix-code-row {
  width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 52px;
  gap: 8px;
  align-items: center;
}
.reference-pix-code-row input {
  width: 100%;
  height: 26px;
  min-width: 0;
  padding: 0 7px;
  border: 1px solid #d0d5dd;
  border-radius: 5px;
  color: #111827;
  font-size: 10px;
}
.reference-pix-code-row button {
  height: 32px;
  border: 0;
  border-radius: 6px;
  background: #0b8edc;
  color: #fff;
  font-size: 11px;
  font-weight: 900;
}
.reference-card-form {
  width: min(100%, 430px);
  max-width: 430px;
  margin: 0 auto;
  padding: 8px 30px 0;
  gap: 10px;
}
.reference-card-title-row {
  display: grid;
  justify-items: start;
  gap: 12px;
  margin-bottom: 4px;
}
.reference-card-title-row strong {
  color: #111827;
  font-size: 19px;
  font-weight: 900;
  line-height: 1.15;
}
.reference-card-brands {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  flex: 0 0 auto;
}
.reference-card-brands i {
  width: 31px;
  height: 21px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid #e1e7f0;
  border-radius: 3px;
  color: #034aa6;
  background: #fff;
  font-size: 8px;
  font-style: normal;
  font-weight: 950;
  line-height: 1;
  text-align: center;
}
.reference-card-brands .brand-mastercard {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
}
.reference-card-brands .brand-mastercard b {
  width: 13px;
  height: 13px;
  display: block;
  border-radius: 999px;
}
.reference-card-brands .brand-mastercard b:first-child {
  margin-left: 2px;
  background: #eb001b;
}
.reference-card-brands .brand-mastercard b:last-child {
  margin-left: -4px;
  background: #f79e1b;
  mix-blend-mode: multiply;
}
.reference-card-brands .brand-visa {
  color: #1434cb;
  letter-spacing: -.03em;
}
.reference-card-brands .brand-elo {
  color: #111827;
  text-transform: lowercase;
}
.reference-card-brands .brand-amex {
  color: #fff;
  background: #2e77bb;
  font-size: 7px;
}
.reference-card-form .payment-card-fields,
.reference-card-form .payment-holder-fields {
  grid-template-columns: 1fr 1fr;
  gap: 8px 14px;
}
.reference-card-form .payment-holder-fields {
  grid-template-columns: 1fr;
  gap: 8px;
}
.reference-card-form .payment-card-fields label,
.reference-card-form .payment-holder-fields label {
  color: #111827;
  font-size: 13px;
  font-weight: 400;
  text-align: center;
}
.reference-card-form .payment-card-fields label:first-child,
.reference-card-form .payment-card-fields label:nth-child(4),
.reference-card-form .payment-holder-fields label:first-child,
.reference-card-form .reference-document-field,
.reference-card-form .reference-installments-field {
  grid-column: 1 / -1;
}
.reference-card-form .payment-holder-fields label:nth-child(4),
.reference-card-form .payment-holder-fields label:nth-child(5) {
  grid-column: 1 / -1;
}
.reference-card-note {
  color: #667085;
  font-size: 10px;
  line-height: 1.25;
  text-align: center;
}
.reference-document-row {
  height: 38px;
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  align-items: center;
  overflow: hidden;
  border: 1px solid #c6c9d0;
  border-radius: 6px;
  background: #fff;
}
.reference-document-row .mp-select,
.reference-document-row input {
  height: 100% !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}
.reference-document-row .mp-select {
  border-right: 1px solid #c6c9d0 !important;
}
.reference-hidden-field {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0) !important;
  clip-path: inset(50%) !important;
  white-space: nowrap !important;
  pointer-events: none !important;
}
.reference-card-form input,
.reference-card-form select,
.reference-card-form .mp-secure-field,
.reference-card-form .mp-select {
  height: 38px;
  border: 1px solid #c6c9d0;
  border-radius: 5px;
  background: #fff;
  color: #111827;
  font-size: 12px;
  font-weight: 400;
}
.reference-card-form .payment-card-submit {
  justify-self: stretch;
  width: 100%;
  min-height: 46px;
  margin-top: 2px;
  border-radius: 6px;
  background: #377ff2;
  font-size: 17px;
  font-weight: 950;
}
.reference-card-form .mp-progress {
  height: 3px;
  margin: -2px 0 0;
}
.reference-card-form .mp-card-message {
  min-height: 0;
  margin: 0;
}
.reference-payment-footer {
  min-height: 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 4px -24px 0;
  padding: 10px 24px;
  border-top: 1px solid #eef0f4;
  background: #fbfcfe;
}
.reference-payment-link {
  min-height: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  color: #0b8edc;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.2;
}
.reference-payment-link:hover {
  background: transparent;
  box-shadow: none;
  transform: none;
}
.reference-payment-link.danger {
  color: #e3481c;
  font-size: 10px;
  font-weight: 500;
}
@keyframes modalRise {
  from { opacity: 0; transform: translateY(18px) scale(.98); filter: blur(10px); }
  to { opacity: 1; transform: translateY(0) scale(1); filter: blur(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
.sympla-fee-note {
  justify-self: center;
  color: #667085;
  font-size: 11px;
}
.sympla-producer {
  padding: 28px 0;
}
.sympla-producer > div {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.producer-avatar {
  width: 74px;
  height: 74px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--brand-2));
  font-weight: 950;
}
.sympla-security,
.sympla-page-footer {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
  padding: 30px 0;
  border-top: 1px solid #d8dee8;
}
.sympla-security h3 {
  font-size: 16px;
}
.sympla-security p {
  font-size: 13px;
}
.sympla-page-footer {
  margin: 0 -32px -48px;
  padding: 28px 52px;
  background: #fff;
}
.sympla-page-footer span {
  color: #344054;
  font-weight: 850;
}

.metric-card {
  position: relative;
  overflow: hidden;
  min-height: 142px;
}
.metric-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}
.metric-card:after {
  content: "";
  position: absolute;
  top: -46px;
  right: -42px;
  width: 116px;
  height: 116px;
  border-radius: 999px;
  background: rgba(0, 148, 246, .10);
}
.stat-number {
  font-size: clamp(26px, 3vw, 34px);
  font-weight: 950;
  margin-top: 8px;
  letter-spacing: -.03em;
}
.stat-text {
  min-height: 40px;
  display: flex;
  align-items: center;
  color: var(--primary-2);
  font-size: clamp(18px, 2vw, 23px);
  font-weight: 950;
  line-height: 1.18;
  overflow-wrap: anywhere;
}
.stat-label {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}
.action-metric {
  display: grid;
  align-content: start;
  gap: 4px;
}
.action-metric .button {
  width: fit-content;
  margin-top: 8px;
}
.payment-readiness {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}
.finance-hero {
  margin-bottom: 18px;
}
.finance-filters {
  grid-template-columns: minmax(220px, 1.5fr) repeat(5, minmax(160px, 1fr)) auto auto auto;
}
.finance-summary-grid {
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  margin-bottom: 18px;
}
.finance-summary-grid .metric-card {
  min-height: 132px;
  border-left: 4px solid var(--brand);
}
.finance-summary-grid .metric-card:nth-child(2) {
  border-left-color: var(--danger);
}
.finance-summary-grid .metric-card:nth-child(3),
.finance-summary-grid .metric-card:nth-child(5) {
  border-left-color: #12b76a;
}
.finance-summary-grid .metric-card:nth-child(4) {
  border-left-color: #f59e0b;
}
.finance-table th,
.finance-table td {
  vertical-align: middle;
}
.finance-table .pill {
  margin-right: 6px;
}
.school-finance-page {
  display: grid;
  gap: 26px;
}
.school-finance-title h1 {
  margin: 0;
  color: var(--primary);
  font-size: clamp(26px, 3vw, 36px);
  font-weight: 950;
  letter-spacing: 0;
}
.school-finance-title p {
  margin: 4px 0 0;
  color: #415676;
  font-size: 15px;
}
.school-finance-filter-card,
.school-finance-table-card {
  background: #fff;
  border: 1px solid #e1e9f3;
  border-radius: 14px;
  box-shadow: 0 12px 34px rgba(15, 23, 42, .06);
}
.school-finance-filter-card {
  padding: 22px;
}
.school-finance-filters {
  display: grid;
  grid-template-columns: repeat(6, minmax(140px, 1fr));
  gap: 16px;
  align-items: end;
}
.school-finance-filters label:first-child {
  grid-column: span 2;
}
.event-search-field {
  position: relative;
}
.event-search-results {
  position: absolute;
  z-index: 30;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  display: grid;
  gap: 6px;
  max-height: 260px;
  overflow-y: auto;
  padding: 8px;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 18px 42px rgba(15, 23, 42, .18);
}
.event-search-results:empty {
  display: none;
}
.event-search-results button {
  display: grid;
  gap: 3px;
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #e1e9f3;
  border-radius: 8px;
  background: #f8fbff;
  color: #06122e;
  text-align: left;
}
.event-search-results button:hover,
.event-search-results button:focus {
  border-color: var(--brand);
  background: #eef7ff;
  outline: 0;
}
.event-search-results button strong {
  font-size: 13px;
  font-weight: 950;
}
.event-search-results button span,
.event-search-results p {
  margin: 0;
  color: #5d708d;
  font-size: 12px;
  font-weight: 750;
}
.school-finance-filters label {
  display: grid;
  gap: 7px;
  margin: 0;
}
.school-finance-filters label span {
  color: #5d708d;
  font-size: 11px;
  font-weight: 950;
  text-transform: uppercase;
}
.school-finance-filters input,
.school-finance-filters select,
.school-table-search input {
  width: 100%;
  height: 42px;
  border: 1px solid #cfdaea;
  border-radius: 8px;
  background: #f8fbff;
  color: #06122e;
  font-weight: 800;
}
.school-finance-filters input:focus,
.school-finance-filters select:focus,
.school-table-search input:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 4px rgba(0, 148, 246, .12);
  outline: 0;
}
.school-filter-primary,
.school-excel-button,
.school-filter-clear {
  height: 42px;
  min-height: 42px;
  border-radius: 8px;
  font-weight: 950;
}
.school-filter-primary {
  padding: 0 22px;
}
.school-filter-clear {
  display: grid;
  place-items: center;
  min-width: 48px;
  border: 0;
  background: #ffe5e7;
  color: var(--danger);
  text-decoration: none;
}
.school-excel-button {
  grid-column: span 2;
  padding: 0 18px;
  border: 0;
  background: #116b39;
  color: #fff;
  box-shadow: none;
}
.school-finance-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}
.school-finance-card {
  min-height: 148px;
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 28px 32px;
  border: 1px solid #e4ebf5;
  border-left: 4px solid var(--brand);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 16px 36px rgba(15, 23, 42, .06);
}
.school-finance-card span {
  display: block;
  margin-bottom: 16px;
  color: #60718c;
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
}
.school-finance-card strong {
  display: inline;
  color: #06122e;
  font-size: 27px;
  font-weight: 950;
  line-height: 1;
}
.school-finance-card small {
  margin-left: 6px;
  color: #51647f;
  font-size: 16px;
  font-weight: 700;
}
.school-finance-card b {
  display: block;
  margin-top: 14px;
  color: var(--brand);
  font-size: 20px;
  font-weight: 950;
}
.school-finance-card i {
  width: 52px;
  height: 52px;
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 14px;
  background: #e3f3ff;
  color: var(--brand);
  font-style: normal;
  font-size: 22px;
  font-weight: 950;
}
.school-finance-card.red { border-left-color: var(--danger); }
.school-finance-card.red b { color: var(--danger); }
.school-finance-card.red i { background: #ffe3e3; color: var(--danger); }
.school-finance-card.green { border-left-color: #12b76a; }
.school-finance-card.green b { color: #12a161; }
.school-finance-card.green i { background: #d8f8e7; color: #12a161; }
.school-finance-card.orange { border-left-color: #f59e0b; }
.school-finance-card.orange b { color: #f59e0b; }
.school-finance-card.orange i { background: #fff1c7; color: #d97706; }
.school-finance-card.purple { border-left-color: #8b5cf6; }
.school-finance-card.purple b { color: #8b5cf6; }
.school-finance-card.purple i { background: #efe7ff; color: #8b5cf6; }
.school-finance-card.mint {
  border-left-color: #12b76a;
  background: #f0fff6;
}
.school-finance-card.mint b,
.school-finance-card.mint strong { color: #087443; }
.school-finance-card.mint i { background: #d6f8e7; color: #0e9f61; }
.school-finance-card.cash { border-left-color: #334155; }
.school-finance-card.cash b { color: #334155; }
.school-finance-card.cash i { background: #eef2f7; color: #334155; font-size: 18px; }
.school-finance-tabs {
  display: flex;
  gap: 28px;
  border-bottom: 1px solid #d4dfed;
}
.school-finance-tabs a {
  padding: 0 0 14px;
  border-bottom: 3px solid transparent;
  color: #66758d;
  font-weight: 950;
  text-decoration: none;
}
.school-finance-tabs a.active {
  border-color: var(--primary);
  color: var(--primary);
}
.admin-dashboard-hero .button.secondary,
.finance-report-title .button.secondary {
  position: relative;
  z-index: 1;
}
.finance-report-title {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
}
.dashboard-action-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.dashboard-action-card {
  min-height: 118px;
  display: grid;
  align-content: start;
  gap: 10px;
  padding: 18px;
  border: 1px solid #dbe7f6;
  border-radius: 12px;
  background: #fff;
  color: inherit;
  text-decoration: none;
  box-shadow: 0 12px 30px rgba(15, 23, 42, .055);
  transition: transform .16s ease, border-color .16s ease, box-shadow .16s ease;
}
.dashboard-action-card:hover {
  transform: translateY(-2px);
  border-color: rgba(0, 130, 216, .38);
  box-shadow: 0 16px 38px rgba(0, 34, 132, .10);
}
.dashboard-action-card strong {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--primary);
  font-size: 15px;
  font-weight: 950;
}
.dashboard-action-card span {
  color: #5d708d;
  font-size: 13px;
  line-height: 1.45;
}
.admin-dashboard-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
.dashboard-mini-card > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 20px;
}
.dashboard-mini-card > header h2 {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 18px;
}
.dashboard-mini-card > header .button {
  min-height: 34px;
  padding: 7px 11px;
  border-radius: 8px;
  font-size: 12px;
}
.dashboard-mini-list {
  display: grid;
  border-top: 1px solid #e6eef8;
}
.dashboard-payment-card {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: start;
  margin: 10px 12px;
  padding: 12px;
  border: 1px solid #e4edf8;
  border-radius: 10px;
  background: linear-gradient(180deg, #fff, #fbfdff);
}
.dashboard-payment-icon {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: #eef7ff;
  color: var(--primary);
}
.dashboard-payment-icon .ui-icon {
  width: 18px;
  height: 18px;
}
.dashboard-payment-main strong,
.dashboard-payment-main span,
.dashboard-payment-main small {
  display: block;
}
.dashboard-payment-main strong {
  color: #06122e;
  font-size: 14px;
  line-height: 1.25;
}
.dashboard-payment-main span {
  margin-top: 3px;
  color: #40526c;
  font-size: 12.5px;
  line-height: 1.3;
}
.dashboard-payment-main small {
  margin-top: 4px;
  color: #72819a;
  font-size: 11.5px;
  line-height: 1.25;
}
.dashboard-payment-side {
  display: grid;
  justify-items: end;
  align-content: start;
  gap: 7px;
}
.dashboard-payment-side b {
  color: var(--primary);
  font-size: 14px;
  font-weight: 950;
  white-space: nowrap;
}
.dashboard-payment-card .status-badge {
  padding: 4px 7px;
  font-size: 10px;
}
.dashboard-mini-empty {
  padding: 22px;
  color: #66758d;
  font-size: 13px;
  font-weight: 750;
  text-align: center;
}
.school-finance-table-card {
  overflow: hidden;
}
.school-finance-table-card > header {
  display: grid;
  grid-template-columns: 1fr minmax(220px, 360px) auto;
  gap: 18px;
  align-items: center;
  padding: 24px 28px;
}
.school-finance-table-card h2 {
  margin: 0;
  color: var(--primary);
  font-size: 21px;
  font-weight: 950;
}
.school-finance-table-card > header > span {
  padding: 10px 16px;
  border-radius: 999px;
  background: #f3f7fc;
  color: #61728d;
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
}
.school-finance-table {
  min-width: 980px;
}
.school-finance-table th {
  background: #f3f7fc;
  color: #60718c;
  font-size: 12px;
  text-transform: uppercase;
}
.school-finance-table td {
  padding-top: 20px;
  padding-bottom: 20px;
  vertical-align: middle;
}
.school-finance-table tbody tr:hover {
  background: #f9fcff;
}
.event-mini-badge,
.payment-mini-badge {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 4px 8px;
  border-radius: 7px;
  background: #e9f5ff;
  color: var(--brand);
  font-size: 10px;
  font-weight: 950;
  text-transform: uppercase;
}
.payment-mini-badge {
  background: #f6f8fb;
  color: #637188;
}
.money-cell.in-account {
  color: #0bbf72;
}
@media (max-width: 1100px) {
  .school-finance-filters,
  .school-finance-cards,
  .dashboard-action-grid,
  .admin-dashboard-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .school-filter-primary,
  .school-filter-clear,
  .school-excel-button {
    width: 100%;
  }
}
@media (max-width: 720px) {
  .school-finance-filters,
  .school-finance-cards,
  .school-finance-table-card > header,
  .dashboard-action-grid,
  .admin-dashboard-grid {
    grid-template-columns: 1fr;
  }
  .finance-report-title {
    align-items: flex-start;
    flex-direction: column;
  }
  .school-finance-filters label:first-child,
  .school-excel-button {
    grid-column: auto;
  }
  .school-finance-card {
    padding: 22px;
  }
  .school-finance-tabs {
    gap: 16px;
    overflow-x: auto;
  }
  .school-finance-tabs a {
    min-width: max-content;
  }
}
.readiness-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 14px;
  align-items: start;
}
.readiness-card h3 {
  margin-bottom: 4px;
}
.readiness-card strong {
  display: inline-flex;
  margin-bottom: 5px;
  font-size: 13px;
  font-weight: 950;
}
.readiness-card p {
  margin: 0;
  font-size: 12px;
}
.readiness-card.is-ready {
  border-color: #abefc6;
}
.readiness-card.is-ready strong {
  color: var(--success);
}
.readiness-card.is-pending {
  border-color: #fedf89;
}
.readiness-card.is-pending strong {
  color: #93370d;
}
.payment-config-panel .detail-list {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 10px;
  color: #344054;
  font-size: 12px;
  font-weight: 750;
  background: #fff;
  white-space: nowrap;
}
.status-pending { border-color: #fedf89; color: #93370d; background: #fffaeb; }
.status-paid { border-color: #abefc6; color: #067647; background: #ecfdf3; }
.status-cancelled { border-color: #fecdca; color: var(--danger); background: #fff1f0; }
.status-badge:before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: currentColor;
}
.error {
  min-height: 18px;
  color: var(--danger);
  font-size: 13px;
  font-weight: 800;
}
.ok {
  min-height: 18px;
  color: var(--success);
  font-size: 13px;
  font-weight: 800;
}
.error:not(:empty),
.ok:not(:empty) {
  display: block;
  padding: 10px 12px;
  border-radius: 12px;
  margin: 12px 0;
}
.error:not(:empty) {
  border: 1px solid #fecdca;
  background: #fff1f0;
}
.ok:not(:empty) {
  border: 1px solid #abefc6;
  background: #ecfdf3;
}

.table-wrap {
  width: 100%;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 14px;
}
.table-panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}
.table-panel-head h2 {
  margin-bottom: 4px;
}
.table-panel-head p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}
.table {
  width: 100%;
  min-width: 760px;
  border-collapse: separate;
  border-spacing: 0;
}
.table thead th {
  position: sticky;
  top: 0;
  z-index: 1;
}
.table th, .table td {
  padding: 13px 14px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}
.table td:first-child,
.table th:first-child {
  padding-left: 18px;
}
.table td:last-child,
.table th:last-child {
  padding-right: 18px;
}
.table th {
  background: #f7faff;
  font-size: 11px;
  color: #475467;
  letter-spacing: .07em;
  text-transform: uppercase;
}
.table tr:last-child td { border-bottom: 0; }
.table tbody tr { transition: background .16s ease; }
.table tbody tr:hover { background: #f8fbff; }
.empty-table {
  display: grid;
  justify-items: center;
  gap: 5px;
  padding: 24px;
  text-align: center;
}
.empty-table strong {
  color: var(--primary-2);
  font-size: 14px;
}
.empty-table span {
  max-width: 420px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}
.money-cell {
  font-weight: 900;
  color: var(--primary-2);
  white-space: nowrap;
}
.table-actions {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  min-width: 180px;
}

.registration-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
  background: #fff;
  box-shadow: 0 10px 28px rgba(7, 17, 47, .05);
}
.registration-card h3 { margin-top: 12px; }
.registration-meta {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 12px;
}
.registration-meta span {
  display: inline-flex;
  padding: 6px 9px;
  border-radius: 999px;
  background: #f3f8ff;
  color: #344054;
  font-size: 12px;
  font-weight: 750;
}
.detail-list {
  display: grid;
  gap: 10px;
}
.detail-list div {
  display: grid;
  gap: 4px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--soft);
}
.detail-list span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}
.detail-list strong {
  color: var(--ink);
  overflow-wrap: anywhere;
}
.registration-side {
  display: grid;
  justify-items: end;
  gap: 10px;
  min-width: 180px;
}
.registration-side strong { font-size: 24px; letter-spacing: -.02em; }
.empty-state {
  border: 1px dashed #b8c7dc;
  border-radius: var(--radius);
  padding: 30px;
  background: linear-gradient(135deg, #fbfdff, #f3f8ff);
  text-align: center;
}
.empty-state h3:before {
  content: "i";
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  margin: 0 auto 12px;
  border-radius: 14px;
  color: var(--primary-2);
  background: #eaf5ff;
}
.success-panel {
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}
.success-icon {
  width: 62px;
  height: 62px;
  display: grid;
  place-items: center;
  border-radius: 20px;
  background: #ecfdf3;
  color: var(--success);
  font-size: 34px;
  font-weight: 900;
  margin: 0 auto 18px;
}
.success-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 20px 0;
}
.success-steps span {
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #f8fbff;
  color: #344054;
  font-size: 12px;
  font-weight: 850;
}
.filters {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)) auto auto auto;
  gap: 12px;
  align-items: end;
}
.filter-panel {
  background: linear-gradient(180deg, #fff, #f9fbff);
}
.filter-panel label {
  margin-top: 0;
}
.export-button:before {
  content: "↓";
  font-weight: 950;
}
.check-row {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: auto;
  padding: 10px 12px;
  margin: 14px 0 8px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #f8fbff;
  color: #344054;
}
.check-row input {
  width: 18px;
  height: 18px;
  accent-color: var(--brand);
}
.package-edit,
.student-edit {
  display: grid;
  gap: 2px;
}
.record-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}
.record-card-head span:first-child {
  display: block;
  margin-bottom: 3px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.record-card-head h3 {
  margin-bottom: 0;
}
.package-edit .row.space {
  margin-top: 10px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}
.mark-paid,
.cancel-registration {
  min-height: 34px;
  padding: 8px 10px;
  margin: 2px;
  font-size: 12px;
  border-radius: 10px;
}
.cancel-registration {
  box-shadow: none;
}
.panel > .table-wrap {
  margin-top: 8px;
}
.page-hero .button.secondary,
.hero-panel .button.secondary,
.page-hero button.secondary,
.hero-panel button.secondary {
  background: rgba(255,255,255,.12);
  color: #fff;
  border-color: rgba(255,255,255,.34);
}
.page-hero .button.secondary:hover,
.hero-panel .button.secondary:hover,
.page-hero button.secondary:hover,
.hero-panel button.secondary:hover {
  background: rgba(255,255,255,.20);
}
.page-hero .pill,
.hero-panel .pill {
  background: rgba(255,255,255,.14);
  color: #fff;
  border-color: rgba(255,255,255,.28);
}

.auth-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 28px;
  background:
    radial-gradient(circle at 12% 20%, rgba(0, 130, 216, .20), transparent 28%),
    radial-gradient(circle at 88% 80%, rgba(0, 34, 132, .18), transparent 32%),
    linear-gradient(135deg, #f6faff, #eef5ff);
}
.loading-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 28px;
  background:
    radial-gradient(circle at 50% 20%, rgba(0, 148, 246, .18), transparent 30%),
    linear-gradient(135deg, #f7fbff, #eef5ff);
}
.loading-card {
  width: min(420px, 100%);
  display: grid;
  justify-items: center;
  gap: 12px;
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(253,253,253,.96);
  box-shadow: var(--shadow);
  text-align: center;
  animation: fadeUp .32s ease both;
}
.loading-card p {
  margin: 0;
}
.loading-spinner {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 4px solid #dbeafe;
  border-top-color: var(--brand-2);
  animation: spin .8s linear infinite;
}
@keyframes spin {
  to { transform: rotate(360deg); }
}
.auth-card {
  width: min(1040px, 100%);
  display: grid;
  grid-template-columns: minmax(320px, .95fr) minmax(360px, 1.05fr);
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.78);
  border-radius: 24px;
  background: rgba(253,253,253,.96);
  box-shadow: 0 30px 90px rgba(0, 34, 132, .18);
  animation: fadeUp .42s ease both;
}
.auth-brand {
  min-height: 620px;
  padding: 46px;
  color: #fff;
  background:
    linear-gradient(135deg, rgba(0, 34, 132, .98), rgba(0, 34, 132, .92) 58%, rgba(0, 130, 216, .86)),
    url("data:image/svg+xml,%3Csvg width='220' height='220' viewBox='0 0 220 220' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' stroke='rgba(255,255,255,.18)' stroke-width='1'%3E%3Cpath d='M20 44h180M20 88h180M20 132h180M20 176h180M44 20v180M88 20v180M132 20v180M176 20v180'/%3E%3C/g%3E%3C/svg%3E");
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.auth-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 24px;
  font-weight: 950;
}
.auth-brand-logo {
  width: 142px;
  max-height: 80px;
  object-fit: contain;
  padding: 8px;
  border-radius: 16px;
  background: rgba(255,255,255,.96);
  box-shadow: 0 16px 36px rgba(0, 0, 0, .16);
}
.auth-logo-mark {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  color: var(--primary-2);
  background: #fff;
  font-weight: 950;
}
.auth-brand h1 {
  color: #fff;
  max-width: 430px;
  margin-top: 52px;
  font-size: clamp(36px, 5vw, 58px);
}
.auth-brand p { color: rgba(255,255,255,.84); max-width: 440px; }
.auth-points { display: grid; gap: 10px; margin-top: 26px; }
.auth-point {
  padding: 12px 14px;
  border: 1px solid rgba(255,255,255,.22);
  border-radius: 14px;
  background: rgba(255,255,255,.10);
  backdrop-filter: blur(8px);
}
.auth-trust {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 28px 0 14px;
}
.auth-trust span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 6px 10px;
  border-radius: 999px;
  color: #fff;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.20);
  font-size: 11px;
  font-weight: 850;
}
.auth-form {
  padding: 52px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.auth-form h2 { font-size: 32px; margin-bottom: 6px; }
.auth-form .muted { margin-top: 0; }
.auth-actions { display: grid; gap: 10px; margin-top: 18px; }
.auth-primary { width: 100%; min-height: 48px; }
.auth-divider {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 12px;
  margin: 18px 0 14px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}
.auth-divider:before,
.auth-divider:after {
  content: "";
  height: 1px;
  background: var(--line);
}
.google-button {
  width: 100%;
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  color: #111827;
  text-decoration: none;
  font-weight: 900;
  box-shadow: 0 10px 22px rgba(7, 17, 47, .05);
  transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease, background .16s ease;
}
.google-button:hover {
  transform: translateY(-2px);
  border-color: rgba(0, 130, 216, .34);
  background: #fbfdff;
  box-shadow: 0 16px 32px rgba(7, 17, 47, .10);
}
.google-icon {
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #4285f4;
  background: #fff;
  border: 1px solid #e5eaf2;
  font-size: 14px;
  font-weight: 950;
}
.auth-link {
  text-align: center;
  margin-top: 20px;
  color: var(--muted);
}
.auth-link a { color: var(--primary-2); font-weight: 900; text-decoration: none; }
.auth-link-small {
  margin-top: 10px;
  font-size: 13px;
}
.auth-note {
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: 14px;
  background: var(--soft);
  color: var(--muted);
  font-size: 13px;
}
.panel form {
  position: relative;
}
.panel form button {
  margin-top: 10px;
}
.panel h1 + form,
.panel h2 + form {
  margin-top: 14px;
}
.panel h1 + form:before,
.panel h2 + form:before {
  content: "";
  display: block;
  height: 1px;
  margin-bottom: 14px;
  background: linear-gradient(90deg, var(--line), transparent);
}

@media (prefers-reduced-motion: reduce) {
  *, *:before, *:after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
  }
}

@media (max-width: 860px) {
  .app-shell { grid-template-columns: 1fr; }
  .sidebar {
    position: static;
    height: auto;
    border-right: 0;
    border-bottom: 1px solid #d6dee8;
  }
  .sidebar-brand { min-height: 62px; }
  .side-nav {
    display: flex;
    overflow-x: auto;
    padding: 8px;
    gap: 8px;
    scrollbar-width: none;
  }
  .side-nav::-webkit-scrollbar { display: none; }
  .side-section { display: none; }
  .sidebar-footer { display: none; }
  .side-link {
    flex: 0 0 auto;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding-right: 12px;
    background: #fff;
  }
  .app-topbar {
    position: static;
    align-items: flex-start;
    padding: 12px 14px;
  }
  .app-topbar span {
    display: block;
    margin-left: 0;
    margin-top: 2px;
  }
  .layout { padding: 16px; }
  .event-public-top {
    grid-template-columns: 1fr;
    gap: 6px;
    margin: -16px -16px 0;
    padding: 12px 16px;
  }
  .event-public-top > strong {
    justify-self: start;
  }
  .sympla-event-hero,
  .sympla-event-body {
    grid-template-columns: 1fr;
    margin-left: -16px;
    margin-right: -16px;
    padding-left: 16px;
    padding-right: 16px;
  }
  .sympla-event-hero {
    gap: 22px;
    padding-top: 28px;
  }
  .sympla-event-poster {
    min-height: 220px;
  }
  .sympla-ticket-panel {
    position: static;
    order: -1;
  }
  .payment-modal-backdrop {
    align-items: end;
    padding: 12px;
  }
  .payment-modal-card {
    max-height: calc(100vh - 24px);
    padding: 18px;
    border-radius: 22px;
  }
  .payment-modal-summary,
  .payment-pix-layout,
  .payment-card-layout,
  .payment-holder-fields {
    grid-template-columns: 1fr;
  }
  .mp-holder-fields label:nth-child(1),
  .mp-holder-fields label:nth-child(3) {
    grid-column: auto;
  }
  .payment-method-tabs {
    grid-template-columns: 1fr;
  }
  .payment-method-tabs button {
    min-height: 62px;
  }
  .sympla-security,
  .sympla-page-footer {
    grid-template-columns: 1fr;
  }
  .sympla-page-footer {
    margin-left: -16px;
    margin-right: -16px;
    margin-bottom: -48px;
    padding-left: 16px;
    padding-right: 16px;
  }
  .filters { grid-template-columns: 1fr; }
  .filters button,
  .filters .button {
    width: 100%;
  }
  .form-grid-two {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .table-panel-head {
    align-items: stretch;
  }
  .registration-card { grid-template-columns: 1fr; }
  .registration-side { justify-items: start; min-width: 0; }
  .success-steps { grid-template-columns: 1fr; }
  .auth-page { padding: 14px; align-items: start; }
  .auth-card { grid-template-columns: 1fr; border-radius: 20px; }
  .auth-brand { min-height: auto; padding: 30px; }
  .auth-brand h1 { margin-top: 28px; }
  .auth-form { padding: 30px; }
  .auth-trust { gap: 6px; }
}

@media (max-width: 520px) {
  .row.space { align-items: stretch; }
  .row.space > .button,
  .row.space > button { width: 100%; }
  .panel { padding: 18px; border-radius: 14px; }
  h1 { font-size: 29px; }
  .auth-form h2 { font-size: 27px; }
  .table { min-width: 680px; }
  .quick-actions,
  .grid.metrics {
    grid-template-columns: 1fr;
  }
  .payment-modal-backdrop {
    padding: 0;
  }
  .payment-modal-card {
    width: 100%;
    max-height: 100vh;
    border-radius: 22px 22px 0 0;
  }
  .payment-card-fields {
    grid-template-columns: 1fr;
  }
  .payment-modal-footer {
    align-items: stretch;
    flex-direction: column;
  }
  .payment-modal-footer button {
    width: 100%;
  }
}

/* Batista reference experience */
.batista-shell { min-height: 100vh; background: #f4f6f9; }
.batista-topbar {
  min-height: 78px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: stretch;
  gap: 18px;
  padding: 0 24px;
  background: var(--primary);
  color: #fff;
  box-shadow: 0 8px 24px rgba(0, 0, 102, .14);
}
.portal-shell .batista-topbar { background: #fff; color: var(--primary); }
.batista-logo-link { width: 90px; display: grid; place-items: center; text-decoration: none; }
.batista-nav-logo { width: 78px; max-height: 60px; object-fit: contain; }
.batista-main-nav { display: flex; align-items: stretch; gap: 0; min-width: 0; }
.batista-nav-link {
  min-width: 128px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 0 18px;
  color: inherit;
  text-decoration: none;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .01em;
  border-bottom: 4px solid transparent;
  transition: background .16s ease, color .16s ease, border-color .16s ease;
}
.portal-shell .batista-nav-link {
  min-width: 118px;
  height: 44px;
  align-self: center;
  border-radius: 10px;
  text-transform: none;
}
.batista-nav-link .ui-icon { color: var(--brand); }
.admin-shell .batista-nav-link .ui-icon { color: rgba(255,255,255,.86); }
.batista-nav-link:hover .ui-icon,
.batista-nav-link.active .ui-icon { color: currentColor; }
.batista-nav-link:hover,
.batista-nav-link.active { background: rgba(255,255,255,.08); border-bottom-color: var(--danger); }
.portal-shell .batista-nav-link:hover,
.portal-shell .batista-nav-link.active { background: #edf2fb; border-bottom-color: transparent; color: var(--primary); }
.batista-session { display: flex; align-items: center; gap: 10px; font-weight: 900; white-space: nowrap; }
.online-dot { width: 10px; height: 10px; border-radius: 50%; background: #21d66b; box-shadow: 0 0 0 4px rgba(33,214,107,.16); }
.batista-logout,
.batista-login {
  min-height: auto;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  color: var(--danger);
  font-weight: 950;
  text-transform: uppercase;
  text-decoration: none;
}
.batista-logout:hover,
.batista-login:hover { transform: none; box-shadow: none; }
.batista-layout { max-width: 1180px; margin: 0 auto; padding: 42px 24px 64px; animation: fadeUp .28s ease both; }
.batista-portal-hero { text-align: center; margin: 10px 0 42px; }
.batista-portal-hero h1 { color: var(--primary); font-size: clamp(34px, 5vw, 52px); font-weight: 950; letter-spacing: .02em; }
.batista-portal-hero p { margin: 10px 0 0; color: #53657e; font-size: 17px; }
.batista-portal-hero span { color: var(--brand); margin-right: 8px; }
.reference-event-list { display: grid; gap: 24px; max-width: 960px; margin: 0 auto; }
.reference-event-card {
  position: relative;
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  overflow: hidden;
  border: 1px solid #dbe5f2;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 14px 34px rgba(0,0,102,.08);
  transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease;
}
.reference-event-card:hover,
.reference-event-card.selected { transform: translateY(-2px); border-color: rgba(0, 130, 216, .48); box-shadow: 0 18px 46px rgba(0,0,102,.12); }
.reference-event-media { position: relative; display: grid; place-items: center; padding: 18px; border-right: 1px solid #e3ebf6; background: #f8fbff; }
.open-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 2;
  padding: 7px 12px;
  border-radius: 999px;
  background: #10b981;
  color: #fff;
  font-size: 11px;
  font-weight: 950;
}
.reference-event-cover {
  width: 240px;
  aspect-ratio: 16 / 10;
  display: grid;
  align-content: center;
  gap: 10px;
  padding: 18px;
  border: 2px dashed rgba(0, 130, 216, .7);
  border-radius: 10px;
  text-align: center;
  color: var(--primary);
  background: radial-gradient(circle at 82% 18%, rgba(0,130,216,.22), transparent 28%), linear-gradient(135deg, #ffffff, #eef6ff);
}
.reference-event-cover.large { width: 260px; }
.reference-event-media > .event-cover-image {
  width: 240px;
  aspect-ratio: 16 / 10;
  border-radius: 10px;
  border: 1px solid #dbe5f2;
  box-shadow: 0 12px 24px rgba(0,34,132,.10);
}
.reference-event-media > .event-cover-image.large { width: 260px; }
.reference-event-cover strong { color: var(--danger); font-size: 21px; line-height: 1.05; text-transform: uppercase; }
.reference-event-cover small { color: var(--primary); font-weight: 900; }
.reference-event-info { display: grid; align-content: center; gap: 14px; padding: 30px 32px; }
.reference-event-info h2 { color: var(--primary); font-size: clamp(22px, 3vw, 28px); font-weight: 950; }
.reference-event-info p { margin: 0; color: #263b5d; font-size: 15px; }
.reference-event-foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 18px; color: #4d617c; }
.reference-event-foot b { color: var(--danger); }
.reference-select-button {
  min-width: 124px;
  display: inline-flex;
  justify-content: center;
  padding: 10px 18px;
  border-radius: 999px;
  color: var(--primary);
  background: #eef2f8;
  font-weight: 950;
  text-transform: uppercase;
  text-decoration: none;
  font-size: 12px;
}
.reference-select-button.ghost { background: #fff; border: 1px solid #dbe5f2; }
.single-event-flow { margin-bottom: 18px; }
.purchase-panel,
.reference-table-card,
.parent-payment-total {
  max-width: 1040px;
  margin: 0 auto 24px;
  padding: 30px;
  border-radius: 18px;
  border: 1px solid #dbe5f2;
  background: #fff;
  box-shadow: 0 16px 38px rgba(0,0,102,.07);
}
.purchase-form h3 { color: var(--primary); }
.reference-package-grid { display: grid; gap: 12px; margin: 20px 0; }
.reference-package {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  margin: 0;
  padding: 16px;
  border: 1px solid #d3dfef;
  border-radius: 14px;
  background: #fff;
  cursor: pointer;
}
.reference-package:has(input:checked) { border-color: var(--brand); background: #f2f9ff; box-shadow: 0 0 0 3px rgba(0,130,216,.12); }
.reference-package input { width: auto; accent-color: var(--brand); }
.reference-package strong,
.reference-package b,
.reference-package small { display: block; }
.reference-package b { margin-top: 3px; color: var(--primary); font-size: 18px; }
.reference-package small { width: fit-content; margin-top: 5px; padding: 4px 8px; border-radius: 999px; background: var(--primary); color: #fff; font-size: 10px; font-weight: 900; }
.reference-package em { color: #64748b; font-size: 12px; font-weight: 900; }
.terms-box { padding: 16px; border: 1px solid #dbe5f2; border-radius: 12px; background: #f8fbff; }
.terms-box p { margin: 6px 0 0; font-size: 13px; }
.purchase-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: 22px;
  padding: 22px;
  border-radius: 14px;
  background: var(--primary);
  color: #fff;
}
.purchase-summary span,
.purchase-summary strong { display: block; color: #fff; }
.purchase-summary span { opacity: .78; font-size: 12px; font-weight: 800; }
.purchase-summary strong { margin-top: 4px; font-size: 28px; font-weight: 950; }
.danger-button,
button.danger.small { background: var(--danger); color: #fff; border: 0; box-shadow: 0 12px 28px rgba(223,24,14,.20); text-transform: uppercase; }
button.danger.small { min-height: 34px; padding: 8px 12px; border-radius: 8px; font-size: 12px; }
.reference-page-title { max-width: 960px; margin: 0 auto 28px; }
.reference-page-title h1 { color: var(--primary); font-size: 32px; }
.reference-page-title p { margin: 4px 0 0; }
.parent-payment-total { max-width: 960px; display: grid; justify-items: center; gap: 12px; }
.parent-payment-total span { color: #64748b; font-size: 12px; font-weight: 900; text-transform: uppercase; }
.parent-payment-total strong { color: var(--danger); font-size: 34px; font-weight: 950; }
.reference-admin-tabs { max-width: 1068px; display: flex; gap: 18px; margin: 0 auto 22px; border-bottom: 2px solid #dbe5f2; }
.reference-admin-tabs a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 18px;
  color: #607089;
  font-size: 18px;
  font-weight: 950;
  text-decoration: none;
  border-bottom: 3px solid transparent;
}
.reference-admin-tabs a.active { color: var(--primary); background: #e9efff; border-radius: 8px 8px 0 0; border-bottom-color: var(--primary); }
.reference-table-card { max-width: 1068px; }
.reference-table th { color: var(--primary); font-weight: 950; background: #f4f7fb; }
.reference-table td small { display: block; margin-top: 6px; color: #52657f; }
.table-cover {
  width: 78px;
  height: 56px;
  display: grid;
  place-items: center;
  padding: 6px;
  border-radius: 6px;
  background: linear-gradient(135deg, #fff, #e6f4ff);
  border: 1px dashed var(--brand);
  color: var(--danger);
  font-size: 10px;
  font-weight: 950;
  text-align: center;
  text-transform: uppercase;
}
.table-cover.image {
  display: block;
  object-fit: cover;
  padding: 0;
}
.icon-action { min-height: 34px; padding: 8px 12px; }
.event-create-layout { display: block; }
.event-cover-upload {
  width: 300px;
  float: left;
  margin: 0 32px 28px 0;
  aspect-ratio: 1 / .72;
  position: relative;
  overflow: hidden;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 8px;
  padding: 24px;
  border: 2px dashed #c8d6ea;
  border-radius: 14px;
  text-align: center;
  color: #607089;
  background: #f8fbff;
  cursor: pointer;
  transition: border-color .16s ease, box-shadow .16s ease, transform .16s ease;
}
.event-cover-upload:hover {
  border-color: var(--brand);
  box-shadow: 0 12px 28px rgba(0,34,132,.12);
  transform: translateY(-1px);
}
.event-cover-upload input[type="file"] {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
  z-index: 3;
}
.event-cover-upload img,
.event-cover-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.event-cover-upload img {
  position: absolute;
  inset: 0;
  display: none;
}
.event-cover-upload.has-preview {
  border-style: solid;
  padding: 0;
}
.event-cover-upload.has-preview span,
.event-cover-upload.has-preview strong,
.event-cover-upload.has-preview small {
  display: none;
}
.event-cover-upload.edit-cover {
  float: none;
  width: min(340px, 100%);
  margin: 0 0 18px;
}
.event-cover-upload span { color: var(--brand); font-size: 42px; }
.event-cover-upload strong { color: var(--primary); }
.event-main-fields {
  min-width: 0;
  overflow: hidden;
  padding-top: 0;
}
.event-main-fields input,
.event-main-fields textarea {
  width: 100%;
}
.event-visible-switch {
  width: fit-content;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 18px;
  color: var(--primary);
  font-weight: 950;
  text-transform: none;
}
.event-visible-switch input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.event-visible-switch span {
  width: 44px;
  height: 24px;
  position: relative;
  display: inline-flex;
  border-radius: 999px;
  background: #cbd5e1;
  transition: background .16s ease;
}
.event-visible-switch span:after {
  content: "";
  position: absolute;
  top: 4px;
  left: 4px;
  width: 16px;
  height: 16px;
  border-radius: 999px;
  background: #fff;
  transition: transform .16s ease;
}
.event-visible-switch input:checked + span {
  background: #10b981;
}
.event-visible-switch input:checked + span:after {
  transform: translateX(20px);
}
.event-package-section {
  clear: both;
  margin-top: 30px;
  padding-top: 28px;
  border-top: 1px dashed #dbe5f2;
}
.event-package-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}
.event-package-head h3 {
  color: var(--primary);
  font-size: 17px;
}
button.compact,
.button.compact {
  min-height: 34px;
  padding: 7px 12px;
  border-radius: 8px;
  font-size: 13px;
}
.event-package-card {
  width: min(360px, 100%);
  display: grid;
  gap: 6px;
  padding: 18px;
  border: 1px solid #dbe5f2;
  border-radius: 8px;
  background: #f8fbff;
  box-shadow: 0 10px 22px rgba(0,0,102,.05);
}
.event-package-card > h3 {
  padding-bottom: 12px;
  border-bottom: 1px solid #cbd8ec;
  color: #24324a;
}
.event-package-card label {
  color: #15213a;
  font-size: 12px;
  font-weight: 900;
}
.event-package-card input,
.event-package-card select {
  min-height: 42px;
  border-radius: 7px;
  background: #fff;
}
.custom-fields-box {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: start;
  margin-top: 14px;
  padding-top: 16px;
  border-top: 1px dashed #dbe5f2;
}
.custom-fields-box strong {
  color: var(--primary);
}
.custom-fields-box p {
  grid-column: 1 / -1;
  margin: 0;
  color: #607089;
  font-size: 13px;
  font-style: italic;
}
.event-publish-row {
  display: flex;
  justify-content: flex-end;
  margin-top: 48px;
}
.event-publish-row .danger-button {
  min-width: 210px;
  background: #9eb1c9;
  box-shadow: none;
}
.event-publish-row .danger-button:hover {
  background: var(--danger);
}

@media (max-width: 820px) {
  .batista-topbar { grid-template-columns: 72px 1fr; gap: 8px; padding: 8px 12px; }
  .batista-session { grid-column: 1 / -1; justify-content: flex-end; }
  .batista-main-nav { overflow-x: auto; }
  .batista-nav-link { min-width: max-content; padding: 0 14px; }
  .batista-layout { padding: 28px 14px 48px; }
  .reference-event-card { grid-template-columns: 1fr; }
  .event-cover-upload {
    float: none;
    width: 100%;
    margin-right: 0;
  }
  .event-main-fields {
    overflow: visible;
  }
  .reference-event-media { border-right: 0; border-bottom: 1px solid #e3ebf6; }
  .purchase-summary { align-items: stretch; flex-direction: column; }
  .purchase-summary .danger-button { width: 100%; }
}

@media print {
  body {
    background: #fff;
  }
  .sidebar,
  .app-topbar,
  .button,
  button,
  .filter-panel {
    display: none !important;
  }
  .app-shell {
    display: block;
  }
  .layout {
    max-width: none;
    padding: 0;
  }
  .panel,
  .card {
    box-shadow: none;
    border-color: #d0d5dd;
  }
  .page-hero {
    color: var(--ink);
    background: #fff;
    border: 1px solid #d0d5dd;
  }
  .page-hero p {
    color: var(--muted);
  }
}

/* Reference-style login */
.reference-login-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 28px;
  background: #f4f6f9;
}
.reference-login-card {
  width: min(400px, 100%);
  min-height: 640px;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 48px 40px 34px;
  border-radius: 0 0 22px 22px;
  background: #fff;
  box-shadow: 0 26px 70px rgba(0, 0, 0, .10);
  animation: fadeUp .3s ease both;
}
.reference-login-logo {
  width: 230px;
  max-height: 150px;
  object-fit: contain;
  margin-bottom: 24px;
}
.reference-login-card h1 {
  margin: 0 0 48px;
  color: #1f2937;
  font-size: 26px;
  font-weight: 950;
  letter-spacing: .04em;
  text-align: center;
}
.reference-login-form {
  width: 100%;
}
.reference-login-form form {
  width: 100%;
}
.reference-login-form label {
  margin: 16px 0 8px;
  color: #52627a;
  font-size: 13px;
  font-weight: 850;
}
.reference-input-wrap {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  align-items: center;
  border: 1px solid #d7dfea;
  border-radius: 10px;
  background: #fff;
  transition: border-color .16s ease, box-shadow .16s ease;
}
.reference-input-wrap:focus-within {
  border-color: #9fb2d0;
  box-shadow: 0 0 0 4px rgba(0, 34, 132, .08);
}
.reference-input-wrap span {
  display: grid;
  place-items: center;
  color: #9aa6b8;
  font-size: 15px;
}
.reference-input-wrap .ui-icon {
  justify-self: center;
  color: #7d8ba3;
}
.reference-input-wrap:focus-within .ui-icon {
  color: var(--primary);
}
.reference-input-wrap input {
  height: 48px;
  padding: 0 12px 0 0;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}
.reference-input-wrap input:focus {
  box-shadow: none;
}
.reference-login-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 14px 0 26px;
  color: #6b7280;
  font-size: 13px;
}
.remember-row {
  display: inline-flex !important;
  align-items: center;
  gap: 6px;
  margin: 0 !important;
  font-weight: 600 !important;
}
.remember-row input {
  width: auto;
}
.text-link-button {
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--primary-2);
  font: inherit;
  font-weight: 900;
  text-decoration: none;
  cursor: pointer;
}
.text-link-button:hover,
.text-link-button:focus {
  color: var(--primary);
  outline: 0;
  text-decoration: underline;
}
.reference-login-form .auth-actions {
  margin-top: 0;
}
.reference-login-form .auth-primary {
  min-height: 48px;
  border-radius: 9px;
  background: #9eb1d5;
  color: #fff;
  box-shadow: none;
}
.reference-login-form .auth-primary:hover {
  background: var(--primary);
}
.reference-login-form .google-button {
  min-height: 44px;
  border-radius: 9px;
  box-shadow: none;
}
.reference-login-form .auth-divider {
  margin: 18px 0 14px;
}
.reference-login-form .auth-link {
  margin-top: 18px;
  text-align: center;
}
.reference-login-card footer {
  margin-top: auto;
  color: #9aa6b8;
  font-size: 12px;
  font-weight: 750;
}

@media (max-width: 520px) {
  .reference-login-page {
    padding: 0 16px;
    align-items: start;
  }
  .reference-login-card {
    min-height: 100vh;
    padding: 38px 28px 28px;
    border-radius: 0;
  }
}

/* Parent registration wizard */
.register-wizard-page {
  min-height: 100vh;
  padding: 16px;
  background: #000066;
  color: #000066;
}
.register-steps {
  width: min(620px, 100%);
  display: grid;
  grid-template-columns: auto 1fr auto 1fr auto;
  align-items: start;
  gap: 0;
  margin: 0 auto 18px;
  color: #fff;
}
.step-dot {
  display: grid;
  justify-items: center;
  gap: 8px;
  opacity: .8;
}
.step-dot b {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: rgba(255,255,255,.28);
  border: 2px solid rgba(255,255,255,.72);
  color: #fff;
}
.step-dot.active b {
  background: var(--danger);
}
.step-dot span {
  font-size: 10px;
  font-weight: 950;
  text-transform: uppercase;
}
.step-line {
  height: 3px;
  margin-top: 16px;
  background: var(--danger);
}
.register-wizard-card {
  width: min(615px, 100%);
  margin: 0 auto;
  overflow: hidden;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 28px 80px rgba(0, 0, 0, .32);
}
.register-wizard-head {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 24px 26px;
  color: #fff;
  background: linear-gradient(135deg, var(--primary), #0079cf);
}
.register-wizard-head h1 {
  margin: 0;
  color: #fff;
  font-size: 22px;
}
.register-wizard-head p {
  margin: 4px 0 0;
  color: #fff;
  font-size: 12px;
  font-weight: 850;
}
.wizard-back {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: rgba(255,255,255,.18);
  color: #fff;
  text-decoration: none;
  font-weight: 950;
}
.register-step {
  display: none;
  padding: 28px 26px 8px;
}
.register-step.active {
  display: block;
  animation: fadeUp .22s ease both;
}
.register-step h2 {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 22px;
  color: #000066;
  font-size: 18px;
}
.register-step h2 span {
  color: var(--danger);
}
.register-step label {
  color: #000066;
  font-size: 11px;
  font-weight: 950;
  text-transform: uppercase;
}
.wizard-input {
  min-height: 44px;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: center;
  margin-top: 6px;
  border: 1px solid #dfe8f4;
  border-radius: 10px;
  background: #f5f8fc;
  transition: border-color .16s ease, box-shadow .16s ease, background .16s ease;
}
.wizard-input.half {
  max-width: 285px;
}
.wizard-input.document-type-input {
  grid-template-columns: 92px minmax(0, 1fr);
  overflow: hidden;
  padding: 0;
}
.wizard-input.document-type-input select {
  border-right: 1px solid #dfe8f4;
  background: #fff;
  font-weight: 900;
}
.wizard-input.document-type-input input {
  min-width: 0;
}
.wizard-input:focus-within {
  border-color: #10b981;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(16,185,129,.12);
}
.wizard-input span {
  display: none;
}
.wizard-input input,
.wizard-input select {
  height: 44px;
  padding: 0 14px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #000066;
  box-shadow: none;
  font-size: 13px;
}
.wizard-input input:focus,
.wizard-input select:focus {
  box-shadow: none;
}
.cep-lookup-msg {
  min-height: 18px;
  margin: 6px 0 14px;
  color: #64748b;
  font-size: 12px;
  font-weight: 700;
}
.cep-lookup-msg.ok {
  color: #047857;
}
.cep-lookup-msg.error {
  color: var(--danger);
  background: transparent;
  border: 0;
  padding: 0;
}
.student-wizard-box {
  margin-bottom: 14px;
  padding: 18px;
  border: 1px solid #dbe5f2;
  border-radius: 14px;
  background: #f8fbff;
}
.student-wizard-list {
  display: grid;
  gap: 14px;
}
.student-wizard-headline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}
.student-wizard-box h3 {
  margin: 0;
  color: #000066;
}
.remove-student-wizard {
  min-height: 32px;
  padding: 7px 12px;
  border: 1px solid rgba(223, 24, 14, .22);
  border-radius: 999px;
  background: #fff5f5;
  color: var(--danger);
  font-size: 12px;
  font-weight: 900;
  box-shadow: none;
}
.remove-student-wizard:hover {
  background: var(--danger);
  color: #fff;
}
.add-student-wizard {
  width: 100%;
  min-height: 40px;
  margin-top: 4px;
  border: 1px dashed #0094f6;
  border-radius: 10px;
  background: #eaf7ff;
  color: #0074c2;
  box-shadow: none;
}
.add-student-wizard:hover {
  background: #dff2ff;
  box-shadow: 0 10px 24px rgba(0, 148, 246, .16);
}
.register-wizard-footer {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin: 18px 26px 0;
  padding: 20px 0 26px;
  border-top: 1px solid #edf1f7;
}
.register-wizard-footer button {
  min-width: 132px;
  border-radius: 999px;
}
.register-wizard-footer .danger-button {
  background: linear-gradient(135deg, var(--danger), #f04438);
}
.register-wizard-card > .error {
  margin: 10px 26px 0;
}

@media (max-width: 640px) {
  .register-wizard-page { padding: 0; }
  .register-steps { padding: 14px 14px 0; }
  .step-dot span { display: none; }
  .register-wizard-card { min-height: calc(100vh - 52px); border-radius: 18px 18px 0 0; }
  .register-step,
  .register-wizard-head { padding-left: 18px; padding-right: 18px; }
  .register-wizard-footer {
    margin-left: 18px;
    margin-right: 18px;
  }
}

/* Admin responsible editing */
.guardian-edit-card { max-width: 1068px; }
.guardian-edit-form,
.student-edit-card {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px 26px;
}
.guardian-edit-form h3,
.guardian-students-section h3 {
  margin: 22px 0 0;
  color: var(--primary);
  font-size: 18px;
  font-weight: 950;
}
.guardian-edit-form .span-2 { grid-column: 1 / -1; }
.guardian-edit-form small {
  color: var(--danger);
  font-size: 11px;
  font-weight: 800;
}
.form-divider {
  grid-column: 1 / -1;
  height: 1px;
  background: #dbe5f2;
}
.center-actions {
  display: flex;
  justify-content: center;
  padding-top: 18px;
  border-top: 1px solid #eef2f7;
}
.center-actions .danger-button {
  min-width: 260px;
  background: var(--danger);
}
.guardian-students-section { margin-top: 34px; }
.guardian-student-list { display: grid; gap: 18px; }

.event-config-panel {
  grid-column: 1 / -1;
  display: grid;
  gap: 12px;
  padding: 16px;
  border: 1px solid rgba(0, 130, 216, 0.18);
  border-radius: 16px;
  background: #f8fbff;
}
.event-config-panel h3 {
  margin: 0;
  color: #000066;
  font-size: 1rem;
}
.event-config-panel p {
  margin: 0;
  color: #5d6b82;
  font-size: .9rem;
}
.payment-method-checklist {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 10px;
}
.payment-method-checklist label {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px;
  border: 1px solid #d8e4f3;
  border-radius: 14px;
  background: #fff;
}
.payment-method-checklist label input {
  width: 18px;
  height: 18px;
  accent-color: #002284;
}
.payment-method-checklist label span {
  font-weight: 800;
  color: #00164f;
}
.payment-method-checklist label small {
  margin-left: auto;
  color: #687893;
  font-size: .72rem;
}
.payment-interest-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px;
}
.payment-interest-grid label {
  display: grid;
  gap: 6px;
  color: #233354;
  font-weight: 800;
}
.payment-interest-grid input {
  width: 100%;
}
.purchase-discount {
  display: block;
  min-height: 18px;
  color: #d80d0d;
  font-weight: 800;
  margin-top: 4px;
}
.student-edit-card {
  margin-top: 16px;
  padding: 18px;
  border: 1px solid #dbe5f2;
  border-radius: 10px;
  background: #f8fbff;
}
.student-card-head,
.student-card-actions {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.student-card-head strong,
.new-student-card h4 {
  color: var(--primary);
  font-size: 16px;
  font-weight: 950;
}
.danger-outline {
  min-height: 34px;
  padding: 8px 12px;
  border: 1px solid rgba(223,24,14,.24);
  border-radius: 8px;
  background: #fff5f5;
  color: var(--danger);
  font-weight: 900;
}
.danger-outline:hover { background: var(--danger); color: #fff; }
.new-student-card { border-style: dashed; background: #fff; }
.new-student-card h4,
.new-student-card .error { grid-column: 1 / -1; margin: 0; }
.ok { color: #047857; font-weight: 800; }

@media (max-width: 820px) {
  .finance-filters {
    grid-template-columns: 1fr;
  }
  .guardian-edit-form,
  .student-edit-card { grid-template-columns: 1fr; }
  .guardian-edit-form .span-2,
  .student-card-head,
  .student-card-actions,
  .new-student-card h4,
  .new-student-card .error { grid-column: auto; }
}

/* Parent event expanded view */
.event-expanded-list {
  max-width: 860px;
}
.expanded-event-card {
  grid-template-columns: 1fr 1.55fr;
  overflow: hidden;
  border-color: var(--brand);
  box-shadow: 0 18px 46px rgba(0,34,132,.14);
}
.expanded-event-card .event-inline-purchase {
  grid-column: 1 / -1;
  padding: 26px 28px 28px;
  border-top: 1px solid #e3ebf6;
  background: #f8fbff;
}
.expanded-registration-form h3 {
  margin: 0 0 18px;
  color: var(--primary);
  font-size: 16px;
  font-weight: 950;
}
.expanded-student-list {
  display: grid;
  gap: 14px;
}
.expanded-student-card {
  display: grid;
  gap: 12px;
  padding: 18px;
  border: 1px solid #dbe5f2;
  border-radius: 13px;
  background: #fff;
}
.expanded-student-card h4 {
  margin: 0;
  color: var(--primary);
  font-size: 17px;
  font-weight: 950;
  text-transform: uppercase;
}
.student-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.student-tags span {
  padding: 4px 8px;
  border-radius: 4px;
  background: #e7f5ff;
  color: var(--brand);
  font-size: 10px;
  font-weight: 950;
  text-transform: uppercase;
}
.expanded-student-card.is-unavailable p {
  max-width: 220px;
  margin: 0;
  color: #394b63;
  line-height: 1.45;
}
.expanded-package-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.expanded-package-option {
  position: relative;
  min-width: 150px;
  min-height: 78px;
  display: grid;
  justify-items: start;
  gap: 5px;
  padding: 13px 16px;
  border: 2px solid #d6e1ee;
  border-radius: 11px;
  background: #f7fbff;
  color: var(--primary);
  text-align: left;
  box-shadow: none;
}
.expanded-package-option strong {
  font-size: 13px;
  font-weight: 950;
}
.expanded-package-option b {
  color: var(--brand);
  font-size: 18px;
  font-weight: 950;
}
.expanded-package-option small {
  padding: 3px 8px;
  border-radius: 999px;
  background: var(--primary);
  color: #fff;
  font-size: 10px;
  font-weight: 900;
}
.expanded-package-option.selected {
  border-color: var(--brand);
  background: #ecf8ff;
  box-shadow: 0 10px 22px rgba(0,130,216,.18);
}
.expanded-package-option.selected:after {
  display: none;
}
.expanded-event-details {
  display: grid;
  gap: 12px;
  margin-top: 18px;
  padding: 16px;
  border: 1px solid #dbe5f2;
  border-radius: 9px;
  background: #f4f8fd;
}
.expanded-event-details > strong {
  color: #40526c;
  font-weight: 950;
}
.expanded-event-details p {
  margin: 0;
  color: #31435c;
  font-size: 13px;
  line-height: 1.48;
}
.terms-check {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  align-items: start;
  gap: 10px;
  width: fit-content;
  padding: 8px 10px;
  border: 1px solid transparent;
  border-radius: 10px;
  color: var(--primary);
  font-weight: 900;
  line-height: 1.35;
  transition: border-color .16s ease, background .16s ease, box-shadow .16s ease;
}
.terms-check input {
  width: 18px;
  height: 18px;
  margin: 1px 0 0;
  accent-color: var(--danger);
}
.terms-check.is-invalid {
  border-color: #fecaca;
  background: #fff7f7;
  box-shadow: 0 8px 18px rgba(220, 38, 38, .08);
}
.terms-alert {
  margin: -2px 0 0;
  padding: 10px 12px;
  border: 1px solid #fecaca;
  border-radius: 10px;
  background: #fff7f7;
  color: #b42318 !important;
  font-size: 12px !important;
  font-weight: 850;
  line-height: 1.35 !important;
}
.terms-alert[hidden] {
  display: none !important;
}
.terms-text {
  display: grid;
  gap: 6px;
}
.terms-text strong {
  color: var(--primary);
  font-weight: 950;
}
.terms-text p {
  margin: 0;
  line-height: 1.58;
}
.expanded-purchase-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: 24px;
  padding: 22px;
  border-radius: 14px;
  background: var(--primary);
  color: #fff;
}
.expanded-purchase-summary span {
  display: block;
  margin-bottom: 6px;
  color: rgba(255,255,255,.72);
  font-size: 12px;
  font-weight: 800;
}
.expanded-purchase-summary strong {
  font-size: 29px;
  font-weight: 950;
}
.expanded-purchase-summary .danger-button {
  min-width: 230px;
  background: var(--danger);
}
.expanded-purchase-summary .danger-button:disabled {
  opacity: .55;
  cursor: not-allowed;
}

@media (max-width: 820px) {
  .expanded-event-card { grid-template-columns: 1fr; }
  .expanded-event-card .event-inline-purchase { padding: 20px 16px; }
  .expanded-purchase-summary { align-items: stretch; flex-direction: column; }
  .expanded-purchase-summary .danger-button { width: 100%; }
}

.parent-payment-total small {
  display: block;
  margin-top: 10px;
  color: #607089;
  font-size: 13px;
  font-weight: 800;
}

/* Logo Batista original: preservar proporcao e enquadrar sem corte */
.brand-logo,
.sidebar-brand-logo,
.batista-nav-logo,
.event-top-logo,
.reference-login-logo,
.auth-brand-logo {
  object-fit: contain !important;
  object-position: center center !important;
  background-repeat: no-repeat !important;
}
.batista-nav-logo {
  width: 84px !important;
  height: 58px !important;
  max-width: 84px !important;
  max-height: 58px !important;
}
.reference-login-logo {
  width: min(340px, 82vw) !important;
  height: 128px !important;
  max-height: 128px !important;
}
.event-top-logo {
  width: 180px !important;
  height: 54px !important;
  max-height: 54px !important;
}
.batista-nav-link .ui-icon {
  min-width: 22px;
  display: inline-grid;
  place-items: center;
  line-height: 1;
}
.batista-portal-hero .hero-icon {
  display: inline-grid;
  width: 18px;
  height: 18px;
  place-items: center;
  color: var(--brand);
  font-size: 16px;
  line-height: 1;
}

/* Ajustes de seleção múltipla de filhos e edição completa de eventos */
.expanded-student-card {
  transition: border-color .16s ease, box-shadow .16s ease, background .16s ease;
}
.expanded-student-card.selected {
  border-color: var(--brand) !important;
  background: #f7fcff !important;
  box-shadow: 0 14px 34px rgba(0, 130, 216, .12);
}
.student-choice-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.student-select-check {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  cursor: pointer;
}
.student-select-check input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.student-select-check > span {
  width: 24px;
  height: 24px;
  display: inline-grid;
  place-items: center;
  border: 2px solid #cbd8ec;
  border-radius: 999px;
  background: #fff;
  flex: 0 0 auto;
  transition: border-color .16s ease, background .16s ease, transform .16s ease, box-shadow .16s ease;
}
.student-select-check input:checked + span {
  border-color: var(--brand);
  background: var(--brand);
  box-shadow: 0 8px 18px rgba(0, 130, 216, .24);
  transform: scale(1.02);
}
.student-select-check input:checked + span:after {
  content: "✓";
  color: #fff;
  font-size: 15px;
  line-height: 1;
  font-weight: 950;
}
.event-package-card textarea {
  min-height: 88px;
  border-radius: 7px;
  background: #fff;
}
.event-package-grid {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 18px;
}
.notice-card {
  margin: 0 0 22px;
  padding: 14px 16px;
  border: 1px solid #fde68a;
  border-radius: 10px;
  background: #fffbeb;
  color: #92400e;
  font-weight: 750;
  line-height: 1.45;
}
.event-visible-switch.small {
  margin-top: 8px;
}

/* Correções finais do checkout legado no celular */
.reference-method-icon.pix svg {
  fill: none;
}
.pix-mark {
  position: relative;
  width: 24px;
  height: 24px;
  display: block;
}
.pix-mark i {
  position: absolute;
  width: 9px;
  height: 9px;
  display: block;
  border-radius: 2px;
  background: #078bd6;
  transform: rotate(45deg);
}
.pix-mark i:nth-child(1) {
  top: 1px;
  left: 7.5px;
}
.pix-mark i:nth-child(2) {
  top: 7.5px;
  left: 1px;
}
.pix-mark i:nth-child(3) {
  top: 7.5px;
  right: 1px;
}
.pix-mark i:nth-child(4) {
  left: 7.5px;
  bottom: 1px;
}
.reference-payment-method-card {
  touch-action: manipulation;
}

@media (max-width: 760px) {
  .payment-modal-backdrop {
    display: grid !important;
    place-items: center !important;
    align-items: center !important;
    padding: 6px !important;
  }
  .payment-modal-card {
    width: min(430px, calc(100vw - 12px)) !important;
    max-height: calc(100dvh - 12px) !important;
    padding: 0 !important;
    border-radius: 8px !important;
    overflow: auto !important;
  }
  .reference-payment-steps {
    grid-template-columns: auto 1fr auto 1fr auto;
    gap: 8px;
    min-height: 72px;
    padding: 16px 18px 12px;
  }
  .reference-payment-step {
    min-width: 42px;
  }
  .reference-payment-step strong {
    font-size: 9px;
  }
  .reference-payment-screen {
    min-height: min(390px, calc(100dvh - 82px));
    padding: 18px 14px 0;
    gap: 12px;
  }
  .reference-payment-footer {
    margin-left: -18px;
    margin-right: -18px;
    padding-left: 18px;
    padding-right: 18px;
    flex-direction: row !important;
    align-items: center !important;
  }
  .reference-payment-footer .reference-payment-link {
    width: auto !important;
    min-width: 0 !important;
    min-height: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
  }
  .reference-payment-method-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    width: 100%;
  }
  .reference-payment-method-card {
    width: 100%;
    min-height: 88px;
  }
  .reference-summary-line span {
    white-space: normal;
  }
  .reference-card-form {
    max-width: 100%;
    padding: 0 14px;
    gap: 7px;
  }
  .reference-card-form .payment-card-fields {
    grid-template-columns: 1fr 1fr;
    gap: 7px 12px;
  }
  .reference-card-form .payment-holder-fields {
    grid-template-columns: 1fr;
    gap: 7px;
  }
  .reference-card-form .payment-card-fields label,
  .reference-card-form .payment-holder-fields label {
    font-size: 12px;
    gap: 4px;
  }
  .reference-card-form .payment-card-fields label:first-child,
  .reference-card-form .payment-card-fields label:nth-child(4),
  .reference-card-form .reference-document-field,
  .reference-card-form .reference-installments-field {
    grid-column: 1 / -1;
  }
  .reference-card-form .payment-card-submit {
    width: 100%;
    min-height: 44px;
    margin-top: 2px;
  }
  .reference-card-form input,
  .reference-card-form select,
  .reference-card-form .mp-secure-field,
  .reference-card-form .mp-select {
    height: 37px;
    font-size: 14px;
  }
  .reference-document-row {
    height: 37px;
    grid-template-columns: 88px minmax(0, 1fr);
  }
  .reference-card-title-row {
    gap: 10px;
    margin-bottom: 2px;
  }
  .reference-card-title-row strong {
    font-size: 19px;
  }
  .reference-card-form .mp-progress {
    height: 2px;
  }
}

@media (max-width: 380px) {
  .reference-payment-total strong {
    font-size: 31px;
  }
  .reference-payment-method-grid {
    grid-template-columns: 1fr;
  }
}


/* Ajustes compactos do financeiro escolar */
.finance-filters {
  grid-template-columns: repeat(auto-fit, minmax(145px, 1fr));
}
.finance-filters label:first-child {
  grid-column: span 2;
}
.finance-filters button,
.finance-filters .button {
  width: 100%;
  min-width: 0;
  white-space: normal;
}
.school-finance-page {
  gap: 20px;
}
.school-finance-filter-card {
  padding: 16px;
}
.school-finance-filters {
  grid-template-columns: repeat(auto-fit, minmax(128px, 1fr));
  gap: 10px;
}
.school-finance-filters label:first-child {
  grid-column: span 2;
}
.school-finance-filters label span {
  font-size: 10px;
}
.school-finance-filters input,
.school-finance-filters select,
.school-table-search input {
  height: 38px;
  padding: 9px 10px;
  font-size: 12px;
}
.school-filter-primary,
.school-filter-clear,
.school-excel-button {
  width: 100%;
  min-width: 0;
  height: 38px;
  min-height: 38px;
  padding: 0 10px;
  font-size: 12px;
}
.school-excel-button {
  grid-column: span 2;
}
.school-finance-table-card > header {
  grid-template-columns: minmax(0, 1fr) minmax(180px, 300px) auto;
  gap: 12px;
  padding: 18px 18px 14px;
}
.school-finance-table-card h2 {
  font-size: 18px;
}
.school-finance-table-card > header > span {
  padding: 8px 10px;
  font-size: 10px;
}
.school-finance-table-card .table-wrap {
  overflow-x: hidden;
  border-radius: 0 0 14px 14px;
  border-left: 0;
  border-right: 0;
  border-bottom: 0;
}
.school-finance-table.table {
  width: 100%;
  min-width: 0;
  table-layout: fixed;
  font-size: 12px;
}
.school-finance-table .finance-col-person { width: 17%; }
.school-finance-table .finance-col-class { width: 18%; }
.school-finance-table .finance-col-event { width: 25%; }
.school-finance-table .finance-col-money { width: 10%; }
.school-finance-table .finance-col-status { width: 9%; }
.school-finance-table .finance-col-actions { width: 11%; }
.school-finance-table th,
.school-finance-table td,
.school-finance-table.table th,
.school-finance-table.table td {
  padding: 9px 7px;
  font-size: 12px;
  line-height: 1.18;
  vertical-align: top;
  overflow-wrap: anywhere;
}
.school-finance-table th,
.school-finance-table.table th {
  font-size: 9px;
  letter-spacing: 0;
  line-height: 1.1;
}
.school-finance-table td:first-child,
.school-finance-table th:first-child,
.school-finance-table td:last-child,
.school-finance-table th:last-child {
  padding-left: 8px;
  padding-right: 8px;
}
.school-finance-table strong {
  font-size: 12px;
  line-height: 1.12;
}
.school-finance-table .muted {
  font-size: 11px;
  line-height: 1.12;
}
.school-finance-table .money-cell {
  white-space: normal;
  font-size: 12px;
  line-height: 1.12;
}
.school-finance-table .event-mini-badge,
.school-finance-table .payment-mini-badge {
  min-height: 18px;
  margin: 0 2px 2px 0;
  padding: 2px 5px;
  border-radius: 5px;
  font-size: 8px;
  line-height: 1;
}
.school-finance-table .status-badge {
  gap: 4px;
  padding: 4px 6px;
  font-size: 10px;
  white-space: normal;
}
.school-finance-table .status-badge:before {
  width: 5px;
  height: 5px;
}
.school-finance-table .table-actions {
  display: grid;
  min-width: 0;
  gap: 5px;
}
.school-finance-table .table-actions button {
  width: 100%;
  min-height: 29px;
  padding: 5px 6px;
  border-radius: 7px;
  font-size: 10px;
  line-height: 1.08;
  box-shadow: none;
}
.school-finance-table .table-actions button:hover {
  transform: none;
}
@media (max-width: 860px) {
  .school-finance-filters label:first-child,
  .school-excel-button,
  .finance-filters label:first-child {
    grid-column: auto;
  }
  .school-finance-table-card > header {
    grid-template-columns: 1fr;
  }
  .school-finance-table-card .table-wrap {
    overflow-x: auto;
  }
  .school-finance-table.table {
    min-width: 680px;
  }
}


/* Tabela compacta da rota Financeiro */
.finance-record-list {
  display: grid;
  gap: 12px;
  padding: 16px;
  border-top: 1px solid #e3ebf6;
  background: #f8fbff;
}
.finance-record-card {
  display: grid;
  grid-template-columns: minmax(150px, 1.05fr) minmax(180px, 1.25fr) minmax(150px, 1fr) minmax(170px, .95fr) 150px;
  gap: 16px;
  align-items: start;
  padding: 16px;
  border: 1px solid #dbe6f4;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 10px 24px rgba(15, 23, 42, .045);
}
.finance-record-person strong,
.finance-record-event strong,
.finance-record-class strong,
.finance-record-values strong {
  display: block;
  color: #06122e;
  font-size: 14px;
  line-height: 1.24;
  font-weight: 950;
}
.finance-record-person span,
.finance-record-class span,
.finance-record-event small,
.finance-record-values small {
  display: block;
  margin-top: 5px;
  color: #60718c;
  font-size: 12px;
  line-height: 1.35;
  font-weight: 700;
}
.finance-record-event > div {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-bottom: 7px;
}
.finance-record-values {
  display: grid;
  gap: 8px;
  padding: 10px;
  border-radius: 10px;
  background: #f6faff;
}
.finance-record-values > div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}
.finance-record-values span {
  color: #60718c;
  font-size: 10px;
  font-weight: 950;
  text-transform: uppercase;
}
.finance-record-values strong {
  color: var(--primary);
  font-size: 14px;
  white-space: nowrap;
}
.finance-record-values.is-pending > div:nth-child(2) strong {
  color: #b45309;
}
.finance-record-values.is-approved > div:nth-child(2) strong {
  color: #087443;
}
.finance-record-values small {
  margin-top: 0;
  padding-top: 7px;
  border-top: 1px solid #dbe7f4;
}
.finance-record-actions {
  display: grid;
  justify-items: stretch;
  gap: 8px;
}
.finance-record-actions .status-badge {
  width: fit-content;
  justify-self: start;
  padding: 5px 8px;
  font-size: 11px;
}
.finance-record-actions button {
  width: 100%;
  min-height: 34px;
  padding: 7px 10px;
  border-radius: 8px;
  font-size: 11px;
  box-shadow: none;
}
.finance-record-actions button:hover {
  transform: none;
}
.finance-record-empty {
  display: grid;
  justify-items: center;
  gap: 5px;
  padding: 26px;
  color: #66758d;
  text-align: center;
}
.finance-record-empty strong {
  color: var(--primary);
  font-size: 15px;
}
.finance-record-empty span {
  font-size: 13px;
}
.finance-table.table {
  width: 100%;
  min-width: 0;
  table-layout: fixed;
  font-size: 13px;
}
.finance-table .finance-col-person { width: 17%; }
.finance-table .finance-col-class { width: 18%; }
.finance-table .finance-col-event { width: 23%; }
.finance-table .finance-col-money { width: 11%; }
.finance-table .finance-col-settlement { width: 18%; }
.finance-table .finance-col-status-actions { width: 13%; }
.finance-table th,
.finance-table td,
.finance-table.table th,
.finance-table.table td {
  padding: 13px 11px;
  font-size: 13px;
  line-height: 1.28;
  vertical-align: top;
  overflow-wrap: anywhere;
}
.finance-table th,
.finance-table.table th {
  font-size: 10px;
  letter-spacing: .01em;
  line-height: 1.16;
}
.finance-table td:first-child,
.finance-table th:first-child,
.finance-table td:last-child,
.finance-table th:last-child {
  padding-left: 12px;
  padding-right: 12px;
}
.finance-table strong {
  font-size: 13px;
  line-height: 1.2;
}
.finance-table .muted,
.finance-table .finance-settlement-cell small {
  font-size: 11.5px;
  line-height: 1.24;
}
.finance-table .money-cell {
  white-space: normal;
  font-size: 13px;
}
.finance-table .pill,
.finance-table .payment-mini-badge {
  min-height: 21px;
  margin: 0 4px 4px 0;
  padding: 4px 7px;
  border-radius: 7px;
  font-size: 9px;
  line-height: 1.05;
}
.finance-settlement-cell {
  display: grid;
  gap: 4px;
  color: #60718c;
}
.finance-settlement-cell span {
  font-size: 10px;
  font-weight: 950;
  text-transform: uppercase;
}
.finance-settlement-cell strong {
  color: var(--primary-2);
  font-weight: 950;
}
.finance-settlement-cell small {
  color: #60718c;
  font-weight: 750;
}
.finance-status-actions-cell {
  display: grid;
  gap: 8px;
}
.finance-table .status-badge {
  width: fit-content;
  gap: 5px;
  padding: 5px 8px;
  font-size: 11px;
  white-space: normal;
}
.finance-table .status-badge:before {
  width: 6px;
  height: 6px;
}
.finance-table .table-actions {
  display: grid;
  min-width: 0;
  gap: 7px;
}
.finance-table .table-actions button {
  width: 100%;
  min-height: 34px;
  padding: 7px 9px;
  border-radius: 8px;
  font-size: 11px;
  line-height: 1.14;
  box-shadow: none;
}
.finance-table .table-actions button:hover {
  transform: none;
}
@media (max-width: 860px) {
  .finance-record-list {
    padding: 12px;
  }
  .finance-record-card {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .finance-record-actions {
    grid-template-columns: 1fr 1fr;
    align-items: center;
  }
  .finance-record-actions .status-badge {
    grid-column: 1 / -1;
  }
  .finance-table.table {
    min-width: 680px;
  }
}
