:root {
  --bg: #f5f6fb;
  --paper: #ffffff;
  --ink: #1c2730;
  --muted: #61717b;
  --line: #dde1ea;
  --green: #2e3d67;
  --green-2: #111733;
  --mint: #eef0fa;
  --red: #a33a2e;
  --amber: #9f6b1c;
  --blue: #1d6f99;
  --shadow: 0 18px 44px rgba(8, 46, 66, .12);
}

* { box-sizing: border-box; }
body {
  margin: 0;
  background:
    linear-gradient(135deg, rgba(46,61,103,.08), transparent 36%),
    linear-gradient(180deg, rgba(255,255,255,.86), transparent 260px),
    var(--bg);
  color: var(--ink);
  font-family: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.associate-shell {
  min-height: 100vh;
  background: #f4f6fb;
  color: #151a2f;
}
.associate-topbar {
  min-height: 76px;
  padding: 16px clamp(20px, 5vw, 72px);
  background: #111733;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.associate-brand { display: flex; align-items: center; gap: 16px; font-weight: 850; }
.associate-brand img { width: 112px; height: auto; }
.associate-link-button { padding: 9px 14px; border: 1px solid rgba(255,255,255,.35); background: transparent; }
.associate-login-layout {
  width: min(1160px, calc(100% - 40px));
  min-height: calc(100vh - 150px);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(340px, .72fr);
  gap: clamp(34px, 7vw, 90px);
  align-items: center;
  padding: 54px 0;
}
.associate-login-copy h1, .associate-welcome h1 {
  margin: 10px 0 18px;
  max-width: 720px;
  font-size: clamp(40px, 7vw, 72px);
  line-height: .95;
  letter-spacing: -.045em;
}
.associate-login-copy > p { max-width: 650px; color: #5d6578; font-size: 18px; line-height: 1.65; }
.associate-login-copy ul { margin: 30px 0 0; padding: 0; list-style: none; display: grid; gap: 12px; }
.associate-login-copy li { display: flex; align-items: center; gap: 10px; font-weight: 750; }
.associate-login-copy li::before { content: "✓"; display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: #dce8df; color: #1f6942; }
.associate-kicker { color: #3f4d7b; font-size: 12px; font-weight: 900; letter-spacing: .14em; text-transform: uppercase; }
.associate-login-card {
  padding: clamp(26px, 4vw, 42px);
  border: 1px solid #dfe3ef;
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 30px 80px rgba(17,23,51,.12);
}
.associate-login-card h2 { margin: 12px 0 8px; font-size: 30px; }
.associate-login-card > p, .associate-privacy { color: #697187; line-height: 1.55; }
.associate-secure-badge { display: inline-flex; padding: 7px 10px; border-radius: 999px; background: #edf0f8; color: #29345d; font-size: 12px; font-weight: 850; }
.associate-form { display: grid; gap: 14px; margin: 26px 0 18px; }
.associate-form label { display: grid; gap: 7px; font-weight: 800; }
.associate-form input { width: 100%; padding: 14px; border: 1px solid #cdd3e2; border-radius: 10px; background: #fff; }
.associate-form button { min-height: 50px; }
.associate-form-status { min-height: 24px; margin: 0; color: #3f4d7b; line-height: 1.5; }
.associate-dashboard { width: min(1180px, calc(100% - 40px)); margin: 0 auto; padding: 38px 0 70px; }
.associate-preview-banner { margin-bottom: 20px; padding: 15px 18px; border: 1px solid #d5d9e6; border-radius: 12px; background: #fff; display: flex; justify-content: space-between; gap: 20px; }
.associate-preview-banner span { color: #626b80; }
.associate-welcome { padding: 38px; border-radius: 22px; background: #111733; color: #fff; display: flex; align-items: center; justify-content: space-between; gap: 30px; box-shadow: 0 24px 60px rgba(17,23,51,.18); }
.associate-welcome .associate-kicker { color: #bdc7e7; }
.associate-welcome h1 { margin-bottom: 10px; font-size: clamp(38px, 6vw, 64px); }
.associate-welcome p { margin: 0; color: #c7cee3; }
.associate-standing { min-width: 170px; padding: 18px; border: 1px solid rgba(255,255,255,.18); border-radius: 15px; background: rgba(255,255,255,.08); }
.associate-standing span { display: block; color: #c7cee3; font-size: 12px; }
.associate-standing strong { display: block; margin-top: 7px; font-size: 24px; }
.associate-standing.is-overdue strong { color: #ffbeb8; }
.associate-standing.is-current strong { color: #bde6c8; }
.associate-standing.is-unconfirmed strong { color: #ffe0a3; }
.associate-standing.is-canceled strong { color: #ffbeb8; }
.associate-debt-alert { margin-top: 20px; padding: 24px; border: 1px solid #efb7b1; border-radius: 18px; background: #fff0ee; color: #701f19; display: flex; gap: 18px; align-items: flex-start; }
.associate-alert-icon { flex: 0 0 42px; width: 42px; height: 42px; display: grid; place-items: center; border-radius: 50%; background: #a52f25; color: #fff; font-size: 24px; font-weight: 950; }
.associate-debt-alert span { font-size: 12px; font-weight: 950; letter-spacing: .13em; text-transform: uppercase; }
.associate-debt-alert h2 { margin: 5px 0 7px; font-size: clamp(22px, 3vw, 30px); }
.associate-debt-alert p { margin: 0; line-height: 1.55; }
.associate-tabs { margin: 24px 0; padding: 7px; width: fit-content; border: 1px solid #dfe3ed; border-radius: 12px; background: #fff; display: flex; gap: 6px; }
.associate-tabs a { padding: 10px 16px; border-radius: 8px; color: #344062; font-weight: 850; }
.associate-tabs a:hover { background: #edf0f8; }
.associate-section { margin-top: 24px; padding: clamp(22px, 4vw, 36px); border: 1px solid #dfe3ed; border-radius: 20px; background: #fff; box-shadow: 0 18px 45px rgba(17,23,51,.07); }
.associate-renewal-section { background: linear-gradient(145deg, #fff 0%, #f7f8fc 100%); }
.associate-renewal-countdown { padding: 10px 13px; border-radius: 999px; background: #e4f1e8; color: #23603f; font-size: 13px; font-weight: 900; }
.associate-renewal-countdown.is-expired, .associate-renewal-countdown.is-canceled { background: #fff0ee; color: #8c2c24; }
.associate-renewal-grid { margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.associate-renewal-grid div { padding: 18px; border: 1px solid #e0e4ed; border-radius: 14px; background: #fff; }
.associate-renewal-grid dt { color: #70798d; font-size: 12px; font-weight: 850; }
.associate-renewal-grid dd { margin: 7px 0 0; color: #1d2747; font-size: 21px; font-weight: 900; }
.associate-renewal-next { margin-top: 16px; padding: 16px 18px; border-radius: 12px; background: #e9edf8; color: #283761; display: flex; justify-content: space-between; gap: 16px; }
.associate-renewal-rule { margin: 16px 0 0; color: #616b81; line-height: 1.6; }
.associate-section-head { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 24px; }
.associate-section-head h2 { margin: 5px 0 0; font-size: 30px; }
.associate-totals { display: flex; gap: 18px; color: #667087; }
.associate-totals span, .associate-totals strong { display: block; }
.associate-totals strong { margin-top: 3px; color: #171d33; font-size: 18px; }
.associate-charge-list { display: grid; gap: 16px; }
.associate-charge-card { padding: 22px; border: 1px solid #dfe3ed; border-radius: 15px; background: #fafbfe; }
.associate-charge-card.is-overdue { border-color: #e7b3ae; background: #fff8f7; }
.associate-charge-heading { display: flex; justify-content: space-between; gap: 20px; align-items: flex-start; }
.associate-charge-heading h3 { margin: 5px 0 0; font-size: 21px; }
.associate-charge-heading > strong { font-size: 25px; }
.associate-charge-status { color: #69738a; font-size: 12px; font-weight: 900; text-transform: uppercase; letter-spacing: .08em; }
.associate-charge-meta { margin: 18px 0; display: flex; gap: 32px; }
.associate-charge-meta div { display: grid; gap: 4px; }
.associate-charge-meta dt { color: #747d91; font-size: 12px; }
.associate-charge-meta dd { margin: 0; font-weight: 850; }
.associate-payment-code { margin-top: 12px; padding: 14px; border: 1px solid #e0e4ee; border-radius: 10px; background: #fff; display: grid; gap: 8px; }
.associate-payment-code > span { color: #5d667b; font-size: 12px; font-weight: 850; }
.associate-payment-code code { max-width: 100%; overflow-wrap: anywhere; color: #171d33; font-size: 13px; line-height: 1.55; }
.associate-copy, .associate-code-actions a { width: fit-content; padding: 8px 11px; border-radius: 7px; background: #edf0f8; color: #28345d; font-size: 12px; font-weight: 850; }
.associate-code-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.associate-primary-action { display: inline-flex; margin-top: 14px; padding: 11px 15px; border-radius: 8px; background: #293761; color: #fff; font-weight: 850; }
.associate-document-state {
  padding: 18px;
  border: 1px solid #dfe3ed;
  border-radius: 14px;
  background: #fafbfe;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.associate-document-state > div { display: grid; gap: 5px; }
.associate-document-state > div span { color: #667087; line-height: 1.5; }
.associate-document-state.is-available { border-color: #bcd9c6; background: #f1f8f3; }
.associate-document-state .associate-primary-action { flex: 0 0 auto; margin-top: 0; }
.associate-carnet-details {
  margin: 14px 0 18px;
  border: 1px solid #dfe3ed;
  border-radius: 12px;
  background: #fafbfe;
}
.associate-carnet-details > summary {
  padding: 15px 17px;
  cursor: pointer;
  color: #293761;
  font-weight: 900;
}
.associate-carnet-details > p {
  margin: 0;
  padding: 0 17px 14px;
  color: #667087;
  line-height: 1.5;
}
.associate-carnet-download-list {
  padding: 0 12px 12px;
  display: grid;
  gap: 8px;
}
.associate-carnet-download-list article {
  padding: 13px 14px;
  border: 1px solid #e0e4ed;
  border-radius: 9px;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.associate-carnet-download-list article > div { min-width: 0; display: grid; gap: 4px; }
.associate-carnet-download-list article span { color: #69738a; font-size: 12px; }
.associate-carnet-download-list article a {
  flex: 0 0 auto;
  padding: 9px 11px;
  border: 1px solid #c9d0e0;
  border-radius: 8px;
  color: #293761;
  font-size: 12px;
  font-weight: 900;
}
.associate-unavailable, .associate-empty-state { padding: 16px; border-radius: 10px; background: #f0f2f7; color: #60697d; }
.associate-empty-state { display: grid; gap: 5px; }
.associate-benefit-lock { padding: 8px 11px; border-radius: 999px; background: #fff0ee; color: #8c2c24; font-size: 12px; font-weight: 850; }
.associate-benefit-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.associate-benefit-card { padding: 20px; border: 1px solid #e0e4ed; border-radius: 14px; background: #fafbfe; }
.associate-benefit-card > span { color: #69738a; font-size: 12px; font-weight: 850; }
.associate-benefit-card h3 { margin: 7px 0 10px; }
.associate-benefit-card strong { color: #2d3b68; }
.associate-benefit-card p { margin: 12px 0 0; color: #6d7588; }
.associate-footer { min-height: 74px; padding: 20px clamp(20px, 5vw, 72px); border-top: 1px solid #dfe3ed; color: #687187; display: flex; justify-content: space-between; gap: 20px; }

@media (max-width: 820px) {
  .associate-login-layout { grid-template-columns: 1fr; padding: 34px 0; }
  .associate-login-copy h1 { font-size: 46px; }
  .associate-welcome, .associate-section-head, .associate-preview-banner { align-items: flex-start; flex-direction: column; }
  .associate-standing { width: 100%; }
  .associate-benefit-grid { grid-template-columns: 1fr; }
  .associate-renewal-grid { grid-template-columns: 1fr; }
  .associate-renewal-next { align-items: flex-start; flex-direction: column; }
  .associate-totals { width: 100%; justify-content: space-between; }
  .onboarding-steps { grid-template-columns: 1fr; }
}

@media (max-width: 520px) {
  .associate-topbar { padding: 14px 18px; }
  .associate-brand span { display: none; }
  .associate-dashboard, .associate-login-layout { width: min(100% - 24px, 1180px); }
  .associate-welcome, .associate-section { padding: 21px; border-radius: 16px; }
  .associate-debt-alert { padding: 18px; }
  .associate-charge-heading, .associate-footer { flex-direction: column; }
  .associate-charge-meta { gap: 18px; }
  .associate-tabs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
    overflow: visible;
  }
  .associate-tabs a {
    min-width: 0;
    padding-inline: 8px;
    white-space: normal;
    text-align: center;
  }
  .associate-document-state,
  .associate-carnet-download-list article { align-items: stretch; flex-direction: column; }
  .associate-document-state .associate-primary-action,
  .associate-carnet-download-list article a { width: 100%; }
}
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }

.app-shell { min-height: 100vh; display: flex; }
.sidebar {
  position: sticky;
  top: 0;
  width: 268px;
  height: 100vh;
  padding: 24px 18px;
  background: #111733;
  color: #f4fbff;
  display: flex;
  flex-direction: column;
  gap: 26px;
  overflow: hidden;
}
.brand { display: flex; flex: 0 0 auto; align-items: center; gap: 12px; }
.brand > div { min-width: 0; }
.brand small { display: block; color: #a9c5d4; margin-top: 2px; overflow-wrap: anywhere; }
.brand-logo {
  width: 132px;
  height: auto;
  border: 0;
  background: #111733;
}
.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: #c9c3da;
  color: #191a31;
  font-weight: 900;
  letter-spacing: 0;
}
.brand-mark.large { width: 62px; height: 62px; font-size: 24px; }
.nav {
  min-height: 0;
  padding-right: 4px;
  display: grid;
  flex: 1 1 auto;
  align-content: start;
  gap: 8px;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,.3) transparent;
}
.nav::-webkit-scrollbar { width: 6px; }
.nav::-webkit-scrollbar-thumb { border-radius: 999px; background: rgba(255,255,255,.3); }
.nav a, .logout {
  padding: 12px 13px;
  border-radius: 8px;
  color: #eef7fb;
}
.nav a:hover, .logout:hover { background: rgba(255,255,255,.08); }
.logout {
  flex: 0 0 auto;
  margin-top: 0;
  background: #2f4d8f;
  color: #fff;
  font-weight: 900;
  text-align: center;
  box-shadow: 0 8px 24px rgba(0,0,0,.18);
}
.logout:hover { background: #3a5eaa; }

.main {
  flex: 1;
  min-width: 0;
  padding: 34px;
}
.public-main { padding: 0; }
.page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px;
}
.page-header h1, .login-copy h1, .partner-hero h1 {
  margin: 4px 0 0;
  font-size: clamp(30px, 4vw, 54px);
  line-height: .95;
  letter-spacing: 0;
}
.eyebrow {
  display: inline-block;
  color: var(--green);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.button, button {
  border: 0;
  border-radius: 8px;
  background: var(--green);
  color: white;
  padding: 12px 16px;
  font-weight: 800;
  cursor: pointer;
}
.button.secondary {
  background: var(--paper);
  color: var(--green-2);
  border: 1px solid var(--line);
}
.button.danger {
  background: var(--red);
  color: #fff;
}
.button:disabled, button:disabled {
  cursor: not-allowed;
  opacity: .55;
}
.compact-button {
  width: fit-content;
  margin-top: 8px;
  padding: 8px 11px;
  min-height: 0;
}

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 18px;
}
.metric, .panel, .login-card, .lookup-card, .result-card {
  background: rgba(255,255,255,.9);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}
.metric { padding: 20px; }
.metric small, .metric span { color: var(--muted); }
.metric strong {
  display: block;
  font-size: 31px;
  margin: 8px 0 4px;
}
.metric.danger strong { color: var(--red); }
.metric.warning strong { color: var(--amber); }

.split, .detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(300px, .9fr);
  gap: 18px;
  margin-bottom: 18px;
}
.detail-grid { align-items: start; }
.panel { padding: 20px; margin-bottom: 18px; }
.onboarding-panel { border-left: 5px solid var(--red); }
.onboarding-panel.is-ready { border-left-color: var(--amber); }
.onboarding-panel.is-complete { border-left-color: #26704f; }
.onboarding-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.onboarding-steps > div { padding: 13px; border: 1px solid var(--line); border-radius: 8px; background: #f8f9fc; }
.onboarding-steps strong, .onboarding-steps span { display: block; }
.onboarding-steps span { margin-top: 4px; color: var(--muted); font-size: 12px; }
.onboarding-steps .done { border-color: #bddfcf; background: #f1faf5; }
.onboarding-steps .pending { border-color: #e8c6c0; background: #fff8f6; }
.onboarding-block-message { margin-top: 12px; padding: 13px 14px; border-radius: 8px; background: #fff0ed; color: #792b22; display: grid; gap: 4px; }
.onboarding-block-message.is-ready { background: #fff8e9; color: #714b10; }
.document-completion-form { margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--line); }
.dependent-completion-list { margin-top: 18px; display: grid; gap: 8px; }
.dependent-completion-list h3 { margin: 0 0 4px; font-size: 16px; }
.dependent-completion-list details { border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.dependent-completion-list summary { padding: 12px; cursor: pointer; font-weight: 800; }
.dependent-completion-list form { padding: 0 12px 12px; }
.billing-whatsapp-button { background: #22764f; }
.billing-delivery-state { padding: 10px 12px; border-radius: 8px; display: grid; gap: 3px; font-size: 12px; }
.billing-delivery-state.is-sent { background: #eef7f1; color: #185c45; }
.billing-delivery-state.is-uncertain { background: #fff1ee; color: var(--red); }
.billing-delivery-state span { color: inherit; opacity: .8; }
.whatsapp-panel { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 24px; align-items: center; }
.whatsapp-panel h2 { margin: 8px 0; }
.whatsapp-panel p { max-width: 720px; color: var(--muted); line-height: 1.55; }
.whatsapp-panel button { margin: 8px 8px 0 0; }
.whatsapp-test-form { display: inline-block; }
.whatsapp-warning { padding: 12px 14px; border-left: 4px solid var(--amber); border-radius: 6px; background: #fff8e9; color: #6e4a12 !important; }
.whatsapp-connect-auth { margin-top: 14px; max-width: 460px; }
.whatsapp-connect-auth label { display: grid; gap: 6px; color: var(--ink); font-weight: 800; }
.whatsapp-connect-auth input { width: 100%; padding: 11px 12px; border: 1px solid var(--line); border-radius: 7px; background: #fff; }
.whatsapp-disconnect { margin-top: 16px; max-width: 620px; border: 1px solid #e8c9c4; border-radius: 8px; background: #fff7f5; }
.whatsapp-disconnect summary { padding: 12px 14px; color: var(--red); font-weight: 900; cursor: pointer; }
.whatsapp-disconnect form { display: grid; gap: 12px; padding: 0 14px 14px; }
.whatsapp-disconnect form p { margin: 0; }
.whatsapp-disconnect label { display: grid; gap: 6px; color: var(--ink); font-weight: 800; }
.whatsapp-disconnect input { width: 100%; padding: 11px 12px; border: 1px solid var(--line); border-radius: 7px; background: #fff; }
.whatsapp-disconnect .button { justify-self: start; margin-top: 0; }
.qr-box { min-height: 280px; display: grid; place-items: center; padding: 16px; border: 1px dashed #aeb8d2; border-radius: 8px; background: #f7f8fd; color: var(--muted); text-align: center; }
.qr-box img { width: 248px; height: 248px; object-fit: contain; background: #fff; }
.form-note { min-height: 24px; font-weight: 700; }
.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}
.panel h2 { margin: 0; font-size: 19px; }
.panel-head a { color: var(--green); font-weight: 800; }

.table { display: grid; gap: 6px; }
.thead, .trow {
  display: grid;
  grid-template-columns: 1fr 1.4fr 1fr .8fr;
  gap: 12px;
  align-items: center;
}
.thead {
  padding: 0 12px 7px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}
.trow {
  min-height: 58px;
  padding: 11px 12px;
  border-radius: 8px;
  background: rgba(255,255,255,.58);
  border: 1px solid rgba(222,214,195,.65);
}
.trow:hover { border-color: #bbae91; }
.trow small { display: block; color: var(--muted); margin-top: 2px; }
.compact .thead, .compact .trow { grid-template-columns: 1.1fr .9fr .8fr .8fr; }
.finance-table .thead, .finance-table .trow { grid-template-columns: .8fr 1.25fr 1fr .65fr .7fr 1.35fr; }
.beneficiaries-table .thead, .beneficiaries-table .trow { grid-template-columns: .9fr 1.35fr .8fr 1.1fr .65fr; }
.messages-table .thead, .messages-table .trow { grid-template-columns: .62fr .68fr .95fr 1.55fr .62fr minmax(190px, 1.05fr); }
.messages-table .trow > span:last-child { min-width: 0; }
.messages-table .inline-form { grid-template-columns: minmax(0, 1fr); }
.messages-table .inline-form select,
.messages-table .inline-form button { width: 100%; min-width: 0; }
.messages-table .inline-form button { white-space: normal; line-height: 1.15; }
.renewal-table .thead, .renewal-table .trow { grid-template-columns: 1.1fr .75fr .65fr .85fr 1fr 1.25fr; }
.cash-table .thead, .cash-table .trow { grid-template-columns: .65fr 1.2fr .75fr .8fr 1.15fr 1.15fr; }
.cols-3 .thead, .cols-3 .trow { grid-template-columns: 1.3fr .7fr .9fr; }
.cols-4 .thead, .cols-4 .trow { grid-template-columns: 1.25fr .65fr .85fr .85fr; }
.cols-5 .thead, .cols-5 .trow { grid-template-columns: .65fr 1.2fr .85fr .65fr .85fr; }

.pill {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  min-height: 28px;
  padding: 5px 9px;
  border-radius: 999px;
  background: var(--mint);
  color: var(--green-2);
  font-size: 12px;
  font-weight: 900;
}
.pill.inadimplente, .pill.atrasado, .pill.vencido, .pill.bloqueado { background: #f8dfd9; color: var(--red); }
.pill.vence-em-30-dias, .pill.aberto, .pill.pendente, .pill.pendente-assinatura { background: #f5e9cc; color: var(--amber); }
.pill.agendada, .pill.em-contato, .pill.renovacao, .pill.renovação { background: #f5e9cc; color: var(--amber); }
.pill.enviada, .pill.ativo, .pill.renovou, .pill.pago { background: #eef7f1; color: #185c45; }
.pill.ignorada, .pill.cancelado, .pill.nao-renovado, .pill.não-renovado { background: #f8dfd9; color: var(--red); }
.pill.manual-assistido { background: #dcebf6; color: var(--blue); }

.rank-list, .activity-list, .data-list { display: grid; gap: 10px; }
.rank-list div, .activity-list div, .data-list div {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 12px;
  border-radius: 8px;
  background: rgba(255,255,255,.58);
}
.rank-list small, .activity-list span, .data-list dt { display: block; color: var(--muted); }
.data-list { margin: 0; }
.data-list dd { margin: 0; font-weight: 800; text-align: right; }

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}
.filters a {
  padding: 10px 12px;
  border-radius: 999px;
  background: rgba(255,250,240,.7);
  border: 1px solid var(--line);
  color: var(--green-2);
  font-weight: 800;
}
.filters a:hover { border-color: rgba(29,111,153,.45); }
.filters a.active {
  background: linear-gradient(135deg, #2e3d67, #1d6f99);
  border-color: transparent;
  color: white;
  box-shadow: 0 10px 22px rgba(29,111,153,.22);
}
.list-search {
  margin-bottom: 16px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255,255,255,.78);
  box-shadow: 0 8px 24px rgba(17,23,51,.05);
}
.list-search > label {
  margin-bottom: 8px;
  color: var(--ink);
}
.list-search-controls {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) auto auto;
  gap: 9px;
  align-items: stretch;
}
.list-search-controls .button,
.list-search-controls button {
  min-height: 42px;
  margin-top: 0;
  white-space: nowrap;
}
.empty-state {
  margin: 0;
  padding: 18px;
  border: 1px dashed var(--line);
  border-radius: 10px;
  color: var(--muted);
  background: rgba(255,255,255,.5);
}
.create-beneficiary-panel[hidden] { display: none; }

.form-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}
label { display: grid; gap: 7px; color: var(--muted); font-size: 13px; font-weight: 800; }
input, select, textarea {
  width: 100%;
  min-height: 42px;
  border-radius: 8px;
  border: 1px solid var(--line);
  padding: 10px 11px;
  background: #fffdf6;
  color: var(--ink);
}
textarea { min-height: 92px; resize: vertical; }
.wide { grid-column: span 2; }
.form-section {
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 8px 0 0;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255,255,255,.62);
}
.form-section legend {
  padding: 0 6px;
  color: var(--green-2);
  font-weight: 900;
}
.form-note {
  align-self: center;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.45;
}
.dependent-group {
  display: grid;
  gap: 12px;
}
.dependent-group[hidden] { display: none; }
.dependent-fieldset {
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 8px 0 0;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255,255,255,.58);
}
.dependent-fieldset legend {
  padding: 0 6px;
  color: var(--green-2);
  font-weight: 900;
}

.identity-card {
  min-height: 228px;
  background: linear-gradient(145deg, #111733, #2e3d67);
  color: white;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 26px;
}
.identity-card p { color: rgba(255,255,255,.72); }
.identity-card .pill { background: #eef0fa; color: #111733; }
.card-code { color: #d9eef7; font-weight: 900; }
.identity-meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
  padding-top: 18px;
  border-top: 1px solid rgba(255,255,255,.18);
}
.identity-meta dt {
  color: rgba(255,255,255,.62);
  font-size: 12px;
  font-weight: 800;
}
.identity-meta dd {
  margin: 4px 0 0;
  font-weight: 900;
}

.partner-grid, .integrations {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}
.partner-grid-manage { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.partner-card h2, .integration-card h2 { margin: 16px 0 8px; }
.partner-card p, .integration-card p { color: var(--muted); }
.partner-card strong {
  display: block;
  margin: 12px 0 10px;
  line-height: 1.35;
  color: var(--green-2);
}
.partner-card span:not(.pill) {
  display: block;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}
.edit-details {
  margin-top: 14px;
  border-top: 1px solid var(--line);
  padding-top: 12px;
}
.edit-details summary {
  cursor: pointer;
  color: var(--green-2);
  font-weight: 900;
}
.edit-details .form-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 12px;
}
.edit-details .wide { grid-column: 1 / -1; }

.integration-note {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 16px;
  padding: 13px 14px;
  border-radius: 8px;
  background: #eef7f1;
  border: 1px solid rgba(15,107,79,.18);
  color: var(--green-2);
}
.integration-note span { color: var(--muted); }
.sicoob-carne-note {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: start;
  gap: 8px;
}
.sicoob-carne-note > .button {
  width: fit-content;
  max-width: 100%;
  justify-self: start;
  white-space: normal;
}
.billing-panel { scroll-margin-top: 18px; }
.overview-main { min-width: 0; }
.billing-panel .panel-head > div { display: grid; gap: 4px; }
.billing-list { display: grid; gap: 10px; }
.billing-individual-details {
  margin-top: 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
}
.billing-individual-details > summary {
  padding: 13px 15px;
  cursor: pointer;
  color: var(--navy);
  font-weight: 800;
}
.billing-individual-details > p {
  margin: 0;
  padding: 0 15px 12px;
  color: var(--muted);
}
.billing-individual-details > .billing-list { padding: 0 12px 12px; }
.billing-row {
  display: grid;
  grid-template-columns: minmax(110px, .7fr) minmax(320px, 1.7fr) minmax(95px, .6fr);
  gap: 12px;
  align-items: center;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255,255,255,.58);
}
.billing-summary { display: grid; gap: 4px; }
.billing-summary strong { color: var(--ink); }
.billing-summary span, .billing-status small { color: var(--muted); font-size: 12px; }
.billing-meta {
  display: grid;
  grid-template-columns: minmax(100px, .95fr) minmax(110px, 1.05fr) minmax(0, 1fr);
  gap: 12px;
  margin: 0;
}
.billing-meta div { min-width: 0; }
.billing-meta dt { color: var(--muted); font-size: 11px; font-weight: 800; text-transform: uppercase; }
.billing-meta dd { margin: 4px 0 0; font-weight: 900; overflow-wrap: anywhere; }
.billing-meta > div:nth-child(-n + 2) dd { white-space: nowrap; }
.billing-status { display: grid; gap: 6px; justify-items: start; }
.billing-actions { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(150px, .55fr) minmax(320px, 1.45fr); gap: 8px; }
.billing-actions > .button { width: 100%; text-align: center; align-self: end; }
.billing-issue-form { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(150px, .55fr) minmax(260px, 1.25fr) auto; gap: 8px; align-items: end; }
.billing-issue-form label { min-width: 0; }
.billing-issue-form input, .billing-issue-form textarea, .billing-issue-form button { min-height: 42px; padding: 9px 10px; }
.billing-issue-form textarea { resize: vertical; }
.billing-issue-form button { white-space: nowrap; }
.billing-reissue-form { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; align-items: end; }
.billing-reissue-form label { min-width: 0; }
.billing-reissue-form input, .billing-reissue-form button { min-height: 42px; padding: 9px 10px; }
.billing-reissue-form button { white-space: nowrap; }
.inline-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
}
.inline-form select, .inline-form button {
  min-height: 36px;
  padding: 8px 10px;
}
.inline-form button { white-space: nowrap; }
.adhesion-payment-form {
  grid-column: 1 / -1;
  grid-template-columns: max-content minmax(0, 1fr);
  align-items: center;
  margin-top: 0;
}
.adhesion-payment-form small {
  color: var(--muted);
  line-height: 1.35;
}
.adhesion-payment-state {
  align-items: center;
  flex-wrap: wrap;
}
.adhesion-payment-state > div {
  min-width: min(100%, 280px);
  flex: 1 1 320px;
  display: grid;
  gap: 4px;
}
.adhesion-payment-state > small { color: var(--muted); }
.adhesion-payment-state > .adhesion-payment-form {
  flex: 1 1 100%;
}
.adhesion-payment-state.is-paid {
  border-color: rgba(38, 112, 79, .28);
  background: #f1faf5;
}
.adhesion-payment-state.is-pending { background: #fff8e9; }
.manual-pay-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  margin-top: 8px;
}
.manual-pay-form select, .manual-pay-form button {
  min-height: 36px;
  padding: 8px 10px;
}
.single-action { margin-top: 8px; }
.action-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}
.stacked-form {
  grid-template-columns: 1fr;
}
.decision-panel {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 18px;
  align-items: start;
}
.decision-panel p { color: var(--muted); line-height: 1.55; }
.decision-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
.decision-grid div {
  min-height: 130px;
  padding: 14px;
  border-radius: 8px;
  background: rgba(255,255,255,.58);
  border: 1px solid rgba(222,214,195,.68);
}
.decision-grid.mini div { min-height: 104px; }
.decision-grid span {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  line-height: 1.45;
}
.operation-form {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: end;
}
.operation-form button { min-height: 42px; }
.cancellation-process-note {
  margin: 0 0 16px;
  padding: 14px 16px;
  border: 1px solid #cfd6e7;
  border-radius: 8px;
  background: #f6f8fd;
  color: var(--green-2);
}
.cancellation-process-note ol {
  margin: 9px 0 0;
  padding-left: 22px;
  display: grid;
  gap: 7px;
  color: var(--muted);
  line-height: 1.45;
}
.cancellation-bank-form,
.cancellation-request-form { width: 100%; }
.cancellation-bank-form button,
.cancellation-request-form button {
  grid-column: span 2;
  width: 100%;
  min-width: 0;
  white-space: normal;
  overflow-wrap: anywhere;
  line-height: 1.25;
}
.cancellation-next-step {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 5px;
}

.login-panel, .partner-hero {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1.1fr 420px;
  gap: 28px;
  align-items: center;
  padding: 52px;
}
.login-copy p, .partner-hero p { max-width: 620px; color: var(--muted); font-size: 18px; }
.login-card, .lookup-card { padding: 26px; display: grid; gap: 14px; }
.login-card a { text-align: center; color: var(--green); font-weight: 800; }
.login-logo {
  width: 292px;
  max-width: 100%;
  border: 0;
  background: white;
  box-shadow: none;
}

.partner-hero {
  min-height: auto;
  padding-bottom: 22px;
}
.result-card {
  margin: 0 52px 18px;
  padding: 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.result-card.ok { border-color: rgba(15,107,79,.35); }
.result-card.blocked { border-color: rgba(163,58,46,.35); }
.status-big {
  font-size: clamp(24px, 4vw, 46px);
  font-weight: 950;
  color: var(--green);
}
.blocked .status-big { color: var(--red); }
.public-main .panel { margin-left: 52px; margin-right: 52px; }
.warning-panel { border-color: rgba(159,107,28,.35); }
.admin-link { margin: 18px 52px 40px; }
.admin-link a { color: var(--green); font-weight: 800; }
.partner-benefit-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 16px;
}
.partner-benefit-list article {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255,255,255,.58);
}
.partner-benefit-list span {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
}
.partner-benefit-list p {
  margin: 8px 0 0;
  color: var(--ink);
  line-height: 1.4;
}

.contract-doc {
  max-width: 880px;
  margin: 0 auto;
  padding: 54px;
  background: white;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  line-height: 1.7;
}
.contract-doc h1 { line-height: 1.1; }
.public-contract-header {
  max-width: 1180px;
  margin: 0 auto 24px;
  padding: 34px 34px 0;
}
.official-contract {
  max-width: 920px;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 15px;
  color: #111;
}
.official-contract h1 {
  margin: 0 0 46px;
  text-align: center;
  font-size: 24px;
  text-transform: uppercase;
}
.official-contract h2 {
  margin: 28px 0 10px;
  font-size: 16px;
  text-transform: uppercase;
}
.official-contract h3 {
  margin: 18px 0 8px;
  font-size: 14px;
  text-transform: uppercase;
}
.official-contract p { margin: 0 0 12px; }
.contract-alert {
  font-size: 20px;
  font-weight: 900;
  line-height: 1.35;
  margin-bottom: 54px;
}
.contract-fields {
  display: grid;
  gap: 8px;
  margin: 20px 0;
  padding: 14px 0;
  border-top: 1px solid #d7dbe4;
  border-bottom: 1px solid #d7dbe4;
}
.dependent-contract-grid {
  display: grid;
  gap: 10px;
  margin: 14px 0 20px;
}
.dependent-contract-grid section,
.contract-option-box,
.contract-signature-status {
  padding: 12px;
  border: 1px solid #d7dbe4;
  border-radius: 8px;
  background: #fafbff;
}
.contract-option-box p,
.contract-signature-status { margin-bottom: 6px; }
.signature-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 42px;
  margin-top: 70px;
}
.signature-row span {
  border-top: 1px solid #333;
  padding-top: 10px;
  text-align: center;
}
.contract-date { margin-top: 42px; text-align: right; }
.witness-row { margin-top: 52px; }
.signature-panel {
  display: grid;
  align-content: start;
  gap: 14px;
}
.signature-actions {
  display: grid;
  gap: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}
.upload-form {
  display: grid;
  gap: 10px;
}
.history-list {
  display: grid;
  gap: 8px;
}
.history-list div {
  padding: 10px 12px;
  border-radius: 8px;
  background: rgba(255,255,255,.64);
  border: 1px solid var(--line);
}
.history-list span {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
}
.readonly-link input {
  background: #f4f6fb;
  color: var(--green-2);
  font-size: 13px;
  font-weight: 800;
}
.signature-preview {
  max-width: 880px;
  display: grid;
  gap: 18px;
}
.signature-preview h2 {
  margin: 10px 0 6px;
  font-size: 30px;
}
.signature-preview p {
  margin: 0;
  color: var(--muted);
}
.signature-preview .contract-alert {
  margin: 0;
  padding: 16px;
  border: 1px solid rgba(159,107,28,.32);
  border-radius: 8px;
  background: #fff7df;
  color: #6d4914;
  font-size: 15px;
}
.acceptance-box,
.receipt-panel {
  max-width: 920px;
  margin: 18px auto 0;
  display: grid;
  gap: 16px;
}
.acceptance-box h2,
.receipt-panel h2 {
  margin: 0;
  font-size: 28px;
}
.acceptance-box p,
.receipt-panel p {
  margin: 0;
  color: var(--muted);
}
.acceptance-form {
  display: grid;
  gap: 12px;
}
.check-row {
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start;
  gap: 10px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffdf6;
  color: var(--ink);
  font-size: 14px;
  line-height: 1.45;
}
.check-row input {
  width: 18px;
  min-height: 18px;
  margin-top: 2px;
}
.receipt-grid div {
  align-items: flex-start;
}
.hash-box {
  display: grid;
  gap: 8px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f7f8fc;
}
.hash-box code {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  color: var(--green-2);
}

.print-sheet {
  max-width: 980px;
  margin: 0 auto 18px;
  display: grid;
  gap: 18px;
}
.benefit-card {
  min-height: 285px;
  padding: 24px;
  border-radius: 14px;
  background: #111733;
  color: white;
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  box-shadow: var(--shadow);
}
.benefit-card img {
  width: min(420px, 80%);
  height: auto;
}
.benefit-card span { color: #c8c7d7; font-weight: 900; text-transform: uppercase; letter-spacing: .08em; }
.benefit-card h2 { margin: 0; font-size: 34px; }
.benefit-card p { margin: 0; color: #c8c7d7; }
.benefit-card dl, .boleto-card dl {
  margin: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
.benefit-card dt, .boleto-card dt { color: var(--muted); font-weight: 800; }
.benefit-card dd, .boleto-card dd { margin: 4px 0 0; font-weight: 900; }
.boleto-number {
  white-space: nowrap;
  font-size: 14px;
}
.benefit-card dt { color: #c8c7d7; }
.secondary-card { min-height: 220px; }
.card-stack {
  max-width: 1060px;
  margin: 0 auto 18px;
  display: grid;
  gap: 22px;
}
.inove-card-pair {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  align-items: start;
}
.inove-card-face {
  position: relative;
  overflow: hidden;
  aspect-ratio: 697 / 438;
  border-radius: 8px;
  border: 1px solid #d8dbe8;
  background: #fff;
  box-shadow: var(--shadow);
}
.inove-card-front img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.inove-card-back {
  padding: 24px 22px 18px;
  color: #283255;
  display: grid;
  grid-template-rows: auto 1fr auto;
}
.inove-card-back::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(58deg, transparent 0 42%, rgba(42,49,88,.24) 42.2%, rgba(42,49,88,.24) 42.7%, transparent 43%),
    linear-gradient(58deg, transparent 0 74%, rgba(42,49,88,.18) 74.2%, rgba(42,49,88,.18) 74.7%, transparent 75%),
    linear-gradient(90deg, transparent 0 26%, rgba(42,49,88,.18) 26.2%, rgba(42,49,88,.18) 26.6%, transparent 27%);
}
.inove-card-back > * {
  position: relative;
  z-index: 1;
}
.card-back-top {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
}
.card-back-logo {
  width: min(300px, 58%);
  height: auto;
  margin-top: 38px;
}
.card-back-qr {
  display: grid;
  gap: 7px;
  justify-items: center;
  font-weight: 900;
  color: #29335a;
  white-space: nowrap;
}
.card-back-qr img {
  width: 118px;
  height: auto;
  display: block;
}
.card-back-data {
  align-self: end;
  display: grid;
  gap: 10px;
  margin: 0 0 4px;
  font-size: 20px;
  line-height: 1.1;
  font-weight: 900;
}
.card-back-data div {
  display: flex;
  gap: 8px;
  min-width: 0;
}
.card-back-data dt,
.card-back-data dd {
  margin: 0;
}
.card-back-data dd {
  overflow-wrap: anywhere;
}
.card-member-type {
  align-self: end;
  justify-self: end;
  color: #5c647f;
  font-size: 12px;
  font-weight: 800;
}
.carne-sheet { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.boleto-card {
  padding: 18px;
  border-radius: 8px;
  background: white;
  border: 1px dashed #9ca3b9;
  box-shadow: var(--shadow);
}
.boleto-card h2 { margin: 4px 0; }
.bank-line {
  padding: 10px;
  border-radius: 6px;
  background: #f2f3f8;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 13px;
  word-break: break-all;
}

.flash-wrap { display: grid; gap: 8px; margin-bottom: 14px; }
.flash {
  padding: 12px 14px;
  border-radius: 8px;
  background: var(--mint);
  color: var(--green-2);
  font-weight: 800;
}
.flash.error { background: #f8dfd9; color: var(--red); }

@media (max-width: 1365px) {
  .detail-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .detail-grid > *, .detail-list dd {
    min-width: 0;
    overflow-wrap: anywhere;
  }
}

@media (min-width: 981px) and (max-width: 1180px) {
  .main { padding: 24px; }
  .create-beneficiary-panel .form-grid,
  .create-beneficiary-panel .form-section,
  .operation-form {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .create-beneficiary-panel .form-section,
  .create-beneficiary-panel .dependent-group,
  .operation-form .wide,
  .operation-form > button {
    grid-column: 1 / -1;
  }
  .operation-form > button {
    width: 100%;
    white-space: normal;
  }
}

@media (max-width: 980px) {
  .whatsapp-panel { grid-template-columns: 1fr; }
  .app-shell, .login-panel, .partner-hero { display: block; }
  .sidebar {
    position: relative;
    width: auto;
    height: auto;
    overflow: visible;
  }
  .nav {
    min-height: auto;
    padding-right: 0;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    flex: 0 1 auto;
    overflow: visible;
  }
  .logout { width: 100%; }
  .main, .login-panel, .partner-hero { padding: 22px; }
  .page-header {
    align-items: flex-start;
    flex-direction: column;
  }
  .page-header .action-row {
    width: 100%;
    justify-content: flex-start;
  }
  .page-header .action-row .button {
    flex: 1 1 180px;
    text-align: center;
  }
  .metrics-grid, .split, .detail-grid, .partner-grid, .integrations, .form-grid, .form-section, .dependent-fieldset, .partner-benefit-list {
    grid-template-columns: 1fr;
  }
  .detail-grid { grid-template-columns: minmax(0, 1fr); }
  .detail-grid > *, .detail-list dd { min-width: 0; overflow-wrap: anywhere; }
  .identity-meta {
    grid-template-columns: 1fr;
  }
  .decision-panel, .decision-grid, .integration-note {
    display: grid;
    grid-template-columns: 1fr;
  }
  .billing-row, .billing-meta, .billing-actions, .billing-issue-form, .billing-reissue-form {
    grid-template-columns: 1fr;
  }
  .billing-actions > .button, .billing-issue-form button, .billing-reissue-form button { width: 100%; }
  .adhesion-payment-form {
    grid-template-columns: 1fr;
  }
  .adhesion-payment-form button {
    width: 100%;
    white-space: normal;
  }
  .cancellation-bank-form button,
  .cancellation-request-form button {
    grid-column: auto;
  }
  .thead { display: none; }
  .trow,
  .finance-table .trow,
  .beneficiaries-table .trow,
  .messages-table .trow,
  .renewal-table .trow,
  .cash-table .trow,
  .cols-3 .trow,
  .cols-4 .trow,
  .cols-5 .trow {
    grid-template-columns: 1fr;
    align-items: start;
  }
  .wide { grid-column: auto; }
  .result-card, .public-main .panel, .admin-link { margin-left: 22px; margin-right: 22px; }
  .result-card {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
  .status-big {
    max-width: 100%;
    overflow-wrap: anywhere;
  }
  .public-contract-header {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    align-items: stretch;
    padding: 22px 22px 0;
  }
  .public-contract-header > *,
  .public-contract-header .action-row {
    min-width: 0;
  }
  .public-contract-header .action-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
  }
  .public-contract-header .action-row .button,
  .public-contract-header .action-row button {
    width: 100%;
  }
  .official-contract {
    width: 100%;
    max-width: 100%;
    padding: 24px 20px;
    overflow-wrap: anywhere;
  }
  .official-contract code {
    display: block;
    max-width: 100%;
    overflow-wrap: anywhere;
    word-break: break-all;
  }
  .official-contract h1 {
    margin-bottom: 26px;
    font-size: 20px;
  }
  .contract-alert {
    margin-bottom: 32px;
    font-size: 16px;
  }
  .signature-row {
    grid-template-columns: 1fr;
    gap: 38px;
  }
  .carne-sheet, .benefit-card dl, .boleto-card dl {
    grid-template-columns: 1fr;
  }
  .inove-card-pair {
    grid-template-columns: 1fr;
  }
  .card-back-logo {
    width: 54%;
    margin-top: 28px;
  }
  .card-back-qr img {
    width: 102px;
  }
  .card-back-data {
    font-size: 16px;
  }
  .acceptance-box h2,
  .receipt-panel h2 {
    font-size: 24px;
  }
}

@media print {
  body { background: white; }
  .sidebar, .no-print, .flash-wrap { display: none; }
  .main { padding: 0; }
  .contract-doc {
    max-width: none;
    padding: 14mm;
    box-shadow: none;
    border: 0;
  }
  .official-contract {
    font-size: 10.5pt;
    line-height: 1.45;
  }
  .official-contract h1 { font-size: 15pt; margin-bottom: 18mm; }
  .official-contract h2 { break-after: avoid; }
  .dependent-contract-grid section,
  .contract-option-box,
  .contract-signature-status { break-inside: avoid; }
  .receipt-panel {
    max-width: none;
    box-shadow: none;
    border: 0;
  }
  .print-sheet { max-width: none; }
  .card-stack { max-width: none; }
  .inove-card-pair { break-inside: avoid; page-break-inside: avoid; }
  .inove-card-face { box-shadow: none; break-inside: avoid; }
  .benefit-card, .boleto-card { box-shadow: none; break-inside: avoid; }
  .boleto-card { page-break-inside: avoid; }
}

/* Portal público do Beneficiário / PWA. Escopo isolado da prévia administrativa. */
.associate-pwa-body {
  min-width: 320px;
  min-height: 100vh;
  min-height: 100dvh;
  overflow-x: hidden;
  background: #f4f6fb;
  color: #171d33;
}
.associate-pwa-body [hidden] { display: none !important; }
.associate-pwa-body button,
.associate-pwa-body a,
.associate-pwa-body input,
.associate-offline-body a {
  -webkit-tap-highlight-color: transparent;
}
.associate-pwa-body button,
.associate-pwa-body .associate-primary-action,
.associate-pwa-body .associate-code-actions a,
.associate-pwa-body .associate-partner-link,
.associate-pwa-body .associate-tabs a,
.associate-pwa-body .associate-link-button,
.associate-pwa-body .associate-install-button {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.associate-pwa-body :is(a, button, input, summary):focus-visible,
.associate-offline-body a:focus-visible {
  outline: 3px solid #2f5fc7;
  outline-offset: 3px;
}
.associate-pwa-body .associate-topbar :is(a, button):focus-visible {
  outline-color: #ffd675;
}
.associate-skip-link {
  position: fixed;
  z-index: 1000;
  top: 8px;
  left: 8px;
  padding: 12px 16px;
  border-radius: 8px;
  background: #fff;
  color: #111733;
  font-weight: 900;
  transform: translateY(-160%);
}
.associate-skip-link:focus { transform: translateY(0); }
.associate-pwa-body .associate-shell {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}
.associate-pwa-body .associate-topbar {
  position: sticky;
  z-index: 30;
  top: 0;
  min-height: 72px;
  padding-top: max(14px, env(safe-area-inset-top));
  padding-right: max(clamp(18px, 5vw, 72px), env(safe-area-inset-right));
  padding-bottom: 14px;
  padding-left: max(clamp(18px, 5vw, 72px), env(safe-area-inset-left));
  box-shadow: 0 8px 24px rgba(8, 12, 35, .16);
}
.associate-pwa-body .associate-brand {
  min-width: 0;
  color: #fff;
}
.associate-pwa-body .associate-brand img {
  width: 116px;
  height: auto;
  border-radius: 4px;
}
.associate-pwa-body .associate-brand span {
  overflow-wrap: anywhere;
}
.associate-topbar-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}
.associate-topbar-actions form { margin: 0; }
.associate-pwa-body .associate-link-button,
.associate-pwa-body .associate-install-button {
  margin: 0;
  padding: 10px 14px;
  border: 1px solid rgba(255, 255, 255, .58);
  border-radius: 9px;
  background: transparent;
  color: #fff;
  font-weight: 850;
  cursor: pointer;
}
.associate-pwa-body .associate-install-button {
  border-color: #fff;
  background: #fff;
  color: #111733;
}
.associate-flash-wrap {
  width: min(1180px, calc(100% - 40px));
  margin: 18px auto 0;
  display: grid;
  gap: 8px;
}
.associate-flash {
  padding: 13px 15px;
  border: 1px solid #b9d9c7;
  border-radius: 10px;
  background: #edf8f1;
  color: #174d33;
  font-weight: 800;
}
.associate-flash.is-error {
  border-color: #e0aaa4;
  background: #fff0ee;
  color: #781f19;
}
.associate-pwa-body .associate-login-layout {
  flex: 1;
  width: min(1160px, calc(100% - 40px));
}
.associate-pwa-body .associate-login-copy h1 {
  color: #151a2f;
  text-wrap: balance;
}
.associate-pwa-body .associate-login-copy li::before {
  flex: 0 0 24px;
}
.associate-pwa-body .associate-login-card {
  overflow: hidden;
}
.associate-pwa-body .associate-login-card h2 {
  color: #171d33;
}
.associate-pwa-body .associate-form {
  margin: 24px 0 16px;
  gap: 9px;
}
.associate-pwa-body .associate-form label {
  color: #252e4b;
  font-size: 15px;
}
.associate-pwa-body .associate-form input {
  min-height: 48px;
  padding: 12px 13px;
  border: 1px solid #aeb7cd;
  border-radius: 10px;
  color: #171d33;
  font-size: 16px;
}
.associate-pwa-body .associate-form input:focus {
  border-color: #2f5fc7;
  box-shadow: 0 0 0 3px rgba(47, 95, 199, .15);
}
.associate-pwa-body .associate-form small {
  color: #545e75;
  line-height: 1.5;
}
.associate-pwa-body .associate-form button,
.associate-pwa-body .associate-app-install button {
  min-height: 48px;
  padding: 11px 16px;
  border: 1px solid #26345e;
  border-radius: 10px;
  background: #293761;
  color: #fff;
  font-weight: 900;
  cursor: pointer;
}
.associate-pwa-body .associate-form button:hover,
.associate-pwa-body .associate-app-install button:hover {
  background: #182344;
}
.associate-pwa-body .associate-form button:disabled {
  cursor: wait;
  opacity: .68;
}
.associate-pwa-body .associate-verify-form {
  margin-top: 18px;
  padding-top: 20px;
  border-top: 1px solid #dfe3ed;
}
.associate-pwa-body .associate-form-status {
  min-height: 0;
  margin: 15px 0;
  color: #354470;
  font-weight: 750;
}
.associate-pwa-body .associate-form-status:empty { margin: 0; }
.associate-noscript {
  padding: 11px 12px;
  border-radius: 8px;
  background: #fff0ee;
  color: #781f19;
  font-weight: 800;
}
.associate-pwa-body .associate-privacy {
  display: block;
}
.associate-pwa-body .associate-dashboard {
  flex: 1;
}
.associate-app-install {
  margin-bottom: 20px;
  padding: 18px 20px;
  border: 1px solid #cad3e8;
  border-radius: 16px;
  background: linear-gradient(135deg, #eef2fb, #fff);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}
.associate-app-install h2 {
  margin: 4px 0 5px;
  color: #182344;
  font-size: 21px;
}
.associate-app-install p { margin: 0; color: #505b72; }
.associate-pwa-body .associate-welcome {
  overflow: hidden;
}
.associate-pwa-body .associate-welcome h1 {
  text-wrap: balance;
}
.associate-masked-data {
  margin-top: 12px !important;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  font-size: 13px;
}
.associate-pwa-body .associate-standing {
  flex: 0 0 auto;
}
.associate-pwa-body .associate-debt-alert h2 {
  text-wrap: balance;
}
.associate-pwa-body .associate-tabs {
  max-width: 100%;
  overflow-x: auto;
  scrollbar-width: thin;
  -webkit-overflow-scrolling: touch;
}
.associate-pwa-body .associate-tabs a {
  flex: 0 0 auto;
  white-space: nowrap;
}
.associate-pwa-body :is(#carteirinha-associado, #renovacao-associado, #cobrancas-associado, #historico-associado, #beneficios-associado) {
  scroll-margin-top: 96px;
}
.associate-pwa-body .associate-section {
  min-width: 0;
}
.associate-pwa-body .associate-section-head > * {
  min-width: 0;
}
.associate-card-status {
  flex: 0 0 auto;
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
}
.associate-card-status.is-active {
  background: #e0f2e7;
  color: #175b38;
}
.associate-card-status.is-blocked {
  background: #fff0ee;
  color: #84271f;
}
.associate-virtual-card {
  position: relative;
  isolation: isolate;
  width: min(100%, 690px);
  overflow: hidden;
  padding: clamp(22px, 5vw, 38px);
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: 22px;
  background:
    radial-gradient(circle at 86% 12%, rgba(183, 189, 216, .32), transparent 28%),
    linear-gradient(145deg, #151b3a, #2f3d70);
  color: #fff;
  box-shadow: 0 26px 60px rgba(17, 23, 51, .22);
}
.associate-virtual-card::after {
  content: "";
  position: absolute;
  z-index: -1;
  right: -90px;
  bottom: -120px;
  width: 300px;
  height: 300px;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 50%;
}
.associate-virtual-card-brand {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}
.associate-virtual-card-brand img {
  width: clamp(125px, 28vw, 190px);
  height: auto;
  border-radius: 4px;
}
.associate-virtual-card-brand span {
  padding: 7px 10px;
  border: 1px solid rgba(255, 255, 255, .35);
  border-radius: 999px;
  color: #f5f6ff;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.associate-virtual-card-data {
  margin: clamp(30px, 7vw, 54px) 0 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px 24px;
}
.associate-virtual-card-data .is-wide { grid-column: 1 / -1; }
.associate-virtual-card-data dt {
  color: #c9cee4;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.associate-virtual-card-data dd {
  margin: 5px 0 0;
  color: #fff;
  font-size: clamp(16px, 3.4vw, 21px);
  font-weight: 900;
  line-height: 1.2;
  overflow-wrap: anywhere;
}
.associate-virtual-card > p {
  margin: 26px 0 0;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, .18);
  color: #dfe3f5;
  font-size: 12px;
  line-height: 1.55;
}
.associate-card-empty { max-width: 690px; }
.associate-pwa-body .associate-charge-card,
.associate-history-card,
.associate-pwa-body .associate-benefit-card {
  min-width: 0;
}
.associate-pwa-body .associate-charge-heading > *,
.associate-pwa-body .associate-charge-meta > * {
  min-width: 0;
}
.associate-pwa-body .associate-payment-code code {
  user-select: all;
  -webkit-user-select: all;
}
.associate-pwa-body .associate-copy,
.associate-pwa-body .associate-code-actions a {
  width: fit-content;
  padding: 10px 13px;
  border: 1px solid #c9d0e0;
  border-radius: 8px;
  cursor: pointer;
}
.associate-pwa-body .associate-primary-action {
  padding: 11px 15px;
  border: 1px solid #293761;
}
.associate-copy-status {
  min-height: 0;
  margin: 14px 0 0;
  color: #354470;
  font-size: 13px;
  font-weight: 750;
}
.associate-copy-status:empty { margin: 0; }
.associate-copy-field {
  position: fixed;
  top: 0;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}
.associate-history-list {
  display: grid;
  gap: 12px;
}
.associate-history-card {
  padding: 18px 20px;
  border: 1px solid #dfe3ed;
  border-radius: 14px;
  background: #fafbfe;
  display: grid;
  grid-template-columns: minmax(180px, .8fr) minmax(0, 1.5fr);
  gap: 20px;
  align-items: center;
}
.associate-history-card h3 {
  margin: 7px 0 0;
  color: #202946;
  overflow-wrap: anywhere;
}
.associate-paid-badge {
  display: inline-flex;
  padding: 6px 9px;
  border-radius: 999px;
  background: #e0f2e7;
  color: #175b38;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}
.associate-history-card dl {
  margin: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}
.associate-history-card dt {
  color: #59647b;
  font-size: 11px;
  font-weight: 800;
}
.associate-history-card dd {
  margin: 5px 0 0;
  color: #202946;
  font-weight: 850;
  overflow-wrap: anywhere;
}
.associate-partner-link {
  margin-top: 15px;
  padding: 9px 12px;
  border: 1px solid #c8d0e2;
  border-radius: 8px;
  color: #293761;
  font-size: 13px;
  font-weight: 850;
}
.associate-install-help {
  margin-top: 24px;
  border: 1px solid #d5dbea;
  border-radius: 14px;
  background: #fff;
  color: #273150;
}
.associate-install-help summary {
  min-height: 48px;
  padding: 14px 18px;
  display: flex;
  align-items: center;
  cursor: pointer;
  font-weight: 900;
}
.associate-install-help > div {
  padding: 0 18px 18px;
  color: #505b72;
  line-height: 1.6;
}
.associate-install-help p:last-child { margin-bottom: 0; }
.associate-pwa-body .associate-footer {
  padding-right: max(clamp(20px, 5vw, 72px), env(safe-area-inset-right));
  padding-bottom: max(20px, env(safe-area-inset-bottom));
  padding-left: max(clamp(20px, 5vw, 72px), env(safe-area-inset-left));
}
.associate-pwa-body .associate-footer a {
  color: #293761;
  font-weight: 850;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.associate-offline-body {
  min-width: 320px;
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0;
  padding: max(24px, env(safe-area-inset-top)) max(18px, env(safe-area-inset-right)) max(24px, env(safe-area-inset-bottom)) max(18px, env(safe-area-inset-left));
  background: #111733;
  color: #fff;
  display: grid;
  place-items: center;
}
.associate-offline-card {
  width: min(100%, 520px);
  padding: clamp(24px, 7vw, 44px);
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 22px;
  background: #fff;
  color: #171d33;
  box-shadow: 0 28px 70px rgba(0, 0, 0, .28);
}
.associate-offline-card img {
  width: 160px;
  max-width: 58%;
  height: auto;
  border-radius: 4px;
}
.associate-offline-card > span {
  display: block;
  margin-top: 26px;
  color: #3f4d7b;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.associate-offline-card h1 {
  margin: 8px 0 12px;
  font-size: clamp(30px, 9vw, 46px);
  line-height: 1.02;
  letter-spacing: -.035em;
  text-wrap: balance;
}
.associate-offline-card p {
  margin: 0;
  color: #505b72;
  line-height: 1.65;
}
.associate-offline-card a {
  min-height: 48px;
  margin-top: 24px;
  padding: 11px 16px;
  border-radius: 10px;
  background: #293761;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
}

@media (max-width: 900px) {
  .associate-history-card {
    grid-template-columns: 1fr;
  }
  .associate-history-card dl {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 820px) {
  .associate-pwa-body .associate-login-layout {
    min-height: auto;
  }
  .associate-pwa-body .associate-welcome,
  .associate-pwa-body .associate-section-head {
    align-items: flex-start;
  }
  .associate-app-install {
    align-items: stretch;
    flex-direction: column;
  }
  .associate-app-install button { width: 100%; }
}

@media (max-width: 620px) {
  .associate-pwa-body .associate-topbar {
    align-items: center;
    gap: 10px;
  }
  .associate-pwa-body .associate-brand img { width: 102px; }
  .associate-pwa-body .associate-brand span { display: none; }
  .associate-topbar-actions { gap: 7px; }
  .associate-pwa-body .associate-link-button,
  .associate-pwa-body .associate-install-button {
    padding-inline: 11px;
    font-size: 13px;
  }
  .associate-pwa-body .associate-dashboard,
  .associate-pwa-body .associate-login-layout,
  .associate-flash-wrap {
    width: min(100% - 24px, 1180px);
  }
  .associate-pwa-body .associate-dashboard { padding-top: 24px; }
  .associate-pwa-body .associate-login-layout { padding: 30px 0; }
  .associate-pwa-body .associate-login-copy h1 {
    font-size: clamp(38px, 12vw, 48px);
  }
  .associate-pwa-body .associate-login-copy > p { font-size: 16px; }
  .associate-pwa-body .associate-login-card { padding: 22px; }
  .associate-pwa-body .associate-welcome,
  .associate-pwa-body .associate-section { padding: 20px; }
  .associate-pwa-body .associate-welcome h1 { font-size: 38px; }
  .associate-pwa-body .associate-standing { width: 100%; }
  .associate-pwa-body .associate-standing strong { font-size: 21px; }
  .associate-pwa-body .associate-debt-alert {
    padding: 18px;
    gap: 13px;
  }
  .associate-pwa-body .associate-alert-icon {
    flex-basis: 36px;
    width: 36px;
    height: 36px;
    font-size: 20px;
  }
  .associate-pwa-body .associate-tabs {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    width: 100%;
    margin: 18px 0;
    padding: 5px;
    overflow-x: visible;
  }
  .associate-pwa-body .associate-tabs a {
    min-width: 0;
    padding: 9px 12px;
    white-space: normal;
    text-align: center;
  }
  .associate-pwa-body .associate-section-head h2 { font-size: 26px; }
  .associate-pwa-body .associate-renewal-grid dd { font-size: 18px; }
  .associate-pwa-body .associate-charge-card { padding: 17px; }
  .associate-pwa-body .associate-charge-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }
  .associate-pwa-body .associate-charge-heading > strong { font-size: 23px; }
  .associate-pwa-body .associate-charge-meta {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }
  .associate-pwa-body .associate-payment-code { padding: 12px; }
  .associate-pwa-body .associate-primary-action,
  .associate-pwa-body .associate-copy,
  .associate-pwa-body .associate-code-actions a {
    width: 100%;
  }
  .associate-pwa-body .associate-code-actions { display: grid; }
  .associate-history-card { padding: 16px; }
  .associate-history-card dl { gap: 12px; }
  .associate-pwa-body .associate-footer {
    align-items: flex-start;
    flex-direction: column;
    gap: 9px;
  }
}

@media (max-width: 390px) {
  .associate-pwa-body .associate-topbar {
    padding-right: max(12px, env(safe-area-inset-right));
    padding-left: max(12px, env(safe-area-inset-left));
  }
  .associate-pwa-body .associate-brand img { width: 92px; }
  .associate-pwa-body .associate-install-button { max-width: 122px; line-height: 1.15; }
  .associate-pwa-body .associate-dashboard,
  .associate-pwa-body .associate-login-layout,
  .associate-flash-wrap {
    width: calc(100% - 20px);
  }
  .associate-pwa-body .associate-login-card,
  .associate-pwa-body .associate-welcome,
  .associate-pwa-body .associate-section {
    padding: 17px;
    border-radius: 14px;
  }
  .associate-pwa-body .associate-login-card h2 { font-size: 26px; }
  .associate-virtual-card { padding: 20px 17px; border-radius: 16px; }
  .associate-virtual-card-brand {
    align-items: flex-start;
    flex-direction: column;
  }
  .associate-virtual-card-data {
    margin-top: 28px;
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .associate-virtual-card-data .is-wide { grid-column: auto; }
  .associate-history-card dl { grid-template-columns: 1fr; }
  .associate-pwa-body .associate-totals {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }
}

@media (max-width: 340px) {
  .associate-pwa-body .associate-topbar-actions { gap: 5px; }
  .associate-pwa-body .associate-brand img { width: 84px; }
  .associate-pwa-body .associate-link-button,
  .associate-pwa-body .associate-install-button {
    padding-inline: 8px;
    font-size: 12px;
  }
  .associate-pwa-body .associate-charge-meta,
  .associate-pwa-body .associate-totals {
    grid-template-columns: 1fr;
  }
}

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

/* Usuários individuais e recebimentos sujeitos à aprovação */
.staff-user-list,
.negotiation-list,
.negotiation-beneficiaries {
  display: grid;
  gap: 16px;
}
.form-grid label.check {
  min-height: 42px;
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  align-items: center;
  align-content: center;
  gap: 9px;
}
.form-grid label.check input[type="checkbox"] {
  width: 18px;
  min-height: 18px;
  height: 18px;
  margin: 0;
  padding: 0;
}
.staff-user-card,
.negotiation-card,
.negotiation-beneficiary {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
}
.staff-user-card.is-disabled,
.negotiation-installments .trow.is-disabled {
  background: #f5f6f8;
  opacity: .72;
}
.staff-user-title {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}
.staff-user-title strong { font-size: 18px; }
.staff-user-title span { color: var(--muted); font-size: 13px; }
.staff-password-form {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}
.staff-password-form label { flex: 1 1 260px; }
.negotiation-card.status-pending_approval { border-left: 4px solid #c48016; }
.negotiation-card.status-approved { border-left: 4px solid var(--green); }
.negotiation-card.status-rejected { border-left: 4px solid #b74034; }
.negotiation-toggle,
.negotiation-beneficiary-summary {
  cursor: pointer;
  list-style: none;
}
.negotiation-toggle::-webkit-details-marker,
.negotiation-beneficiary-summary::-webkit-details-marker { display: none; }
.negotiation-toggle:focus-visible,
.negotiation-beneficiary-summary:focus-visible {
  outline: 3px solid rgba(29,111,153,.3);
  outline-offset: 5px;
  border-radius: 8px;
}
.negotiation-toggle {
  display: grid;
  gap: 12px;
}
.negotiation-summary {
  display: grid;
  grid-template-columns: 1.35fr .9fr .9fr;
  gap: 18px;
  align-items: start;
}
.negotiation-summary > div { display: grid; gap: 5px; }
.negotiation-summary > div > span:not(.pill),
.negotiation-summary small { color: var(--muted); font-size: 12px; }
.negotiation-summary strong { font-size: 17px; }
.details-label {
  width: fit-content;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--blue);
  font-size: 12px;
  font-weight: 900;
}
.details-label::after {
  content: "▾";
  transition: transform .18s ease;
}
details[open] > summary .details-label::after { transform: rotate(180deg); }
.negotiation-details {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}
.negotiation-breakdown {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 16px;
  padding: 12px;
  border-radius: 10px;
  background: #f6f8fb;
}
.negotiation-breakdown span { display: grid; gap: 4px; color: var(--muted); font-size: 12px; }
.negotiation-breakdown strong { color: var(--ink); font-size: 15px; }
.negotiation-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 16px;
}
.negotiation-actions form { display: grid; gap: 8px; }
.negotiation-installments input[type="checkbox"] { width: 18px; height: 18px; }
.negotiation-create-form { margin-top: 14px; }
.negotiation-beneficiary-summary {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) auto auto;
  align-items: center;
  gap: 18px;
}
.negotiation-beneficiary-summary > div:first-child {
  min-width: 0;
  display: grid;
  gap: 4px;
}
.negotiation-beneficiary-summary > div:first-child strong {
  overflow-wrap: anywhere;
  font-size: 17px;
}
.negotiation-beneficiary-summary small,
.negotiation-beneficiary-totals span { color: var(--muted); font-size: 12px; }
.negotiation-beneficiary-totals {
  display: grid;
  gap: 4px;
  text-align: right;
}
.negotiation-profile-link {
  color: var(--blue);
  font-size: 13px;
  font-weight: 900;
}

@media (max-width: 820px) {
  .negotiation-summary,
  .negotiation-actions { grid-template-columns: 1fr; }
  .negotiation-beneficiary-summary { grid-template-columns: 1fr; }
  .negotiation-beneficiary-totals { text-align: left; }
  .negotiation-breakdown { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .staff-user-title { align-items: flex-start; flex-direction: column; }
  .list-search-controls { grid-template-columns: 1fr; }
  .list-search-controls .button,
  .list-search-controls button { width: 100%; }
}

@media (max-width: 480px) {
  .staff-user-card,
  .negotiation-card,
  .negotiation-beneficiary { padding: 15px; }
  .negotiation-breakdown { grid-template-columns: 1fr; }
}
