@import url('https://fonts.googleapis.com/css2?family=Bricolage+Grotesque:opsz,wght@12..96,500..800&family=Geist:wght@400..700&display=swap');

/* alugueldearena.com — painel
   Mesma identidade da landing: quadra à noite (verde quase preto), bola de tênis (lima) e areia. */
:root {
  color-scheme: light;
  --ink: #0A120E;
  --ink-2: #0F1A15;
  --ink-3: #16241D;
  --ink-line: rgb(255 255 255 / .08);
  --lime: #D5F75A;
  --lime-hover: #E2FF7A;
  --lime-deep: #B9DD33;
  --lime-tint: #F1FBD0;
  --sand: #F5EFE4;
  --sand-2: #ECE3D2;
  --canvas: #F7F3EB;
  --surface: #FFFFFF;

  --text: #0E1813;
  --muted: #56625B;
  --subtle: #7A857E;
  --on-dark: #F1F5EE;
  --on-dark-muted: #A7B4AC;
  --border: #E6DFD0;
  --border-soft: #F0EBE1;
  --border-strong: #D6CDBA;

  --paid: #17784A;
  --paid-bg: #E2F4E9;
  --paid-ink: #0E4F30;
  --pend: #9A5B00;
  --pend-line: #E09A1F;
  --pend-bg: #FDF0D5;
  --pend-ink: #6E4100;
  --block: #4F5A66;
  --block-bg: #ECEEF1;
  --danger: #B4372B;
  --danger-bg: #FBE6E3;
  --info: #1F5C8C;
  --info-bg: #E3EEF8;

  --font-display: "Bricolage Grotesque", "Geist", system-ui, sans-serif;
  --font-body: "Geist", system-ui, -apple-system, "Segoe UI", sans-serif;
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 18px;
  --r-pill: 999px;
  --shadow-card: 0 1px 2px rgb(14 24 19 / .04), 0 6px 20px -14px rgb(14 24 19 / .18);
  --shadow-pop: 0 30px 80px -30px rgb(10 18 14 / .55), 0 2px 8px rgb(10 18 14 / .12);
  --ease: cubic-bezier(.2, .7, .2, 1);

  font-family: var(--font-body);
  color: var(--text);
  background: var(--canvas);
}

* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; -webkit-font-smoothing: antialiased; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: .5; }
button, a, input, select, textarea { outline-offset: 2px; }
:focus-visible { outline: 3px solid var(--lime-deep); outline-offset: 2px; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p { margin: 0; }
svg { flex-shrink: 0; vertical-align: middle; stroke-width: 2; }
[hidden] { display: none !important; }
::selection { background: var(--lime); color: var(--ink); }

/* ---------- Estrutura ---------- */
.shell { display: grid; grid-template-columns: 248px minmax(0, 1fr); min-height: 100dvh; }

.sidebar {
  position: sticky; top: 0; z-index: 5;
  display: flex; flex-direction: column;
  height: 100dvh; padding: 22px 14px 16px;
  background: var(--ink); color: var(--on-dark);
  background-image: radial-gradient(120% 40% at 0% 100%, rgb(213 247 90 / .07), transparent 70%);
}
.brand {
  display: flex; align-items: center; gap: 10px; width: fit-content;
  margin: 0 8px 26px;
  font-family: var(--font-display); font-weight: 700; font-size: 1.08rem; letter-spacing: -.02em;
}
.brand-tld { opacity: .5; }
.brand-mark { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 11px; background: var(--lime); color: var(--ink); }
.brand-mark svg { width: 22px; height: 22px; }

.arena {
  display: flex; align-items: center; gap: 10px; width: 100%;
  margin-bottom: 22px; padding: 9px 10px;
  border: 1px solid var(--ink-line); border-radius: 14px;
  background: var(--ink-3); color: var(--on-dark); text-align: left;
  transition: background .15s, border-color .15s;
}
.arena:hover { background: #1D2E26; border-color: rgb(255 255 255 / .14); }
.arena > svg { margin-left: auto; color: var(--on-dark-muted); }
.arena-monogram {
  display: grid; place-items: center; flex-shrink: 0;
  width: 34px; height: 34px; border-radius: 10px;
  background: var(--lime); color: var(--ink);
  font-weight: 700; font-size: .75rem; letter-spacing: .02em;
}
.arena-label { min-width: 0; }
.arena strong, .arena small { display: block; }
.arena strong { font-size: .875rem; font-weight: 600; line-height: 1.3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.arena small { margin-top: 1px; font-size: .74rem; color: var(--on-dark-muted); }

.nav { display: grid; gap: 2px; }
.nav a {
  position: relative;
  display: flex; align-items: center; gap: 12px;
  padding: 10px 12px; border-radius: 10px;
  font-size: .9rem; font-weight: 500; color: var(--on-dark-muted);
  transition: background .15s, color .15s;
}
.nav a svg { opacity: .85; }
.nav a:hover { background: rgb(255 255 255 / .05); color: var(--on-dark); }
.nav a[aria-current="page"] { background: rgb(255 255 255 / .08); color: var(--on-dark); font-weight: 600; }
.nav a[aria-current="page"] svg { color: var(--lime); opacity: 1; }
.nav a[aria-current="page"]::before {
  content: ""; position: absolute; left: -14px; top: 9px; bottom: 9px;
  width: 3px; border-radius: 0 3px 3px 0; background: var(--lime);
}
.sidebar-foot {
  margin-top: auto; padding: 14px 10px 4px;
  border-top: 1px solid var(--ink-line);
  display: flex; align-items: center; gap: 9px;
  font-size: .82rem; color: var(--on-dark-muted);
}
.sidebar-foot svg { color: var(--lime); }
.menu-button { display: none !important; }

.workspace { min-width: 0; }
.topbar {
  position: sticky; top: 0; z-index: 4;
  height: 64px; padding: 0 32px;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  background: rgb(247 243 235 / .88);
  backdrop-filter: saturate(160%) blur(12px);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--border);
}
.bread { display: flex; align-items: center; gap: 8px; min-width: 0; font-size: .875rem; color: var(--muted); }
.bread strong { color: var(--text); font-weight: 600; white-space: nowrap; }
.workspace-crumb { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.crumb-divider { color: var(--subtle); display: inline-flex; }
.topbar-end { display: flex; align-items: center; gap: 14px; }
.today-date { padding: 6px 12px; border-radius: var(--r-pill); background: var(--surface); border: 1px solid var(--border); white-space: nowrap; font-size: .8rem; font-weight: 500; color: var(--muted); }
.topbar-avatar {
  display: grid; place-items: center; flex-shrink: 0;
  width: 36px; height: 36px; border-radius: 50%;
  border: 2px solid var(--surface); background: var(--ink); color: var(--lime);
  font-weight: 700; font-size: .72rem;
  box-shadow: 0 0 0 1px var(--border);
  transition: box-shadow .15s;
}
.topbar-avatar:hover { box-shadow: 0 0 0 2px var(--lime-deep); }

main { padding: 30px 32px 48px; max-width: 1570px; margin: auto; }
.loading { margin: 26px 2px; color: var(--muted); }

/* ---------- Tipografia ---------- */
h1, h2, h3 { font-family: var(--font-display); color: var(--text); }
h1 { font-size: clamp(1.8rem, 3vw, 2.4rem); font-weight: 700; letter-spacing: -.035em; line-height: 1.08; }
h2 { font-size: 1.15rem; font-weight: 700; letter-spacing: -.02em; }
h3 { font-size: 1rem; font-weight: 700; letter-spacing: -.015em; }
.page-title { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 24px; }
.page-title p, .panel-header p { margin-top: 6px; color: var(--muted); font-size: .92rem; }
.page-actions, .button-group { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }

/* ---------- Botões ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 40px; padding: 8px 16px;
  border: 1px solid var(--border-strong); border-radius: var(--r-pill);
  background: var(--surface); color: var(--text);
  font-weight: 600; font-size: .875rem; white-space: nowrap;
  transition: background .15s, border-color .15s, color .15s, box-shadow .15s, transform .1s;
}
.btn:hover { border-color: var(--ink); }
.btn:active { transform: translateY(1px); }
.btn.primary { background: var(--ink); border-color: var(--ink); color: var(--on-dark); }
.btn.primary svg { color: var(--lime); }
.btn.primary:hover { background: var(--ink-3); border-color: var(--ink-3); box-shadow: 0 8px 20px -10px rgb(10 18 14 / .6); }
.btn.danger { color: var(--danger); border-color: #EBC4BE; }
.btn.danger:hover { background: var(--danger-bg); border-color: var(--danger); }
.btn.icon { min-width: 40px; padding: 8px; }
.btn.link { border: 0; background: transparent; color: var(--paid); padding-inline: 4px; min-height: 32px; }
.btn.link:hover { color: var(--text); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Faixa "Operação de hoje" ---------- */
.banner {
  position: relative; isolation: isolate; overflow: hidden;
  display: flex; justify-content: space-between; align-items: center;
  min-height: 128px; margin-bottom: 18px; padding: 22px 26px;
  border-radius: var(--r-lg);
  background:
    radial-gradient(70% 120% at 88% 50%, rgb(213 247 90 / .16), transparent 60%),
    linear-gradient(135deg, #0F1A15 0%, var(--ink) 60%);
  color: var(--on-dark);
}
.banner-content { position: relative; z-index: 1; }
.banner-icon {
  display: inline-flex; align-items: center; gap: 7px;
  margin-bottom: 10px; padding: 4px 10px; border-radius: var(--r-pill);
  background: var(--lime); color: var(--ink);
  font-size: .75rem; font-weight: 600;
}
.banner strong { display: block; font-family: var(--font-display); font-size: 1.65rem; font-weight: 700; line-height: 1.15; letter-spacing: -.03em; }
.banner p { margin-top: 6px; color: var(--on-dark-muted); font-size: .94rem; }
.court-art {
  position: absolute; right: 28px; top: 50%; z-index: 0;
  width: 300px; height: 150px; transform: translateY(-50%) perspective(500px) rotateX(48deg);
  border: 2px solid rgb(213 247 90 / .35); border-radius: 3px;
  background: linear-gradient(90deg, transparent calc(50% - 1px), rgb(213 247 90 / .45) calc(50% - 1px) calc(50% + 1px), transparent calc(50% + 1px));
}
.court-art::before {
  content: ""; position: absolute; inset: 0 22%;
  border-inline: 1.5px solid rgb(213 247 90 / .25);
  background: linear-gradient(0deg, transparent calc(50% - .75px), rgb(213 247 90 / .25) calc(50% - .75px) calc(50% + .75px), transparent calc(50% + .75px));
}
.court-art::after {
  content: ""; position: absolute; width: 14px; height: 14px; border-radius: 50%;
  left: 66%; top: 30%; background: var(--lime); box-shadow: 0 0 24px 6px rgb(213 247 90 / .45);
}

/* ---------- Indicadores ---------- */
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 20px; }
.stats-compact { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.stat { min-width: 0; padding: 16px 18px; border: 1px solid var(--border); border-radius: 16px; background: var(--surface); box-shadow: var(--shadow-card); }
.stat-label { display: flex; align-items: center; gap: 9px; font-weight: 500; font-size: .85rem; color: var(--muted); }
.stat-icon { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 9px; background: var(--lime-tint); color: var(--ink); }
.stat-icon.amber { background: var(--pend-bg); color: var(--pend); }
.stat-icon.blue { background: var(--info-bg); color: var(--info); }
.stat-value {
  display: block; margin-top: 10px;
  font-family: var(--font-display); font-size: clamp(1.4rem, 2.2vw, 1.85rem); font-weight: 700; line-height: 1.15; letter-spacing: -.03em;
  font-variant-numeric: tabular-nums; overflow-wrap: anywhere;
}
.stat small { display: block; margin-top: 3px; font-size: .77rem; color: var(--subtle); }

/* ---------- Painéis ---------- */
.board { display: grid; gap: 16px; grid-template-columns: minmax(0, 1fr) 290px; align-items: start; }
.stack { display: grid; gap: 16px; }
.panel { min-width: 0; overflow: hidden; border: 1px solid var(--border); border-radius: var(--r-lg); background: var(--surface); box-shadow: var(--shadow-card); }
.panel-header { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 16px 18px; }
.panel-header .pill { background: var(--sand); color: var(--muted); }
.panel-header + .day-controls { border-top: 1px solid var(--border-soft); }
.day-controls, .list-controls { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px; padding: 10px 16px; }
.list-controls { justify-content: flex-start; border-top: 1px solid var(--border-soft); background: #FCFAF6; }
.day-controls .button-group { gap: 6px; }
.day-controls .btn { min-height: 36px; min-width: 36px; padding-block: 5px; }
.day-controls .btn.icon { padding: 6px; }
.day-controls input, .day-controls select, .list-controls input, .list-controls select { min-height: 36px; font-size: .875rem; padding-block: 6px; }

/* ---------- Campos ---------- */
input, select, textarea {
  width: 100%; min-width: 0; padding: 9px 12px;
  border: 1px solid var(--border-strong); border-radius: 10px;
  background: var(--surface); color: var(--text);
  transition: border-color .15s, box-shadow .15s;
}
input:hover, select:hover, textarea:hover { border-color: #BFB49D; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgb(213 247 90 / .55); }
input::placeholder, textarea::placeholder { color: var(--subtle); }
select {
  appearance: none; padding-right: 34px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='13' height='13' viewBox='0 0 24 24' fill='none' stroke='%2356625B' stroke-width='2.25'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-position: right 11px center; background-repeat: no-repeat;
}
input[type="date"], input[type="month"], .control-select { width: auto; }
.search { max-width: 340px; padding-left: 36px; background: var(--surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='15' height='15' viewBox='0 0 24 24' fill='none' stroke='%237A857E' stroke-width='2.2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-3.5-3.5'/%3E%3C/svg%3E") no-repeat 12px center; }

/* ---------- Agenda ---------- */
.calendar-scroll { position: relative; overflow: auto; max-height: 440px; border-top: 1px solid var(--border); }
.full-calendar .calendar-scroll { max-height: min(680px, 70dvh); }
.calendar { display: grid; grid-template-columns: 58px repeat(var(--columns), minmax(130px, 1fr)); min-width: max(100%, calc(58px + 130px * var(--columns))); }
.calendar-head { position: sticky; top: 0; z-index: 3; min-height: 56px; padding: 10px 8px 10px 12px; background: #FCFAF6; box-shadow: 0 1px var(--border); }
.calendar-head strong { display: block; font-size: .84rem; font-weight: 600; }
.calendar-head small { display: block; margin-top: 2px; font-size: .74rem; color: var(--muted); }
.calendar-head + .calendar-head, .court-column { border-left: 1px solid var(--border-soft); }
.calendar-head:first-child, .time-column { position: sticky; left: 0; }
.calendar-head:first-child { z-index: 4; }
.time-column, .court-column { position: relative; background: repeating-linear-gradient(to bottom, transparent 0 59px, var(--border-soft) 59px 60px); }
.time-column { z-index: 3; background-color: #FCFAF6; box-shadow: 1px 0 var(--border); }
.time-label { position: absolute; left: 10px; transform: translateY(-50%); font-size: .74rem; font-weight: 500; color: var(--subtle); font-variant-numeric: tabular-nums; }
.time-label:first-child { transform: translateY(3px); }
.slot { position: absolute; display: grid; place-items: center; width: 100%; height: 30px; padding: 0; border: none; background: transparent; color: transparent; transition: background .12s; }
.slot:hover, .slot:focus-visible { z-index: 1; background: rgb(213 247 90 / .35); color: var(--ink); outline-offset: -2px; }
.closed { position: absolute; inset-inline: 0; pointer-events: none; background: repeating-linear-gradient(135deg, #F6F2EA 0 6px, #EFE9DD 6px 7px); }
.booking {
  position: absolute; left: 5px; right: 5px; z-index: 2;
  display: flex; flex-direction: column; align-items: start; justify-content: center; gap: 1px;
  min-height: 10px; padding: 4px 8px; overflow: hidden; text-align: left;
  border: 0; border-left: 4px solid var(--paid); border-radius: 8px;
  background: var(--paid-bg); color: var(--paid-ink);
  transition: filter .12s, box-shadow .12s;
}
.booking:hover { filter: brightness(.97); box-shadow: 0 4px 12px -6px rgb(14 24 19 / .35); }
.booking.pending { border-left-color: var(--pend-line); background: var(--pend-bg); color: var(--pend-ink); }
.booking.blocked { border-left-color: var(--block); background: repeating-linear-gradient(-45deg, var(--block-bg) 0 8px, #E3E6EA 8px 16px); color: #343C45; }
.booking strong, .booking span { width: 100%; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.booking strong { font-size: .8rem; font-weight: 600; }
.booking span { font-size: .72rem; opacity: .85; }
.legend { display: flex; flex-wrap: wrap; align-items: center; gap: 9px 16px; padding: 11px 16px; border-top: 1px solid var(--border-soft); }
.legend span { display: inline-flex; align-items: center; gap: 7px; font-size: .76rem; color: var(--muted); }
.dot { display: inline-block; width: 10px; height: 10px; border-radius: 3px; background: var(--paid); }
.dot.pending { background: var(--pend-line); }
.dot.blocked { background: var(--block); }

/* ---------- Listas laterais ---------- */
.activity-list { display: grid; padding: 0 12px 8px; }
.activity-item {
  display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; align-items: center; gap: 10px;
  padding: 10px 6px; border: 0; border-top: 1px solid var(--border-soft); border-radius: 0;
  background: transparent; color: var(--text); text-align: left;
  transition: background .12s;
}
.activity-item:hover { background: #FAF7F1; border-radius: 10px; }
.activity-item strong, .activity-item small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.activity-item strong { font-size: .85rem; font-weight: 600; }
.activity-item small { margin-top: 1px; font-size: .75rem; color: var(--muted); }
.activity-item time { font-size: .8rem; font-weight: 600; color: var(--text); font-variant-numeric: tabular-nums; }
.avatar { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: var(--ink); color: var(--lime); font-size: .72rem; font-weight: 700; }
.avatar.alt { background: var(--info-bg); color: var(--info); }

.occupancy { display: grid; gap: 13px; padding: 2px 18px 18px; }
.court-meter { display: grid; gap: 6px; }
.court-meter label { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; font-size: .82rem; color: var(--muted); }
.court-meter label strong { font-weight: 600; color: var(--text); font-variant-numeric: tabular-nums; }
progress { appearance: none; width: 100%; height: 8px; border: 0; border-radius: 10px; overflow: hidden; background: var(--sand-2); accent-color: var(--ink); }
progress::-webkit-progress-bar { background: var(--sand-2); }
progress::-webkit-progress-value { background: linear-gradient(90deg, var(--ink), #2A4A3A); border-radius: 10px; }
progress::-moz-progress-bar { background: var(--ink); border-radius: 10px; }

/* ---------- Tabelas ---------- */
.table-wrap { overflow: auto; }
table { width: 100%; border-collapse: collapse; text-align: left; white-space: nowrap; }
th, td { padding: 13px 18px; border-top: 1px solid var(--border-soft); font-size: .88rem; }
th { background: #FCFAF6; font-size: .76rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
td { color: var(--text); font-variant-numeric: tabular-nums; }
tbody tr { transition: background .12s; }
tbody tr:hover { background: #FCFAF6; }
td:last-child, th:last-child { text-align: right; }
td small { display: block; margin-top: 3px; color: var(--muted); }
.pill { display: inline-flex; align-items: center; white-space: nowrap; min-height: 24px; padding: 2px 10px; border-radius: var(--r-pill); font-size: .75rem; font-weight: 600; background: var(--sand); color: var(--muted); }
.pill.paid { background: var(--paid-bg); color: var(--paid); }
.pill.pending { background: var(--pend-bg); color: var(--pend); }
.pill.blocked { background: var(--block-bg); color: var(--block); }
.pill.cancelled { background: var(--danger-bg); color: var(--danger); }
.empty { padding: 22px 18px; font-size: .9rem; color: var(--muted); }

/* ---------- Quadras ---------- */
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.court-card { padding: 20px; transition: border-color .15s, transform .15s var(--ease), box-shadow .15s; }
.court-card:hover { border-color: var(--border-strong); }
.court-card-top { display: flex; align-items: start; justify-content: space-between; gap: 12px; min-height: 64px; }
.court-card-top .stat-icon { width: 44px; height: 44px; border-radius: 12px; background: var(--ink); color: var(--lime); }
.court-card h2 { font-size: 1.25rem; }
.court-card p { margin-top: 5px; font-size: .87rem; color: var(--muted); }
.court-meta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--border-soft); font-size: .88rem; color: var(--muted); }
.court-meta strong { font-family: var(--font-display); font-size: 1.1rem; color: var(--text); letter-spacing: -.02em; }

.finance-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 16px; align-items: start; }

/* ---------- Modal ---------- */
dialog {
  box-sizing: border-box; width: min(560px, calc(100vw - 24px)); max-height: calc(100dvh - 24px);
  padding: 0; border: 0; border-radius: 22px;
  color: var(--text); background: var(--surface);
  box-shadow: var(--shadow-pop);
}
dialog[open] { animation: pop .22s var(--ease); }
@keyframes pop { from { opacity: 0; transform: translateY(10px) scale(.98); } }
dialog::backdrop { background: rgb(10 18 14 / .55); backdrop-filter: blur(3px); }
.modal-header, .modal-footer { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 16px 20px; background: var(--surface); }
.modal-header { border-bottom: 1px solid var(--border-soft); }
.modal-header h2 { font-size: 1.3rem; }
.modal-footer { flex-wrap: wrap; border-top: 1px solid var(--border-soft); background: #FCFAF6; }
.modal-footer > .button-group:last-child { margin-left: auto; }
.modal-body, .booking-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.modal-body { padding: 18px 20px 20px; }
.field { display: grid; gap: 6px; min-width: 0; align-content: start; font-size: .84rem; font-weight: 600; color: var(--text); }
.field input, .field select, .field textarea { min-height: 44px; font-size: 1rem; font-weight: 400; }
.field :is(input[type="date"], input[type="time"]) {
  /* iOS WebKit can add input padding to a percentage width (bug 301648). */
  width: 100%;
  max-width: 100%;
  padding: 0;
  text-align: center;
}
.field textarea { min-height: 76px; resize: vertical; }
.wide, .form-error { grid-column: 1 / -1; }
.form-error { padding: 10px 12px; border-radius: 10px; background: var(--danger-bg); color: var(--danger); font-size: .85rem; font-weight: 500; }

.toast {
  position: fixed; z-index: 10; right: 20px; bottom: 20px;
  display: flex; align-items: center; gap: 10px;
  max-width: calc(100vw - 40px); padding: 12px 18px 12px 14px;
  border-radius: 14px; background: var(--ink); color: var(--on-dark);
  font-weight: 500; font-size: .9rem;
  box-shadow: 0 18px 40px -14px rgb(10 18 14 / .55);
  animation: toast-in .25s var(--ease);
}
.toast::before { content: ""; width: 8px; height: 8px; flex: none; border-radius: 50%; background: var(--lime); box-shadow: 0 0 0 4px rgb(213 247 90 / .2); }
@keyframes toast-in { from { opacity: 0; transform: translateY(8px); } }

/* ---------- Workspaces ---------- */
.workspace-start { display: grid; justify-items: start; gap: 14px; max-width: 560px; margin: 32px auto; padding: clamp(20px, 5vw, 36px); }
.workspace-start > .brand-mark { width: 52px; height: 52px; border-radius: 16px; background: var(--ink); color: var(--lime); }
.workspace-start > .brand-mark svg { width: 26px; height: 26px; }
.workspace-start h1 { font-size: clamp(1.6rem, 3vw, 2rem); }
.workspace-start p, .workspace-account { color: var(--muted); overflow-wrap: anywhere; }
.workspace-start .invite-error { color: var(--danger); }
.workspace-list { display: grid; gap: 8px; }
.workspace-option {
  display: grid; grid-template-columns: 36px minmax(0, 1fr) auto; align-items: center; gap: 12px;
  padding: 10px 12px; border: 1px solid var(--border); border-radius: 14px;
  background: var(--surface); color: var(--text); text-align: left;
  transition: border-color .15s, background .15s;
}
.workspace-option .arena-monogram { width: 36px; height: 36px; background: var(--ink); color: var(--lime); }
.workspace-option:hover { border-color: var(--border-strong); background: #FCFAF6; }
.workspace-option[aria-current="true"] { border-color: var(--ink); background: var(--lime-tint); }
.workspace-option-label { min-width: 0; }
.workspace-option strong, .workspace-option small { display: block; }
.workspace-option strong { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.workspace-option small { margin-top: 2px; color: var(--muted); }

/* ---------- Responsivo ---------- */
@media (max-width: 1200px) {
  .shell { grid-template-columns: 220px minmax(0, 1fr); }
  .topbar, main { padding-inline: 24px; }
  .board { grid-template-columns: 1fr; }
  .board > .stack { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; }
}
@media (max-width: 880px) {
  .shell { grid-template-columns: 1fr; }
  .sidebar {
    display: none; position: fixed; inset: 60px auto 0 0;
    width: 260px; height: calc(100dvh - 60px);
    box-shadow: 24px 0 60px rgb(10 18 14 / .35);
  }
  .sidebar.open { display: flex; animation: slide-in .2s var(--ease); }
  @keyframes slide-in { from { transform: translateX(-16px); opacity: 0; } }
  .nav a[aria-current="page"]::before { left: -14px; }
  .topbar { height: 60px; }
  .menu-button { display: inline-flex !important; }
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .court-art { opacity: .5; right: -60px; }
}
@media (max-width: 620px) {
  .topbar, main { padding-inline: 14px; }
  main { padding-top: 20px; }
  .today-date, .bread .workspace-crumb, .bread .crumb-divider { display: none; }
  .page-title { flex-direction: column; align-items: stretch; gap: 14px; margin-bottom: 18px; }
  .page-actions > * { flex: 1; }
  .banner { min-height: 116px; padding: 18px; }
  .banner strong { font-size: 1.35rem; }
  .banner p { max-width: 240px; }
  .court-art { opacity: .3; right: -150px; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .stat { padding: 12px; }
  .stat-value { font-size: 1.3rem; }
  .board > .stack, .cards, .finance-grid { grid-template-columns: 1fr; }
  .booking-fields { grid-template-columns: minmax(0, 1fr); }
  .day-controls { padding-inline: 10px; }
  .day-controls input { max-width: 128px; }
  th, td { padding-inline: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* Saldo do mês em destaque */
.stat:has(.stat-icon.highlight) { background: var(--ink); border-color: var(--ink); color: var(--on-dark); }
.stat:has(.stat-icon.highlight) .stat-label, .stat:has(.stat-icon.highlight) small { color: var(--on-dark-muted); }
.stat:has(.stat-icon.highlight) .stat-value { color: var(--lime); }
.stat-icon.highlight { background: rgb(213 247 90 / .14); color: var(--lime); }

/* ================= Cobranças ================= */

/* Faixa de simulação */
.sim-bar {
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px 16px;
  margin: -6px 0 22px; padding: 10px 12px 10px 16px;
  border: 1px dashed var(--lime-deep); border-radius: 14px;
  background: repeating-linear-gradient(-45deg, var(--lime-tint) 0 10px, #F7FDE3 10px 20px);
}
.sim-bar-text { display: inline-flex; align-items: center; flex-wrap: wrap; gap: 6px 10px; font-size: .86rem; color: var(--text); }
.sim-bar-text b { font-variant-numeric: tabular-nums; }
.sim-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--lime-deep); box-shadow: 0 0 0 4px rgb(185 221 51 / .3); }
.sim-bar-actions { display: flex; flex-wrap: wrap; gap: 6px; }
.btn.sim-btn { min-height: 34px; padding: 5px 12px; font-size: .8rem; background: var(--surface); }
.btn.sim-btn.ghost { background: transparent; }

/* Alerta da visão geral */
.billing-alert {
  display: flex; align-items: center; gap: 12px; width: 100%;
  margin: -4px 0 18px; padding: 12px 16px;
  border: 1px solid #F1D39A; border-radius: 14px; background: var(--pend-bg); color: var(--pend-ink);
  font-size: .9rem; text-align: left;
}
.billing-alert.calm { border-color: var(--border); background: var(--surface); color: var(--text); }
.billing-alert:hover { border-color: var(--pend-line); }
.billing-alert-icon { display: grid; place-items: center; width: 34px; height: 34px; flex: none; border-radius: 10px; background: rgb(255 255 255 / .7); }
.billing-alert-link { margin-left: auto; display: inline-flex; align-items: center; gap: 4px; font-weight: 600; white-space: nowrap; }

/* Abas */
.segmented { display: inline-flex; gap: 4px; margin-bottom: 14px; padding: 4px; border-radius: var(--r-pill); background: var(--sand); border: 1px solid var(--border); max-width: 100%; overflow-x: auto; }
.segmented button {
  display: inline-flex; align-items: center; gap: 8px; min-height: 38px; padding: 6px 16px;
  border: 0; border-radius: var(--r-pill); background: transparent; color: var(--muted); font-weight: 600; font-size: .875rem; white-space: nowrap;
}
.segmented button:hover { color: var(--text); }
.segmented button[aria-selected="true"] { background: var(--ink); color: var(--on-dark); }
.segmented .count { min-width: 20px; padding: 1px 6px; border-radius: var(--r-pill); background: rgb(10 18 14 / .08); font-size: .72rem; text-align: center; }
.segmented button[aria-selected="true"] .count { background: var(--lime); color: var(--ink); }

/* Planos */
.plan-price { display: flex; align-items: baseline; gap: 4px; margin-top: 14px; }
.plan-price strong { font-family: var(--font-display); font-size: 1.9rem; letter-spacing: -.03em; color: var(--text); }
.plan-price span { color: var(--muted); font-size: .9rem; }
.plan-card .court-card-top .stat-icon { background: var(--lime-tint); color: var(--ink); }
.plan-card.inactive { opacity: .7; }
.field.check { display: flex; align-items: center; gap: 10px; font-weight: 500; }
.field.check input { width: 20px; min-height: 20px; height: 20px; accent-color: var(--ink); }

/* Diálogos de cobrança */
dialog.dialog-wide { width: min(760px, calc(100vw - 24px)); }
.modal-header h2 { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; }
.modal-header h2 .pill { font-family: var(--font-body); letter-spacing: 0; }
.notice { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 12px; background: var(--pend-bg); color: var(--pend-ink); font-size: .88rem; }
.facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 0; }
.facts div { padding: 10px 12px; border-radius: 12px; background: #FCFAF6; border: 1px solid var(--border-soft); min-width: 0; }
.facts dt { font-size: .74rem; color: var(--muted); }
.facts dd { margin: 3px 0 0; font-weight: 600; font-size: .9rem; overflow-wrap: anywhere; }
.facts small { display: block; margin-top: 2px; font-weight: 400; font-size: .75rem; color: var(--muted); }
.dialog-section { margin: 4px 0 8px; font-size: .95rem; }
.charge-list { display: grid; margin: 0; padding: 0; list-style: none; border: 1px solid var(--border-soft); border-radius: 12px; overflow: hidden; }
.charge-list li { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 6px 12px; padding: 10px 12px; border-top: 1px solid var(--border-soft); }
.charge-list li:first-child { border-top: 0; }
.charge-list strong { display: block; font-size: .87rem; font-weight: 600; }
.charge-list small { display: block; font-size: .75rem; color: var(--muted); }
.charge-amount { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: .88rem; font-variant-numeric: tabular-nums; white-space: nowrap; }
.charge-actions { grid-column: 1 / -1; display: flex; gap: 6px; justify-content: flex-end; }
.charge-actions .btn { min-height: 32px; padding: 4px 12px; font-size: .8rem; }
.timeline { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.timeline li { display: grid; grid-template-columns: 82px minmax(0, 1fr); gap: 10px; font-size: .84rem; }
.timeline time { color: var(--muted); font-variant-numeric: tabular-nums; }
.timeline small { display: block; color: var(--subtle); font-size: .74rem; }
.cancel-summary { display: grid; gap: 8px; padding: 14px; border-radius: 12px; background: #FCFAF6; border: 1px solid var(--border-soft); font-size: .9rem; }
.test-cards { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.test-cards li { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 6px 12px; padding: 10px 12px; border-radius: 10px; background: #FCFAF6; border: 1px solid var(--border-soft); font-size: .88rem; }
.test-cards code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-weight: 600; }
.finance-extra { margin-top: 16px; }

/* Ver como aluno */
dialog.dialog-phone { width: auto; max-width: calc(100vw - 16px); padding: 0; background: transparent; box-shadow: none; overflow: visible; }
.phone-wrap { position: relative; display: grid; justify-items: center; gap: 10px; padding: 8px; }
.phone-caption { color: var(--on-dark); font-size: .8rem; font-weight: 500; opacity: .85; }
.phone-close { position: absolute; top: 0; right: 0; z-index: 3; background: var(--surface); }
.phone-device {
  position: relative; width: min(370px, calc(100vw - 32px)); max-height: calc(100dvh - 80px);
  display: flex; flex-direction: column; overflow: hidden;
  border-radius: 40px; padding: 10px; background: #111;
  box-shadow: 0 40px 90px -30px rgb(0 0 0 / .7), inset 0 0 0 1.5px rgb(255 255 255 / .12);
}
.phone-notch { position: absolute; top: 18px; left: 50%; z-index: 2; width: 86px; height: 22px; border-radius: 12px; background: #111; transform: translateX(-50%); }
.phone-top { display: flex; align-items: center; gap: 10px; padding: 40px 16px 14px; border-radius: 30px 30px 0 0; background: var(--ink); color: var(--on-dark); }
.phone-top strong, .phone-top small { display: block; }
.phone-top strong { font-size: .92rem; }
.phone-top small { font-size: .76rem; color: var(--on-dark-muted); }
.phone-body { flex: 1; overflow-y: auto; display: grid; align-content: start; gap: 12px; padding: 16px; border-radius: 0 0 30px 30px; background: var(--canvas); }
.phone-success { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-radius: 12px; background: var(--paid-bg); color: var(--paid-ink); font-size: .85rem; font-weight: 500; }
.phone-plan { display: grid; gap: 4px; padding: 16px; border-radius: 18px; background: var(--ink); color: var(--on-dark); }
.phone-plan-label { font-size: .7rem; letter-spacing: .08em; text-transform: uppercase; color: var(--lime); font-weight: 600; }
.phone-plan strong { font-family: var(--font-display); font-size: 1.2rem; letter-spacing: -.02em; }
.phone-plan-price { font-family: var(--font-display); font-size: 1.7rem; font-weight: 700; letter-spacing: -.03em; color: var(--lime); }
.phone-plan-price small { font-size: .9rem; color: var(--on-dark-muted); font-weight: 500; }
.phone-plan-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: .8rem; color: var(--on-dark-muted); }
.phone-plan > small { font-size: .78rem; color: var(--on-dark-muted); }
.phone-heading { margin: 4px 2px -4px; font-size: .78rem; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.phone-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 12px 14px; border-radius: 14px; background: var(--surface); border: 1px solid var(--border); font-size: .9rem; font-weight: 500; }
.phone-row span { display: inline-flex; align-items: center; gap: 8px; }
.phone-cta { display: grid; gap: 8px; padding: 14px; border-radius: 16px; background: var(--lime-tint); border: 1px solid var(--lime-deep); }
.phone-cta p { font-size: .85rem; color: var(--muted); }
.phone-charges { display: grid; margin: 0; padding: 0; list-style: none; border-radius: 14px; overflow: hidden; background: var(--surface); border: 1px solid var(--border); }
.phone-charges li { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 11px 14px; border-top: 1px solid var(--border-soft); }
.phone-charges li:first-child { border-top: 0; }
.phone-charges strong { display: block; font-size: .86rem; font-weight: 600; }
.phone-charges small { display: block; font-size: .75rem; color: var(--muted); }
.phone-cancel { justify-self: center; margin-top: 4px; padding: 8px; border: 0; background: transparent; color: var(--danger); font-size: .84rem; font-weight: 600; }
.phone-screen { display: grid; gap: 12px; }
.phone-screen h3 { font-size: 1.25rem; }
.phone-screen .field input { min-height: 46px; }
.phone-back { justify-self: start; display: inline-flex; align-items: center; gap: 4px; padding: 4px 0; border: 0; background: transparent; color: var(--muted); font-size: .85rem; font-weight: 500; }
.phone-note { font-size: .86rem; color: var(--muted); }
.phone-split { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.phone-hint { display: flex; gap: 6px; align-items: flex-start; font-size: .74rem; color: var(--subtle); }
.btn.block { width: 100%; min-height: 48px; }
.btn.sm { min-height: 32px; padding: 4px 14px; font-size: .8rem; }

@media (max-width: 620px) {
  .sim-bar { margin-top: -2px; }
  .sim-bar-actions { width: 100%; }
  .sim-bar-actions .btn { flex: 1; }
  .facts { grid-template-columns: 1fr 1fr; }
  .billing-alert { flex-wrap: wrap; }
  .billing-alert-link { margin-left: 46px; }
  .segmented { display: flex; }
  .segmented button { flex: 1; justify-content: center; gap: 5px; padding-inline: 8px; font-size: .8rem; }
  .segmented .count { min-width: 18px; padding-inline: 5px; }
}

/* ================= Mensalistas (horários fixos) ================= */
.booking.fixed { border-left-color: var(--lime); background: var(--ink); color: var(--on-dark); }
.booking.fixed strong { color: var(--lime); }
.booking.fixed span { color: var(--on-dark-muted); opacity: 1; }
.booking.fixed:hover { filter: none; box-shadow: 0 6px 16px -8px rgb(10 18 14 / .6); }
.booking.fixed.fixed-blocked { border-left-color: var(--danger); background: var(--danger-bg); color: var(--danger); }
.booking.fixed.fixed-blocked strong, .booking.fixed.fixed-blocked span { color: var(--danger); }
.dot.fixed { background: var(--ink); box-shadow: inset 0 0 0 2px var(--lime); }
.pill.fixed { background: var(--ink); color: var(--lime); }
.notice.calm { background: var(--paid-bg); color: var(--paid-ink); }
.plan-slots { display: flex; align-items: center; gap: 6px; margin-top: 6px; font-size: .84rem; font-weight: 500; color: var(--text); }

.slot-editor { display: grid; gap: 10px; padding: 14px; border-radius: 14px; background: #FCFAF6; border: 1px solid var(--border-soft); }
.slot-editor-title { font-size: .84rem; font-weight: 600; }
.slot-row { display: grid; grid-template-columns: 1.1fr 1.4fr 1fr auto; gap: 8px; align-items: end; }
.slot-row .field { font-size: .78rem; }
.slot-row .field select, .slot-row .field input { min-height: 42px; font-size: .92rem; }
.slot-end { padding-bottom: 12px; font-size: .8rem; color: var(--muted); white-space: nowrap; min-width: 66px; }
.conflict-notice { flex-direction: row; }
.conflict-notice > span { display: grid; gap: 8px; }
.check-inline { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; cursor: pointer; }
.check-inline input { width: 18px; height: 18px; min-height: 0; accent-color: var(--ink); }
.slot-summary { display: grid; gap: 6px; margin: 0 0 10px; padding: 0; list-style: none; }
.slot-summary li { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; font-weight: 600; font-size: .9rem; }
.slot-summary small { font-weight: 400; color: var(--muted); }
.occurrence-list { display: grid; margin: 0; padding: 0; list-style: none; border: 1px solid var(--border-soft); border-radius: 12px; overflow: hidden; }
.occurrence-list li { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 9px 12px; border-top: 1px solid var(--border-soft); font-size: .86rem; }
.occurrence-list li:first-child { border-top: 0; }
.occurrence-list small, .phone-charges small { display: block; color: var(--muted); font-size: .74rem; }
.occurrence-list li.released, .phone-charges li.released { background: repeating-linear-gradient(-45deg, #FAF7F1 0 8px, #F4EFE6 8px 16px); }
.occurrence-list li.released strong, .phone-charges li.released strong { text-decoration: line-through; color: var(--muted); }

@media (max-width: 620px) {
  .slot-row { grid-template-columns: 1fr 1fr; }
  .slot-end { padding-bottom: 0; }
}

/* ================= Aulas ================= */
:root { --lesson: #0E5C66; --lesson-bg: #E1F1F2; --lesson-ink: #0A3F46; }
.booking.lesson { border-left-color: var(--lesson); background: var(--lesson-bg); color: var(--lesson-ink); }
.dot.lesson { background: var(--lesson); }
.pill.lesson { background: var(--lesson-bg); color: var(--lesson); }

.week-panel .day-controls { border-bottom: 1px solid var(--border-soft); }
.week-label { padding-inline: 6px; font-variant-numeric: tabular-nums; }
.week-grid { display: grid; grid-template-columns: repeat(7, minmax(150px, 1fr)); overflow-x: auto; }
.week-day { display: grid; align-content: start; gap: 8px; min-height: 260px; padding: 12px 10px; border-left: 1px solid var(--border-soft); }
.week-day:first-child { border-left: 0; }
.week-day.is-today { background: #FBFDF2; }
.week-day-name { font-size: .78rem; font-weight: 600; text-transform: capitalize; color: var(--muted); }
.week-day.is-today .week-day-name { color: var(--text); }
.week-empty { font-size: .78rem; color: var(--subtle); }
.lesson-card {
  display: grid; gap: 2px; width: 100%; padding: 10px; text-align: left;
  border: 1px solid var(--border); border-left: 4px solid var(--lesson); border-radius: 12px;
  background: var(--surface); color: var(--text); transition: box-shadow .15s, border-color .15s;
}
.lesson-card.mode-fixed { border-left-color: var(--ink); }
.lesson-card:hover { box-shadow: 0 6px 16px -10px rgb(10 18 14 / .4); }
.lesson-card.cancelled { opacity: .6; border-left-color: var(--danger); }
.lesson-card.cancelled strong { text-decoration: line-through; }
.lesson-time { font-size: .74rem; font-weight: 600; color: var(--muted); font-variant-numeric: tabular-nums; }
.lesson-card strong { font-size: .86rem; line-height: 1.25; }
.lesson-card small { font-size: .72rem; color: var(--muted); }
.lesson-foot { display: flex; align-items: center; gap: 8px; margin-top: 4px; }
.lesson-count { display: inline-flex; align-items: center; gap: 4px; font-size: .76rem; font-weight: 600; }
.lesson-wait { font-size: .72rem; color: var(--pend); font-weight: 600; }

.inline-form { display: flex; align-items: flex-end; gap: 8px; flex-wrap: wrap; }
.inline-form .field { flex: 1; min-width: 180px; }
.lesson-slot { grid-template-columns: 1.3fr 1fr auto; }
.check-inline.is-full { opacity: .55; }
.check-inline small { font-weight: 400; color: var(--muted); }
.slot-editor .check-inline { display: flex; }
.payout-panel { margin-top: 16px; }
.payout-panel .panel-header input { width: auto; }
.phone-muted { font-size: .72rem; color: var(--muted); text-align: right; max-width: 130px; }

@media (max-width: 880px) {
  .week-grid { grid-template-columns: repeat(7, minmax(160px, 1fr)); }
}
.phone-body { display: flex; flex-direction: column; }
.phone-body > * { flex-shrink: 0; }

/* ================= Ajustes: busca de cliente, toggle, prazo ================= */

/* Data e hora com respiro para o ícone (o iOS mantém padding 0 por causa do bug de largura). */
@supports not (-webkit-touch-callout: none) {
  .field :is(input[type="date"], input[type="time"]) { padding-inline: 12px 10px; text-align: left; }
}

/* Busca de cliente */
.combo-native { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); border: 0; }
.combo { position: relative; }
.combo-input {
  min-height: 44px; padding-left: 36px; font-size: 1rem; font-weight: 400;
  background: var(--surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='15' height='15' viewBox='0 0 24 24' fill='none' stroke='%237A857E' stroke-width='2.2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-3.5-3.5'/%3E%3C/svg%3E") no-repeat 12px center;
}
.combo-list {
  position: absolute; z-index: 20; top: calc(100% + 4px); left: 0; right: 0;
  max-height: 240px; overflow-y: auto; margin: 0; padding: 4px; list-style: none;
  border: 1px solid var(--border-strong); border-radius: 12px; background: var(--surface);
  box-shadow: 0 16px 40px -16px rgb(10 18 14 / .35);
}
.combo-list li { padding: 9px 10px; border-radius: 8px; font-size: .92rem; font-weight: 500; cursor: pointer; }
.combo-list li:hover, .combo-list li.is-active { background: var(--lime-tint); }
.combo-list li[aria-selected="true"] { font-weight: 700; }
.combo-list .combo-special { margin-top: 4px; border-top: 1px solid var(--border-soft); border-radius: 0 0 8px 8px; color: var(--paid); }
.combo-list .combo-empty { color: var(--muted); cursor: default; }

/* Toggle (liga/desliga) */
.field.toggle {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  min-height: 48px; padding: 10px 14px; border: 1px solid var(--border-strong); border-radius: 10px;
  background: var(--surface); font-weight: 500; cursor: pointer;
}
.field.toggle input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.toggle-track { position: relative; flex: none; width: 44px; height: 26px; border-radius: 999px; background: var(--sand-2); transition: background .15s; }
.toggle-track::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: var(--surface); box-shadow: 0 1px 3px rgb(10 18 14 / .3); transition: transform .15s var(--ease); }
.field.toggle input:checked + .toggle-track { background: var(--ink); }
.field.toggle input:checked + .toggle-track::after { transform: translateX(18px); background: var(--lime); }
.field.toggle input:focus-visible + .toggle-track { outline: 3px solid var(--lime-deep); outline-offset: 2px; }

/* Número + unidade (prazo de cancelamento) */
.input-unit { display: grid; grid-template-columns: minmax(64px, .7fr) minmax(0, 1.3fr); gap: 8px; }
.plan-slots.muted { color: var(--muted); font-weight: 400; }

/* Menu com subitens (Aulas e Assinaturas) */
.nav-group { display: grid; gap: 2px; }
.nav-group .nav-parent { color: var(--on-dark-muted); }
.nav-group.is-open .nav-parent { color: var(--on-dark); }
.nav-group.is-open .nav-parent svg { color: var(--lime); opacity: 1; }
.nav-children { display: grid; gap: 1px; margin: 0 0 4px 21px; padding-left: 12px; border-left: 1px solid var(--ink-line); }
.nav .nav-child { padding: 7px 10px; font-size: .85rem; }
.nav .nav-child[aria-current="page"]::before { left: -27px; }
.nav-count { margin-left: auto; min-width: 20px; padding: 1px 6px; border-radius: 999px; background: var(--danger); color: #fff; font-size: .7rem; font-weight: 700; text-align: center; }

.sidebar { overflow-y: auto; overscroll-behavior: contain; }

.pill svg { margin-right: 4px; }

.public-booking { width: calc(100% - 32px); }
.public-booking form { display: grid; gap: 14px; width: 100%; }
.public-booking form[hidden] { display: none; }
.public-booking .btn { justify-self: start; }
