:root {
  --ink: #151512;
  --ink-soft: #25241f;
  --paper: #f4f0e8;
  --paper-deep: #e9e3d8;
  --white: #fffefa;
  --gold: #a6814c;
  --gold-dark: #785b34;
  --gold-pale: #e8dcc8;
  --muted: #706e67;
  --line: #d9d4ca;
  --success: #267054;
  --success-bg: #e6f2ec;
  --warning: #9a6721;
  --warning-bg: #fbf0dc;
  --danger: #a34646;
  --danger-bg: #f7e5e3;
  --shadow: 0 20px 65px rgba(23, 22, 18, 0.09);
  --serif: "Gotham", "Segoe UI", Arial, sans-serif;
  --sans: "Gotham", "Segoe UI", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  scroll-behavior: smooth;
}

body {
  width: 100%;
  max-width: 100%;
  margin: 0;
  overflow-x: hidden;
  color: var(--ink);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
}

button,
input,
select,
textarea {
  font: inherit;
}

button,
label {
  -webkit-tap-highlight-color: transparent;
}

button {
  cursor: pointer;
  line-height: 1;
}

button svg {
  pointer-events: none;
}

svg {
  display: block;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

[hidden] {
  display: none !important;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--gold-dark);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.18em;
  line-height: 1.4;
  text-transform: uppercase;
}

.primary-button,
.secondary-button {
  min-height: 48px;
  border: 0;
  border-radius: 3px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 20px;
  font-size: 13px;
  font-weight: 750;
  letter-spacing: 0.02em;
  text-decoration: none;
  transition: transform 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.primary-button {
  color: #fff;
  background: var(--ink);
  box-shadow: 0 8px 25px rgba(21, 21, 18, 0.15);
}

.primary-button:hover {
  background: #292823;
  box-shadow: 0 12px 30px rgba(21, 21, 18, 0.2);
  transform: translateY(-1px);
}

.primary-button:disabled {
  cursor: wait;
  opacity: 0.65;
  transform: none;
}

.primary-button svg,
.secondary-button svg {
  width: 17px;
  height: 17px;
}

.secondary-button {
  color: var(--ink);
  border: 1px solid var(--line);
  background: var(--white);
}

.secondary-button:hover {
  border-color: #b9b1a4;
  background: #f9f7f2;
}

.button-loader {
  width: 17px;
  height: 17px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 700ms linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Página institucional */

.construction-page {
  min-height: 100vh;
  color: #fff;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 18% 80%, rgba(166, 129, 76, .2), transparent 30%),
    radial-gradient(circle at 82% 16%, rgba(255, 255, 255, .07), transparent 26%),
    var(--ink);
}

.construction-main {
  width: min(720px, calc(100% - 44px));
  padding: 64px 20px;
  text-align: center;
}

.construction-main img {
  width: min(350px, 72vw);
  height: auto;
  margin-bottom: 40px;
}

.construction-line {
  width: 52px;
  height: 1px;
  margin: 0 auto 34px;
  background: var(--gold);
}

.construction-main .eyebrow { color: #c9a977; }

.construction-main h1 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(42px, 7vw, 72px);
  font-weight: 400;
  letter-spacing: -.045em;
  line-height: 1;
}

.construction-main h1 em { color: #c7a471; font-weight: 400; }
.construction-main > p:not(.eyebrow) { max-width: 560px; margin: 25px auto; color: rgba(255,255,255,.62); font-size: 14px; line-height: 1.75; }
.construction-signature { color: rgba(255,255,255,.38); font-size: 9px; letter-spacing: .18em; text-transform: uppercase; }

/* Formulário público */

.public-page {
  min-height: 100vh;
  background:
    linear-gradient(180deg, var(--ink) 0 510px, var(--paper) 510px 100%);
}

.public-header {
  width: min(1180px, calc(100% - 48px));
  height: 142px;
  margin: 0 auto;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand img {
  display: block;
  width: 202px;
  height: auto;
}

.header-caption {
  color: rgba(255, 255, 255, 0.58);
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--serif);
  font-size: 13px;
  font-style: italic;
}

.header-caption > span {
  width: 32px;
  height: 1px;
  background: var(--gold);
}

.public-main {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
  padding-bottom: 80px;
}

.form-state {
  min-height: calc(100vh - 260px);
  padding: 90px 24px;
  color: #fff;
  text-align: center;
}

.form-state .spinner {
  width: 30px;
  height: 30px;
  margin: 0 auto 18px;
  border: 2px solid rgba(255,255,255,.2);
  border-top-color: #c9a977;
  border-radius: 50%;
  display: block;
  animation: spin 700ms linear infinite;
}

.form-state h1 { margin: 12px 0; font-family: var(--serif); font-size: clamp(34px, 6vw, 54px); font-weight: 400; }
.form-state > p:not(.eyebrow) { color: rgba(255,255,255,.6); }
.dynamic-fields:empty { display: none; }

.intro {
  min-height: 368px;
  padding: 60px 0 52px;
  color: white;
}

.intro .eyebrow {
  color: #c9a977;
}

.intro h1,
.login-card h1 {
  margin: 0;
  color: #fff;
  font-family: var(--serif);
  font-size: clamp(44px, 5.3vw, 72px);
  font-weight: 400;
  letter-spacing: -0.045em;
  line-height: 0.96;
}

.intro h1 em,
.login-card h1 em {
  color: #c7a471;
  font-weight: 400;
}

.intro-text {
  max-width: 585px;
  margin: 24px 0 25px;
  color: rgba(255, 255, 255, 0.65);
  font-size: 16px;
  line-height: 1.65;
}

.trust-row {
  display: flex;
  gap: 28px;
  color: rgba(255, 255, 255, 0.58);
  font-size: 12px;
}

.trust-row > div {
  display: flex;
  align-items: center;
  gap: 8px;
}

.trust-row svg {
  width: 17px;
  height: 17px;
  color: #c9a977;
}

.form-card {
  position: relative;
  padding: 54px 64px 46px;
  border: 1px solid #e2ddd3;
  border-radius: 4px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.form-card::before {
  position: absolute;
  top: 0;
  left: 64px;
  width: 74px;
  height: 3px;
  background: var(--gold);
  content: "";
}

.form-heading {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 46px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--line);
}

.step-number {
  width: 52px;
  height: 52px;
  border: 1px solid #cdb995;
  border-radius: 50%;
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  color: var(--gold-dark);
  font-family: var(--serif);
  font-size: 17px;
}

.form-heading p {
  margin: 0 0 4px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 750;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.form-heading h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: 30px;
  font-weight: 400;
}

.field-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
}

.field {
  margin-bottom: 31px;
}

.field label,
.payment-field legend {
  display: block;
  margin-bottom: 10px;
  color: #34332f;
  font-size: 12px;
  font-weight: 750;
  letter-spacing: 0.035em;
}

.field label span,
.payment-field legend span {
  color: var(--gold-dark);
}

.input-shell {
  position: relative;
}

.input-shell input,
.input-shell select {
  width: 100%;
  height: 50px;
  padding: 0;
  border: 0;
  border-bottom: 1px solid #cfc9be;
  border-radius: 0;
  outline: 0;
  color: var(--ink);
  background: transparent;
  font-size: 15px;
}

.input-shell select {
  padding-right: 38px;
  appearance: none;
  cursor: pointer;
}

.select-shell > svg {
  position: absolute;
  top: 17px;
  right: 4px;
  width: 15px;
  height: 15px;
  color: #8e8a82;
  pointer-events: none;
}

.textarea-shell textarea::placeholder { color: #aaa69d; }

.input-shell input::placeholder {
  color: #aaa69d;
}

.input-shell i {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gold);
  transition: width 220ms ease;
}

.input-shell input:focus + i,
.input-shell select:focus ~ i {
  width: 100%;
}

.field.invalid .input-shell input {
  border-color: var(--danger);
}

.field-help,
.field-error {
  display: block;
  min-height: 16px;
  margin-top: 7px;
  color: #9a968e;
  font-size: 10.5px;
  line-height: 1.4;
}

.field-error {
  min-height: 0;
  color: var(--danger);
}

.field.invalid .field-help {
  display: none;
}

.payment-field {
  min-width: 0;
  margin: 6px 0 28px;
  padding: 0;
  border: 0;
}

.payment-field legend {
  margin-bottom: 14px;
}

.payment-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.choice-card {
  position: relative;
  min-height: 91px;
  border: 1px solid var(--line);
  border-radius: 3px;
  display: grid;
  grid-template-columns: 23px 42px 1fr;
  align-items: center;
  gap: 13px;
  padding: 17px 19px;
  cursor: pointer;
  background: #fff;
  transition: border 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.choice-card:hover {
  border-color: #bca889;
}

.choice-card:has(input:checked) {
  border-color: var(--gold);
  background: #fbf8f2;
  box-shadow: inset 0 0 0 1px var(--gold);
}

.choice-card input,
.consent-row input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.choice-control {
  width: 20px;
  height: 20px;
  border: 1px solid #aaa59b;
  border-radius: 50%;
  display: grid;
  place-items: center;
}

.choice-control b {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--gold);
  opacity: 0;
  transform: scale(0.5);
  transition: opacity 150ms ease, transform 150ms ease;
}

.choice-card input:checked + .choice-control {
  border-color: var(--gold);
}

.choice-card input:checked + .choice-control b {
  opacity: 1;
  transform: scale(1);
}

.choice-icon {
  width: 40px;
  height: 40px;
  border-radius: 2px;
  display: grid;
  place-items: center;
  color: var(--gold-dark);
  background: #f0e8dc;
}

.choice-icon svg {
  width: 20px;
  height: 20px;
}

.choice-card strong,
.choice-card small {
  display: block;
}

.choice-copy { min-width: 0; }
.choice-price {
  margin-top: 5px;
  display: inline-flex;
  align-items: baseline;
  gap: 4px;
  color: var(--gold-dark);
  font-size: 11px;
  white-space: nowrap;
}
.choice-price b { font-size: 11px; font-weight: 750; }

.choice-card strong {
  margin-bottom: 5px;
  font-family: var(--serif);
  font-size: 15px;
  font-weight: 600;
}

.choice-card small {
  color: var(--muted);
  font-size: 10.5px;
  line-height: 1.3;
}

.consent-row {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 11px;
  color: #69675f;
  cursor: pointer;
  font-size: 11.5px;
  line-height: 1.55;
}

.custom-check {
  width: 20px;
  height: 20px;
  border: 1px solid #bdb7ab;
  border-radius: 2px;
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  color: #fff;
  background: #fff;
  transition: background 160ms ease, border 160ms ease;
}

.custom-check svg {
  width: 13px;
  height: 13px;
  opacity: 0;
}

.consent-row input:checked + .custom-check {
  border-color: var(--gold-dark);
  background: var(--gold-dark);
}

.consent-row input:checked + .custom-check svg {
  opacity: 1;
}

.consent-error {
  margin-left: 31px;
}

.form-footer {
  margin-top: 36px;
  padding-top: 30px;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.form-footer p {
  margin: 0;
  color: #8a877f;
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 10.5px;
}

.form-footer p svg {
  width: 15px;
  height: 15px;
  color: var(--gold-dark);
}

.form-footer .primary-button {
  min-width: 228px;
}

.honeypot {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.public-footer {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
  padding: 30px 0 38px;
  border-top: 1px solid #d8d1c5;
  display: flex;
  justify-content: space-between;
  color: #8b877f;
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.success-card {
  max-width: 760px;
  margin: -40px auto 0;
  padding: 72px 55px;
  border: 1px solid #e2ddd3;
  border-radius: 4px;
  text-align: center;
  background: var(--white);
  box-shadow: var(--shadow);
}

.success-mark {
  width: 70px;
  height: 70px;
  margin: 0 auto 30px;
  border: 1px solid #bda476;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
  background: var(--success);
  box-shadow: 0 0 0 8px var(--success-bg);
}

.success-mark svg {
  width: 30px;
  height: 30px;
  stroke-width: 2.2;
}

.success-card h2 {
  margin: 0 0 16px;
  font-family: var(--serif);
  font-size: 42px;
  font-weight: 400;
}

.success-card h2 span {
  color: var(--gold-dark);
}

.success-card > p:not(.eyebrow) {
  max-width: 500px;
  margin: 0 auto;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.7;
}

.signature {
  margin-top: 35px;
  color: var(--gold-dark);
  font-family: var(--serif);
  font-size: 16px;
  font-style: italic;
}

/* Login */

.admin-page {
  min-height: 100vh;
  overflow-x: hidden;
  background: #efede7;
}

.login-view {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(350px, 44%) 1fr;
}

.login-brand {
  position: relative;
  display: grid;
  place-items: center;
  overflow: hidden;
  background:
    radial-gradient(circle at 20% 75%, rgba(166, 129, 76, 0.17), transparent 28%),
    radial-gradient(circle at 80% 15%, rgba(255, 255, 255, 0.06), transparent 25%),
    var(--ink);
}

.login-brand::before,
.login-brand::after {
  position: absolute;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 50%;
  content: "";
}

.login-brand::before {
  width: 460px;
  height: 460px;
}

.login-brand::after {
  width: 620px;
  height: 620px;
}

.login-brand img {
  position: relative;
  z-index: 1;
  width: min(55%, 330px);
}

.login-card {
  width: min(460px, calc(100% - 60px));
  margin: auto;
  padding: 50px 0;
}

.login-card h1 {
  color: var(--ink);
  font-size: 55px;
}

.login-copy {
  margin: 20px 0 36px;
  color: var(--muted);
  line-height: 1.6;
}

.login-card .field {
  margin-bottom: 24px;
}

.password-shell input {
  padding-right: 48px;
}

.password-shell button {
  position: absolute;
  top: 8px;
  right: 0;
  width: 38px;
  height: 38px;
  border: 0;
  display: grid;
  place-items: center;
  color: #77736b;
  background: transparent;
}

.password-shell button svg {
  width: 19px;
  height: 19px;
}

.full-button {
  width: 100%;
  margin-top: 6px;
}

.login-error {
  min-height: 18px;
  margin: 0 0 10px;
  color: var(--danger);
  font-size: 12px;
}

.setup-divider {
  margin: 27px 0 15px;
  display: flex;
  align-items: center;
  gap: 12px;
  color: #99958d;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.09em;
}

.setup-divider::before,
.setup-divider::after {
  height: 1px;
  flex: 1;
  background: #d9d4ca;
  content: "";
}

.setup-toggle {
  width: 100%;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 3px;
  color: var(--gold-dark);
  background: transparent;
  font-size: 11px;
  font-weight: 750;
}

.setup-toggle:hover,
.setup-toggle.active {
  border-color: var(--gold);
  background: #f7f2e9;
}

.setup-form {
  margin-top: 20px;
  padding: 22px;
  border: 1px solid #d8d0c3;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.55);
}

.setup-form .field {
  margin-bottom: 17px;
}

.setup-notice {
  margin-bottom: 20px;
  padding: 12px;
  display: flex;
  align-items: flex-start;
  gap: 9px;
  color: #6c675e;
  background: #eee6d9;
  font-size: 9.5px;
  line-height: 1.5;
}

.setup-notice svg {
  width: 17px;
  height: 17px;
  flex: 0 0 auto;
  color: var(--gold-dark);
}

.back-link {
  margin-top: 26px;
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  text-decoration: none;
}

.back-link svg {
  width: 16px;
  height: 16px;
}

/* Painel */

.dashboard {
  width: 100%;
  max-width: 100%;
  min-height: 100vh;
  overflow-x: hidden;
  display: grid;
  grid-template-columns: 228px minmax(0, 1fr);
}

.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  width: 228px;
  height: 100dvh;
  padding: 35px 22px 24px;
  color: #fff;
  display: flex;
  flex-direction: column;
  background: var(--ink);
}

.sidebar-logo {
  display: block;
  margin: 0 12px 55px;
}

.sidebar-logo img {
  width: 155px;
}

.sidebar nav {
  display: grid;
  gap: 7px;
}

.sidebar svg,
.stat-icon svg,
.more-button svg,
.service-icon svg,
.finance-direction svg {
  overflow: hidden;
  stroke-width: 1.75;
}

.nav-item {
  width: 100%;
  height: 48px;
  padding: 0 14px;
  border: 0;
  border-radius: 3px;
  color: rgba(255, 255, 255, 0.58);
  display: flex;
  align-items: center;
  gap: 12px;
  text-align: left;
  background: transparent;
  transition: color 160ms ease, background 160ms ease;
}

.nav-item svg {
  width: 19px;
  height: 19px;
}

.nav-item:hover,
.nav-item.active {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

.nav-item.active::before {
  width: 3px;
  height: 20px;
  margin-left: -14px;
  background: #caa875;
  content: "";
}

.sidebar-user {
  margin-top: auto;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) 32px;
  align-items: center;
  gap: 10px;
}

.user-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
  background: var(--gold-dark);
  font-family: var(--serif);
  font-size: 13px;
}

.sidebar-user strong,
.sidebar-user span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sidebar-user strong {
  font-size: 11px;
}

.sidebar-user span {
  margin-top: 3px;
  color: rgba(255, 255, 255, 0.46);
  font-size: 9.5px;
}

.sidebar-user button {
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 3px;
  display: grid;
  place-items: center;
  color: rgba(255, 255, 255, 0.55);
  background: transparent;
}

.sidebar-user button:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

.sidebar-user button svg {
  width: 17px;
  height: 17px;
}

.admin-main {
  grid-column: 2;
  width: 100%;
  max-width: calc(100vw - 228px);
  min-width: 0;
  padding: 38px 42px 60px;
  overflow-x: clip;
}

.panel-view,
.content-card,
.toolbar,
.filter-group { min-width: 0; }

.admin-topbar {
  margin-bottom: 33px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 25px;
}

.admin-topbar .eyebrow {
  margin-bottom: 7px;
}

.admin-topbar h1 {
  margin: 0;
  font-family: var(--serif);
  font-size: 35px;
  font-weight: 400;
}

.topbar-actions {
  display: flex;
  gap: 10px;
}

.stats-grid {
  margin-bottom: 20px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.stat-card {
  min-height: 130px;
  padding: 22px;
  border: 1px solid #dfdcd5;
  border-radius: 4px;
  display: flex;
  align-items: center;
  gap: 15px;
  background: rgba(255, 255, 255, 0.72);
}

.stat-icon {
  width: 38px;
  height: 38px;
  border-radius: 3px;
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  line-height: 0;
}

.stat-icon svg {
  width: 20px;
  height: 20px;
  margin: 0;
  transform: none;
}

.stat-card > div { min-width: 0; overflow: hidden; }

.stat-icon.total { color: var(--gold-dark); background: var(--gold-pale); }
.stat-icon.paid { color: var(--success); background: var(--success-bg); }
.stat-icon.pending { color: var(--warning); background: var(--warning-bg); }
.stat-icon.cancelled { color: var(--danger); background: var(--danger-bg); }

.stat-card small,
.stat-card strong,
.stat-card > div > span {
  display: block;
}

.stat-card small {
  margin-bottom: 5px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.stat-card strong {
  max-width: 100%;
  overflow: visible;
  font-family: var(--serif);
  font-size: 27px;
  font-weight: 400;
  text-overflow: clip;
  white-space: nowrap;
}

.stat-card div > span {
  margin-top: 4px;
  color: #9a978f;
  font-size: 9.5px;
}

.content-card {
  min-height: 500px;
  padding: 22px;
  border: 1px solid #dfdcd5;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.82);
}

.toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
}

.search-box {
  width: min(440px, 100%);
  height: 44px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 3px;
  display: flex;
  align-items: center;
  gap: 9px;
  background: #fff;
}

.search-box:focus-within {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(166, 129, 76, 0.09);
}

.search-box svg {
  width: 17px;
  height: 17px;
  color: #8b887f;
}

.search-box input {
  min-width: 0;
  flex: 1;
  border: 0;
  outline: 0;
  color: var(--ink);
  background: transparent;
  font-size: 11.5px;
}

.search-box input::placeholder {
  color: #aaa79f;
}

.search-box kbd {
  padding: 3px 6px;
  border: 1px solid #e0ddd6;
  border-radius: 3px;
  color: #9c9991;
  background: #f5f3ef;
  font-family: var(--sans);
  font-size: 9px;
}

.filter-group {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.filter-group .custom-select[data-select="service-filter"] > button { max-width: 220px; }
.filter-group .custom-select[data-select="service-filter"] > button span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.filter-group .custom-select[data-select="service-filter"] .select-menu { max-width: 330px; max-height: 320px; overflow-y: auto; }
.filter-group .custom-select[data-select="service-filter"] .select-menu button { overflow: hidden; text-overflow: ellipsis; }

.custom-select {
  position: relative;
}

.custom-select > button {
  min-width: 146px;
  height: 44px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 3px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: #4e4c46;
  background: #fff;
  font-size: 10.5px;
}

.custom-select > button > span {
  flex: 1;
  text-align: left;
}

.custom-select > button svg {
  width: 15px;
  height: 15px;
  color: #8e8a82;
}

.custom-select > button .chevron {
  width: 13px;
  transition: transform 160ms ease;
}

.custom-select.open > button {
  border-color: var(--gold);
}

.custom-select.open .chevron {
  transform: rotate(180deg);
}

.select-menu {
  position: absolute;
  z-index: 20;
  top: calc(100% + 6px);
  right: 0;
  width: max-content;
  min-width: 100%;
  padding: 5px;
  border: 1px solid var(--line);
  border-radius: 4px;
  display: none;
  background: #fff;
  box-shadow: 0 14px 35px rgba(28, 27, 23, 0.14);
}

.custom-select.open .select-menu {
  display: grid;
}

.select-menu button {
  height: 36px;
  padding: 0 11px;
  border: 0;
  border-radius: 2px;
  color: #55524c;
  text-align: left;
  white-space: nowrap;
  background: transparent;
  font-size: 10.5px;
}

.select-menu button:hover,
.select-menu button.selected {
  color: var(--ink);
  background: #f2eee7;
}

/* Selects com a mesma experiência visual do painel, sem interface nativa. */
.native-select-source {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  border: 0 !important;
  overflow: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

.ui-select {
  position: relative;
  min-width: 142px;
  color: var(--ink);
  font-family: var(--sans);
}

.ui-select-trigger {
  width: 100%;
  min-height: 44px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 3px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: #4e4c46;
  background: #fff;
  font: inherit;
  font-size: 10.5px;
  cursor: pointer;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.ui-select-trigger span {
  min-width: 0;
  overflow: hidden;
  text-align: left;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ui-select-trigger svg {
  width: 14px;
  height: 14px;
  flex: 0 0 auto;
  color: #8e8a82;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
  transition: transform 160ms ease;
}

.ui-select.open .ui-select-trigger {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(181,141,81,.1);
}

.ui-select.open .ui-select-trigger svg { transform: rotate(180deg); }

.ui-select-menu {
  position: absolute;
  z-index: 120;
  top: calc(100% + 6px);
  right: 0;
  width: max-content;
  min-width: 100%;
  max-width: min(330px, calc(100vw - 34px));
  max-height: 270px;
  padding: 5px;
  border: 1px solid var(--line);
  border-radius: 4px;
  display: none;
  overflow-y: auto;
  background: #fff;
  box-shadow: 0 16px 38px rgba(28,27,23,.16);
}

.ui-select.open .ui-select-menu { display: grid; }

.ui-select-menu button {
  min-height: 38px;
  padding: 8px 11px;
  border: 0;
  border-radius: 2px;
  color: #55524c;
  background: transparent;
  font: inherit;
  font-size: 10.5px;
  text-align: left;
  white-space: nowrap;
  cursor: pointer;
}

.ui-select-menu button:hover,
.ui-select-menu button.selected {
  color: var(--ink);
  background: #f2eee7;
}

.ui-select-menu button.selected::before {
  margin-right: 8px;
  color: var(--gold-dark);
  content: "✓";
}

.input-shell > svg { display: none; }
.input-shell > .ui-select { width: 100%; }
.input-shell > .ui-select .ui-select-trigger {
  height: 50px;
  padding: 0 4px 0 0;
  border: 0;
  border-bottom: 1px solid #cfc9be;
  border-radius: 0;
  background: transparent;
  font-size: 15px;
  box-shadow: none;
}
.input-shell > .ui-select.open .ui-select-trigger { border-bottom-color: var(--gold); }

.results-meta {
  padding: 25px 0 12px;
  display: flex;
  justify-content: space-between;
  color: #96938b;
  font-size: 10px;
}

.results-meta strong {
  color: #57544e;
  font-size: 11px;
}

.table-wrap {
  overflow: visible;
}

.students-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}

.students-table th {
  height: 39px;
  padding: 0 11px;
  border-top: 1px solid #e5e2db;
  border-bottom: 1px solid #e5e2db;
  color: #918e86;
  text-align: left;
  background: #f7f5f1;
  font-size: 9px;
  font-weight: 750;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.students-table th:first-child { width: 23%; }
.students-table th:nth-child(2) { width: 21%; }
.students-table th:nth-child(3) { width: 16%; }
.students-table th:nth-child(4) { width: 13%; }
.students-table th:nth-child(5) { width: 14%; }
.students-table th:last-child { width: 13%; }

.students-table td {
  height: 86px;
  padding: 11px;
  border-bottom: 1px solid #e8e5df;
  color: #4c4a45;
  vertical-align: middle;
  font-size: 11.5px;
}

.person-cell {
  display: flex;
  align-items: center;
  gap: 10px;
}

.person-avatar,
.team-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  color: var(--gold-dark);
  background: #eee6da;
  font-family: var(--serif);
  font-size: 11px;
}

.cell-primary,
.cell-secondary {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cell-primary {
  margin-bottom: 4px;
  color: #34332f;
  font-weight: 700;
}

.cell-secondary {
  color: #929087;
  font-size: 9.5px;
}

.source-tag {
  margin-left: 5px;
  padding: 2px 5px;
  border: 1px solid #ddd5c9;
  border-radius: 2px;
  color: #8a7b66;
  font-size: 7.5px;
  font-weight: 750;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.status-picker {
  position: relative;
  display: inline-block;
}

.status-button {
  height: 30px;
  padding: 0 9px;
  border: 0;
  border-radius: 99px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 8.5px;
  font-weight: 750;
  white-space: nowrap;
}

.status-button::before {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  content: "";
}

.status-button svg {
  width: 11px;
  height: 11px;
}

.status-button.paid { color: var(--success); background: var(--success-bg); }
.status-button.pending { color: var(--warning); background: var(--warning-bg); }
.status-button.cancelled { color: var(--danger); background: var(--danger-bg); }

.status-menu {
  position: absolute;
  z-index: 15;
  top: calc(100% + 5px);
  right: 0;
  min-width: 170px;
  padding: 5px;
  border: 1px solid var(--line);
  border-radius: 4px;
  display: none;
  background: #fff;
  box-shadow: 0 12px 30px rgba(25, 24, 21, 0.14);
}

.status-picker.open .status-menu {
  display: grid;
}

.status-menu button {
  height: 34px;
  padding: 0 10px;
  border: 0;
  border-radius: 2px;
  color: #5b5852;
  text-align: left;
  background: transparent;
  font-size: 10px;
}

.status-menu button:hover {
  background: #f4f1eb;
}

.more-button {
  width: 30px;
  height: 30px;
  border: 0;
  border-radius: 3px;
  display: grid;
  place-items: center;
  color: #8f8b82;
  background: transparent;
}

.more-button:hover {
  color: var(--ink);
  background: #efebe4;
}

.more-button svg {
  width: 17px;
  height: 17px;
}

.row-actions {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 3px;
}

.danger-button:hover {
  color: var(--danger);
  background: var(--danger-bg);
}

.student-cards {
  display: none;
}

.student-card { min-width: 0; padding: 16px; border: 1px solid #e2ded6; border-radius: 3px; background: #fff; }
.student-card-top { min-width: 0; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.student-card .person-cell,
.student-card .person-cell > span:last-child { min-width: 0; }
.student-card-details { margin: 14px 0; padding: 13px 0; border-top: 1px solid #eeeae3; border-bottom: 1px solid #eeeae3; display: grid; grid-template-columns: 1fr 1fr; gap: 11px; }
.student-card-details > div { min-width: 0; }
.student-card-details small,
.student-card-details span { display: block; }
.student-card-details small { margin-bottom: 3px; color: #9b978f; font-size: 8px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.student-card-details span { overflow: hidden; color: #55524c; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.student-card-bottom { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.student-card-bottom > span { min-width: 0; color: #97938b; font-size: 9px; }
.client-revenue { max-width: 100%; overflow: visible; color: var(--success); text-overflow: clip; white-space: nowrap; }

.empty-state {
  padding: 70px 20px;
  text-align: center;
  color: #939087;
}

.empty-state > svg {
  width: 32px;
  height: 32px;
  margin: 0 auto 14px;
}

.empty-state h3 {
  margin: 0 0 7px;
  color: #55524d;
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 400;
}

.empty-state p {
  margin: 0;
  font-size: 11px;
}

/* Serviços, financeiro e equipe */

.team-intro,
.module-intro {
  margin-bottom: 20px;
  padding: 27px 30px;
  border: 1px solid #dfdcd5;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  background: rgba(255, 255, 255, 0.72);
}

.team-intro h2,
.module-intro h2 {
  margin: 0 0 7px;
  font-family: var(--serif);
  font-size: 25px;
  font-weight: 400;
}

.team-intro p,
.module-intro p {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.module-toolbar-card {
  margin-bottom: 16px;
  padding: 16px 18px 0;
  border: 1px solid #dfdcd5;
  border-radius: 4px;
  background: rgba(255,255,255,.78);
}

.module-toolbar-card .results-meta { padding-top: 14px; }

.service-card {
  min-height: 305px;
  padding: 23px;
  border: 1px solid #dfdcd5;
  border-radius: 4px;
  display: flex;
  flex-direction: column;
  background: rgba(255,255,255,.82);
  transition: border-color 170ms ease, box-shadow 170ms ease, transform 170ms ease;
}

.service-card[data-service-manage] { cursor: pointer; }
.service-card[data-service-manage]:hover,
.service-card[data-service-manage]:focus-visible {
  border-color: #c8b99f;
  outline: none;
  box-shadow: 0 14px 34px rgba(43, 40, 34, .08);
  transform: translateY(-2px);
}
.service-card.archived { opacity: .72; }
.service-card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.service-icon { width: 40px; height: 40px; border-radius: 3px; display: grid; place-items: center; color: var(--gold-dark); background: var(--gold-pale); }
.service-icon svg { width: 20px; height: 20px; }
.service-state { padding: 5px 8px; border-radius: 99px; color: var(--success); background: var(--success-bg); font-size: 8px; font-weight: 750; }
.service-state.off { color: var(--muted); background: #ece9e3; }
.service-card h3 { margin: 21px 0 7px; color: #35332f; font-family: var(--serif); font-size: 18px; font-weight: 600; line-height: 1.25; }
.service-card > p { min-height: 30px; margin: 0; color: #918d85; font-size: 9.5px; line-height: 1.5; }
.service-metrics { margin: 17px 0; padding: 14px 0; border-top: 1px solid #e8e4dd; border-bottom: 1px solid #e8e4dd; display: flex; gap: 15px; }
.service-metrics span { color: #99958d; font-size: 8.5px; }
.service-metrics strong { display: block; margin-bottom: 3px; color: #4a4842; font-size: 12px; }
.service-link { height: 38px; padding: 0 7px 0 11px; border: 1px solid #ded9d0; border-radius: 3px; display: flex; align-items: center; gap: 7px; background: #f7f4ef; }
.service-link > span { min-width: 0; flex: 1; overflow: hidden; color: #77736b; font-size: 8.5px; text-overflow: ellipsis; white-space: nowrap; }
.service-link button { width: 28px; height: 28px; padding: 0; border: 0; display: grid; place-items: center; color: var(--gold-dark); background: transparent; }
.service-link svg { width: 15px; height: 15px; }
.service-actions { margin-top: auto; padding-top: 13px; display: flex; gap: 7px; }
.service-actions .secondary-button { flex: 1; text-decoration: none; }

.service-detail-summary {
  margin-bottom: 17px;
  padding: 17px;
  border: 1px solid #e4dfd6;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  background: #faf8f4;
}

.service-detail-summary p { max-width: 580px; margin: 9px 0 0; color: var(--muted); font-size: 10.5px; line-height: 1.55; }
.service-detail-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 7px; }
.danger-outline { color: var(--danger); border-color: #e6c3c0; }
.danger-outline:hover { color: #963c35; border-color: #d8aaa6; background: var(--danger-bg); }

.service-public-link {
  margin-bottom: 25px;
  padding: 13px 15px;
  border: 1px solid #e2ddd4;
  border-radius: 4px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 8px;
}

.service-public-link div { min-width: 0; }
.service-public-link small,
.service-public-link strong { display: block; }
.service-public-link small { margin-bottom: 5px; color: #99958d; font-size: 8px; font-weight: 750; letter-spacing: .06em; text-transform: uppercase; }
.service-public-link strong { overflow: hidden; color: #57534c; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }

.service-client-heading { margin-bottom: 10px; display: flex; align-items: end; justify-content: space-between; gap: 14px; }
.service-client-heading h3 { margin: 0 0 4px; color: #34322e; font-size: 13px; }
.service-client-heading p { margin: 0; color: var(--muted); font-size: 9.5px; }
.service-client-heading > strong { color: var(--gold-dark); font-size: 10px; white-space: nowrap; }
.service-client-list { max-height: 360px; border-top: 1px solid #e5e0d7; display: grid; overflow-y: auto; overscroll-behavior: contain; }
.service-client-list .builder-empty { margin-top: 10px; }
.service-client-row {
  min-height: 68px;
  padding: 10px 4px;
  border-bottom: 1px solid #e9e5de;
  display: grid;
  grid-template-columns: minmax(205px, 1.4fr) minmax(165px, 1.1fr) minmax(135px, .75fr) minmax(130px, auto) minmax(64px, auto);
  align-items: center;
  gap: 13px;
}

.service-client-row > *,
.service-client-row .person-cell,
.service-client-row .person-cell > span:last-child { min-width: 0; }
.service-client-row .cell-primary,
.service-client-row .cell-secondary { max-width: 100%; }
.service-client-payment { overflow: visible; }
.service-client-price { display: block; margin-top: 4px; color: var(--gold-dark); font-size: 9.5px; font-weight: 750; line-height: 1.2; white-space: nowrap; }
.service-client-actions { display: flex; align-items: center; justify-content: flex-end; gap: 2px; }

.client-history-summary {
  margin-bottom: 24px;
  padding: 17px;
  border: 1px solid #e4dfd6;
  border-radius: 4px;
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(110px, .55fr) minmax(130px, .7fr);
  align-items: center;
  gap: 18px;
  background: #faf8f4;
}

.client-history-summary > * { min-width: 0; }
.client-history-summary strong,
.client-history-summary small { display: block; }
.client-history-summary strong { overflow: hidden; color: #3f3d38; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.client-history-summary > div:last-child strong { overflow: visible; text-overflow: clip; }
.client-history-summary small { margin: 4px 0 0; overflow: hidden; color: #969188; font-size: 8.8px; text-overflow: ellipsis; white-space: nowrap; }
.client-history-list { border-top: 1px solid #e5e0d7; display: grid; }
.client-history-row { min-width: 0; min-height: 70px; padding: 11px 4px; border-bottom: 1px solid #e9e5de; display: grid; grid-template-columns: 38px minmax(0, 1fr) minmax(110px, auto); align-items: center; gap: 12px; }
.client-history-row > * { min-width: 0; }
.history-icon { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; color: var(--gold-dark); background: var(--gold-pale); }
.history-icon svg { width: 17px; height: 17px; }
.client-history-row div > strong,
.client-history-row div > span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.client-history-row div > strong { color: #484640; font-size: 10.5px; }
.client-history-row div > span { margin-top: 4px; color: #97938b; font-size: 8.8px; }
.history-value { text-align: right; }
.history-value strong { overflow: visible !important; color: var(--success) !important; text-overflow: clip !important; white-space: nowrap; }

.finance-stats { width: 100%; min-width: 0; margin-bottom: 20px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.finance-stat { min-width: 0; min-height: 122px; padding: 23px; border: 1px solid #dfdcd5; border-radius: 4px; background: rgba(255,255,255,.8); }
.finance-stat > span, .finance-stat strong, .finance-stat small { display: block; }
.finance-stat > span { margin-bottom: 10px; color: var(--muted); font-size: 9px; font-weight: 750; letter-spacing: .07em; text-transform: uppercase; }
.finance-stat strong { max-width: 100%; overflow: visible; font-family: var(--serif); font-size: 27px; font-weight: 400; text-overflow: clip; white-space: nowrap; }
.finance-stat small { margin-top: 6px; color: #9b978f; font-size: 9px; }
.finance-stat.income strong { color: var(--success); }
.finance-stat.expense strong { color: var(--danger); }
.finance-stat.receivable strong { color: #a66d14; }
.segmented-filter { padding: 3px; border: 1px solid var(--line); border-radius: 3px; display: flex; background: #f6f3ee; }
.segmented-filter button { height: 36px; padding: 0 13px; border: 0; border-radius: 2px; color: #88847b; background: transparent; font-size: 9.5px; }
.segmented-filter button.active { color: var(--ink); background: #fff; box-shadow: 0 2px 7px rgba(20,20,18,.08); }
.finance-list { min-width: 0; display: grid; }
.finance-row { min-width: 0; min-height: 76px; padding: 12px 9px; border-top: 1px solid #e8e4dd; display: grid; grid-template-columns: 38px minmax(0,1.4fr) minmax(0,1fr) minmax(105px,125px) auto; align-items: center; gap: 13px; }
.finance-row > *, .finance-main, .finance-service { min-width: 0; }
.finance-direction { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; }
.finance-direction svg { width: 17px; height: 17px; }
.finance-direction.income { color: var(--success); background: var(--success-bg); }
.finance-direction.expense { color: var(--danger); background: var(--danger-bg); }
.finance-main strong, .finance-main span, .finance-service strong, .finance-service span { display: block; }
.finance-main strong, .finance-service strong { color: #484640; font-size: 10.5px; }
.finance-main span, .finance-service span { margin-top: 4px; color: #97938b; font-size: 8.8px; }
.finance-main strong, .finance-main span, .finance-service strong, .finance-service span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.finance-value { min-width: max-content; overflow: visible; text-align: right; text-overflow: clip; font-size: 11px; white-space: nowrap; }
.finance-value.income { color: var(--success); }
.finance-value.expense { color: var(--danger); }
.linked-badge { padding: 5px 7px; border-radius: 99px; color: var(--gold-dark); background: #eee5d7; font-size: 7.5px; font-weight: 750; }
.finance-filters .custom-select > button { min-width: 132px; }
.finance-filters .custom-select[data-select="finance-service-filter"] > button { max-width: 190px; }
.finance-filters .custom-select[data-select="finance-service-filter"] > button span,
.finance-filters .custom-select[data-select="finance-service-filter"] .select-menu button { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.finance-filters .custom-select[data-select="finance-service-filter"] .select-menu { max-width: 300px; max-height: 300px; overflow-y: auto; }

.permission-legend {
  display: grid;
  gap: 8px;
  color: #737068;
  font-size: 9.5px;
}

.permission-legend span {
  display: flex;
  align-items: center;
  gap: 7px;
}

.permission-legend b {
  color: #4e4c46;
}

.dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
}

.dot.partner { background: var(--gold); }
.dot.employee { background: #70889e; }

.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.team-card {
  min-height: 205px;
  padding: 23px;
  border: 1px solid #dfdcd5;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.82);
}

.team-card-head {
  display: flex;
  align-items: center;
  gap: 12px;
}

.team-avatar {
  width: 43px;
  height: 43px;
  font-size: 13px;
}

.team-card h3 {
  margin: 0 0 4px;
  color: #34332f;
  font-size: 12px;
}

.team-card .email {
  max-width: 180px;
  display: block;
  overflow: hidden;
  color: #929087;
  font-size: 9.5px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.role-badge {
  margin-top: 25px;
  padding-top: 16px;
  border-top: 1px solid #e4e0d9;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.role-badge span {
  padding: 5px 8px;
  border-radius: 99px;
  color: var(--gold-dark);
  background: #eee5d7;
  font-size: 8.5px;
  font-weight: 750;
}

.role-badge small {
  color: #99968e;
  font-size: 8.5px;
}

.role-badge small.inactive {
  color: var(--danger);
}

.team-card-actions {
  display: flex;
  align-items: center;
  gap: 3px;
}

.permission-count {
  margin-top: 22px;
  padding: 14px 0;
  border-top: 1px solid #e4e0d9;
  border-bottom: 1px solid #e4e0d9;
}

.permission-count + .role-badge {
  margin-top: 0;
  padding-top: 14px;
  border-top: 0;
}

.permission-count strong,
.permission-count span {
  display: block;
}

.permission-count strong {
  color: #4b4943;
  font-size: 10.5px;
}

.permission-count span {
  margin-top: 4px;
  color: #969289;
  font-size: 9px;
}

.team-salary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 12px;
}

.team-salary small { color: var(--muted); font-size: 9px; }
.team-salary strong { color: #176945; font-size: 12px; white-space: nowrap; }

.permission-summary {
  max-width: 330px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: #77736b;
  font-size: 9.5px;
  line-height: 1.45;
}

.permission-summary svg {
  width: 28px;
  height: 28px;
  padding: 6px;
  border-radius: 50%;
  color: var(--success);
  background: var(--success-bg);
}

.delete-member-button:hover {
  color: var(--danger);
  background: var(--danger-bg);
}

/* Modal */

.modal-backdrop {
  position: fixed;
  z-index: 100;
  inset: 0;
  padding: 24px;
  display: grid;
  overflow-y: auto;
  place-items: center;
  background: rgba(14, 14, 12, 0.66);
}

.modal {
  width: min(820px, 100%);
  max-height: calc(100vh - 48px);
  overflow-y: auto;
  border-radius: 4px;
  background: var(--white);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.25);
}

.modal.wide-modal { width: min(980px, 100%); }

.modal > header {
  position: sticky;
  z-index: 2;
  top: 0;
  padding: 27px 30px 20px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  background: var(--white);
}

.modal > header .eyebrow {
  margin-bottom: 5px;
}

.modal > header h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: 27px;
  font-weight: 400;
}

.icon-button {
  width: 36px;
  height: 36px;
  border: 1px solid var(--line);
  border-radius: 3px;
  display: grid;
  place-items: center;
  color: #77736b;
  background: #fff;
}

.icon-button:hover {
  color: var(--ink);
  background: #f3f0ea;
}

.icon-button svg {
  width: 17px;
  height: 17px;
}

.modal form {
  padding: 25px 30px 30px;
}

.modal .field {
  margin-bottom: 25px;
}

.modal-section {
  margin: 6px 0 22px;
  padding-bottom: 12px;
  border-bottom: 1px solid #e7e2d9;
}

.modal-section:not(:first-child) {
  margin-top: 12px;
}

.modal-section h3,
.trash-heading h2 {
  margin: 0 0 5px;
  color: #34322e;
  font-size: 13px;
}

.payment-client-summary {
  margin-bottom: 24px;
  padding: 15px;
  border: 1px solid #e4dfd6;
  border-radius: 4px;
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(140px, 1fr) minmax(90px, auto);
  align-items: center;
  gap: 16px;
  background: #faf8f4;
}

.payment-client-summary > * { min-width: 0; }
.payment-client-summary strong,
.payment-client-summary small { display: block; }
.payment-client-summary strong { overflow: hidden; color: #3f3d38; font-size: 10.5px; text-overflow: ellipsis; white-space: nowrap; }
.payment-client-summary small { margin-bottom: 4px; color: #969188; font-size: 8.5px; }
.payment-client-summary .person-cell small { margin: 4px 0 0; }

.modal-section p,
.trash-heading p {
  margin: 0;
  color: #918d85;
  font-size: 9.5px;
}

.address-grid {
  grid-template-columns: 170px 1fr;
}

.three-fields {
  grid-template-columns: .55fr 1fr 1fr;
}

.input-shell textarea {
  width: 100%;
  min-height: 92px;
  padding: 13px 0;
  border: 0;
  border-bottom: 1px solid #cfc9be;
  outline: 0;
  resize: vertical;
  color: var(--ink);
  background: transparent;
  font: inherit;
  font-size: 13px;
  line-height: 1.55;
}

.input-shell textarea:focus + i {
  width: 100%;
}

.prefix-shell {
  display: flex;
  align-items: center;
}

.prefix-shell > span {
  margin-right: 4px;
  color: #858179;
  font-size: 14px;
}

.three-options {
  grid-template-columns: repeat(3, 1fr) !important;
}

.permissions-editor {
  margin-top: 8px;
}

.permission-group {
  margin: 0 0 22px;
  padding: 0;
  border: 1px solid #e1ddd5;
  border-radius: 4px;
  overflow: hidden;
}

.permission-group h4 {
  margin: 0;
  padding: 11px 14px;
  color: #706b63;
  background: #f5f2ec;
  font-size: 9px;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.permission-row,
.access-toggle {
  position: relative;
  min-height: 61px;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  cursor: pointer;
  background: #fff;
}

.access-toggle.toggle-disabled { cursor: not-allowed; opacity: .62; }

.builder-heading { margin: 30px 0 12px; padding-top: 22px; border-top: 1px solid #e5e0d8; display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; }
.builder-heading h3 { margin: 0 0 5px; font-size: 13px; }
.builder-heading p { margin: 0; color: #918d85; font-size: 9.5px; line-height: 1.45; }
.builder-list { display: grid; gap: 9px; }
.builder-row { padding: 15px; border: 1px solid #e2ded6; border-radius: 4px; display: grid; grid-template-columns: 28px 1fr 32px; align-items: start; gap: 12px; background: #fbfaf7; }
.builder-index { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; color: var(--gold-dark); background: var(--gold-pale); font-size: 8px; font-weight: 750; }
.builder-fields .field { margin-bottom: 15px; }
.builder-empty { padding: 24px; border: 1px dashed #d9d3c9; color: #99958f; text-align: center; font-size: 9.5px; }
.mini-toggle { position: relative; display: inline-flex; align-items: center; gap: 8px; color: #65625c; cursor: pointer; font-size: 9px; }
.mini-toggle input { position: absolute; opacity: 0; pointer-events: none; }
.mini-toggle i { position: relative; width: 32px; height: 19px; border-radius: 99px; background: #d5d1c9; transition: background .16s ease; }
.mini-toggle i::after { position: absolute; top: 3px; left: 3px; width: 13px; height: 13px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.2); content: ""; transition: transform .16s ease; }
.mini-toggle:has(input:checked) i { background: var(--gold-dark); }
.mini-toggle:has(input:checked) i::after { transform: translateX(13px); }

.permission-row + .permission-row {
  border-top: 1px solid #eeeae3;
}

.permission-row strong,
.permission-row small,
.access-toggle strong,
.access-toggle small {
  display: block;
}

.permission-row strong,
.access-toggle strong {
  color: #494741;
  font-size: 10.5px;
}

.permission-row small,
.access-toggle small {
  margin-top: 3px;
  color: #98948b;
  font-size: 9px;
}

.permission-row input,
.access-toggle input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.permission-row > i,
.access-toggle > i {
  position: relative;
  width: 38px;
  height: 22px;
  border-radius: 99px;
  flex: 0 0 auto;
  background: #d5d1c9;
  transition: background 160ms ease;
}

.permission-row > i::after,
.access-toggle > i::after {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 4px rgba(0,0,0,.18);
  content: "";
  transition: transform 160ms ease;
}

.permission-row:has(input:checked) > i,
.access-toggle:has(input:checked) > i {
  background: var(--gold-dark);
}

.permission-row:has(input:checked) > i::after,
.access-toggle:has(input:checked) > i::after {
  transform: translateX(16px);
}

.access-toggle {
  margin-top: 12px;
  border: 1px solid #e1ddd5;
  border-radius: 4px;
}

.delete-message {
  padding: 20px;
  border: 1px solid #ead8c0;
  border-radius: 4px;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  background: #fbf5eb;
}

.delete-message.permanent {
  border-color: #ebceca;
  background: var(--danger-bg);
}

.delete-message > svg {
  width: 24px;
  height: 24px;
  color: var(--danger);
}

.delete-message strong {
  color: #3e3b36;
  font-size: 12px;
}

.delete-message p {
  margin: 6px 0 0;
  color: #77736c;
  font-size: 10.5px;
  line-height: 1.55;
}

.danger-solid {
  background: #8f3f3f;
}

.danger-solid:hover {
  background: #783333;
}

/* Lixeira */

.trash-notice {
  margin-bottom: 20px;
  padding: 16px 19px;
  border: 1px solid #e4d6c1;
  border-radius: 4px;
  display: flex;
  align-items: center;
  gap: 13px;
  background: #f8f1e6;
}

.trash-notice svg {
  width: 24px;
  height: 24px;
  color: var(--gold-dark);
}

.trash-notice strong,
.trash-notice span {
  display: block;
}

.trash-notice strong { font-size: 11px; }
.trash-notice span { margin-top: 3px; color: #827e76; font-size: 9.5px; }
.trash-card { min-height: 360px; }

.trash-heading {
  margin-bottom: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid #e6e2db;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.trash-list {
  display: grid;
  gap: 8px;
}

.trash-toolbar {
  margin: 18px 0 12px;
  padding-top: 17px;
  border-top: 1px solid #e5e0d8;
}

.trash-item {
  min-height: 76px;
  padding: 13px 15px;
  border: 1px solid #e4e0d9;
  border-radius: 4px;
  display: grid;
  grid-template-columns: 38px minmax(180px, 1fr) 150px auto;
  align-items: center;
  gap: 13px;
  background: #fff;
}

.trash-item-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #756b5c;
  background: #eee8de;
}

.trash-item-icon svg { width: 17px; height: 17px; }
.trash-item-data strong,
.trash-item-data span,
.trash-expiry strong,
.trash-expiry span { display: block; }
.trash-item-data strong { color: #3e3c37; font-size: 11px; }
.trash-item-data span { margin-top: 4px; color: #949087; font-size: 9px; }
.trash-expiry strong { color: var(--warning); font-size: 9.5px; }
.trash-expiry span { margin-top: 3px; color: #aaa69d; font-size: 8.5px; }
.compact-button { min-height: 34px; padding: 0 11px; font-size: 9.5px; }
.compact-button svg { width: 14px; height: 14px; }

.modal .payment-options {
  grid-template-columns: 1fr 1fr;
}

.modal .choice-card {
  min-height: 75px;
  grid-template-columns: 22px 1fr;
}

.modal .choice-icon {
  display: none;
}

.modal-actions {
  margin-top: 28px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: flex-end;
  gap: 9px;
}

.role-options {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.role-card {
  position: relative;
  min-height: 112px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 3px;
  cursor: pointer;
  background: #fff;
}

.role-card:has(input:checked) {
  border-color: var(--gold);
  background: #fbf8f2;
  box-shadow: inset 0 0 0 1px var(--gold);
}

.role-card input {
  position: absolute;
  opacity: 0;
}

.role-card strong,
.role-card small {
  display: block;
}

.role-card strong {
  margin: 8px 0 6px;
  font-family: var(--serif);
  font-size: 16px;
  font-weight: 600;
}

.role-card small {
  color: var(--muted);
  font-size: 10px;
  line-height: 1.5;
}

.role-card .choice-control {
  width: 18px;
  height: 18px;
}

/* Toast */

.toast-region {
  position: fixed;
  z-index: 200;
  right: 22px;
  bottom: 22px;
  display: grid;
  gap: 9px;
}

.toast {
  width: min(350px, calc(100vw - 44px));
  padding: 15px 16px;
  border-left: 3px solid var(--gold);
  border-radius: 3px;
  color: #fff;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  background: #25241f;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.2);
  animation: toast-in 220ms ease both;
}

.toast.error { border-color: #d77970; }
.toast.success { border-color: #65b18f; }

.toast svg {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
}

.toast strong,
.toast span {
  display: block;
}

.toast strong {
  margin-bottom: 3px;
  font-size: 11.5px;
}

.toast span {
  color: rgba(255, 255, 255, 0.68);
  font-size: 10px;
  line-height: 1.45;
}

@keyframes toast-in {
  from { opacity: 0; transform: translateY(8px); }
}

@media (max-width: 1100px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .team-grid,
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .toolbar { align-items: stretch; flex-direction: column; }
  .search-box { width: 100%; }
  .filter-group { justify-content: flex-end; }
  .trash-item { grid-template-columns: 38px minmax(160px, 1fr) auto; }
  .trash-expiry { display: none; }
  .finance-row { grid-template-columns: 38px minmax(180px,1.4fr) minmax(140px,1fr) 115px auto; }
}

@media (max-width: 820px) {
  .public-page { background: linear-gradient(180deg, var(--ink) 0 480px, var(--paper) 480px 100%); }
  .public-header { height: 112px; }
  .brand img { width: 170px; }
  .header-caption { display: none; }
  .intro { min-height: 340px; padding-top: 50px; }
  .intro h1 { font-size: 51px; }
  .form-card { padding: 46px 38px 40px; }
  .form-card::before { left: 38px; }

  .login-view { grid-template-columns: 1fr; }
  .login-brand { min-height: 180px; }
  .login-brand::before { width: 280px; height: 280px; }
  .login-brand::after { display: none; }
  .login-brand img { width: 210px; }
  .login-card { padding: 45px 0 70px; }
  .login-card h1 { font-size: 48px; }

  .dashboard { display: block; }
  .sidebar {
    position: sticky;
    z-index: 40;
    inset: 0 auto auto 0;
    width: 100%;
    height: 70px;
    padding: 0 20px;
    flex-direction: row;
    align-items: center;
  }
  .sidebar-logo { width: 125px; margin: 0 28px 0 0; }
  .sidebar-logo img { width: 125px; }
  .sidebar nav { display: flex; }
  .nav-item { width: auto; height: 40px; padding: 0 12px; }
  .nav-item.active::before { display: none; }
  .sidebar-user { margin: 0 0 0 auto; padding: 0; border: 0; display: flex; }
  .sidebar-user > div:nth-child(2) { display: none; }
  .user-avatar { width: 34px; height: 34px; }
  .admin-main { width: 100%; max-width: 100%; padding: 30px 24px 50px; overflow-x: hidden; }
  .table-wrap { display: none; }
  .student-cards { display: grid; gap: 10px; }
  .finance-row { grid-template-columns: 38px 1fr 120px auto; }
  .finance-service { display: none; }
  .service-client-row { grid-template-columns: minmax(180px, 1.2fr) minmax(155px, 1fr) auto minmax(64px, auto); }
  .service-client-row > div:nth-child(3) { display: none; }
}

@media (max-width: 620px) {
  .public-page { background: linear-gradient(180deg, var(--ink) 0 500px, var(--paper) 500px 100%); }
  .public-header,
  .public-main,
  .public-footer { width: min(100% - 32px, 1180px); }
  .public-header { height: 96px; justify-content: center; }
  .brand img { width: 160px; }
  .intro { min-height: 404px; padding: 48px 3px 40px; }
  .intro h1 { font-size: 43px; }
  .intro-text { margin-top: 21px; font-size: 14px; }
  .trust-row { flex-direction: column; gap: 9px; }
  .form-card { padding: 38px 22px 30px; }
  .form-card::before { left: 22px; }
  .form-heading { margin-bottom: 35px; }
  .step-number { width: 45px; height: 45px; }
  .form-heading h2 { font-size: 26px; }
  .field-grid,
  .payment-options { grid-template-columns: 1fr; gap: 0; }
  .payment-options { gap: 10px; }
  .choice-card { min-height: 84px; }
  .form-footer { align-items: stretch; flex-direction: column-reverse; }
  .form-footer .primary-button { width: 100%; }
  .form-footer p { justify-content: center; text-align: center; }
  .public-footer { align-items: center; flex-direction: column; gap: 8px; text-align: center; }
  .success-card { margin-top: -20px; padding: 55px 24px; }
  .success-card h2 { font-size: 35px; }

  .login-brand { min-height: 140px; }
  .login-brand img { width: 175px; }
  .login-card { width: calc(100% - 40px); padding-top: 35px; }
  .login-card h1 { font-size: 43px; }

  .sidebar { width: 100%; max-width: 100%; height: 64px; padding: 0 8px; overflow: hidden; }
  .sidebar-logo { display: none; }
  .sidebar nav { min-width: 0; flex: 1; justify-content: space-evenly; gap: 1px; }
  .nav-item { min-width: 0; max-width: 48px; padding: 0; flex: 1; justify-content: center; }
  .nav-item span { display: none; }
  .sidebar-user { width: 38px; margin: 0 0 0 2px; padding: 0; grid-template-columns: 38px; flex: 0 0 38px; }
  .sidebar-user > div:nth-child(2) { display: none; }
  .user-avatar { display: none; }
  .admin-main { width: 100%; max-width: 100%; padding: 24px 12px 45px; }
  .admin-topbar { align-items: stretch; flex-direction: column; }
  .admin-topbar h1 { font-size: 30px; }
  .topbar-actions { width: 100%; display: flex; }
  .topbar-actions button { width: 100%; min-width: 0; flex: 1; padding: 0 10px; }
  .stats-grid { grid-template-columns: 1fr 1fr; gap: 9px; }
  .stat-card { min-height: 116px; padding: 16px; gap: 11px; }
  .stat-icon { width: 33px; height: 33px; }
  .stat-card div > span { display: none; }
  .content-card { padding: 14px; }
  .module-toolbar-card { padding: 14px 14px 0; }
  .filter-group,
  .finance-filters { width: 100%; display: grid; grid-template-columns: 1fr; }
  .filter-group > *,
  .finance-filters > * { width: 100%; min-width: 0; }
  .custom-select > button { width: 100%; min-width: 0; }
  .select-menu { right: auto; left: 0; width: 100%; max-width: calc(100vw - 52px) !important; }
  .search-box kbd { display: none; }
  .results-meta { align-items: flex-start; flex-direction: column; gap: 4px; }
  .table-wrap { display: none; }
  .student-cards { display: grid; gap: 9px; }
  .team-intro,
  .module-intro { padding: 21px; align-items: flex-start; flex-direction: column; }
  .permission-summary { max-width: none; }
  .team-grid { grid-template-columns: 1fr; }
  .services-grid,
  .finance-stats { grid-template-columns: 1fr; }
  .service-card { min-height: 290px; }
  .service-detail-summary { align-items: flex-start; flex-direction: column; }
  .service-detail-actions { width: 100%; justify-content: flex-start; }
  .service-public-link { grid-template-columns: 1fr 1fr; }
  .service-public-link > div { grid-column: 1 / -1; }
  .service-public-link .compact-button { width: 100%; }
  .service-client-heading { align-items: flex-start; flex-direction: column; }
  .service-client-row { grid-template-columns: minmax(0, 1fr) auto; gap: 8px; }
  .service-client-row > div:nth-child(2),
  .service-client-row > div:nth-child(3) { display: none; }
  .service-client-row .status-button { justify-self: end; }
  .service-client-actions { grid-column: 1 / -1; justify-content: flex-end; }
  .payment-client-summary { grid-template-columns: 1fr 1fr; }
  .payment-client-summary .person-cell { grid-column: 1 / -1; }
  .client-history-summary { grid-template-columns: 1fr 1fr; gap: 14px; }
  .client-history-summary .person-cell { grid-column: 1 / -1; }
  .client-history-row { grid-template-columns: 34px minmax(0, 1fr); }
  .history-value { grid-column: 2; display: flex; align-items: center; justify-content: space-between; gap: 8px; text-align: left; }
  .finance-stats { gap: 9px; }
  .finance-stat { min-height: 100px; padding: 18px; }
  .segmented-filter { width: 100%; }
  .segmented-filter button { min-width: 0; flex: 1; }
  .finance-row { grid-template-columns: 34px minmax(0,1fr) auto; gap: 10px; }
  .finance-service { display: none; }
  .finance-value { grid-column: 2; text-align: left; }
  .finance-row .row-actions { grid-column: 3; grid-row: 1 / 3; }
  .modal-backdrop { padding: 0; align-items: end; }
  .modal { width: 100%; max-height: 94vh; border-radius: 8px 8px 0 0; }
  .modal > header { padding: 22px 20px 17px; }
  .modal form { padding: 22px 20px 25px; }
  .modal .field-grid,
  .role-options { grid-template-columns: 1fr; gap: 0; }
  .three-options { grid-template-columns: 1fr !important; gap: 9px !important; }
  .role-options { gap: 10px; }
  .permission-row { min-height: 66px; }
  .trash-notice { align-items: flex-start; }
  .trash-heading { align-items: flex-start; }
  .trash-heading .secondary-button span { display: none; }
  .trash-heading .secondary-button { min-width: 44px; padding: 0; }
  .trash-item { grid-template-columns: 36px 1fr; padding: 14px; }
  .trash-item .row-actions { grid-column: 1 / -1; justify-content: stretch; }
  .trash-item .compact-button { flex: 1; }
  .modal-actions { align-items: stretch; flex-direction: column-reverse; }
  .modal-actions button { width: 100%; }
  .builder-heading { align-items: stretch; flex-direction: column; }
  .builder-heading button { width: 100%; }
  .builder-row { grid-template-columns: 25px 1fr; padding: 12px; }
  .builder-row > .danger-button { grid-column: 2; justify-self: end; }
  .service-metrics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .service-actions { display: grid; grid-template-columns: 1fr 1fr; }
  .service-actions .secondary-button { min-width: 0; padding: 0 8px; }
  .toast-region { right: 14px; bottom: 14px; }
}

/* Agenda de eventos, escalas e conta financeira da equipe */
.next-commitment { background: linear-gradient(120deg, #11110f 0%, #242018 100%); color: #fff; border-radius: 4px; padding: 24px 28px; margin-bottom: 18px; display: flex; align-items: center; justify-content: space-between; gap: 24px; box-shadow: 0 14px 35px rgba(17,17,15,.14); }
.next-commitment[hidden] { display: none; }
.next-commitment-copy { min-width: 0; }
.next-commitment-copy p { color: #c9a66b; text-transform: uppercase; letter-spacing: .14em; font-size: 10px; font-weight: 800; margin: 0 0 7px; }
.next-commitment-copy h2 { font-size: clamp(21px, 2.2vw, 31px); margin: 0 0 6px; line-height: 1.12; }
.next-commitment-copy span { color: rgba(255,255,255,.64); font-size: 12px; }
.countdown { display: flex; align-items: flex-start; flex: 0 0 auto; }
.countdown div { min-width: 58px; text-align: center; }
.countdown strong { display: block; font-size: clamp(25px, 3vw, 38px); font-weight: 500; letter-spacing: -.04em; line-height: 1; font-variant-numeric: tabular-nums; }
.countdown span { display: block; margin-top: 7px; color: rgba(255,255,255,.48); font-size: 9px; text-transform: uppercase; letter-spacing: .12em; }
.countdown i { color: #c9a66b; font-size: 25px; line-height: .8; font-style: normal; padding: 0 2px; }
.event-stats-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-bottom: 18px; }
.event-stats-grid article { min-width: 0; min-height: 112px; padding: 20px; background: #fff; border: 1px solid var(--line); border-radius: 4px; display: flex; flex-direction: column; justify-content: center; }
.event-stats-grid small { color: var(--muted); font-size: 9px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; }
.event-stats-grid strong { display: block; margin: 6px 0 3px; font-size: 25px; font-weight: 500; line-height: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.event-stats-grid span { color: var(--muted); font-size: 10px; }
.events-tabs { display: inline-flex; margin-bottom: 12px; padding: 4px; border: 1px solid var(--line); background: #fff; border-radius: 4px; }
.events-tabs button { border: 0; background: transparent; padding: 10px 17px; color: var(--muted); font: inherit; font-size: 11px; font-weight: 700; cursor: pointer; border-radius: 3px; }
.events-tabs button.active { background: #11110f; color: #fff; }
.events-panel { padding: 22px; }
.events-panel-heading { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-bottom: 18px; }
.events-panel-heading h2 { margin: 0 0 4px; font-size: 20px; }
.events-panel-heading p { margin: 0; color: var(--muted); font-size: 11px; }
.event-native-filters { display: flex; gap: 8px; }
.event-native-filters select, .temporary-member-grid select { min-height: 44px; border: 1px solid var(--line); background: #fff; padding: 0 34px 0 12px; color: var(--ink); font: inherit; font-size: 11px; border-radius: 3px; }
.events-list { display: grid; gap: 9px; }
.event-card { width: 100%; min-width: 0; display: grid; grid-template-columns: 62px minmax(0, 1fr) 120px 32px; align-items: center; gap: 15px; padding: 14px; border: 1px solid var(--line); background: #fff; border-radius: 4px; cursor: pointer; transition: border-color .18s, transform .18s, box-shadow .18s; }
.event-card:hover { border-color: #c9a66b; transform: translateY(-1px); box-shadow: 0 8px 22px rgba(17,17,15,.06); }
.event-card.archived { opacity: .58; }
.event-date { width: 54px; height: 54px; display: grid; place-content: center; text-align: center; background: #f2eadc; color: #8b6731; border-radius: 3px; }
.event-date strong { font-size: 20px; line-height: 1; }
.event-date span { margin-top: 3px; font-size: 9px; font-weight: 800; }
.event-card-main { min-width: 0; }
.event-card-title { display: flex; align-items: center; gap: 9px; min-width: 0; }
.event-card-title h3 { min-width: 0; margin: 0; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.event-card-main p { margin: 5px 0; color: var(--muted); font-size: 10px; }
.event-card-main > span { display: flex; align-items: center; gap: 5px; color: var(--muted); font-size: 10px; }
.event-card-main svg { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 1.7; }
.event-status, .event-own-status, .mini-state, .ledger-status, .temporary-tag { display: inline-flex; align-items: center; width: fit-content; border-radius: 999px; padding: 4px 7px; font-size: 8px; font-style: normal; font-weight: 800; white-space: nowrap; text-transform: uppercase; letter-spacing: .04em; background: #eee9df; color: #765f38; }
.event-status.confirmed, .event-own-status.available, .mini-state.available, .mini-state.present, .ledger-status.payable, .temporary-response-actions .active-success { background: #e1f2ea; color: #176945; }
.event-status.completed, .ledger-status.paid { background: #e7edf7; color: #355b91; }
.event-status.cancelled, .event-own-status.unavailable, .mini-state.unavailable, .mini-state.absent, .ledger-status.cancelled, .temporary-response-actions .active-danger { background: #f8e4e2; color: #a1403b; }
.event-time { text-align: right; }
.event-time small { color: var(--muted); font-size: 9px; }
.event-time > strong { display: block; margin: 2px 0 5px; font-size: 15px; }
.event-scale-count { color: var(--muted); font-size: 9px; }
.event-open-arrow { width: 30px; height: 30px; display: grid; place-items: center; border: 0; background: transparent; color: var(--muted); cursor: pointer; }
.event-open-arrow svg { width: 17px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.team-ledger-stats { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 10px; margin-bottom: 18px; }
.team-ledger-stats.four { grid-template-columns: repeat(4, minmax(0,1fr)); }
.team-ledger-stats article { min-width: 0; padding: 16px 18px; background: #f7f4ee; border: 1px solid var(--line); }
.team-ledger-stats small { display: block; color: var(--muted); font-size: 9px; text-transform: uppercase; font-weight: 800; }
.team-ledger-stats strong { display: block; margin-top: 7px; font-size: 20px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ledger-list { display: grid; }
.ledger-row { min-width: 0; display: grid; grid-template-columns: 38px minmax(130px, .8fr) minmax(170px, 1.2fr) 105px 115px auto; align-items: center; gap: 12px; padding: 14px 8px; border-bottom: 1px solid var(--line); }
.ledger-avatar, .team-avatar { width: 34px; height: 34px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 50%; background: #efe7d7; color: #8b6731; font-size: 10px; font-weight: 700; }
.ledger-person, .ledger-event { min-width: 0; }
.ledger-person strong, .ledger-event strong { display: block; font-size: 11px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ledger-person span, .ledger-event span { display: block; color: var(--muted); margin-top: 3px; font-size: 9px; }
.ledger-amount { font-size: 12px; color: #176945; white-space: nowrap; }
.account-bank-hero { min-height: 174px; margin-bottom: 20px; padding: 26px 30px; border-radius: 8px; display: flex; align-items: center; justify-content: space-between; gap: 24px; color: #fff; background: linear-gradient(135deg, #10100e 0%, #272219 72%, #7a5b2f 160%); box-shadow: 0 18px 40px rgba(17,17,15,.14); }
.account-bank-hero small { display: block; margin-bottom: 22px; color: #d2ac70; font-size: 9px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.account-bank-hero span { display: block; color: rgba(255,255,255,.62); font-size: 10px; }
.account-bank-hero strong { display: block; margin: 5px 0 7px; font-size: clamp(31px, 4vw, 48px); line-height: 1; font-weight: 500; letter-spacing: -.035em; white-space: nowrap; }
.account-bank-hero p { margin: 0; color: rgba(255,255,255,.55); font-size: 10px; }
.account-bank-hero > svg { width: 74px; height: 74px; flex: 0 0 auto; color: rgba(210,172,112,.56); fill: none; stroke: currentColor; stroke-width: 1.15; }
.event-modal #event-modal-body { padding: 24px 28px 28px; overflow: auto; }
.event-modal #event-form { padding: 0; }
.event-detail-hero { background: #f7f4ee; border: 1px solid var(--line); padding: 20px; }
.event-detail-hero > p { margin: 8px 0 0; color: var(--muted); }
.event-detail-grid { display: grid; grid-template-columns: repeat(5, minmax(0,1fr)); gap: 12px; margin-top: 18px; }
.event-detail-grid small { display: block; color: var(--muted); font-size: 8px; text-transform: uppercase; font-weight: 800; }
.event-detail-grid strong { display: block; margin-top: 5px; font-size: 11px; }
.event-address, .event-notes { font-size: 11px; }
.event-quick-status { margin-top: 18px; padding: 16px 18px; border: 1px solid #dcc9aa; display: flex; align-items: center; justify-content: space-between; gap: 18px; background: #fffaf2; }
.event-quick-status small, .event-quick-status strong { display: block; }
.event-quick-status small { color: #9a793f; font-size: 8px; font-weight: 800; letter-spacing: .08em; }
.event-quick-status strong { margin-top: 4px; font-size: 11px; }
.event-quick-status > div:last-child { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px; }
.event-quick-status button { min-height: 35px; padding: 0 11px; border: 1px solid #ded7cb; border-radius: 3px; color: #5e5a52; background: #fff; font: inherit; font-size: 9px; font-weight: 700; cursor: pointer; }
.event-quick-status button.active { border-color: #8b6731; color: #765729; background: #efe4d2; }
.event-quick-status button.danger.active { border-color: #b75d57; color: #9b3d38; background: #f8e4e2; }
.event-response-card, .event-scale-detail, .event-scale-editor { margin-top: 18px; border: 1px solid var(--line); padding: 20px; }
.event-response-heading, .event-section-title { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.event-response-heading small, .event-section-title small { color: #9a793f; text-transform: uppercase; font-size: 8px; font-weight: 800; letter-spacing: .08em; }
.event-response-heading h3, .event-section-title h3 { margin: 4px 0 0; font-size: 16px; }
.event-section-title p { margin: 5px 0 0; color: var(--muted); font-size: 10px; }
.response-step { display: grid; grid-template-columns: 30px 1fr; gap: 12px; padding-top: 18px; margin-top: 18px; border-top: 1px solid var(--line); }
.response-step > span { width: 28px; height: 28px; display: grid; place-items: center; border-radius: 50%; background: #11110f; color: #fff; font-size: 10px; }
.response-step small { display: block; margin-top: 4px; color: var(--muted); font-size: 10px; }
.response-step.disabled { opacity: .55; }
.response-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.response-button { min-height: 38px; border: 1px solid var(--line); background: #fff; color: var(--ink); padding: 0 13px; font: inherit; font-size: 10px; font-weight: 700; cursor: pointer; }
.response-button.selected.yes { border-color: #499875; background: #e1f2ea; color: #176945; }
.response-button.selected.no { border-color: #c86d67; background: #f8e4e2; color: #a1403b; }
.event-member-row { display: grid; grid-template-columns: 36px minmax(120px,1fr) 100px 100px 105px; align-items: center; gap: 10px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.event-member-row > div:nth-child(2) { min-width: 0; }
.event-member-row > div:nth-child(2) > strong { display: flex; align-items: center; gap: 6px; font-size: 11px; }
.event-member-row small { display: block; color: var(--muted); font-size: 9px; margin-top: 3px; }
.member-commission { text-align: right; font-size: 11px; color: #176945; white-space: nowrap; }
.temporary-tag { padding: 3px 6px; }
.temporary-response-actions { grid-column: 2 / -1; padding: 10px; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; background: #f8f6f1; }
.temporary-response-actions > div { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; }
.temporary-response-actions small { width: 100%; margin: 0 0 2px; color: #8c877e; font-size: 8px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.temporary-response-actions .response-button { min-height: 32px; padding: 0 9px; font-size: 8.5px; }
.event-scale-heading-actions { display: flex; align-items: center; gap: 10px; }
#event-scale-count { color: var(--muted); font-size: 10px; white-space: nowrap; }
.event-scale-picker-list { display: grid; gap: 10px; margin-top: 16px; }
.event-scale-picker { border: 1px solid var(--line); padding: 14px; background: #fff; }
.event-scale-picker.selected { border-color: #c8ad7d; background: #fffcf7; }
.scale-member-check { display: flex; align-items: center; gap: 10px; cursor: pointer; }
.scale-member-check input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.scale-member-check::before { width: 19px; height: 19px; border: 1px solid #cfc8bc; border-radius: 3px; display: grid; place-items: center; flex: 0 0 auto; color: #fff; background: #fff; font-size: 12px; content: ""; transition: border-color .16s ease, background .16s ease; }
.scale-member-check:has(input:checked)::before { border-color: var(--gold-dark); background: var(--gold-dark); content: "✓"; }
.scale-member-check > span:last-child { min-width: 0; }
.scale-member-check strong, .scale-member-check small { display: block; }
.scale-member-check strong { font-size: 11px; }
.scale-member-check small { color: var(--muted); font-size: 9px; margin-top: 3px; }
.scale-member-fields { display: grid; grid-template-columns: 1fr 140px; gap: 10px; margin: 12px 0 0 25px; }
.scale-member-fields label, .temporary-member-grid label { color: var(--muted); font-size: 9px; font-weight: 700; }
.scale-member-fields input, .temporary-member-grid input { width: 100%; min-height: 40px; margin-top: 5px; border: 1px solid var(--line); padding: 0 11px; color: var(--ink); background: #fff; font: inherit; font-size: 11px; }
.temporary-picker-heading { display: flex; align-items: center; gap: 10px; }
.temporary-picker-heading > div { flex: 1; min-width: 0; }
.temporary-picker-heading strong, .temporary-picker-heading small { display: block; }
.temporary-picker-heading strong { font-size: 11px; }
.temporary-picker-heading small { color: var(--muted); font-size: 9px; margin-top: 3px; }
.temporary-member-grid { display: grid; grid-template-columns: 1.3fr 1fr .7fr 1fr 1fr; gap: 10px; margin-top: 13px; }
.temporary-member-grid select { width: 100%; min-height: 40px; margin-top: 5px; padding-left: 8px; }
.event-modal-actions { display: grid !important; grid-template-columns: auto 1fr auto auto; }
.event-empty-inline { padding: 18px; color: var(--muted); background: #f7f4ee; text-align: center; font-size: 10px; }
.event-form-badge { display: inline-flex; padding: 4px 7px; border-radius: 999px; color: #176945; background: #e1f2ea; font-size: 8px; font-weight: 800; text-transform: uppercase; white-space: nowrap; }
.event-public-form-editor { margin-top: 18px; padding: 18px; border: 1px solid var(--line); background: #faf8f3; }
.event-public-form-editor [data-event-form-options] { margin-top: 16px; }
.embedded-services { margin-top: 22px; padding-top: 22px; border-top: 1px solid var(--line); }
.packages-panel { margin-top: 22px; padding: 22px; border: 1px solid var(--line); border-radius: 4px; background: #fff; }
.package-heading-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
.packages-grid { display: grid; gap: 16px; }
.package-campaign { border: 1px solid var(--line); border-radius: 5px; overflow: hidden; background: #f8f5ef; }
.package-campaign.inactive { opacity: .62; }
.package-campaign > header { min-height: 82px; padding: 15px 18px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.package-campaign > header small { color: #8b6731; font-size: 8px; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; }
.package-campaign > header h3 { margin: 5px 0 4px; font-size: 18px; }
.package-campaign > header p { margin: 0; color: var(--muted); font-size: 9px; }
.package-campaign-actions { display: flex; align-items: center; gap: 7px; }
.package-campaign-grid { padding: 0 14px 14px; display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 12px; }
.package-campaign-empty { min-height: 90px; grid-column: 1 / -1; border: 1px dashed #d6cfc3; border-radius: 4px; display: grid; place-items: center; color: var(--muted); background: rgba(255,255,255,.6); font-size: 9px; }
.package-card { min-width: 0; padding: 20px; border: 1px solid var(--line); background: #fff; }
.package-card.inactive { opacity: .58; }
.package-card-head, .package-card-footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.package-card-head > span { color: #8b6731; font-size: 8px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; }
.package-card-head > strong { color: #176945; font-size: 16px; white-space: nowrap; }
.package-card h3 { margin: 18px 0 7px; font-size: 17px; }
.package-card > p { min-height: 34px; margin: 0 0 13px; color: var(--muted); font-size: 10px; line-height: 1.55; }
.package-card ul { min-height: 82px; margin: 0; padding: 0 0 0 17px; color: #5f5b52; font-size: 10px; line-height: 1.7; }
.package-card-footer { margin-top: 16px; padding-top: 13px; border-top: 1px solid var(--line); }
.package-card-footer > span { color: var(--muted); font-size: 9px; }
.package-card-footer > span strong { color: var(--ink); }
.package-contract-badge { width: max-content; margin-top: 10px; border-radius: 999px; display: block; padding: 5px 8px; color: #527c6b; background: #e6f0eb; font-size: 7px; font-weight: 800; text-transform: uppercase; }
.package-option-picker { display: flex; flex-wrap: wrap; gap: 7px; }
.package-option-picker > button { min-height: 37px; border: 1px solid #d8d1c6; border-radius: 999px; padding: 0 13px; color: #69645b; background: #fff; font: inherit; font-size: 9px; font-weight: 700; }
.package-option-picker > button.selected { border-color: #ad8b56; color: #5f4720; background: #f2e8d7; box-shadow: inset 0 0 0 1px #ad8b56; }
.package-option-picker > span { color: var(--muted); font-size: 9px; }
.package-contract-settings { margin: 4px 0 16px; border: 1px solid #dfd7ca; border-radius: 4px; display: grid; gap: 15px; padding: 16px; background: #faf8f4; }
.calendar-controls { display: flex; align-items: center; gap: 10px; }
.calendar-subscription-card { margin-bottom: 22px; padding: 24px; border: 1px solid #d8c7a8; display: grid; grid-template-columns: minmax(250px, .8fr) minmax(360px, 1.2fr); align-items: center; gap: 28px; background: linear-gradient(135deg, #fffdf9, #f5ecdd); }
.calendar-subscription-card small { color: #8b6731; font-size: 8px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.calendar-subscription-card h2 { margin: 5px 0 7px; font-size: 20px; }
.calendar-subscription-card p { margin: 0; color: var(--muted); font-size: 10px; line-height: 1.6; }
.calendar-subscription-actions { min-width: 0; }
.calendar-subscription-actions > div:last-child { margin-top: 9px; display: flex; justify-content: flex-end; gap: 8px; }
.calendar-url { min-width: 0; display: grid; grid-template-columns: minmax(0,1fr) auto; }
.calendar-url input { min-width: 0; height: 44px; border: 1px solid var(--line); padding: 0 12px; color: #5f5b52; background: #fff; font: inherit; font-size: 9px; }
.calendar-url button { min-width: 70px; border: 1px solid #11110f; color: #fff; background: #11110f; font: inherit; font-size: 9px; font-weight: 750; cursor: pointer; }
.calendar-controls strong { min-width: 145px; text-align: center; text-transform: capitalize; font-size: 12px; }
.calendar-weekdays, .events-calendar { display: grid; grid-template-columns: repeat(7, minmax(0,1fr)); }
.calendar-weekdays span { padding: 8px; color: var(--muted); text-align: center; font-size: 8px; font-weight: 800; text-transform: uppercase; }
.calendar-day { min-width: 0; min-height: 112px; padding: 8px; border: solid var(--line); border-width: 1px 0 0 1px; background: #fff; }
.calendar-day:nth-child(7n) { border-right-width: 1px; }
.calendar-day:nth-last-child(-n+7) { border-bottom-width: 1px; }
.calendar-day.outside { background: #f8f6f1; opacity: .5; }
.calendar-day.today > strong { width: 24px; height: 24px; display: grid; place-items: center; border-radius: 50%; color: #fff; background: #8b6731; }
.calendar-day > strong { display: block; margin-bottom: 6px; font-size: 10px; }
.calendar-day > div { display: grid; gap: 4px; }
.calendar-day button { min-width: 0; padding: 5px 6px; border: 0; border-radius: 2px; color: #5f4720; background: #efe4d2; overflow: hidden; text-align: left; text-overflow: ellipsis; white-space: nowrap; font: inherit; font-size: 8px; cursor: pointer; }
.calendar-day > div > span { color: var(--muted); font-size: 8px; }
.finance-history-card { margin-bottom: 20px; }
.finance-period-bar { margin-bottom: 14px; padding: 16px 18px; border: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 18px; background: #fff; }
.finance-period-bar strong, .finance-period-bar span { display: block; }
.finance-period-bar strong { margin-bottom: 3px; font-size: 11px; }
.finance-period-bar span { color: var(--muted); font-size: 9px; }
.finance-period-controls { display: grid; grid-template-columns: minmax(160px, 1fr) minmax(110px, .65fr); gap: 8px; }
.finance-period-controls .ui-select { min-width: 0; }
.relation-picker { position: relative; width: 100%; }
.relation-picker-trigger { width: 100%; min-height: 50px; padding: 0 4px 0 0; border: 0; border-bottom: 1px solid #cfc9be; display: flex; align-items: center; justify-content: space-between; gap: 12px; color: var(--ink); background: transparent; font: inherit; cursor: pointer; }
.relation-picker-trigger > span { min-width: 0; text-align: left; }
.relation-picker-trigger small, .relation-picker-trigger strong { display: block; }
.relation-picker-trigger small { margin-bottom: 5px; color: var(--muted); font-size: 9px; }
.relation-picker-trigger strong { overflow: hidden; font-size: 13px; font-weight: 500; text-overflow: ellipsis; white-space: nowrap; }
.relation-picker-trigger svg { width: 15px; height: 15px; flex: 0 0 auto; fill: none; stroke: currentColor; stroke-width: 1.7; transition: transform .16s ease; }
.relation-picker.open .relation-picker-trigger { border-bottom-color: var(--gold); }
.relation-picker.open .relation-picker-trigger svg { transform: rotate(180deg); }
.relation-picker-menu { position: absolute; z-index: 140; top: calc(100% + 7px); left: 0; width: min(460px, calc(100vw - 48px)); max-height: 360px; padding: 9px; border: 1px solid var(--line); border-radius: 5px; display: none; overflow: hidden; background: #fff; box-shadow: 0 20px 45px rgba(28,27,23,.18); }
.relation-picker.open .relation-picker-menu { display: block; }
.relation-picker-search { height: 42px; padding: 0 11px; border: 1px solid #ded9d0; display: flex; align-items: center; gap: 8px; background: #faf8f4; }
.relation-picker-search svg { width: 15px; height: 15px; flex: 0 0 auto; fill: none; stroke: #8e8a82; stroke-width: 1.7; }
.relation-picker-search input { width: 100%; height: 100%; padding: 0; border: 0; outline: 0; color: var(--ink); background: transparent; font: inherit; font-size: 10.5px; }
.relation-picker-options { max-height: 285px; margin-top: 7px; display: grid; overflow-y: auto; }
.relation-picker-option { min-height: 51px; padding: 8px 10px; border: 0; border-radius: 3px; display: flex; align-items: center; justify-content: space-between; gap: 12px; color: #504d47; background: transparent; font: inherit; text-align: left; cursor: pointer; }
.relation-picker-option:hover, .relation-picker-option.selected { background: #f2eee7; }
.relation-picker-option span { min-width: 0; }
.relation-picker-option strong, .relation-picker-option small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.relation-picker-option strong { font-size: 10.5px; }
.relation-picker-option small { margin-top: 4px; color: var(--muted); font-size: 8.5px; }
.relation-picker-option i { visibility: hidden; color: var(--gold-dark); font-size: 12px; font-style: normal; }
.relation-picker-option.selected i { visibility: visible; }
.relation-picker-empty { margin: 16px 8px 8px; color: var(--muted); text-align: center; font-size: 9.5px; }
.finance-reference { display: block; margin-top: 4px; color: #8b6731; font-size: 8px; font-weight: 700; }
.installment-help { margin: -8px 0 16px; color: var(--muted); font-size: 9px; line-height: 1.5; }
.finance-history-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.finance-history-heading h2 { margin: 0 0 4px; font-size: 18px; }
.finance-history-heading p { margin: 0; color: var(--muted); font-size: 10px; }
.finance-history-heading select, #finance-status-filter { min-height: 44px; padding: 0 32px 0 12px; border: 1px solid var(--line); background: #fff; color: var(--ink); font: inherit; font-size: 10px; }
.finance-chart-tools { display: flex; align-items: center; gap: 18px; }
.finance-chart-legend { display: flex; align-items: center; gap: 11px; color: var(--muted); font-size: 8px; font-weight: 700; }
.finance-chart-legend span { display: flex; align-items: center; gap: 5px; }
.finance-chart-legend i { width: 8px; height: 8px; border-radius: 2px; display: block; }
.finance-chart-legend .income { background: #83b5a1; }
.finance-chart-legend .expense { background: #d59a94; }
.finance-monthly-chart { min-height: 235px; display: grid; grid-template-columns: repeat(12, minmax(0,1fr)); align-items: end; gap: 8px; }
.finance-month { min-width: 0; display: grid; gap: 5px; text-align: center; }
.finance-month-bars { height: 145px; padding: 8px 4px 0; border-radius: 3px; background: #f8f5ef; }
.finance-month-bars svg { width: 100%; height: 100%; overflow: visible; }
.finance-month-bars rect { stroke: none; stroke-width: 0; }
.finance-month-bars rect.income { fill: #83b5a1; }
.finance-month-bars rect.expense { fill: #d59a94; }
.finance-month strong { font-size: 8px; }
.finance-month > span { overflow: hidden; font-size: 7px; font-weight: 650; text-overflow: ellipsis; white-space: nowrap; }
.finance-month > span.income { color: #527c6b; }
.finance-month > span.expense { color: #9a6661; }
.finance-amount-block { min-width: max-content; text-align: right; }
.finance-payment-status { display: block; margin-top: 4px; font-size: 8px; }
.finance-payment-status.paid { color: #176945; }
.finance-payment-status.pending { color: #a66d14; }
.finance-pagination { margin-top: 18px; display: flex; align-items: center; justify-content: center; gap: 14px; }
.finance-pagination[hidden] { display: none; }
.finance-pagination span { color: var(--muted); font-size: 9px; }

/* Valores monetários nunca devem virar somente “R$...” */
.stat-card > div { width: auto; overflow: visible; }
.stat-card strong,
.client-revenue,
.client-history-summary > div:last-child strong,
.history-value strong,
.finance-stat strong,
.finance-value,
.service-client-price { width: auto !important; max-width: none !important; overflow: visible !important; text-overflow: clip !important; white-space: nowrap !important; }

@media (max-width: 980px) {
  .packages-grid { grid-template-columns: 1fr; }
  .package-campaign-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .finance-stats { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .event-stats-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .event-card { grid-template-columns: 56px minmax(0,1fr) 95px 28px; }
  .ledger-row { grid-template-columns: 34px minmax(0,1fr) 105px auto; }
  .ledger-event { grid-column: 2; }
  .ledger-amount { grid-column: 3; grid-row: 1; }
  .ledger-status { grid-column: 3; grid-row: 2; }
  .ledger-row > button { grid-column: 4; grid-row: 1 / 3; }
  .event-detail-grid { grid-template-columns: repeat(3, minmax(0,1fr)); }
  .event-member-row { grid-template-columns: 36px minmax(0,1fr) auto auto; }
  .team-ledger-stats.four { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .calendar-subscription-card { grid-template-columns: 1fr; }
  .event-member-row .member-commission { grid-column: 3; }
  .temporary-response-actions { grid-column: 2 / -1; grid-row: auto; }
  .temporary-member-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
}

@media (max-width: 620px) {
  .packages-grid { grid-template-columns: 1fr; }
  .package-campaign > header { align-items: stretch; flex-direction: column; }
  .package-campaign-actions, .package-heading-actions { width: 100%; }
  .package-campaign-actions .secondary-button, .package-heading-actions .primary-button, .package-heading-actions .secondary-button { flex: 1; justify-content: center; }
  .package-campaign-grid { grid-template-columns: 1fr; }
  .packages-panel { padding: 14px; }
  .calendar-weekdays { display: none; }
  .events-calendar { grid-template-columns: 1fr; gap: 7px; }
  .calendar-day { min-height: 0; padding: 10px; border: 1px solid var(--line) !important; }
  .calendar-day.outside:not(:has(button)) { display: none; }
  .calendar-day > div { gap: 6px; }
  .calendar-day button { padding: 9px; font-size: 9px; }
  .calendar-controls { width: 100%; justify-content: space-between; }
  .calendar-subscription-card { padding: 17px; gap: 18px; }
  .calendar-subscription-actions > div:last-child { align-items: stretch; flex-direction: column; }
  .calendar-subscription-actions .primary-button,
  .calendar-subscription-actions .secondary-button { width: 100%; justify-content: center; }
  .account-bank-hero { min-height: 154px; padding: 21px; }
  .account-bank-hero > svg { width: 48px; height: 48px; }
  .team-ledger-stats.four { grid-template-columns: 1fr 1fr; }
  .finance-period-bar { align-items: stretch; flex-direction: column; }
  .finance-period-controls { width: 100%; grid-template-columns: 1fr 1fr; }
  .finance-period-controls .ui-select { width: 100%; min-width: 0; }
  .relation-picker-menu { width: 100%; max-width: calc(100vw - 40px); }
  .finance-history-heading { align-items: stretch; flex-direction: column; }
  .finance-monthly-chart { height: auto; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 10px; }
  .finance-history-heading { align-items: stretch; flex-direction: column; }
  .finance-chart-tools { justify-content: space-between; }
  .finance-month-bars { height: 105px; }
  .finance-stats { grid-template-columns: 1fr 1fr; }
  .next-commitment { align-items: stretch; flex-direction: column; padding: 20px; }
  .countdown { width: 100%; justify-content: space-between; }
  .countdown div { min-width: 48px; }
  .event-stats-grid { gap: 8px; }
  .event-stats-grid article { min-height: 96px; padding: 14px; }
  .event-stats-grid strong { font-size: 20px; }
  .events-tabs { width: 100%; }
  .events-tabs button { flex: 1; padding-inline: 8px; }
  .events-panel { padding: 14px; }
  .events-panel-heading { align-items: stretch; flex-direction: column; }
  .events-panel-heading .primary-button { width: 100%; }
  .event-native-filters { width: 100%; flex-direction: column; }
  .event-native-filters .ui-select { width: 100%; }
  .event-card { grid-template-columns: 48px minmax(0,1fr) 26px; gap: 10px; }
  .event-date { width: 46px; height: 46px; }
  .event-time { grid-column: 2; text-align: left; display: flex; align-items: center; gap: 8px; }
  .event-time > strong { margin: 0; }
  .event-open-arrow { grid-column: 3; grid-row: 1 / 3; }
  .event-card-title { align-items: flex-start; flex-direction: column; gap: 5px; }
  .team-ledger-stats { grid-template-columns: 1fr; }
  .ledger-row { grid-template-columns: 34px minmax(0,1fr) auto; padding: 13px 0; }
  .ledger-event { grid-column: 2; }
  .ledger-amount { grid-column: 3; grid-row: 1; }
  .ledger-status { grid-column: 3; grid-row: 2; }
  .ledger-row > button { grid-column: 1 / -1; grid-row: auto; width: 100%; }
  .event-modal #event-modal-body { padding: 18px 14px 24px; }
  .event-detail-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .event-quick-status { align-items: stretch; flex-direction: column; }
  .event-quick-status > div:last-child { display: grid; grid-template-columns: 1fr 1fr; }
  .event-quick-status button { width: 100%; }
  .event-response-card, .event-scale-detail, .event-scale-editor { padding: 14px; }
  .event-response-heading, .event-section-title { align-items: flex-start; flex-direction: column; }
  .event-scale-heading-actions { width: 100%; align-items: stretch; flex-direction: column; }
  .event-member-row { grid-template-columns: 34px minmax(0,1fr); }
  .event-member-row .mini-state, .event-member-row .member-commission { grid-column: 2; justify-self: start; }
  .temporary-response-actions { grid-column: 1 / -1; grid-row: auto; }
  .temporary-response-actions { grid-template-columns: 1fr; }
  .scale-member-fields, .temporary-member-grid { grid-template-columns: 1fr; margin-left: 0; }
  .event-modal-actions { display: flex !important; }
}

@media (max-width: 430px) {
  .stats-grid { grid-template-columns: 1fr; }
  .stat-card { min-height: 96px; }
  .student-card-details { grid-template-columns: 1fr; }
  .student-card-bottom { align-items: flex-start; flex-direction: column; }
  .student-card-bottom .row-actions { width: 100%; justify-content: flex-end; }
  .service-public-link { grid-template-columns: 1fr; }
  .service-public-link > div { grid-column: 1; }
  .service-public-link .compact-button { width: 100%; }
  .modal > header { padding-right: 14px; padding-left: 14px; }
  .modal form { padding-right: 14px; padding-left: 14px; }
}

/* Kanban manual de atendimento — usado ao lado do WhatsApp Web */
.pipeline-hero {
  min-height: 138px;
  margin-bottom: 18px;
  border-radius: 5px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 24px 28px;
  color: #fff;
  background: linear-gradient(120deg, #151512, #2a281f);
  box-shadow: 0 16px 42px rgba(20,19,16,.1);
}
.pipeline-hero > div:first-child { max-width: 720px; }
.pipeline-hero small { display: block; margin-bottom: 8px; color: #d7b578; font-size: 9px; font-weight: 850; letter-spacing: .13em; text-transform: uppercase; }
.pipeline-hero h2 { margin: 0 0 8px; font-size: clamp(20px,2.2vw,30px); font-weight: 620; letter-spacing: -.02em; }
.pipeline-hero p { margin: 0; color: #c9c6bd; font-size: 10px; line-height: 1.6; }
.pipeline-hero-actions { display: flex; gap: 8px; flex: 0 0 auto; }
.pipeline-hero .secondary-button { border-color: #5b574e; color: #fff; background: transparent; }
.pipeline-hero .secondary-button:hover { background: rgba(255,255,255,.08); }

.pipeline-stats-grid { margin-bottom: 18px; display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 12px; }
.pipeline-stats-grid article { min-height: 104px; border: 1px solid var(--line); border-radius: 5px; display: grid; align-content: center; gap: 5px; padding: 17px 19px; background: var(--white); }
.pipeline-stats-grid small { color: var(--gold-dark); font-size: 8px; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; }
.pipeline-stats-grid strong { overflow: visible; font-size: 24px; font-weight: 650; text-overflow: clip; white-space: nowrap; }
.pipeline-stats-grid span { color: var(--muted); font-size: 9px; }
.pipeline-stats-grid .hot strong { color: #b34a3d; }
.pipeline-stats-grid .overdue strong { color: #a44242; }
.pipeline-stats-grid .today strong { color: #a06b21; }
.pipeline-stats-grid .potential strong { color: #267054; }

.pipeline-reminders-panel { margin-bottom: 18px; padding: 20px; }
.pipeline-section-heading,
.pipeline-board-heading { margin-bottom: 16px; display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.pipeline-section-heading small { color: var(--gold-dark); font-size: 8px; font-weight: 850; letter-spacing: .11em; text-transform: uppercase; }
.pipeline-section-heading h2,
.pipeline-board-heading h2 { margin: 5px 0 0; font-size: 18px; }
.pipeline-section-heading > span { border-radius: 999px; padding: 7px 10px; color: #9a4a41; background: #f8e9e5; font-size: 8px; font-weight: 800; }
.pipeline-reminders { display: grid; gap: 7px; }
.pipeline-reminder { min-width: 0; min-height: 58px; border: 1px solid #e0dad0; border-radius: 4px; display: grid; grid-template-columns: 34px minmax(0,1fr) auto auto; align-items: center; gap: 10px; padding: 9px 11px; cursor: pointer; }
.pipeline-reminder.overdue { border-left: 3px solid #a84643; background: #fff9f8; }
.pipeline-reminder.today { border-left: 3px solid #bc7927; background: #fffbf4; }
.pipeline-reminder-icon { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; color: #775a31; background: #eee3d0; }
.pipeline-reminder-icon svg { width: 16px; height: 16px; }
.pipeline-reminder > div:nth-child(2) { min-width: 0; display: grid; gap: 3px; }
.pipeline-reminder strong { overflow: hidden; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.pipeline-reminder span { overflow: hidden; color: var(--muted); font-size: 7px; text-overflow: ellipsis; white-space: nowrap; }
.pipeline-reminder > b { color: #8c8579; font-size: 7px; text-transform: uppercase; }
.pipeline-reminder.overdue > b { color: #a44242; }
.pipeline-reminder.today > b { color: #9a6721; }
.pipeline-reminder-actions { display: flex; gap: 5px; }
.pipeline-reminder-actions a,
.pipeline-reminder-actions button { min-height: 30px; border: 1px solid #d6d0c5; border-radius: 3px; display: inline-flex; align-items: center; padding: 0 9px; color: #393730; background: #fff; font-size: 7px; font-weight: 750; text-decoration: none; }
.pipeline-reminder-actions a { border-color: #bddacb; color: #176945; background: #eef8f3; }

.pipeline-board-card { padding: 20px; }
.pipeline-board-heading p { margin: 6px 0 0; color: var(--muted); font-size: 10px; }
.manual-control-badge { min-height: 30px; border: 1px solid #d6ccb8; border-radius: 999px; display: inline-flex; align-items: center; gap: 7px; padding: 0 11px; color: #765a32; background: #faf5eb; font-size: 8px; font-weight: 800; white-space: nowrap; }
.manual-control-badge i { width: 7px; height: 7px; border-radius: 50%; display: block; background: #267054; box-shadow: 0 0 0 3px rgba(38,112,84,.1); }
.pipeline-toolbar { margin-bottom: 14px; display: grid; grid-template-columns: minmax(250px,1fr) auto auto; align-items: center; gap: 10px; }
.pipeline-filter-chips { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 5px; }
.pipeline-filter-chips button { min-height: 32px; border: 1px solid var(--line); border-radius: 999px; padding: 0 11px; color: var(--muted); background: #fff; font-size: 7px; font-weight: 750; }
.pipeline-filter-chips button:hover,
.pipeline-filter-chips button.active { border-color: #25241f; color: #fff; background: #25241f; }
.pipeline-filter-chips button.hot:not(.active) { color: #a7473d; }
.pipeline-filter-chips button.warm:not(.active) { color: #a26a20; }
.pipeline-filter-chips button.cold:not(.active) { color: #4a7390; }
.pipeline-kanban { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); align-items: start; gap: 12px; }
.pipeline-column { min-width: 0; border: 1px solid #ddd7cd; border-radius: 5px; background: #f7f4ee; }
.pipeline-column.drag-over { border-color: #b79a6c; background: #f1eadf; box-shadow: inset 0 0 0 2px rgba(183,154,108,.2); transform: translateY(-2px); }
.pipeline-column.drag-over .pipeline-column-list { background: rgba(255,255,255,.4); }
.pipeline-column > header { min-height: 44px; border-bottom: 1px solid #ded8ce; display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 0 12px; }
.pipeline-column > header > div { min-width: 0; display: flex; align-items: center; gap: 8px; }
.pipeline-column > header strong { overflow: hidden; font-size: 8px; font-weight: 850; text-overflow: ellipsis; text-transform: uppercase; white-space: nowrap; }
.pipeline-column > header > span { min-width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; color: #625e56; background: #e7e2d8; font-size: 8px; font-weight: 800; }
.pipeline-column > small { display: block; padding: 8px 12px 0; color: #928c82; font-size: 7px; }
.pipeline-stage-dot { width: 8px; height: 8px; border-radius: 50%; display: block; flex: 0 0 auto; background: #9c968c; }
.pipeline-stage-dot.new { background: #9a7949; }
.pipeline-stage-dot.talking { background: #397c9d; }
.pipeline-stage-dot.proposal { background: #7755a0; }
.pipeline-stage-dot.followup { background: #c07a25; }
.pipeline-stage-dot.won { background: #24805c; }
.pipeline-stage-dot.lost { background: #a14c4c; }
.pipeline-column-list { min-height: 110px; display: grid; align-content: start; gap: 8px; padding: 8px; }
.pipeline-column-empty { min-height: 82px; border: 1px dashed #d5cec2; border-radius: 4px; display: grid; place-items: center; padding: 12px; color: #99938a; font-size: 8px; text-align: center; }
.pipeline-card { min-width: 0; border: 1px solid #dfdad0; border-left: 3px solid #bd9762; border-radius: 4px; padding: 11px; background: #fff; box-shadow: 0 4px 13px rgba(30,28,23,.035); cursor: grab; touch-action: pan-y; transition: transform .16s ease, box-shadow .16s ease; }
.pipeline-card.hot { border-left-color: #b84f42; }
.pipeline-card.warm { border-left-color: #c1852e; }
.pipeline-card.cold { border-left-color: #5c819b; }
.pipeline-card.overdue { box-shadow: inset 0 0 0 1px rgba(168,70,67,.25); }
.pipeline-card:hover { transform: translateY(-1px); box-shadow: 0 9px 22px rgba(30,28,23,.08); }
.pipeline-card.dragging { opacity: .42; transform: rotate(1deg) scale(.98); box-shadow: 0 16px 30px rgba(30,28,23,.16); }
.pipeline-card.touch-dragging { position: relative; z-index: 30; pointer-events: none; transition: none; }
.is-dragging .pipeline-column:not(.drag-over) .pipeline-card:not(.dragging) { opacity: .72; }
.pipeline-card-head { min-width: 0; display: grid; grid-template-columns: 32px minmax(0,1fr) auto; align-items: center; gap: 8px; }
.pipeline-avatar { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; color: #765a32; background: #eee3d0; font-size: 8px; font-weight: 800; }
.pipeline-avatar.large { width: 52px; height: 52px; font-size: 12px; }
.pipeline-card-head > div { min-width: 0; display: grid; gap: 2px; }
.pipeline-card-head strong { overflow: hidden; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.pipeline-card-head span { color: var(--muted); font-size: 7px; }
.temperature-badge { width: max-content; border-radius: 999px; padding: 4px 7px; font-size: 6px; font-style: normal; font-weight: 850; text-transform: uppercase; }
.temperature-badge.hot { color: #9c4037; background: #fae8e5; }
.temperature-badge.warm { color: #93611e; background: #fbefd9; }
.temperature-badge.cold { color: #3f6e8c; background: #e8f1f6; }
.pipeline-card > p { height: 28px; margin: 9px 0 6px; overflow: hidden; color: #5d5952; font-size: 8px; line-height: 1.65; }
.pipeline-card-reminder { min-height: 28px; border-radius: 3px; display: flex; align-items: center; gap: 6px; padding: 5px 7px; color: #6e665b; background: #f3efe8; font-size: 7px; }
.pipeline-card-reminder svg { width: 13px; height: 13px; }
.pipeline-card-reminder.overdue { color: #98413d; background: #faeae7; }
.pipeline-card-reminder.today { color: #8e5c1c; background: #fbefd8; }
.pipeline-card-tags { min-height: 17px; margin-top: 6px; display: flex; flex-wrap: wrap; gap: 4px; }
.pipeline-card-tags span { border-radius: 999px; padding: 3px 6px; color: #72562f; background: #f0e6d6; font-size: 6px; font-weight: 750; }
.pipeline-card footer { margin-top: 8px; border-top: 1px solid #eee9e1; display: flex; align-items: center; justify-content: space-between; gap: 8px; padding-top: 8px; }
.pipeline-card footer > div { min-width: 0; display: grid; gap: 3px; }
.pipeline-card footer span { overflow: hidden; color: #7b766d; font-size: 7px; text-overflow: ellipsis; white-space: nowrap; }
.pipeline-card footer strong { color: #267054; font-size: 8px; }
.pipeline-card footer a { width: 31px; height: 31px; border-radius: 50%; display: grid; place-items: center; color: #fff; background: #1c845a; }
.pipeline-card footer a:hover { background: #146947; }
.pipeline-card footer svg { width: 16px; height: 16px; }

.pipeline-modal-backdrop { position: fixed; z-index: 1850; inset: 0; display: grid; place-items: center; padding: 25px; background: rgba(12,12,10,.72); backdrop-filter: blur(3px); }
.pipeline-modal { width: min(900px,96vw); max-height: 92vh; border-radius: 6px; overflow: hidden; background: var(--white); box-shadow: 0 30px 90px rgba(0,0,0,.32); }
.pipeline-modal > header { min-height: 86px; border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 17px 24px; }
.pipeline-modal > header .eyebrow { margin-bottom: 5px; }
.pipeline-modal > header h2 { margin: 0; font-size: 22px; font-weight: 520; }
#pipeline-modal-body { max-height: calc(92vh - 86px); overflow-y: auto; padding: 22px 24px 26px; }
.pipeline-editor-form { display: grid; gap: 15px; }
.pipeline-form-section { border-bottom: 1px solid #e8e2d9; display: flex; align-items: flex-end; justify-content: space-between; gap: 15px; padding: 7px 0 11px; }
.pipeline-form-section h3 { margin: 0 0 5px; font-size: 18px; line-height: 1.25; }
.pipeline-form-section p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.55; }
.pipeline-mode-switch { border: 1px solid var(--line); border-radius: 4px; display: flex; padding: 3px; }
.pipeline-mode-switch button { min-height: 40px; border: 0; border-radius: 2px; padding: 0 15px; color: var(--muted); background: transparent; font-size: 11px; font-weight: 750; }
.pipeline-mode-switch button.active { color: #fff; background: #24231f; }
.pipeline-client-picker { border: 1px solid #ddd6ca; border-radius: 4px; padding: 10px; background: #f8f5ef; }
.pipeline-search-client { min-height: 40px; border: 1px solid #d8d1c5; border-radius: 3px; display: grid; grid-template-columns: 20px minmax(0,1fr); align-items: center; gap: 6px; padding: 0 10px; background: #fff; }
.pipeline-search-client svg { width: 15px; height: 15px; color: #8e887e; }
.pipeline-search-client input { min-width: 0; border: 0; outline: 0; font-size: 12px; }
.pipeline-client-results { max-height: 205px; margin-top: 7px; overflow-y: auto; display: grid; grid-template-columns: 1fr 1fr; gap: 5px; }
.pipeline-client-results > button { min-width: 0; min-height: 52px; border: 1px solid #e0dbd1; border-radius: 3px; display: grid; grid-template-columns: 31px minmax(0,1fr) auto; align-items: center; gap: 8px; padding: 7px; background: #fff; text-align: left; }
.pipeline-client-results > button:hover,
.pipeline-client-results > button.selected { border-color: #9f8966; background: #fbf6ed; }
.pipeline-client-results > button > span:nth-child(2) { min-width: 0; display: grid; gap: 3px; }
.pipeline-client-results strong { overflow: hidden; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.pipeline-client-results small { overflow: hidden; color: var(--muted); font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.pipeline-client-results > button > i { color: var(--gold-dark); font-size: 6px; font-style: normal; font-weight: 800; }
.pipeline-client-empty { grid-column: 1 / -1; padding: 18px; color: var(--muted); font-size: 8px; text-align: center; }
.pipeline-contact-fields { display: grid; gap: 15px; }
.pipeline-contact-fields.selected-client { border-left: 3px solid #b89a68; padding-left: 12px; }
.pipeline-option-group { display: grid; gap: 8px; }
.pipeline-option-group > span { color: #3d3a35; font-size: 12px; font-weight: 800; }
.pipeline-option-group > div { display: flex; flex-wrap: wrap; gap: 6px; }
.pipeline-option-group button { min-height: 44px; border: 1px solid #d4cdc1; border-radius: 999px; display: inline-flex; align-items: center; gap: 8px; padding: 0 16px; color: #514e48; background: #fff; font-size: 11px; line-height: 1.25; font-weight: 780; cursor: pointer; }
.pipeline-option-group button:hover,
.pipeline-option-group button.active { border-color: #24231f; color: #fff; background: #24231f; }
.temperature-dot { width: 7px; height: 7px; border-radius: 50%; display: block; background: #c0832d; }
.temperature-dot.hot { background: #b24c40; }
.temperature-dot.cold { background: #4e7895; }
.pipeline-modal-actions { margin-top: 4px; border-top: 1px solid #e3ddd3; display: flex; justify-content: flex-end; gap: 8px; padding-top: 16px; }

.pipeline-editor-form .field > label,
.pipeline-editor-form .field > span { font-size: 11px; font-weight: 800; }
.pipeline-editor-form .input-shell input,
.pipeline-editor-form .input-shell textarea { font-size: 12px; }

/* Contratos eletrônicos */
.event-contract-editor { margin-top: 18px; border: 1px solid #d9ccb6; padding: 20px; background: #fffaf2; }
.event-contract-editor > header { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
.event-contract-editor > header small { display: block; color: #8b6731; font-size: 9px; font-weight: 850; letter-spacing: .1em; text-transform: uppercase; }
.event-contract-editor > header h3 { margin: 5px 0; font-size: 18px; }
.event-contract-editor > header p { margin: 0; color: var(--muted); font-size: 11px; line-height: 1.55; }
.contract-choice { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 8px; }
.contract-choice button { min-height: 72px; border: 1px solid #d9d1c4; border-radius: 4px; display: grid; align-content: center; gap: 5px; padding: 12px; color: #565149; background: #fff; text-align: left; font: inherit; cursor: pointer; }
.contract-choice button strong { font-size: 11px; }
.contract-choice button span { color: var(--muted); font-size: 9px; line-height: 1.4; }
.contract-choice button.active { border-color: #8b6731; box-shadow: inset 0 0 0 1px #8b6731; color: #6d4e21; background: #f7eddd; }
.event-contract-options { margin-top: 16px; border-top: 1px solid #e2d5c1; padding-top: 16px; }
.event-contract-options textarea[name="contractBody"] { min-height: 300px; font-family: Gotham, Arial, sans-serif; font-size: 11px; line-height: 1.65; }
.contract-package-note { margin: -5px 0 14px; color: #7c7366; font-size: 10px; line-height: 1.5; }
.event-contract-card { margin-top: 18px; border: 1px solid #d8c8ad; display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 18px; padding: 18px; background: linear-gradient(135deg,#fffaf1,#f6ecdc); }
.event-contract-card > div:first-child { min-width: 0; }
.event-contract-card small { color: #8b6731; font-size: 8px; font-weight: 850; letter-spacing: .09em; text-transform: uppercase; }
.event-contract-card h3 { margin: 5px 0 6px; font-size: 16px; }
.event-contract-card p { margin: 0; color: var(--muted); font-size: 10px; line-height: 1.55; }
.event-contract-card .contract-admin-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 7px; }
.event-contract-badge { width: max-content; margin-bottom: 8px; border-radius: 999px; padding: 5px 8px; color: #815a20; background: #f0dfbf; font-size: 8px; font-weight: 850; text-transform: uppercase; }
.event-contract-badge.signed { color: #176846; background: #dfefe7; }
.event-contract-badge.approved { color: #315f85; background: #e1edf5; }

.contract-page { min-height: 100vh; margin: 0; color: #171611; background: #f2efe9; font-family: Gotham, Arial, sans-serif; }
.contract-header { min-height: 96px; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 18px max(24px,calc((100vw - 1050px)/2)); color: #fff; background: #11110f; }
.contract-header img { width: 190px; height: 58px; object-fit: contain; }
.contract-header > div { display: grid; gap: 5px; text-align: right; }
.contract-header span { color: #caa873; font-size: 9px; font-weight: 800; letter-spacing: .12em; }
.contract-header strong { font-size: 12px; }
.contract-main { width: min(1050px,calc(100% - 34px)); margin: 34px auto 65px; }
.contract-state { min-height: 380px; display: grid; place-items: center; align-content: center; gap: 15px; text-align: center; }
.contract-state h1 { margin: 7px 0; font-size: clamp(28px,5vw,46px); font-weight: 500; }
.contract-state p { color: #6d685f; }
.contract-intro { margin-bottom: 18px; }
.contract-intro h1 { max-width: 850px; margin: 8px 0 20px; font-size: clamp(28px,5vw,46px); line-height: 1.08; font-weight: 500; }
.contract-event-summary { border: 1px solid #d9d3c8; display: grid; grid-template-columns: 1.2fr .8fr 1fr; background: #fff; }
.contract-event-summary > div { min-width: 0; display: grid; gap: 5px; padding: 14px 17px; }
.contract-event-summary > div + div { border-left: 1px solid #e2ddd4; }
.contract-event-summary span { color: #8b8378; font-size: 8px; font-weight: 800; text-transform: uppercase; }
.contract-event-summary strong { overflow: hidden; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.contract-document { border: 1px solid #d8d1c6; padding: clamp(22px,5vw,55px); background: #fff; box-shadow: 0 20px 60px rgba(35,29,20,.07); }
.contract-document-heading { border-bottom: 2px solid #171611; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-bottom: 18px; }
.contract-document-heading > div { display: grid; gap: 5px; }
.contract-document-heading > div span { color: #92703d; font-size: 8px; font-weight: 850; letter-spacing: .12em; }
.contract-document-heading > div strong { font-size: 14px; }
.contract-status { border-radius: 999px; padding: 7px 10px; color: #7d5d2d; background: #f3e6cf; font-size: 8px; font-weight: 850; text-transform: uppercase; }
.contract-status.signed { color: #176846; background: #e0f0e8; }
.contract-body { padding: 30px 0; }
.contract-body p { margin: 0 0 17px; color: #302e29; font-family: Georgia,serif; font-size: 14px; line-height: 1.8; text-align: justify; }
.contract-integrity { border-top: 1px solid #ded8cf; display: grid; gap: 7px; padding-top: 16px; }
.contract-integrity span { color: #857f76; font-size: 8px; font-weight: 800; text-transform: uppercase; }
.contract-integrity code { overflow-wrap: anywhere; color: #565149; font-size: 9px; }
.contract-sign-panel { margin-top: 20px; border: 1px solid #d8d1c6; padding: clamp(20px,4vw,34px); background: #fff; }
.contract-sign-heading { margin-bottom: 22px; }
.contract-sign-heading > span { color: #8b6731; font-size: 8px; font-weight: 850; letter-spacing: .12em; }
.contract-sign-heading h2 { margin: 6px 0; font-size: 24px; }
.contract-sign-heading p { margin: 0; color: #706b63; font-size: 11px; line-height: 1.55; }
.contract-accept { width: 100%; min-height: 72px; margin-top: 18px; border: 1px solid #d7d0c5; border-radius: 4px; display: grid; grid-template-columns: 35px minmax(0,1fr); align-items: center; gap: 13px; padding: 12px 16px; color: #38352f; background: #faf8f4; text-align: left; font: inherit; cursor: pointer; }
.contract-accept.active { border-color: #25714f; background: #eff8f3; box-shadow: inset 0 0 0 1px #25714f; }
.contract-check { width: 30px; height: 30px; border: 1px solid #bdb6aa; border-radius: 50%; display: grid; place-items: center; color: transparent; background: #fff; }
.contract-check svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; }
.contract-accept.active .contract-check { border-color: #25714f; color: #fff; background: #25714f; }
.contract-accept > span:last-child { display: grid; gap: 5px; }
.contract-accept strong { font-size: 12px; }
.contract-accept small { color: #746f67; font-size: 9px; line-height: 1.45; }
.contract-actions { margin-top: 18px; display: flex; justify-content: flex-end; gap: 8px; }
.contract-success { margin-top: 20px; border: 1px solid #b9d6c7; padding: clamp(25px,5vw,45px); background: #f3faf6; text-align: center; }
.contract-success h2 { margin: 9px 0; font-size: 28px; }
.contract-success > p:not(.eyebrow) { color: #5e6962; font-size: 12px; }
.contract-protocol { width: min(600px,100%); margin: 22px auto; border: 1px solid #ccdfd4; display: grid; grid-template-columns: auto 1fr; gap: 8px 20px; padding: 15px; text-align: left; }
.contract-protocol span { color: #718077; font-size: 9px; text-transform: uppercase; }
.contract-protocol strong { font-size: 10px; }
.contract-success .primary-button { margin: 0 auto; }
.contract-footer { min-height: 70px; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 15px max(24px,calc((100vw - 1050px)/2)); color: #9d978e; background: #11110f; font-size: 9px; }

@media (max-width: 720px) {
  .contract-choice { grid-template-columns: 1fr; }
  .event-contract-card { grid-template-columns: 1fr; }
  .event-contract-card .contract-admin-actions { justify-content: flex-start; }
  .contract-header { min-height: 78px; padding: 12px 17px; }
  .contract-header img { width: 145px; height: 45px; }
  .contract-header > div strong { display: none; }
  .contract-main { width: min(100% - 20px,1050px); margin-top: 18px; }
  .contract-event-summary { grid-template-columns: 1fr; }
  .contract-event-summary > div + div { border-top: 1px solid #e2ddd4; border-left: 0; }
  .contract-document-heading { align-items: flex-start; flex-direction: column; }
  .contract-body p { font-size: 13px; text-align: left; }
  .contract-actions { align-items: stretch; flex-direction: column-reverse; }
  .contract-actions button { width: 100%; justify-content: center; }
  .contract-footer { align-items: flex-start; flex-direction: column; }
}

@media print {
  .contract-page { background: #fff; }
  .contract-header, .contract-intro, .contract-sign-panel, .contract-success > button, .contract-footer, .toast-region { display: none !important; }
  .contract-main { width: 100%; margin: 0; }
  .contract-document { border: 0; padding: 0; box-shadow: none; }
  .contract-success { border: 0; page-break-before: always; }
}

.pipeline-detail-hero { min-width: 0; display: grid; grid-template-columns: 52px minmax(0,1fr) auto; align-items: center; gap: 13px; }
.pipeline-detail-hero > div:nth-child(2) { min-width: 0; }
.pipeline-detail-hero > div:nth-child(2) > div { display: flex; align-items: center; gap: 7px; }
.pipeline-detail-hero > div:nth-child(2) > div > span { color: var(--muted); font-size: 8px; }
.pipeline-detail-hero h3 { margin: 7px 0 4px; font-size: 20px; }
.pipeline-detail-hero p { margin: 0; color: var(--muted); font-size: 8px; }
.pipeline-detail-hero .primary-button svg { width: 17px; height: 17px; }
.pipeline-detail-grid { margin: 20px 0; display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 8px; }
.pipeline-detail-grid article { min-height: 92px; border: 1px solid #ded8ce; border-radius: 4px; display: grid; align-content: center; gap: 6px; padding: 13px; background: #faf8f3; }
.pipeline-detail-grid article.overdue { border-color: #e0b8b2; background: #fff8f7; }
.pipeline-detail-grid article.today { border-color: #dec49d; background: #fffbf4; }
.pipeline-detail-grid small,
.pipeline-prepared-message small,
.pipeline-detail-notes > small { color: var(--gold-dark); font-size: 7px; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; }
.pipeline-detail-grid strong { font-size: 10px; }
.pipeline-detail-grid span { color: var(--muted); font-size: 7px; }
.pipeline-quick-stage { border: 1px solid #ded8ce; border-radius: 4px; display: flex; flex-wrap: wrap; align-items: center; gap: 5px; padding: 10px; }
.pipeline-quick-stage > span { margin-right: 5px; color: var(--muted); font-size: 8px; }
.pipeline-quick-stage button { min-height: 30px; border: 1px solid #d9d3c9; border-radius: 999px; padding: 0 9px; color: #6e6961; background: #fff; font-size: 7px; }
.pipeline-quick-stage button.active { border-color: #24231f; color: #fff; background: #24231f; }
.pipeline-prepared-message,
.pipeline-detail-notes { margin-top: 12px; border: 1px solid #ded8ce; border-radius: 4px; padding: 13px; background: #faf8f3; }
.pipeline-prepared-message p,
.pipeline-detail-notes p { margin: 7px 0; color: #514e48; font-size: 9px; line-height: 1.55; }
.pipeline-prepared-message a { color: #176945; font-size: 8px; font-weight: 750; }
.pipeline-detail-notes > div { display: flex; flex-wrap: wrap; gap: 5px; }
.pipeline-detail-notes > div span { border-radius: 999px; padding: 4px 7px; color: #73582f; background: #eee3d1; font-size: 7px; }
.pipeline-history-heading { margin-top: 20px; border-bottom: 1px solid #e1dbd1; display: flex; align-items: flex-end; justify-content: space-between; gap: 14px; padding-bottom: 10px; }
.pipeline-history-heading h3 { margin: 0 0 4px; font-size: 14px; }
.pipeline-history-heading p { margin: 0; color: var(--muted); font-size: 8px; }
.pipeline-history { display: grid; }
.pipeline-history > article { border-bottom: 1px solid #e7e1d8; display: grid; grid-template-columns: 34px minmax(0,1fr); gap: 10px; padding: 12px 0; }
.pipeline-history > article > span { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; color: #765a32; background: #eee3d0; }
.pipeline-history > article svg { width: 16px; height: 16px; }
.pipeline-history > article > div { min-width: 0; display: grid; gap: 4px; }
.pipeline-history strong { font-size: 9px; }
.pipeline-history p { margin: 0; color: #5e5a53; font-size: 8px; line-height: 1.5; }
.pipeline-history small { color: var(--muted); font-size: 7px; }
.pipeline-history-empty { padding: 22px; color: var(--muted); font-size: 8px; text-align: center; }
.pipeline-delete-message { border: 1px solid #e6c3bd; border-radius: 4px; padding: 17px; background: #fff8f7; }
.pipeline-delete-message strong { font-size: 12px; }
.pipeline-delete-message p { margin: 7px 0 0; color: var(--muted); font-size: 9px; line-height: 1.55; }

@media (max-width: 1180px) {
  .pipeline-kanban { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .pipeline-toolbar { grid-template-columns: 1fr; align-items: stretch; }
  .pipeline-filter-chips { justify-content: flex-start; }
}
@media (max-width: 820px) {
  .pipeline-hero { align-items: stretch; flex-direction: column; }
  .pipeline-hero-actions { width: 100%; }
  .pipeline-hero-actions > * { flex: 1; }
  .pipeline-stats-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .pipeline-reminder { grid-template-columns: 34px minmax(0,1fr) auto; }
  .pipeline-reminder-actions { grid-column: 2 / -1; }
  .pipeline-modal-backdrop { padding: 10px; }
  .pipeline-modal { width: 100%; max-height: 96vh; }
  #pipeline-modal-body { max-height: calc(96vh - 78px); }
}
@media (max-width: 620px) {
  .pipeline-hero { min-height: 0; padding: 20px; }
  .pipeline-hero-actions { flex-direction: column; }
  .pipeline-board-card,
  .pipeline-reminders-panel { padding: 14px; }
  .pipeline-board-heading,
  .pipeline-section-heading { align-items: flex-start; flex-direction: column; }
  .pipeline-kanban { grid-template-columns: 1fr; }
  .pipeline-column-list { min-height: 72px; }
  .pipeline-client-results { grid-template-columns: 1fr; }
  .pipeline-form-section { align-items: stretch; flex-direction: column; }
  .pipeline-mode-switch button { flex: 1; }
  .pipeline-detail-hero { grid-template-columns: 45px minmax(0,1fr); }
  .pipeline-detail-hero .pipeline-avatar.large { width: 45px; height: 45px; }
  .pipeline-detail-hero > a { grid-column: 1 / -1; width: 100%; }
  .pipeline-detail-grid { grid-template-columns: 1fr; }
  .pipeline-modal-actions { align-items: stretch; flex-direction: column-reverse; }
  .pipeline-modal-actions button { width: 100%; }
  .pipeline-history-heading { align-items: stretch; flex-direction: column; }
  .pipeline-history-heading button { width: 100%; }
}
@media (max-width: 430px) {
  .pipeline-stats-grid { gap: 7px; }
  .pipeline-stats-grid article { min-height: 90px; padding: 13px; }
  .pipeline-stats-grid strong { font-size: 20px; }
  .pipeline-reminder { grid-template-columns: 30px minmax(0,1fr); }
  .pipeline-reminder > b { grid-column: 2; }
  .pipeline-reminder-actions { grid-column: 1 / -1; }
  .pipeline-reminder-actions > * { flex: 1; justify-content: center; }
  .pipeline-modal-backdrop { padding: 0; }
  .pipeline-modal { height: 100%; max-height: none; border-radius: 0; }
  .pipeline-modal > header { min-height: 72px; padding: 13px 14px; }
  #pipeline-modal-body { max-height: calc(100vh - 72px); padding: 16px 14px 24px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

.draw-signature {margin:0 0 1.4rem}
.draw-signature summary {cursor:pointer;font-weight:600;color:var(--ink)}
.draw-signature p {font-size:.9rem;color:var(--muted)}
#sign-pad,#signed-pad {display:block;width:min(100%,600px);height:auto;background:white}
#sign-pad {touch-action:none;border:1px solid var(--line);margin:.75rem 0;cursor:crosshair}
#signed-pad {margin:1rem auto;max-width:24rem}
.rr-catalog-controls {display:grid;gap:1rem;margin-bottom:1.25rem}
.rr-choice {min-width:0}
.rr-choice-label {display:block;margin-bottom:.5rem;font-size:.78rem;color:var(--ink)}
.rr-choice-trigger,.rr-choice-option {width:100%;border:1px solid var(--line);border-radius:4px;background:var(--white);text-align:left;color:var(--ink);padding:.8rem 1rem;min-height:44px;line-height:1.35;overflow-wrap:anywhere}
.rr-choice-trigger {display:flex;align-items:center;justify-content:space-between;gap:1rem}
.rr-choice-trigger::after {content:"";width:.45rem;height:.45rem;border:solid var(--gold-dark);border-width:0 1.5px 1.5px 0;transform:rotate(45deg)}
.rr-choice-trigger[aria-expanded=true]::after {transform:rotate(225deg)}
.rr-choice-panel {padding:.75rem;margin-top:.35rem;border:1px solid var(--line);border-radius:4px;background:var(--paper)}
.rr-choice-panel input {width:100%;padding:.7rem;border:1px solid var(--line);margin-bottom:.6rem;background:var(--white)}
.rr-choice-options {display:grid;gap:.35rem;max-height:15rem;overflow:auto}
.rr-choice-option {display:flex;align-items:center;justify-content:space-between;gap:.5rem}
.rr-choice-option small {color:var(--muted)}
.rr-choice-option:hover,.rr-choice-option[aria-pressed=true] {background:var(--gold-pale);border-color:var(--gold)}
.rr-choice-clear {justify-self:start;color:var(--gold-dark);background:none;border:0;padding:.45rem 0;text-decoration:underline}
.rr-choice :focus-visible,.rr-choice-clear:focus-visible {outline:2px solid var(--gold-dark);outline-offset:2px}
.package-campaign {container-type:inline-size}
.package-campaign-grid {grid-template-columns:minmax(0,1fr)}
@container (min-width: 30rem) {
  .package-campaign-grid {grid-template-columns:repeat(2,minmax(0,1fr))}
}
@container (min-width: 52rem) {
  .package-campaign-grid {grid-template-columns:repeat(4,minmax(0,1fr))}
}
.package-campaign-grid .package-card {display:flex;flex-direction:column;padding:clamp(.85rem,1.2vw,1.15rem);overflow-wrap:anywhere}
.package-campaign-grid .package-card h3 {margin:.85rem 0 .35rem}
.package-campaign-grid .package-card > p {min-height:0;margin:.25rem 0 .6rem}
.package-campaign-grid .package-card ul {min-height:0}
.package-campaign-grid .package-card-footer {margin-top:auto;padding-top:.6rem}
.package-campaign-grid .package-card > ul,.package-extras {margin-bottom:.65rem}
.package-extras summary {color:var(--gold-dark);font-size:.75rem;cursor:pointer}
.rr-availability {color:var(--ink);font:inherit}
.rr-availability label,.rr-availability .rr-label {display:block;font-size:.77rem;font-weight:700;margin:0 0 .45rem}
.rr-availability button,.rr-availability input {font-family:var(--sans)}
.rr-availability .rr-segments,.rr-availability .rr-range {display:inline-flex;gap:3px;max-width:100%;padding:3px;border:1px solid var(--line);border-radius:5px;background:var(--paper)}
.rr-availability .rr-segments button,.rr-availability .rr-range button {background:transparent;color:var(--ink-soft);border:0;border-radius:3px;padding:.65rem .9rem;font-size:.78rem;line-height:1.25;font-weight:600}
.rr-availability [aria-pressed=true]:is(.rr-segments button,.rr-range button) {background:var(--ink);color:var(--white)}
.rr-availability > .rr-segments {margin-bottom:1.25rem}
.rr-name,.rr-duration,.rr-clock {border:1px solid var(--line);border-radius:4px;background:var(--white);color:var(--ink)}
.rr-availability .rr-name {height:44px;width:100%;padding:0 .8rem;font-size:.95rem;margin-bottom:1rem}
.rr-planner {display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:1.15rem;align-items:start}
.rr-dates {padding:1rem;border:1px solid var(--line);border-top:3px solid var(--gold);background:var(--white);border-radius:4px}
.rr-month,.rr-days,.rr-week {display:grid;align-items:center;text-align:center}
.rr-month {grid-template-columns:2.1rem 1fr 2.1rem;margin-bottom:.65rem}
.rr-month strong {font-size:.92rem;text-transform:capitalize}
.rr-availability .rr-month button,.rr-availability .rr-days button,.rr-availability .rr-clock button {border:0;background:transparent;color:var(--ink);border-radius:3px;font-weight:650;line-height:1}
.rr-month button {height:34px;font-size:1.4rem}
.rr-days,.rr-week {grid-template-columns:repeat(7,minmax(0,1fr));gap:2px}
.rr-week {font-size:.67rem;font-weight:700;color:var(--gold-dark);margin-bottom:.4rem}
.rr-days button {min-height:34px;padding:0;font-size:.8rem}
.rr-days button.in-range {background:var(--gold-pale)}
.rr-days button[aria-pressed=true] {background:var(--ink);color:var(--white)}
.rr-days button:disabled,.rr-month button:disabled {opacity:.32;cursor:default}
.rr-days button:hover:not(:disabled):not([aria-pressed=true]),.rr-clock button:hover,.rr-month button:hover:not(:disabled) {background:var(--gold-pale)}
.rr-settings {display:grid;gap:.85rem}
.rr-date-caption {font-weight:650;font-size:.9rem}
.rr-clock-row {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.6rem}
.rr-clock {display:grid;grid-template-columns:1.8rem minmax(0,1fr) 1.8rem;align-items:center}
.rr-clock input,.rr-duration input {min-width:0;width:100%;border:0;color:var(--ink);background:transparent;text-align:center;font-variant-numeric:tabular-nums;height:40px;padding:0}
.rr-clock button {height:40px;padding:0;font-size:1.1rem}
.rr-duration {display:inline-flex;align-items:center;width:7rem;padding-right:.8rem;margin-bottom:.75rem}
.rr-duration span,.rr-settings small,.rr-published p {font-size:.78rem;color:var(--muted)}
.rr-availability .rr-actions {display:flex;justify-content:flex-end;gap:.5rem;padding:1rem 0}
.rr-published {border-top:1px solid var(--line);padding-top:.85rem}
.rr-published h3 {margin:0 0 .7rem;font-size:1rem}
.rr-published>div {max-height:18rem;overflow:auto}
.rr-feedback {color:var(--danger);font-size:.85rem}
.rr-availability :is(button,input):focus-visible {outline:2px solid var(--gold-dark);outline-offset:2px}
@media(max-width:720px){.rr-planner{grid-template-columns:minmax(0,1fr)}.rr-availability .rr-name,.rr-clock input,.rr-duration input{font-size:1rem}.rr-days button{min-height:40px}}
.contracts-stats-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 12px; margin-bottom: 20px; }
.contracts-stats-grid article { min-height: 112px; border: 1px solid var(--line); border-radius: 4px; padding: 20px; display: grid; align-content: center; gap: 4px; background: #fff; }
.contracts-stats-grid small,
.contract-template-top,
.profile-card-heading small,
.profile-card-title small { color: #826538; font-size: 8px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.contracts-stats-grid strong { font-size: 27px; font-weight: 500; }
.contracts-stats-grid span { color: var(--muted); font-size: 8px; }
.contracts-library,
.issued-contracts-card { margin-bottom: 20px; }
.contracts-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 12px; }
.contract-template-card { min-width: 0; border: 1px solid var(--line); border-radius: 4px; padding: 18px; display: grid; gap: 11px; background: #fdfcf9; }
.contract-template-card.draft { background: #fffaf4; }
.contract-template-top,
.contract-template-meta,
.contract-template-actions { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.contract-template-category { border-radius: 999px; padding: 5px 8px; color: #725528; background: #eee4d5; }
.contract-template-version { color: var(--muted); }
.contract-template-card h3 { margin: 0; font-size: 14px; }
.contract-template-card p { min-height: 38px; margin: 0; color: var(--muted); font-size: 9px; line-height: 1.5; }
.contract-template-meta { border-top: 1px solid var(--line); padding-top: 10px; color: var(--muted); font-size: 8px; }
.contract-template-meta .ready { color: #2f765d; font-weight: 750; }
.contract-template-meta .draft { color: #a66d2d; font-weight: 750; }
.contract-template-actions { justify-content: flex-end; }
.template-version-notice { margin-bottom: 18px; border-left: 3px solid #b58b51; padding: 12px 14px; display: grid; gap: 4px; background: #f7f1e7; }
.template-version-notice strong { font-size: 10px; }
.template-version-notice span,
.field-help { color: var(--muted); font-size: 8px; line-height: 1.5; }
.issued-contracts-list { display: grid; }
.issued-contract-row { min-width: 0; border-top: 1px solid var(--line); padding: 13px 0; display: grid; grid-template-columns: 38px minmax(150px,1.15fr) minmax(150px,1fr) minmax(145px,.8fr) auto; align-items: center; gap: 12px; }
.issued-contract-icon { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; color: #8a632f; background: #efe4d2; }
.issued-contract-icon.signed { color: #2f765d; background: #e3f1eb; }
.issued-contract-icon svg { width: 17px; height: 17px; }
.issued-contract-row > div { min-width: 0; display: grid; gap: 3px; }
.issued-contract-row strong { overflow: hidden; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.issued-contract-row span,
.issued-contract-row small { color: var(--muted); font-size: 8px; }
.issued-contract-status { width: fit-content; border-radius: 999px; padding: 4px 7px; background: #eee5d7; }
.issued-contract-status.signed { color: #25654e; background: #e3f1eb; }
.profile-layout { display: grid; grid-template-columns: minmax(0,1.1fr) minmax(320px,.9fr); gap: 18px; }
.profile-card { align-self: start; }
.profile-card-heading { display: grid; grid-template-columns: 64px minmax(0,1fr); align-items: center; gap: 16px; margin-bottom: 24px; }
.profile-large-avatar { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; color: #fff; background: #8b6731; font-size: 18px; }
.profile-card h2 { margin: 3px 0 5px; font-size: 18px; }
.profile-card p { margin: 0; color: var(--muted); font-size: 9px; }
.profile-form { display: grid; gap: 2px; }
.profile-card-title { margin-bottom: 18px; }
.profile-preferences { display: grid; gap: 8px; }
.calendar-suggestions { display: grid; gap: 10px; margin-bottom: 16px; }
.campaign-suggestion { border: 1px solid #decbaa; border-radius: 4px; padding: 16px; display: grid; grid-template-columns: 38px minmax(0,1fr) auto; align-items: center; gap: 14px; background: #fbf6ed; }
.campaign-suggestion-icon { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; color: #896128; background: #ecdfca; }
.campaign-suggestion-icon svg { width: 18px; height: 18px; }
.campaign-suggestion small { color: #8c6832; font-size: 7px; font-weight: 800; letter-spacing: .08em; }
.campaign-suggestion h3 { margin: 3px 0; font-size: 13px; }
.campaign-suggestion p { margin: 0 0 5px; color: #605a51; font-size: 9px; line-height: 1.45; }
.campaign-suggestion > div > span { color: var(--muted); font-size: 8px; }
.campaign-suggestion-actions { display: flex; align-items: center; gap: 7px; }
.calendar-day.holiday { background: #edf7f0; box-shadow: inset 0 0 0 1px #c9e2d0; }
.calendar-day .calendar-holiday { border-radius: 2px; padding: 4px 5px; color: #2f6544; background: #d9eddf; font-size: 7px; font-weight: 750; line-height: 1.25; }
.compact-interface .admin-main { padding-top: 22px; }
.compact-interface .content-card { padding-top: 14px; padding-bottom: 14px; }
.compact-interface .finance-row,
.compact-interface .issued-contract-row { padding-top: 8px; padding-bottom: 8px; }

@media (max-width: 1100px) {
  .contracts-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .issued-contract-row { grid-template-columns: 38px minmax(140px,1fr) minmax(140px,1fr) auto; }
  .issued-contract-row > div:nth-child(3) { display: none; }
  .campaign-suggestion { grid-template-columns: 38px minmax(0,1fr); }
  .campaign-suggestion-actions { grid-column: 2; flex-wrap: wrap; }
}

@media (max-width: 820px) {
  .sidebar nav { overflow-x: auto; overflow-y: hidden; justify-content: flex-start; scrollbar-width: none; }
  .sidebar nav::-webkit-scrollbar { display: none; }
  .nav-item { flex: 0 0 auto; }
  .contracts-stats-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .profile-layout { grid-template-columns: 1fr; }
}

@media (max-width: 620px) {
  .sidebar nav { justify-content: flex-start; }
  .nav-item { flex: 0 0 46px; }
  .contracts-grid { grid-template-columns: 1fr; }
  .contracts-stats-grid { gap: 8px; }
  .contracts-stats-grid article { min-height: 94px; padding: 14px; }
  .issued-contract-row { grid-template-columns: 34px minmax(0,1fr) auto; gap: 8px; }
  .issued-contract-row > div:nth-child(3) { display: none; }
  .issued-contract-row > div:nth-child(4) { justify-items: end; }
  .campaign-suggestion { grid-template-columns: 1fr; padding: 14px; }
  .campaign-suggestion-icon { display: none; }
  .campaign-suggestion-actions { grid-column: 1; align-items: stretch; flex-direction: column; }
  .campaign-suggestion-actions > button { width: 100%; justify-content: center; }
  .profile-card-heading { grid-template-columns: 50px minmax(0,1fr); }
  .profile-large-avatar { width: 50px; height: 50px; }
}

