:root {
  --innova-blue: #003463;
  --blue-900: #003463;
  --blue-800: #004d80;
  --blue-700: #00699f;
  --orange: #f39323;
  --chart-income: #003463;
  --chart-income-dark: #002746;
  --chart-outcome: #f39323;
  --chart-outcome-dark: #c96800;
  --chart-goal: #8b7ab8;
  --chart-goal-dark: #66558f;
  --chart-realized: #4c8790;
  --chart-realized-dark: #356b73;
  --chart-average: #5f8a6b;
  --chart-positive: #4f7f61;
  --chart-negative: #a54d5b;
  --ink: #17212f;
  --muted: #62748a;
  --line: #d8e1ea;
  --panel: #ffffff;
  --surface: #f4f7fb;
  --shadow: 0 22px 60px rgba(12, 37, 71, .14);
  --app-background-image: url("/assets/otzar-bg-innova.png");
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--ink);
  background:
    linear-gradient(rgba(244, 247, 251, .45), rgba(244, 247, 251, .45)),
    var(--app-background-image) center top / cover fixed no-repeat,
    var(--surface);
}

button,
input,
select,
textarea {
  font: inherit;
}

.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;
}

.icon-sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.login-page {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  background:
    radial-gradient(circle at 12% 18%, rgba(245, 154, 35, .22), transparent 28%),
    radial-gradient(circle at 72% 8%, rgba(255, 255, 255, .24), transparent 30%),
    linear-gradient(120deg, #003a66 0%, #005987 50%, #f4f7fb 50.1%, #edf3f8 100%);
}

.login-page::before {
  content: "";
  position: fixed;
  inset: 0 auto 0 0;
  width: min(54vw, 760px);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, .08), transparent 42%),
    repeating-linear-gradient(135deg, rgba(255, 255, 255, .06) 0 1px, transparent 1px 18px);
  clip-path: polygon(0 0, 86% 0, 66% 100%, 0 100%);
  pointer-events: none;
}

.login-page::after {
  content: "";
  position: fixed;
  right: -120px;
  bottom: -170px;
  width: 470px;
  height: 470px;
  border: 70px solid rgba(0, 105, 159, .09);
  border-radius: 50%;
  pointer-events: none;
}

.login-shell {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(420px, 1fr) minmax(360px, 448px);
  gap: 72px;
  align-items: center;
  width: min(1180px, calc(100vw - 56px));
  margin: 0 auto;
  padding: 56px 0;
}

.brand-panel {
  position: relative;
  color: #fff;
  display: grid;
  align-content: center;
  gap: 30px;
  min-height: 560px;
}

.brand-mark {
  position: absolute;
  left: -26px;
  top: 34px;
  display: flex;
  gap: 10px;
  align-items: end;
  opacity: .32;
}

.brand-mark span {
  display: block;
  width: 22px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .9);
}

.brand-mark span:nth-child(1) {
  height: 34px;
}

.brand-mark span:nth-child(2) {
  height: 70px;
}

.brand-mark span:nth-child(3) {
  height: 112px;
  background: var(--orange);
}

.brand-logo {
  width: 310px;
  max-width: 84%;
  background: #fff;
  border-radius: 10px;
  padding: 20px 24px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, .20);
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--blue-700);
  font-size: 13px;
  font-weight: 700;
}

.brand-panel .eyebrow {
  color: #ffc36b;
}

.brand-copy h1 {
  max-width: 560px;
  margin: 0;
  font-size: 56px;
  line-height: 1;
  letter-spacing: 0;
}

.support {
  max-width: 540px;
  margin: 20px 0 0;
  color: rgba(255, 255, 255, .86);
  font-size: 18px;
  line-height: 1.5;
}

.brand-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.brand-metrics span {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 8px 12px;
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 6px;
  background: rgba(255, 255, 255, .10);
  color: rgba(255, 255, 255, .88);
  font-size: 13px;
  font-weight: 700;
}

.brand-status {
  display: flex;
  gap: 10px;
  align-items: center;
  color: rgba(255, 255, 255, .82);
  font-weight: 700;
}

.brand-status span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #42d987;
  box-shadow: 0 0 0 5px rgba(66, 217, 135, .16);
}

.login-card {
  position: relative;
  background: rgba(255, 255, 255, .95);
  border: 1px solid rgba(216, 225, 234, .92);
  border-radius: 12px;
  padding: 38px;
  box-shadow: 0 24px 70px rgba(12, 37, 71, .18);
  backdrop-filter: blur(12px);
}

.login-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 5px;
  border-radius: 12px 12px 0 0;
  background: linear-gradient(90deg, var(--orange), var(--blue-700));
}

.login-heading h2 {
  margin: 0;
  font-size: 30px;
  letter-spacing: 0;
}

.login-heading p:not(.eyebrow) {
  margin: 10px 0 0;
  color: var(--muted);
  line-height: 1.45;
}

.login-form {
  display: grid;
  gap: 17px;
  margin-top: 30px;
}

.login-form label {
  display: grid;
  gap: 8px;
  color: #35475c;
  font-size: 13px;
  font-weight: 700;
}

.login-form input {
  height: 48px;
  border: 1px solid #aebccc;
  border-radius: 6px;
  padding: 0 14px;
  color: var(--ink);
  background: #fff;
  outline: none;
}

.login-form input:focus {
  border-color: var(--blue-700);
  box-shadow: 0 0 0 3px rgba(0, 105, 159, .13);
}

.login-form button,
.ghost-button {
  height: 50px;
  border: 1px solid var(--blue-700);
  border-radius: 6px;
  background: linear-gradient(90deg, var(--blue-700), #005987);
  color: #fff;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 12px 22px rgba(0, 105, 159, .22);
}

.login-form button {
  margin-top: 4px;
  border-color: #f58220;
  border-bottom-width: 3px;
  font-size: 15px;
  letter-spacing: 0;
}

.login-form button:hover,
.ghost-button:hover {
  filter: brightness(1.04);
}

.login-form.loading button {
  opacity: .75;
  cursor: wait;
}

.message {
  min-height: 20px;
  margin: 0;
  color: #b42318;
  font-size: 13px;
  font-weight: 700;
}

.ok-message {
  color: #146b3a;
}

.login-card footer {
  display: grid;
  gap: 4px;
  margin-top: 26px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
}

.login-card footer strong {
  color: var(--ink);
}

.login-video-page {
  min-height: 100vh;
  overflow: hidden;
  background: #061f35;
}

.login-bg-video {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  background: #061f35;
}

.login-video-overlay {
  position: fixed;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(0, 32, 58, .42), rgba(0, 58, 102, .18) 46%, rgba(255, 255, 255, .08)),
    radial-gradient(circle at 78% 18%, rgba(245, 154, 35, .16), transparent 24%);
  opacity: 0;
  pointer-events: none;
  transition: opacity .75s ease;
}

.login-video-overlay.login-visible {
  opacity: 1;
}

.mobile-login-logo {
  display: none;
}

.video-login-shell {
  position: relative;
  z-index: 2;
  min-height: 100vh;
  display: grid;
  align-items: start;
  justify-items: end;
  width: min(1320px, calc(100vw - 72px));
  margin: 0 auto;
  padding: 142px 96px 64px 0;
}

.video-login-card {
  width: clamp(520px, 34vw, 700px);
  min-height: 520px;
  padding: 64px 62px 58px;
  border: 1px solid rgba(255, 255, 255, .34);
  border-radius: 18px;
  background: rgba(235, 240, 238, .26);
  box-shadow: 0 30px 80px rgba(0, 0, 0, .26);
  backdrop-filter: blur(10px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(18px) scale(.98);
  transition:
    opacity .75s ease,
    transform .75s ease,
    visibility .75s ease;
}

.video-login-card.login-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

.video-login-title {
  margin-bottom: 22px;
}

.video-login-title p {
  margin: 0 0 8px;
  color: #ffc36b;
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

.video-login-title h1 {
  margin: 0;
  color: #fff;
  font-size: clamp(30px, 2.45vw, 44px);
  line-height: 1.05;
}

.video-login-form {
  display: grid;
  gap: 24px;
}

.video-login-form label {
  display: grid;
  gap: 13px;
  color: rgba(255, 255, 255, .92);
  font-size: 18px;
  font-weight: 800;
  text-shadow: 0 1px 10px rgba(0, 0, 0, .18);
}

.video-login-form input {
  height: 70px;
  width: 100%;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 8px;
  padding: 0 24px;
  color: #fff;
  background: rgba(18, 57, 76, .86);
  outline: none;
  font-size: 19px;
  font-weight: 800;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08);
}

.video-login-form input::placeholder {
  color: rgba(255, 255, 255, .58);
}

.video-login-form input:focus {
  border-color: var(--orange);
  box-shadow: 0 0 0 3px rgba(245, 154, 35, .22);
}

.password-input-wrap {
  position: relative;
  display: block;
  width: 100%;
}

.video-login-form .password-input-wrap input {
  padding-right: 78px;
}

.video-login-form .password-reveal-button {
  position: absolute !important;
  top: 50% !important;
  right: 14px !important;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  width: 46px !important;
  min-width: 46px !important;
  height: 46px !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 10px;
  background: rgba(255, 255, 255, .16) !important;
  color: #fff;
  box-shadow: none !important;
  cursor: pointer;
  transform: translateY(-50%);
}

.video-login-form .password-reveal-button:hover,
.video-login-form .password-reveal-button:focus-visible {
  background: rgba(255, 255, 255, .24) !important;
  box-shadow: 0 0 0 3px rgba(245, 154, 35, .22) !important;
  outline: none;
}

.video-login-form .password-reveal-button[aria-pressed="true"] {
  background: rgba(245, 154, 35, .28) !important;
  border-color: rgba(245, 154, 35, .55);
}

.password-reveal-button svg {
  width: 24px;
  height: 24px;
  fill: currentColor;
}

.password-reveal-button .eye-closed {
  display: none;
}

.password-reveal-button[aria-pressed="true"] .eye-open {
  display: none;
}

.password-reveal-button[aria-pressed="true"] .eye-closed {
  display: block;
}

.video-login-form button {
  height: 78px;
  margin-top: 18px;
  border: 0;
  border-radius: 10px;
  background: #ff981f;
  color: #fff;
  font-size: 24px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: 0 14px 30px rgba(171, 97, 11, .26);
}

.video-login-form .trial-entry-button {
  height: 54px;
  margin-top: -4px;
  padding: 0 18px;
  border: 1px solid rgba(198, 246, 213, .58);
  border-radius: 10px;
  background: linear-gradient(135deg, #0f7a3f, #16a15b);
  color: #fff;
  font-size: 18px;
  font-weight: 900;
  letter-spacing: .02em;
  text-align: center;
  text-transform: uppercase;
  text-decoration: none;
  box-shadow: 0 10px 22px rgba(15, 122, 63, .2);
}

.video-login-form .trial-entry-button:hover {
  background: linear-gradient(135deg, #0b6b35, #128c50);
  color: #fff;
}

.video-login-form .forgot-password-button {
  height: 42px;
  margin-top: -8px;
  border: 1px solid rgba(255, 255, 255, .26);
  background: rgba(255, 255, 255, .12);
  color: rgba(255, 255, 255, .92);
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: none;
  box-shadow: none;
}

.video-login-form .forgot-password-button:hover,
.video-login-form .forgot-password-button:focus-visible {
  background: rgba(255, 255, 255, .2);
  outline: none;
}

.forgot-password-panel {
  width: min(560px, 100%);
}

.forgot-password-form {
  grid-template-columns: 1fr;
}

.forgot-password-form label,
.forgot-password-form label:first-child {
  grid-column: 1 / -1;
}

.reset-password-shell {
  justify-items: center;
  padding-right: 0;
}

.reset-password-card {
  width: min(560px, calc(100vw - 40px));
}

.reset-login-link {
  display: inline-flex;
  justify-content: center;
  color: rgba(255, 255, 255, .92);
  font-size: 15px;
  font-weight: 800;
  text-decoration: none;
}

.reset-login-link:hover {
  color: #ffc36b;
}

.video-login-form .message {
  min-height: 18px;
  color: #fff;
  font-weight: 800;
}

.trial-modal {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(10, 25, 39, .58);
}

.trial-modal[hidden] {
  display: none;
}

.trial-modal-panel {
  position: relative;
  width: min(760px, 100%);
  max-height: min(90vh, 820px);
  overflow: auto;
  padding: 34px;
  border: 1px solid rgba(255, 255, 255, .35);
  border-radius: 12px;
  background: rgba(247, 250, 252, .96);
  box-shadow: 0 32px 90px rgba(10, 25, 39, .34);
}

.trial-modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 34px;
  height: 34px;
  border: 1px solid #cbd8e6;
  border-radius: 999px;
  background: #fff;
  color: #334155;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}

.trial-modal-panel .eyebrow {
  margin: 0 0 8px;
  color: var(--blue);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

.trial-modal-panel h2 {
  margin: 0;
  color: #152033;
  font-size: 30px;
  line-height: 1.1;
}

.trial-intro {
  margin: 10px 0 24px;
  color: #55687f;
  font-size: 15px;
  line-height: 1.45;
}

.trial-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.trial-form label {
  display: grid;
  gap: 8px;
  color: #304256;
  font-size: 13px;
  font-weight: 900;
}

.trial-form label:first-child {
  grid-column: 1 / -1;
}

.trial-form input,
.trial-form select {
  height: 42px;
  border: 1px solid #aebed0;
  border-radius: 6px;
  padding: 0 13px;
  color: #152033;
  background: #fff;
  font-size: 14px;
  font-weight: 800;
  outline: none;
}

.trial-form input:focus,
.trial-form select:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(0, 112, 166, .14);
}

.trial-form .trial-plan-field {
  grid-column: 1 / -1;
}

.trial-plan-details {
  grid-column: 1 / -1;
  min-height: 18px;
  margin: -6px 0 0;
  color: #006b3f;
  font-size: 13px;
  font-weight: 800;
}

.trial-form button[type="submit"] {
  grid-column: 1 / -1;
  height: 48px;
  border: 0;
  border-radius: 6px;
  background: linear-gradient(135deg, #0f7a3f, #16a15b);
  color: #fff;
  font-size: 16px;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 10px 22px rgba(15, 122, 63, .18);
}

.trial-form button[type="submit"]:hover {
  background: linear-gradient(135deg, #0b6b35, #128c50);
}

.trial-form.loading button[type="submit"] {
  opacity: .72;
  pointer-events: none;
}

.trial-message {
  grid-column: 1 / -1;
  min-height: 18px;
  margin: 0;
  color: #006b3f;
  font-size: 13px;
  font-weight: 900;
}

.trial-message.error {
  color: #b42318;
}

.user-billing-modal {
  position: fixed;
  inset: 0;
  z-index: 45;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(15, 32, 51, .56);
}

.user-billing-modal[hidden] {
  display: none;
}

.user-billing-panel {
  width: min(680px, 100%);
  padding: 30px;
  border: 1px solid #d6e2ef;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 30px 86px rgba(15, 32, 51, .28);
}

.user-billing-panel .eyebrow {
  margin: 0 0 8px;
  color: var(--blue);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

.user-billing-panel h2 {
  margin: 0 0 12px;
  color: #162235;
  font-size: 26px;
  line-height: 1.15;
}

.user-billing-panel p {
  margin: 0 0 12px;
  color: #40546b;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.45;
}

.billing-example {
  margin: 16px 0;
  padding: 14px 16px;
  border-left: 4px solid var(--orange);
  border-radius: 8px;
  background: #fff7ed;
  color: #6b3b06;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.45;
}

.billing-example strong {
  color: #a95000;
}

.user-billing-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(150px, 1fr));
  gap: 12px;
  justify-content: center;
  justify-items: stretch;
  max-width: 330px;
  margin: 22px auto 0;
}

.user-billing-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 42px;
  border-radius: 6px;
  font-size: 15px;
  font-weight: 900;
  cursor: pointer;
}

.user-billing-cancel {
  border: 1px solid var(--blue);
  background: #fff;
  color: var(--blue);
}

.user-billing-confirm {
  border: 1px solid var(--blue);
  background: var(--blue);
  color: #fff;
}

.license-modal {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(15, 32, 48, .54);
}

.license-modal[hidden] {
  display: none !important;
}

.license-modal-card {
  display: grid;
  gap: 16px;
  width: min(520px, 100%);
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, .7);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 24px 70px rgba(0, 40, 70, .28);
}

.license-modal-card h2 {
  margin: 0 0 8px;
  color: var(--blue-900);
  font-size: 24px;
}

.license-modal-card p {
  margin: 0;
  color: var(--muted);
  font-weight: 700;
}

.license-modal-card .license-invoice-number {
  margin-top: -8px;
  color: var(--blue-700);
  font-size: 14px;
  font-weight: 800;
}

.license-modal-card img {
  width: 180px;
  height: 180px;
  object-fit: contain;
  justify-self: center;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.license-modal-card textarea {
  width: 100%;
  min-height: 74px;
  resize: vertical;
  border: 1px solid #c8d6e4;
  border-radius: 6px;
  padding: 10px;
  color: var(--ink);
  background: #f8fbfd;
  font: 12px/1.35 ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

.license-modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.license-modal-actions button {
  height: 42px;
  padding: 0 18px;
  border: 1px solid var(--blue-700);
  border-radius: 6px;
  background: var(--blue-700);
  color: #fff;
  font-weight: 800;
  cursor: pointer;
}

.password-modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(11, 28, 48, .55);
}

.password-modal[hidden] {
  display: none;
}

.password-panel {
  width: min(520px, 100%);
  display: grid;
  gap: 14px;
  padding: 28px;
  border: 1px solid #d5e2ec;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 22px 58px rgba(11, 28, 48, .22);
}

.password-panel h2,
.password-panel p {
  margin: 0;
}

.password-panel label {
  display: grid;
  gap: 7px;
  color: var(--text);
  font-size: 13px;
  font-weight: 800;
}

.password-panel input {
  height: 42px;
  border: 1px solid #b8c8d8;
  border-radius: 6px;
  padding: 0 12px;
  font: inherit;
  font-weight: 700;
}

.password-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

.password-actions .ghost-button,
.password-actions .primary-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
  min-width: 130px;
  height: 42px;
  padding: 0 16px;
  margin: 0;
  line-height: 1;
}

.primary-action {
  height: 42px;
  min-width: 130px;
  border: 1px solid var(--blue-700);
  border-radius: 6px;
  background: var(--blue-700);
  color: #fff;
  font-weight: 900;
  cursor: pointer;
}

.app-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 92px;
  padding: 18px 28px;
  background: #fff;
  border-bottom: 1px solid var(--line);
}

.app-title {
  display: flex;
  align-items: center;
  gap: 20px;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.header-user-name {
  max-width: 260px;
  margin: 0 8px 0 0;
  color: #4d647f;
  font-size: 12px;
  font-weight: 900;
  text-align: right;
  text-transform: uppercase;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.app-title img {
  width: 150px;
}

.app-title .innova-sistemas-logo {
  width: 150px;
  height: 50px;
  object-fit: cover;
  object-position: center;
}

.church-logo {
  display: grid;
  place-items: center;
  width: 68px;
  height: 68px;
  border: 2px solid #dbe7f1;
  border-radius: 8px;
  background: linear-gradient(145deg, #fff, #eef6fb);
  color: var(--blue-800);
  font-size: 24px;
  font-weight: 800;
  box-shadow: 0 8px 22px rgba(12, 37, 71, .08);
  cursor: pointer;
  overflow: hidden;
  padding: 0;
}

.church-logo:hover,
.church-logo:focus-visible {
  border-color: var(--orange);
  box-shadow: 0 0 0 3px rgba(245, 154, 35, .18), 0 8px 22px rgba(12, 37, 71, .08);
  outline: none;
}

.church-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 6px;
}

.church-logo.loading-logo {
  opacity: .62;
  cursor: wait;
}

.app-title p,
.welcome-card p,
.module-grid p {
  margin: 0;
  color: var(--muted);
}

.app-title h1 {
  margin: 4px 0 0;
  font-size: 24px;
}

.ghost-button {
  width: 92px;
  background: #fff;
  color: var(--blue-700);
}

.app-main {
  width: min(1380px, calc(100vw - 40px));
  margin: 0 auto;
  padding: 28px 0 88px;
}

.app-footer {
  position: fixed;
  right: 24px;
  bottom: 18px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border: 1px solid #dce6ef;
  border-radius: 8px;
  background: rgba(255, 255, 255, .92);
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  box-shadow: 0 10px 30px rgba(12, 37, 71, .08);
}

.app-footer img {
  width: 104px;
}

.app-footer .innova-sistemas-logo {
  width: 118px;
  height: 38px;
  object-fit: cover;
  object-position: center;
}

.welcome-card,
.module-grid article {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 24px;
}

.license-alert {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 16px;
  padding: 14px 18px;
  border: 1px solid #f2c46d;
  border-left: 4px solid var(--orange);
  border-radius: 8px;
  background: #fff8e9;
}

.license-alert[hidden] {
  display: none;
}

.license-alert-copy {
  display: grid;
  grid-template-columns: auto auto;
  align-items: baseline;
  gap: 4px 10px;
  min-width: 0;
}

.license-alert-label {
  color: #82631e;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.license-alert strong {
  color: #3f3214;
  font-size: 16px;
}

.license-alert p {
  grid-column: 1 / -1;
  margin: 0;
  color: #5d4a20;
  font-size: 14px;
}

.license-alert .ghost-button {
  flex: 0 0 auto;
  min-width: 132px;
  background: #fff;
  color: var(--blue-700);
}

.license-alert-danger {
  border-color: #f2b8b5;
  border-left-color: #b42318;
  background: #fff1f0;
}

.license-alert-danger .license-alert-label,
.license-alert-danger .license-alert-copy p {
  color: #8a231c;
}

.license-alert-danger .license-alert-copy strong {
  color: #6b1712;
}

.welcome-card h2 {
  margin: 0 0 8px;
  font-size: 28px;
}

.module-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-top: 16px;
}

.module-grid article span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 6px;
  background: #e7f2f9;
  color: var(--blue-700);
  font-weight: 700;
}

.module-grid h3 {
  margin: 18px 0 8px;
}

.workspace-main {
  display: grid;
  gap: 16px;
}

.workspace-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 18px;
  align-items: start;
}

.work-panel,
.right-menu {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.work-panel {
  min-width: 0;
  padding: 24px;
}

.module-panel[hidden] {
  display: none !important;
}

.work-panel-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.work-panel h2 {
  margin: 0 0 6px;
  font-size: 28px;
}

.work-panel-header p {
  margin: 0;
  color: var(--muted);
}

.bank-form {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: 20px;
  row-gap: 16px;
  align-items: end;
  padding: 18px;
  margin-bottom: 22px;
  border: 1px solid #e1e8f0;
  border-radius: 8px;
  background: #f8fbfd;
}

.nature-form,
.balance-form,
.member-form,
.patrimony-form,
.minutes-form,
.agenda-form,
.user-form,
.movement-form,
.support-form,
.accountability-form {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: 28px;
  row-gap: 16px;
  align-items: end;
  padding: 18px;
  margin-bottom: 22px;
  border: 1px solid #e1e8f0;
  border-radius: 8px;
  background: #f8fbfd;
}

.nature-form {
  grid-template-columns: minmax(170px, 1.1fr) minmax(150px, .9fr) minmax(140px, .8fr) minmax(120px, .7fr);
  column-gap: 20px;
}

.member-form {
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: 20px;
}

.patrimony-form {
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: 20px;
}

.bank-code-field {
  grid-column: span 2;
  min-width: 140px;
}

.wide-field {
  grid-column: span 10;
}

.bank-name-field {
  grid-column: span 5;
}

.bank-agency-field {
  grid-column: span 2;
}

.bank-account-field {
  grid-column: span 3;
}

.bank-submit {
  grid-column: span 2;
}

.bank-cancel,
.nature-cancel,
.balance-cancel,
.member-cancel,
.patrimony-cancel,
.agenda-cancel,
.user-cancel,
.movement-cancel {
  grid-column: 10 / -1;
  background: #fff !important;
  color: var(--blue-700) !important;
}

.bank-form.editing,
.nature-form.editing,
.balance-form.editing,
.member-form.editing,
.patrimony-form.editing,
.minutes-form.editing,
.agenda-form.editing,
.user-form.editing,
.movement-form.editing {
  border-color: rgba(245, 154, 35, .72);
  box-shadow: 0 0 0 3px rgba(245, 154, 35, .12);
}

.nature-code-field {
  grid-column: auto;
  min-width: 0;
}

.nature-class-field {
  grid-column: auto;
  min-width: 0;
}

.nature-type-field {
  grid-column: auto;
  min-width: 0;
}

.nature-transfer-field {
  grid-column: auto;
  min-width: 0;
}

.nature-description-field {
  grid-column: 1 / 4;
}

.nature-submit {
  grid-column: 4;
  min-width: 170px;
}

.nature-cancel {
  grid-column: 4;
  min-width: 170px;
}

.balance-bank-field {
  grid-column: span 4;
  min-width: 260px;
}

.balance-date-field {
  grid-column: span 2;
  min-width: 160px;
}

.balance-value-field {
  grid-column: span 2;
  min-width: 160px;
}

.balance-note-field {
  grid-column: 1 / 10;
}

.balance-submit {
  grid-column: 10 / -1;
  min-width: 160px;
}

.member-name-field {
  grid-column: span 4;
  min-width: 0;
}

.member-phone-field {
  grid-column: span 2;
  min-width: 0;
}

.member-email-field {
  grid-column: span 6;
  min-width: 0;
}

.member-birth-field {
  grid-column: span 3;
  min-width: 0;
}

.member-since-field {
  grid-column: span 3;
  min-width: 0;
}

.member-submit {
  grid-column: span 3;
  min-width: 0;
}

.patrimony-description-field {
  grid-column: span 4;
  min-width: 0;
}

.patrimony-series-field,
.patrimony-invoice-field,
.patrimony-purchase-field,
.patrimony-value-field {
  grid-column: span 2;
  min-width: 0;
}

.patrimony-location-field,
.patrimony-responsible-field,
.patrimony-state-field {
  grid-column: span 3;
  min-width: 0;
}

.patrimony-note-field {
  grid-column: span 6;
  min-width: 0;
}

.patrimony-submit {
  grid-column: span 3;
  min-width: 0;
}

.minutes-type-field {
  grid-column: span 8;
  min-width: 0;
}

.minutes-date-field {
  grid-column: span 4;
  min-width: 0;
}

.minutes-participants-field {
  grid-column: 1 / -1;
}

.minutes-agenda-field,
.minutes-decisions-field {
  grid-column: span 6;
  min-width: 0;
}

.minutes-attachment-field {
  grid-column: span 6;
  min-width: 0;
}

.minutes-attachment-field small {
  color: #60748d;
  font-size: 11px;
}

.minutes-submit {
  grid-column: span 3;
  align-self: start;
  margin-top: 24px;
  min-width: 0;
}

.minutes-cancel {
  grid-column: span 3;
  align-self: start;
  margin-top: 24px;
  min-width: 0;
  background: #fff !important;
  color: var(--blue-700) !important;
}

.agenda-title-field {
  grid-column: span 5;
  min-width: 0;
}

.agenda-type-field {
  grid-column: span 2;
  min-width: 0;
}

.agenda-date-field,
.agenda-time-field {
  grid-column: span 2;
  min-width: 0;
}

.agenda-description-field {
  grid-column: 1 / 10;
  min-width: 0;
}

.agenda-submit {
  grid-column: 10 / -1;
  align-self: start;
  margin-top: 24px;
}

.agenda-cancel {
  grid-column: 10 / -1;
}

.agenda-month-form {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: 16px;
  row-gap: 12px;
  align-items: end;
  padding: 16px 18px;
  margin-bottom: 22px;
  border: 1px solid #e1e8f0;
  border-radius: 8px;
  background: #f8fbfd;
}

.agenda-month-form label {
  display: grid;
  grid-column: span 2;
  gap: 8px;
  color: #35475c;
  font-size: 13px;
  font-weight: 700;
}

.agenda-month-form .agenda-bank-filter,
.agenda-month-form .agenda-nature-filter {
  grid-column: span 3;
  min-width: 0;
}

.agenda-month-form .bi-check-list {
  height: 42px;
  background: #fff;
}

.agenda-month-form .check-list-field:hover .bi-check-list,
.agenda-month-form .check-list-field:focus-within .bi-check-list {
  height: 190px;
}

.agenda-month-form select {
  width: 100%;
  height: 42px;
  padding: 0 12px;
  border: 1px solid #aebccc;
  border-radius: 6px;
  color: var(--ink);
  background: #fff;
  outline: none;
}

.agenda-month-form select:focus {
  border-color: var(--blue-700);
  box-shadow: 0 0 0 3px rgba(0, 105, 159, .13);
}

.agenda-month-form button {
  grid-column: span 2;
  height: 42px;
  border: 1px solid var(--blue-700);
  border-radius: 6px;
  background: var(--blue-700);
  color: #fff;
  font-weight: 700;
  cursor: pointer;
}

.agenda-board {
  padding: 18px;
  margin-bottom: 22px;
  border: 1px solid #d5e1ed;
  border-radius: 8px;
  background: rgba(255, 255, 255, .94);
}

.agenda-board-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 16px;
}

.agenda-board-header h3 {
  margin: 0 0 4px;
  font-size: 20px;
}

.agenda-board-header p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.agenda-calendar {
  display: grid;
  grid-template-columns: repeat(7, minmax(112px, 1fr));
  gap: 1px;
  overflow-x: auto;
  border: 1px solid #d5e1ed;
  border-radius: 8px;
  background: #d5e1ed;
}

.agenda-weekday {
  padding: 10px;
  background: #eaf1f7;
  color: #41556b;
  font-size: 12px;
  font-weight: 800;
  text-align: center;
}

.agenda-day {
  min-height: 118px;
  padding: 9px;
  background: rgba(255, 255, 255, .96);
}

.agenda-day.is-empty {
  background: #f3f7fb;
}

.agenda-day.has-items {
  background: #fff;
}

.agenda-day-number {
  color: #35475c;
  font-size: 13px;
  font-weight: 800;
}

.agenda-day-total {
  display: inline-flex;
  align-items: center;
  margin-top: 10px;
  max-width: 100%;
  padding: 5px 7px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 900;
  line-height: 1.15;
  white-space: nowrap;
}

.agenda-day-total-income {
  background: #edf7f1;
  color: var(--chart-positive);
}

.agenda-day-total-outcome {
  background: #fff3e5;
  color: var(--chart-outcome);
}

.agenda-day-items {
  display: grid;
  gap: 6px;
  margin-top: 8px;
}

.agenda-chip {
  overflow: hidden;
  padding: 5px 7px;
  border-left: 3px solid var(--blue-700);
  border-radius: 5px;
  background: #eef5fb;
  color: #153557;
  font-size: 11px;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.agenda-chip-programado,
.agenda-chip-despesa,
.agenda-chip-financeiro,
.agenda-chip-licenca {
  border-left-color: var(--chart-outcome);
  background: #fff3e5;
  color: var(--chart-outcome-dark);
}

.agenda-chip-culto {
  border-left-color: #1f78b4;
  background: #e8f4ff;
  color: #004d80;
}

.agenda-chip-reuniao {
  border-left-color: #198754;
  background: #eef7ed;
  color: #0f5b35;
}

.agenda-chip.more {
  border-left-color: #92a7bb;
  color: #52687d;
}

.agenda-type-badge {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 5px 9px;
  border-radius: 999px;
  background: #edf4fa;
  color: #28415c;
  font-size: 12px;
  font-weight: 800;
}

.agenda-type-financeiro,
.agenda-type-despesa {
  background: #fff0df;
  color: #9c4600;
}

.agenda-type-culto {
  background: #e4f2ff;
  color: #00558a;
}

.agenda-type-reuniao {
  background: #e6f6ed;
  color: #0f673c;
}

.agenda-origin {
  color: #5b6f86;
  font-size: 12px;
  font-weight: 800;
}

.minutes-participants-cell {
  max-width: 260px;
  white-space: normal;
}

.user-name-field {
  grid-column: span 4;
  min-width: 240px;
}

.user-login-field {
  grid-column: span 3;
  min-width: 200px;
}

.user-profile-field {
  grid-column: span 2;
  min-width: 160px;
}

.user-password-field {
  grid-column: span 3;
  min-width: 200px;
}

.dashboard-panel {
  display: grid;
  gap: 20px;
  padding: 0;
  overflow: hidden;
}

.dashboard-hero {
  min-height: 190px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 34px;
  background: var(--innova-blue);
  color: #fff;
}

.dashboard-hero .eyebrow,
.dashboard-hero p,
.dashboard-hero h2 {
  margin: 0;
}

.dashboard-hero .eyebrow {
  color: #f9a11b;
}

.dashboard-hero h2 {
  font-size: 34px;
  line-height: 1.05;
}

.dashboard-hero p:not(.eyebrow) {
  margin-top: 8px;
  color: rgba(255, 255, 255, .82);
  font-size: 16px;
}

.dashboard-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 250px;
  padding: 0;
}

.dashboard-brand img {
  display: block;
  width: clamp(210px, 22vw, 310px);
  max-height: 98px;
  object-fit: contain;
}

.dashboard-cards {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  padding: 0 24px;
  margin-top: -42px;
}

.dashboard-card {
  min-height: 118px;
  display: grid;
  align-content: center;
  gap: 10px;
  padding: 20px;
  border: 1px solid #dbe6ef;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 14px 34px rgba(12, 37, 71, .1);
}

.dashboard-card p {
  margin: 0;
  color: #5e7188;
  font-size: 13px;
  font-weight: 800;
}

.dashboard-card strong {
  color: var(--blue-800);
  font-size: 24px;
  line-height: 1;
}

.dashboard-card:nth-child(3) strong {
  color: var(--orange);
}

.dashboard-card .positive-value {
  color: #0b7a44;
}

.dashboard-card .negative-value {
  color: var(--orange);
}

.dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(320px, .8fr);
  gap: 16px;
  padding: 0 24px 24px;
}

.dashboard-widget {
  min-height: 240px;
  padding: 22px;
  border: 1px solid #dbe6ef;
  border-radius: 8px;
  background: #fff;
}

.dashboard-widget-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.dashboard-widget h3 {
  margin: 0;
  color: var(--ink);
  font-size: 18px;
}

.dashboard-widget-header span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.dashboard-bank-list {
  display: grid;
  gap: 10px;
  max-height: 224px;
  overflow: auto;
  padding-right: 4px;
}

.dashboard-bank-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 42px;
  padding-bottom: 10px;
  border-bottom: 1px solid #e4edf5;
}

.dashboard-bank-account {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.dashboard-bank-account span {
  min-width: 0;
  overflow: hidden;
  color: var(--ink);
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dashboard-bank-logo {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 7px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 5px 12px rgba(0, 52, 99, .12);
}

.dashboard-bank-logo.image-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.dashboard-bank-logo.default::before {
  content: "";
  position: absolute;
  width: 14px;
  height: 10px;
  border: 2px solid var(--blue-800);
  border-radius: 3px;
}

.dashboard-bank-logo.default::after {
  content: "";
  position: absolute;
  top: 6px;
  width: 16px;
  height: 2px;
  background: var(--blue-800);
}

.dashboard-bank-row strong {
  color: var(--blue-800);
  white-space: nowrap;
}

.dashboard-nature-groups {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid #e4edf5;
}

.dashboard-nature-list-card {
  min-width: 0;
  padding: 14px 15px;
  border: 1px solid #d8e3ee;
  border-left: 4px solid var(--chart-income);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(255, 255, 255, .98), rgba(248, 251, 253, .98));
  box-shadow: 0 12px 26px rgba(15, 43, 72, .06);
}

.dashboard-nature-list-card.expense {
  border-left-color: var(--chart-outcome);
}

.dashboard-nature-list-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: start;
  margin-bottom: 8px;
}

.dashboard-nature-list-head span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  line-height: 1.25;
  text-transform: uppercase;
}

.dashboard-nature-list-head strong {
  color: var(--chart-income-dark);
  font-size: 13px;
  font-weight: 900;
  white-space: nowrap;
}

.dashboard-nature-list-card.expense .dashboard-nature-list-head strong {
  color: var(--chart-outcome-dark);
}

.dashboard-nature-list-rows {
  display: grid;
  max-height: 210px;
  overflow: auto;
  padding-right: 3px;
}

.dashboard-nature-list-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  min-height: 44px;
  padding: 8px 0;
  border-top: 1px solid #e4edf5;
}

.dashboard-nature-list-row div {
  min-width: 0;
}

.dashboard-nature-list-row strong {
  display: block;
  overflow: hidden;
  color: var(--ink);
  font-size: 12px;
  font-weight: 900;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dashboard-nature-list-row small {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.dashboard-nature-list-row span {
  color: var(--chart-income-dark);
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}

.dashboard-nature-list-card.expense .dashboard-nature-list-row span {
  color: var(--chart-outcome-dark);
}

.dashboard-concentric-card {
  display: grid;
  gap: 14px;
  min-width: 0;
  padding: 16px 18px;
  border: 1px solid #d8e3ee;
  border-radius: 10px;
  background:
    radial-gradient(circle at 42% 56%, rgba(255, 255, 255, .96) 0 23%, rgba(255, 255, 255, 0) 24%),
    linear-gradient(180deg, rgba(255, 255, 255, .96), rgba(248, 251, 253, .99));
  box-shadow: 0 18px 36px rgba(15, 43, 72, .08);
}

.dashboard-concentric-card.income {
  border-left: 5px solid var(--chart-income);
}

.dashboard-concentric-card.expense {
  border-left: 5px solid var(--chart-outcome);
}

.dashboard-concentric-head {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: flex-start;
}

.dashboard-concentric-head span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.dashboard-concentric-head strong {
  color: var(--ink);
  font-size: 15px;
  font-weight: 900;
  white-space: nowrap;
}

.dashboard-concentric-card.income .dashboard-concentric-head strong {
  color: var(--chart-income-dark);
}

.dashboard-concentric-card.expense .dashboard-concentric-head strong {
  color: var(--chart-outcome-dark);
}

.dashboard-concentric-body {
  display: grid;
  grid-template-columns: minmax(220px, .72fr) minmax(320px, 1fr);
  gap: 20px;
  align-items: center;
}

.dashboard-visuals .dashboard-concentric-body {
  grid-template-columns: 1fr;
  gap: 12px;
}

.dashboard-visuals .dashboard-concentric-visual {
  min-height: 148px;
}

.dashboard-visuals .dashboard-concentric-svg {
  width: min(100%, 260px);
}

.dashboard-concentric-visual {
  position: relative;
  display: grid;
  min-height: 172px;
  place-items: end center;
  padding-top: 2px;
}

.dashboard-concentric-svg {
  display: block;
  width: min(100%, 300px);
  height: auto;
  margin: 0 auto;
  overflow: visible;
}

.dashboard-concentric-track {
  fill: none;
  stroke: #e7eef5;
  stroke-linecap: round;
}

.dashboard-concentric-arc {
  fill: none;
  stroke-linecap: round;
}

.dashboard-concentric-percent {
  display: none;
}

.dashboard-concentric-legend {
  display: grid;
  gap: 0;
  min-width: 0;
  max-height: none;
  overflow: visible;
  border-top: 0;
}

.dashboard-concentric-item {
  display: grid;
  grid-template-columns: 12px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  min-width: 0;
  padding: 7px 0;
  border-bottom: 1px solid #e6eef6;
}

.dashboard-concentric-item:last-child {
  border-bottom: 0;
}

.dashboard-concentric-item > span {
  width: 9px;
  height: 9px;
  margin-top: 3px;
  border-radius: 50%;
  background: var(--item-color);
  box-shadow: 0 6px 12px rgba(24, 42, 64, .18);
}

.dashboard-concentric-copy {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.dashboard-concentric-line {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: start;
  min-width: 0;
}

.dashboard-concentric-line strong {
  color: var(--ink);
  display: block;
  overflow: visible;
  font-size: 12px;
  font-weight: 900;
  line-height: 1.18;
  white-space: normal;
}

.dashboard-concentric-line small {
  display: grid;
  gap: 1px;
  color: var(--muted);
  font-size: 10.5px;
  font-weight: 800;
  line-height: 1.1;
  text-align: right;
  white-space: nowrap;
}

.dashboard-concentric-line small b {
  color: var(--blue-800);
  font-size: 11px;
}

.dashboard-concentric-card.expense .dashboard-concentric-line small b {
  color: var(--chart-outcome-dark);
}

.dashboard-concentric-line small em {
  color: var(--muted);
  font-style: normal;
}

.dashboard-concentric-meter {
  height: 7px;
  overflow: hidden;
  border-radius: 999px;
  background: #edf3f8;
}

.dashboard-concentric-meter i {
  display: block;
  width: var(--item-percent, 0%);
  height: 100%;
  border-radius: inherit;
  background: var(--item-color);
  box-shadow: 0 6px 12px rgba(24, 42, 64, .16);
}

.dashboard-empty {
  margin: 0;
  color: var(--muted);
  font-weight: 700;
}

.dashboard-daily-payments {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid #dce8f3;
}

.dashboard-mini-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.dashboard-mini-header h4 {
  margin: 0;
  color: var(--ink);
  font-size: 15px;
}

.dashboard-mini-header span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.dashboard-visuals {
  display: grid;
  align-content: start;
}

.dashboard-chart-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(150px, .85fr);
  gap: 18px;
  align-items: stretch;
  padding: 14px;
  border: 1px solid #d8e1ea;
  border-radius: 8px;
  background:
    linear-gradient(0deg, rgba(214, 222, 231, .72) 0%, rgba(240, 244, 248, .78) 46%, rgba(255, 255, 255, .96) 100%),
    repeating-linear-gradient(0deg, rgba(0, 52, 99, .055) 0 1px, transparent 1px 44px);
  box-shadow: inset 0 -18px 34px rgba(23, 33, 47, .05), 0 12px 28px rgba(12, 37, 71, .06);
}

.dashboard-bar-chart {
  display: flex;
  align-items: stretch;
  justify-content: center;
  gap: 28px;
  min-height: 220px;
  padding: 8px 10px 0;
  border-bottom: 1px solid rgba(0, 52, 99, .18);
}

.dashboard-bar-column {
  flex: 1 1 0;
  min-width: 0;
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 8px;
  text-align: center;
}

.dashboard-bar-column small {
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
}

.dashboard-bar-value {
  min-height: 18px;
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}

.dashboard-bar-value.income {
  color: var(--chart-income);
}

.dashboard-bar-value.expense {
  color: var(--chart-outcome);
}

.dashboard-bar-shell {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  min-height: 160px;
}

.dashboard-bar-fill {
  display: block;
  width: min(64px, 74%);
  min-height: 8px;
  border-radius: 7px 7px 0 0;
  transition: height .25s ease;
}

.dashboard-bar-fill.is-empty {
  min-height: 0;
}

.dashboard-bar-fill.income {
  background: linear-gradient(180deg, var(--chart-income), var(--chart-income-dark));
  box-shadow: 0 16px 28px rgba(0, 52, 99, .26);
}

.dashboard-bar-fill.expense {
  background: linear-gradient(180deg, var(--chart-outcome), var(--chart-outcome-dark));
  box-shadow: 0 16px 28px rgba(243, 147, 35, .24);
}

.dashboard-chart-summary {
  display: grid;
  align-content: center;
  gap: 12px;
}

.dashboard-result-card {
  display: grid;
  gap: 8px;
  padding: 16px;
  border: 1px solid #dbe6ef;
  border-left: 5px solid var(--chart-realized);
  border-radius: 8px;
  background: #f8fbfd;
}

.dashboard-result-card span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
}

.dashboard-result-card strong {
  color: var(--chart-realized);
  font-size: 22px;
  line-height: 1.05;
}

.dashboard-result-card.positive {
  border-left-color: var(--chart-positive);
  background: #eefbf4;
}

.dashboard-result-card.positive strong {
  color: var(--chart-positive);
}

.dashboard-result-card.negative {
  border-left-color: var(--chart-outcome);
  background: linear-gradient(180deg, #fffaf3, #fff1df);
}

.dashboard-result-card.negative strong {
  color: var(--chart-outcome);
}

.dashboard-result-card.neutral {
  border-left-color: var(--chart-realized);
  background: #f8fbfd;
}

.dashboard-today-payments {
  display: none;
  margin: 0 24px 24px;
}

.dashboard-today-payment-list {
  display: grid;
  gap: 10px;
}

.dashboard-today-payment-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 12px;
  border: 1px solid #e4edf5;
  border-left: 5px solid var(--orange);
  border-radius: 8px;
  background: #fffaf3;
}

.dashboard-today-payment-row.income {
  border-left-color: #0b7a44;
  background: #f1fbf5;
}

.dashboard-today-payment-row div {
  min-width: 0;
  display: grid;
  gap: 5px;
}

.dashboard-today-payment-row strong,
.dashboard-today-payment-row span,
.dashboard-today-payment-row small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dashboard-today-payment-row strong {
  color: var(--ink);
  font-size: 14px;
}

.dashboard-today-payment-row span,
.dashboard-today-payment-row small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.dashboard-today-payment-row em {
  color: var(--orange);
  font-style: normal;
  font-size: 14px;
  font-weight: 900;
  white-space: nowrap;
}

.dashboard-today-payment-row.income em {
  color: #0b7a44;
}

.permission-field {
  grid-column: 1 / -1;
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  border: 0;
}

.permission-field legend {
  color: #35475c;
  font-size: 13px;
  font-weight: 700;
}

.permission-field.is-profile-locked,
.user-accountability-field.is-profile-locked {
  opacity: .72;
}

.permission-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.permission-option {
  display: inline-flex !important;
  grid-column: auto !important;
  align-items: center;
  gap: 7px !important;
  min-height: 34px;
  padding: 7px 10px;
  border: 1px solid #c8d6e4;
  border-radius: 6px;
  background: #fff;
  color: var(--ink) !important;
  font-size: 12px !important;
  font-weight: 800 !important;
}

.permission-option input {
  width: 15px !important;
  height: 15px !important;
  margin: 0;
  accent-color: var(--orange);
}

.inline-check {
  display: inline-flex !important;
  grid-column: auto !important;
  align-items: center;
  gap: 8px !important;
}

.inline-check input {
  width: 16px !important;
  height: 16px !important;
  accent-color: var(--orange);
}

.user-accountability-field {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 220px minmax(260px, 420px);
  gap: 12px 16px;
  align-items: end;
  padding: 12px;
  border: 1px solid #cfe0ef;
  border-radius: 8px;
  background: #fff;
}

.user-accountability-field .inline-check {
  margin-bottom: 18px;
}

.user-accountability-field legend {
  color: #35475c;
  font-size: 13px;
  font-weight: 800;
}

.muted-line {
  display: block;
  margin-top: 4px;
  color: #536b86;
  font-size: 12px;
  font-weight: 700;
}

.accountability-nature-field,
.accountability-user-field {
  grid-column: span 4;
}

.accountability-form label:not(.accountability-nature-field):not(.accountability-user-field) {
  grid-column: span 2;
}

.accountability-form button {
  grid-column: span 2;
}

.accountability-detail {
  margin-top: 22px;
  padding: 18px;
  border: 1px solid #d6e2ee;
  border-radius: 8px;
  background: #f8fbfd;
}

.accountability-detail-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 16px;
}

.accountability-detail-header h3 {
  margin: 0 0 6px;
  font-size: 22px;
}

.accountability-detail-header p {
  margin: 0;
  color: #536b86;
  font-weight: 700;
}

.accountability-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}

.accountability-summary article {
  padding: 16px 18px;
  border: 1px solid #d6e2ee;
  border-radius: 8px;
  background: #fff;
}

.accountability-summary span {
  display: block;
  margin-bottom: 8px;
  color: #5c6f88;
  font-size: 12px;
  font-weight: 800;
}

.accountability-summary strong {
  color: #003f66;
  font-size: 22px;
}

.accountability-summary strong.positive-value {
  color: #0f6b39;
}

.accountability-summary strong.negative-value {
  color: #b42318;
}

.accountability-items-wrap table {
  min-width: 940px;
}

.accountability-items-wrap th:nth-child(1),
.accountability-items-wrap td:nth-child(1) {
  width: 70px;
}

.accountability-items-wrap th:nth-child(3),
.accountability-items-wrap td:nth-child(3) {
  width: 150px;
}

.accountability-items-wrap th:nth-child(4),
.accountability-items-wrap td:nth-child(4) {
  width: 170px;
}

.accountability-items-wrap th:nth-child(5),
.accountability-items-wrap td:nth-child(5) {
  width: 190px;
}

.accountability-items-wrap input,
.accountability-items-wrap select {
  width: 100%;
  height: 38px;
  padding: 0 10px;
  border: 1px solid #aebccc;
  border-radius: 6px;
  color: var(--ink);
  background: #fff;
  outline: none;
}

.accountability-items-wrap input:focus,
.accountability-items-wrap select:focus {
  border-color: var(--blue-700);
  box-shadow: 0 0 0 3px rgba(0, 105, 159, .13);
}

.accountability-items-wrap tr.missing-attachment td {
  background: #fff7ed;
}

.accountability-items-wrap tr.missing-attachment td:first-child {
  border-left: 4px solid #f59e0b;
}

.accountability-sequence {
  color: #003f66;
  font-weight: 800;
}

.accountability-attachment-cell {
  display: flex;
  align-items: center;
  gap: 8px;
}

.clip-upload {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border: 1px solid #c8d6e4;
  border-radius: 6px;
  background: #fff;
  cursor: pointer;
}

.clip-upload input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.attachment-name {
  min-width: 0;
  color: var(--blue-700);
  font-size: 12px;
  font-weight: 800;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.attachment-warning,
.attachment-name.attachment-warning {
  color: #9a3412;
  font-weight: 900;
}

.accountability-detail-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 14px;
}

.accountability-detail-actions .ghost-button,
.accountability-detail-actions .primary-action {
  min-width: 176px;
  height: 54px;
}

.user-submit {
  grid-column: span 2;
  min-width: 160px;
}

.user-access-cell {
  width: 360px;
  max-width: 360px;
}

.user-access-list {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  align-items: center;
}

.access-chip {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 4px 8px;
  border: 1px solid #cfe0ef;
  border-radius: 6px;
  background: #f4f8fb;
  color: #38516b;
  font-size: 11px;
  font-weight: 800;
  white-space: nowrap;
}

.access-chip-all {
  border-color: #bfe6d1;
  background: #e7f7ee;
  color: #0f6b39;
}

.access-chip-more {
  border-color: #ffd8aa;
  background: #fff3e1;
  color: #9a5200;
}

.support-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 16px;
}

.documentation-table-wrap {
  max-width: 980px;
}

.documentation-table-wrap th,
.documentation-table-wrap td {
  vertical-align: middle;
}

.documentation-download {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 8px 14px;
  border: 1px solid var(--blue-700);
  border-radius: 6px;
  color: var(--blue-700);
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
}

.documentation-download:hover {
  background: #eef6fc;
}

.support-action-card {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 86px;
  padding: 16px;
  border: 1px solid #cfe0ef;
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
}

.support-action-card:hover {
  border-color: var(--blue-700);
  box-shadow: 0 12px 28px rgba(12, 37, 71, .08);
}

.support-action-card:disabled {
  cursor: not-allowed;
  opacity: .58;
  box-shadow: none;
}

.support-action-card strong,
.support-action-card small {
  display: block;
}

.support-action-card strong {
  font-size: 18px;
}

.support-action-card small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.support-icon {
  display: inline-grid;
  place-items: center;
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  border-radius: 8px;
}

.support-icon svg {
  width: 27px;
  height: 27px;
  fill: currentColor;
}

.whatsapp-card .support-icon {
  background: #e6f7ed;
  color: #128c4a;
}

.email-card .support-icon {
  background: #eaf4fb;
  color: var(--blue-700);
}

.support-form label:first-child {
  grid-column: span 3;
}

.support-message-field {
  grid-column: 1 / -1;
}

.support-attachment-field {
  grid-column: 1 / -1;
}

.support-attachment-field small {
  color: #6b7b8d;
  font-size: 12px;
  font-weight: 700;
}

.support-preview {
  grid-column: 1 / -1;
  margin: 0;
  color: #50657c;
  font-size: 13px;
  font-weight: 700;
}

.support-ticket-result {
  margin-top: 16px;
  padding: 14px 16px;
  border: 1px solid #cfe7d7;
  border-radius: 8px;
  background: #f0fbf4;
  color: #0f5f32;
  font-weight: 700;
}

.support-ticket-result p {
  margin: 4px 0 0;
  color: #2a5b40;
  font-size: 13px;
}

.support-history-header {
  margin-top: 22px;
}

.support-history-wrap {
  margin-top: 10px;
}

.support-history-message {
  min-width: 260px;
  max-width: 420px;
  white-space: normal;
  line-height: 1.35;
}

.support-detail-row td {
  background: #f8fbfe;
  white-space: normal;
}

.support-detail-box {
  display: grid;
  gap: 10px;
  max-width: 900px;
  color: #203246;
  line-height: 1.42;
}

.support-detail-box p {
  margin: 0;
}

.support-detail-box strong {
  color: var(--blue-900);
}

.support-history-response {
  margin-top: 10px;
  padding: 10px 12px;
  border-left: 4px solid var(--blue-700);
  border-radius: 6px;
  background: #f2f7fb;
  color: #203246;
}

.support-history-response strong {
  color: var(--blue-900);
}

.support-attachment-link {
  color: var(--blue-700);
  font-weight: 800;
  text-decoration: none;
}

.support-attachment-link:hover {
  text-decoration: underline;
}

.support-status-chip {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 4px 8px;
  border: 1px solid #bfe6d1;
  border-radius: 999px;
  background: #e7f7ee;
  color: #0f6b39;
  font-size: 11px;
  font-weight: 800;
}

.support-status-chip.status-encerrado {
  border-color: #d8e0e8;
  background: #eef2f6;
  color: #526579;
}

.support-status-chip.status-respondido {
  border-color: #bfe6d1;
  background: #e7f7ee;
  color: #0f6b39;
}

.movement-bank-field {
  grid-column: span 4;
  min-width: 260px;
}

.movement-type-field {
  grid-column: span 2;
  min-width: 160px;
}

.movement-nature-search-field {
  grid-column: span 6;
  min-width: 320px;
}

.movement-nature-field {
  grid-column: span 6;
  min-width: 320px;
}

.movement-date-field,
.movement-competence-field,
.movement-value-field {
  grid-column: span 2;
  min-width: 150px;
}

.movement-description-field {
  grid-column: span 6;
  min-width: 320px;
}

.movement-person-field {
  grid-column: span 4;
  min-width: 240px;
}

.movement-doc-field {
  grid-column: span 3;
  min-width: 180px;
}

.movement-note-field {
  grid-column: span 7;
  min-width: 300px;
}

.movement-check-field {
  grid-column: span 2;
  min-width: 120px;
  align-self: center;
}

.movement-submit {
  grid-column: 10 / -1;
  min-width: 180px;
}

.movement-form.reclassifying label:not(.movement-nature-field),
.movement-form.reclassifying .movement-check-field {
  opacity: .62;
  pointer-events: none;
}

.movement-form.reclassifying .movement-nature-field {
  border-left: 4px solid var(--orange);
  padding-left: 10px;
}

.bank-form label,
.nature-form label,
.balance-form label,
.member-form label,
.minutes-form label,
.agenda-form label,
.user-form label,
.movement-form label,
.report-form label,
.support-form label,
.accountability-form label {
  display: grid;
  gap: 8px;
  color: #35475c;
  font-size: 13px;
  font-weight: 700;
}

.bank-form input,
.nature-form input,
.nature-form select,
.balance-form input,
.balance-form select,
.member-form input,
.patrimony-form input,
.patrimony-form select,
.minutes-form input,
.minutes-form textarea,
.agenda-form input,
.agenda-form select,
.agenda-form textarea,
.user-form input,
.user-form select,
.movement-form input,
.movement-form select,
.accountability-form input,
.accountability-form select,
.support-form select,
.support-form input[type="file"],
.support-form textarea,
.report-form input,
.report-form select {
  width: 100%;
  border: 1px solid #aebccc;
  border-radius: 6px;
  color: var(--ink);
  background: #fff;
  outline: none;
}

.bank-form input,
.nature-form input,
.nature-form select,
.balance-form input,
.balance-form select,
.member-form input,
.patrimony-form input,
.patrimony-form select,
.minutes-form input,
.agenda-form input,
.agenda-form select,
.user-form input,
.user-form select,
.movement-form input,
.movement-form select,
.accountability-form input,
.accountability-form select,
.support-form select,
.support-form input[type="file"],
.report-form input,
.report-form select {
  height: 42px;
  padding: 0 12px;
}

.support-form input[type="file"] {
  padding: 8px 12px;
}

.minutes-form input[type="file"] {
  padding: 8px 12px;
}

.minutes-form textarea,
.agenda-form textarea,
.support-form textarea {
  min-height: 156px;
  padding: 12px;
  line-height: 1.45;
  resize: vertical;
}

.minutes-form textarea[name="participantes"] {
  min-height: 86px;
}

.bank-form input:focus,
.nature-form input:focus,
.nature-form select:focus,
.balance-form input:focus,
.balance-form select:focus,
.member-form input:focus,
.patrimony-form input:focus,
.patrimony-form select:focus,
.minutes-form input:focus,
.minutes-form textarea:focus,
.agenda-form input:focus,
.agenda-form select:focus,
.agenda-form textarea:focus,
.user-form input:focus,
.user-form select:focus,
.movement-form input:focus,
.movement-form select:focus,
.accountability-form input:focus,
.accountability-form select:focus,
.support-form select:focus,
.support-form input[type="file"]:focus,
.support-form textarea:focus,
.report-form input:focus,
.report-form select:focus {
  border-color: var(--blue-700);
  box-shadow: 0 0 0 3px rgba(0, 105, 159, .13);
}

.bank-form button,
.nature-form button,
.balance-form button,
.member-form button,
.patrimony-form button,
.minutes-form button,
.agenda-form button,
.user-form button,
.movement-form button,
.support-form button,
.accountability-form button,
.report-form button {
  height: 42px;
  border: 1px solid var(--blue-700);
  border-radius: 6px;
  background: var(--blue-700);
  color: #fff;
  font-weight: 700;
  cursor: pointer;
}

.bank-form.loading button,
.nature-form.loading button,
.balance-form.loading button,
.member-form.loading button,
.patrimony-form.loading button,
.minutes-form.loading button,
.agenda-form.loading button,
.user-form.loading button,
.movement-form.loading button,
.support-form.loading button,
.accountability-form.loading button,
.report-form.loading button,
.bi-form.loading button,
.meta-form.loading button {
  opacity: .75;
  cursor: wait;
}

.bank-form .message,
.nature-form .message,
.balance-form .message,
.member-form .message,
.patrimony-form .message,
.minutes-form .message,
.agenda-form .message,
.user-form .message,
.movement-form .message,
.support-form .message,
.accountability-form .message,
.report-form .message,
.bi-form .message,
.meta-form .message {
  grid-column: 1 / -1;
  min-height: 16px;
}

.messaging-panel {
  display: grid;
  gap: 18px;
}

.messaging-form {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #f8fbfe;
}

.messaging-form label,
.messaging-report-list {
  display: grid;
  gap: 7px;
  color: var(--text);
  font-weight: 800;
}

.messaging-form input,
.messaging-form textarea {
  width: 100%;
  border: 1px solid #bccbdb;
  border-radius: 6px;
  padding: 12px 14px;
  background: #fff;
  color: var(--text);
  font: inherit;
  font-weight: 700;
}

.messaging-form textarea {
  resize: vertical;
}

.messaging-form input:focus,
.messaging-form textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(0, 52, 99, .12);
}

.messaging-form button {
  align-self: end;
  justify-self: start;
  min-width: 238px;
  min-height: 48px;
  border: 1px solid var(--innova-blue);
  border-radius: 7px;
  padding: 13px 18px;
  background: var(--innova-blue);
  color: #fff !important;
  font: inherit;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 8px 18px rgba(0, 52, 99, .16);
}

.messaging-primary-button {
  opacity: 1 !important;
  visibility: visible !important;
}

.messaging-form.loading button {
  opacity: .72;
  cursor: wait;
}

.messaging-secure-field,
.messaging-active-field {
  align-self: end;
  min-height: 48px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.messaging-secure-field input,
.messaging-active-field input {
  width: 18px;
  height: 18px;
}

.messaging-recipients-field,
.messaging-report-list,
.messaging-form .message {
  grid-column: 1 / -1;
}

.messaging-report-list {
  padding: 14px;
  border: 1px solid #d8e4ef;
  border-radius: 8px;
  background: #fff;
}

.messaging-report-list span {
  color: var(--muted);
  font-size: .9rem;
  font-weight: 800;
}

.movement-check-field {
  display: flex !important;
  align-items: center;
  gap: 9px;
  min-height: 42px;
  margin-top: 20px;
}

.movement-check-field input {
  width: 18px;
  height: 18px;
}

.type-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 86px;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
}

.type-receita {
  color: #0f6b39;
  background: #e3f7ea;
}

.type-despesa {
  color: #9a3f00;
  background: #fff0d7;
}

.class-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 82px;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
}

.class-analitica {
  color: #004d80;
  background: #e8f4fb;
}

.class-sintetica {
  color: #5d4600;
  background: #fff6d7;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 98px;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
}

.status-pill-enabled {
  color: #0f6b39;
  background: #e3f7ea;
}

.status-pill-disabled {
  color: #7a1e14;
  background: #fde8e5;
}

.nature-row-disabled {
  background: #fff4e6;
  color: #6a2a1d;
}

.nature-row-disabled td {
  color: #6a2a1d;
}

.status-pill-neutral {
  color: #46627a;
  background: #eef4f8;
}

.status-pill-warning {
  color: #9a4f00;
  background: #fff4e6;
}

.code-origin {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}

.bank-list-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 12px;
}

.bank-list-header h3 {
  margin: 0;
  font-size: 20px;
}

.bank-list-header .ghost-button {
  width: 110px;
}

.table-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 32px;
  min-width: 78px;
  padding: 0 12px;
  border: 1px solid var(--blue-700);
  border-radius: 6px;
  background: #fff;
  color: var(--blue-700);
  font-weight: 700;
  line-height: 1;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}

.table-action:hover,
.table-action:focus {
  text-decoration: none;
}

.table-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

#naturePanel table {
  table-layout: fixed;
  min-width: 900px;
}

#naturePanel th:nth-child(1),
#naturePanel td:nth-child(1) {
  width: 104px;
}

#naturePanel th:nth-child(2),
#naturePanel td:nth-child(2) {
  width: auto;
  white-space: normal;
}

#naturePanel th:nth-child(3),
#naturePanel td:nth-child(3) {
  width: 72px;
}

#naturePanel th:nth-child(4),
#naturePanel td:nth-child(4),
#naturePanel th:nth-child(5),
#naturePanel td:nth-child(5) {
  width: 110px;
}

#naturePanel th:nth-child(6),
#naturePanel td:nth-child(6) {
  width: 118px;
}

#naturePanel th:nth-child(7),
#naturePanel td:nth-child(7) {
  width: 232px;
}

#movementsPanel table {
  table-layout: fixed;
}

#movementsPanel th:nth-child(1),
#movementsPanel td:nth-child(1) {
  width: 98px;
}

#movementsPanel th:nth-child(2),
#movementsPanel td:nth-child(2) {
  width: 220px;
}

#movementsPanel th:nth-child(4),
#movementsPanel td:nth-child(4) {
  width: 130px;
}

#movementsPanel th:last-child,
#movementsPanel td:last-child {
  width: 180px;
}

#movementsPanel td:nth-child(3) {
  white-space: normal;
}

.movement-nature-code,
.movement-nature-description,
.movement-conciliation {
  display: block;
}

.movement-nature-code {
  margin-bottom: 3px;
  color: #24384e;
}

.movement-nature-description {
  color: var(--ink);
  line-height: 1.25;
}

#movementsPanel .movement-value-in {
  color: #0f6b39;
}

#movementsPanel .movement-value-out {
  color: #b35a00;
}

.movement-conciliation {
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-align: right;
}

.bank-edit,
.nature-edit,
.balance-edit,
.movement-edit {
  border-color: var(--orange);
  color: #8a4a00;
}

.movement-delete {
  border-color: #b42318;
  color: #9b1c16;
}

.minutes-delete {
  border-color: #b42318;
  color: #9b1c16;
}

.report-form,
.bi-form,
.meta-form,
.meta-bi-form {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 16px;
  align-items: end;
  padding: 18px;
  margin-bottom: 16px;
  border: 1px solid #e1e8f0;
  border-radius: 8px;
  background: #f8fbfd;
}

.movement-filter-form {
  display: grid;
  grid-template-columns: repeat(16, minmax(0, 1fr));
  gap: 16px;
  align-items: end;
  padding: 16px;
  margin-bottom: 16px;
  border: 1px solid #e1e8f0;
  border-radius: 8px;
  background: #fff;
}

.movement-filter-form label {
  display: grid;
  grid-column: span 4;
  min-width: 0;
  gap: 8px;
  color: #35475c;
  font-size: 13px;
  font-weight: 700;
}

.movement-filter-form label:nth-child(4),
.movement-filter-form label:nth-child(5) {
  grid-column: span 4;
}

.movement-filter-form button {
  grid-column: span 4;
}

.movement-filter-form input,
.movement-filter-form select {
  width: 100%;
  height: 42px;
  border: 1px solid #aebccc;
  border-radius: 6px;
  padding: 0 12px;
  color: var(--ink);
  background: #fff;
  outline: none;
}

.movement-filter-form input:focus,
.movement-filter-form select:focus {
  border-color: var(--blue-700);
  box-shadow: 0 0 0 3px rgba(0, 105, 159, .13);
}

.movement-filter-form button {
  grid-column: span 2;
  height: 42px;
  min-width: 88px;
  border: 1px solid var(--blue-700);
  border-radius: 6px;
  background: var(--blue-700);
  color: #fff;
  font-weight: 700;
  cursor: pointer;
}

.cash-flow-form label {
  grid-column: span 3;
}

.cash-flow-form .cash-flow-submit {
  grid-column: span 4;
  min-width: 0;
  width: 100%;
}

.cash-flow-form .message {
  grid-column: span 5;
  align-self: center;
  padding-left: 8px;
}

.movement-filter-clear {
  background: #fff !important;
  color: var(--blue-700) !important;
}

.future-payment-filter-form label {
  grid-column: span 3;
}

.future-payment-filter-form label:nth-child(4) {
  grid-column: span 3;
}

.future-payment-filter-actions {
  display: flex;
  align-items: end;
  gap: 10px;
  grid-column: span 4;
}

.future-payment-filter-actions button {
  flex: 1 1 0;
  min-width: 0;
}

.report-form label {
  grid-column: span 3;
}

.statement-report .report-form label:first-child {
  grid-column: span 4;
}

.bi-form label {
  display: grid;
  grid-column: span 3;
  gap: 8px;
  color: #35475c;
  font-size: 13px;
  font-weight: 700;
}

.meta-form label,
.meta-bi-form label {
  display: grid;
  grid-column: span 3;
  gap: 8px;
  color: #35475c;
  font-size: 13px;
  font-weight: 700;
}

.meta-form label:first-child,
.meta-bi-form label:nth-child(2) {
  grid-column: span 5;
}

.meta-form .check-list-field {
  grid-column: span 4;
}

.bi-form label:nth-child(2),
.bi-form label:nth-child(3) {
  grid-column: span 4;
}

.bi-form input,
.bi-form select,
.meta-form input,
.meta-form select,
.meta-bi-form input,
.meta-bi-form select {
  width: 100%;
  height: 42px;
  border: 1px solid #aebccc;
  border-radius: 6px;
  padding: 0 12px;
  color: var(--ink);
  background: #fff;
  outline: none;
}

.bi-form input:focus,
.bi-form select:focus,
.meta-form input:focus,
.meta-form select:focus,
.meta-bi-form input:focus,
.meta-bi-form select:focus {
  border-color: var(--blue-700);
  box-shadow: 0 0 0 3px rgba(0, 105, 159, .13);
}

.bi-form small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}

.bi-form select[multiple] {
  height: 156px;
  padding: 8px 10px;
}

.bi-form select[multiple] option {
  padding: 5px 6px;
}

.report-form button,
.bi-form button,
.meta-form button,
.meta-bi-form button {
  grid-column: span 2;
  height: 42px;
  min-width: 172px;
  padding: 0 22px;
  border-radius: 6px;
  color: #fff;
  background: var(--blue-700);
  font-weight: 700;
  cursor: pointer;
}

.report-panel .report-form button {
  grid-column: span 3;
  min-width: 0;
  width: 100%;
}

.secondary-report-button {
  background: #fff !important;
  color: var(--blue-700) !important;
}

.close-month-button {
  border-color: var(--orange) !important;
  background: var(--orange) !important;
  color: #fff !important;
}

.report-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}

.report-summary article {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.report-summary span {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.report-summary strong {
  font-size: 23px;
}

.report-summary #reportIncome,
.report-summary #closingIncome {
  color: var(--chart-income);
}

.report-summary #reportOutcome,
.report-summary #closingOutcome {
  color: var(--chart-outcome);
}

.report-summary .summary-value-negative {
  color: var(--chart-negative);
}

.report-summary .summary-value-positive {
  color: var(--chart-positive);
}

.bi-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}

.bi-summary article {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.bi-summary span {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.bi-summary strong {
  font-size: 23px;
}

#biIncomeTotal {
  color: var(--chart-income);
}

#biOutcomeTotal {
  color: var(--chart-outcome);
}

#biBalanceTotal.summary-value-positive {
  color: var(--chart-positive);
}

#biBalanceTotal.summary-value-negative {
  color: var(--chart-negative);
}

.bi-chart-section {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(0deg, rgba(214, 222, 231, .70) 0%, rgba(239, 243, 247, .78) 45%, rgba(255, 255, 255, .96) 100%),
    repeating-linear-gradient(0deg, rgba(0, 52, 99, .05) 0 1px, transparent 1px 52px);
  box-shadow: inset 0 -22px 38px rgba(23, 33, 47, .05), 0 16px 34px rgba(12, 37, 71, .06);
}

.bi-chart-legend {
  display: flex;
  justify-content: flex-end;
  gap: 18px;
  margin-bottom: 16px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.bi-chart-legend span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.bi-chart-legend i {
  width: 12px;
  height: 12px;
  border-radius: 3px;
}

.legend-income {
  background: var(--chart-income);
}

.legend-outcome {
  background: var(--chart-outcome);
}

.legend-realized {
  background: var(--chart-realized);
}

.bi-check-list {
  display: grid;
  gap: 6px;
  height: 42px;
  overflow-x: hidden;
  overflow-y: auto;
  padding: 5px 8px;
  border: 1px solid #aebccc;
  border-radius: 6px;
  background: #fff;
}

.check-list-field {
  position: relative;
}

.check-list-field:hover .bi-check-list,
.check-list-field:focus-within .bi-check-list {
  position: absolute;
  top: calc(100% - 42px);
  left: 0;
  right: 0;
  z-index: 20;
  height: 184px;
  min-width: min(560px, calc(100vw - 72px));
  box-shadow: 0 18px 44px rgba(22, 50, 78, .18);
}

.bi-check-option {
  display: flex !important;
  grid-column: auto !important;
  align-items: flex-start;
  gap: 8px !important;
  min-height: 30px;
  padding: 5px 6px;
  border-radius: 5px;
  color: var(--ink) !important;
  font-size: 12px !important;
  font-weight: 800 !important;
  line-height: 1.25;
  cursor: pointer;
}

.bi-check-option:hover {
  background: #f4f8fb;
}

.bi-check-option-all {
  position: sticky;
  top: -5px;
  z-index: 2;
  border-bottom: 1px solid #dbe6f0;
  border-radius: 0;
  background: #fff;
  color: #003463 !important;
}

.bi-check-option input {
  width: 16px !important;
  height: 16px !important;
  flex: 0 0 auto;
  margin: 1px 0 0;
  accent-color: var(--orange);
}

.bi-check-option span {
  min-width: 0;
  overflow-wrap: anywhere;
  white-space: normal;
}

.bi-chart {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 14px;
  min-height: 360px;
  overflow-x: hidden;
  padding: 12px 2px 0;
  border-bottom: 1px solid rgba(0, 52, 99, .20);
}

#biChart.bi-chart {
  grid-template-columns: repeat(12, minmax(0, 1fr)) minmax(26px, 34px) repeat(2, minmax(66px, 1fr));
  gap: 12px;
}

.bi-month {
  display: grid;
  grid-template-rows: 58px minmax(240px, 1fr) 28px;
  gap: 10px;
  min-width: 0;
}

.bi-values {
  display: grid;
  grid-template-columns: 1fr;
  justify-content: center;
  gap: 2px;
  align-items: end;
  min-height: 58px;
  overflow: visible;
}

.bi-values span {
  color: var(--ink);
  font-size: 11px;
  font-weight: 800;
  line-height: 1.15;
  text-align: center;
  white-space: nowrap;
}

.bi-value-income {
  color: var(--chart-income) !important;
}

.bi-value-outcome {
  color: var(--chart-outcome) !important;
}

.bi-bars {
  display: grid;
  grid-template-columns: repeat(2, minmax(18px, 30px));
  justify-content: center;
  gap: 8px;
  align-items: end;
}

.bi-bar-wrap {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  height: 260px;
  min-height: 260px;
}

.bi-bar-label {
  display: none;
}

.bi-bar {
  display: block;
  width: 100%;
  min-height: 0;
  border-radius: 5px 5px 0 0;
  box-shadow: 0 12px 22px rgba(31, 61, 89, .16);
}

.bi-bar-income {
  background: linear-gradient(180deg, var(--chart-income), var(--chart-income-dark));
  box-shadow: 0 16px 28px rgba(0, 52, 99, .26);
}

.bi-bar-outcome {
  background: linear-gradient(180deg, var(--chart-outcome), var(--chart-outcome-dark));
  box-shadow: 0 16px 28px rgba(243, 147, 35, .24);
}

.bi-average-divider {
  grid-template-rows: 58px minmax(240px, 1fr) 28px;
  justify-items: center;
}

.bi-average-divider span {
  align-self: start;
  color: var(--ink);
  font-size: 12px;
  font-weight: 900;
  line-height: 1.15;
  text-align: center;
}

.bi-average-divider i {
  align-self: stretch;
  width: 0;
  border-left: 2px dashed #cbd8e5;
}

.bi-average-month .bi-bars {
  grid-template-columns: minmax(22px, 34px);
}

.bi-average-month strong {
  line-height: 1.05;
}

.bi-bar-average-income {
  background: linear-gradient(180deg, #5b88a8, var(--chart-income));
  box-shadow: 0 16px 28px rgba(0, 52, 99, .23);
}

.bi-bar-average-outcome {
  background: linear-gradient(180deg, #f9b45c, var(--chart-outcome-dark));
  box-shadow: 0 16px 28px rgba(243, 147, 35, .22);
}

.bi-value-average {
  color: var(--chart-average) !important;
}

.bi-value-average-income {
  color: var(--chart-income) !important;
}

.bi-value-average-outcome {
  color: var(--chart-outcome) !important;
}

.meta-panel {
  display: grid;
  gap: 16px;
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
}

.meta-panel > * {
  min-width: 0;
  max-width: 100%;
  width: 100%;
}

.meta-table-wrap {
  max-height: 330px;
  overflow: auto;
}

.meta-table-wrap table {
  table-layout: fixed;
  min-width: 0;
}

.meta-table-wrap th:nth-child(1),
.meta-table-wrap td:nth-child(1) {
  width: 90px;
}

.meta-table-wrap th:nth-child(3),
.meta-table-wrap td:nth-child(3) {
  width: 90px;
}

.meta-table-wrap th:nth-child(4),
.meta-table-wrap td:nth-child(4) {
  width: 150px;
  text-align: left;
}

.meta-table-wrap th:nth-child(5),
.meta-table-wrap td:nth-child(5) {
  width: 190px;
}

.meta-table-wrap .money-cell {
  text-align: left;
}

.meta-detail {
  margin-top: 18px;
  padding: 18px;
  border: 1px solid #d8e3ee;
  border-radius: 8px;
  background: #f8fbfd;
}

.meta-detail-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.meta-detail-header h3 {
  margin: 0;
  font-size: clamp(24px, 3vw, 34px);
  color: var(--ink);
}

.meta-detail-header p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 15px;
  font-weight: 700;
}

.meta-detail-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}

.meta-detail-summary article {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.meta-detail-summary span {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.meta-detail-summary strong {
  color: var(--blue-900);
  font-size: 26px;
  font-weight: 900;
}

.meta-items-wrap table {
  table-layout: fixed;
  min-width: 900px;
}

.meta-items-wrap {
  overflow: visible;
}

.meta-items-wrap th:nth-child(1),
.meta-items-wrap td:nth-child(1) {
  width: 70px;
}

.meta-items-wrap th:nth-child(2),
.meta-items-wrap td:nth-child(2) {
  width: 430px;
}

.meta-items-wrap th:nth-child(3),
.meta-items-wrap td:nth-child(3) {
  width: 150px;
}

.meta-items-wrap th:nth-child(4),
.meta-items-wrap td:nth-child(4) {
  width: 150px;
}

.meta-items-wrap th:nth-child(5),
.meta-items-wrap td:nth-child(5) {
  width: 110px;
}

.meta-items-wrap input {
  width: 100%;
  height: 42px;
  border: 1px solid #aebccc;
  border-radius: 6px;
  padding: 0 12px;
  color: var(--ink);
  background: #fff;
  outline: none;
}

.meta-items-wrap input:focus {
  border-color: var(--blue-700);
  box-shadow: 0 0 0 3px rgba(0, 105, 159, .13);
}

.meta-item-sequence {
  color: var(--blue-900);
  font-weight: 900;
}

.meta-item-nature-field {
  position: relative;
  height: auto;
  padding: 0;
  color: var(--ink);
  background: transparent;
  cursor: pointer;
}

.meta-item-nature-list {
  width: 100%;
}

.meta-item-nature-field:hover .meta-item-nature-list,
.meta-item-nature-field:focus-within .meta-item-nature-list {
  height: 184px;
  min-width: min(640px, calc(100vw - 72px));
}

.meta-detail-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 16px;
}

.meta-detail-actions .ghost-button,
.meta-detail-actions .primary-action {
  min-width: 170px;
  height: 58px;
  font-size: 20px;
}

.meta-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.meta-summary article {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.meta-summary span {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.meta-summary strong {
  font-size: 23px;
}

#metaGoalTotal,
.bi-value-goal {
  color: var(--chart-goal) !important;
}

#metaRealizedTotal {
  color: var(--chart-realized);
}

.bi-value-realized {
  color: var(--chart-realized) !important;
}

#metaDifferenceTotal.summary-value-positive {
  color: var(--chart-positive);
}

#metaDifferenceTotal.summary-value-negative {
  color: var(--chart-negative);
}

.legend-goal,
.bi-bar-goal {
  background: linear-gradient(180deg, var(--chart-goal), var(--chart-goal-dark));
  box-shadow: 0 14px 24px rgba(102, 85, 143, .22);
}

.bi-bar-realized {
  background: linear-gradient(180deg, var(--chart-realized), var(--chart-realized-dark));
  box-shadow: 0 14px 24px rgba(76, 135, 144, .22);
}

.meta-chart-section {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(0deg, rgba(214, 222, 231, .70) 0%, rgba(239, 243, 247, .78) 45%, rgba(255, 255, 255, .96) 100%),
    repeating-linear-gradient(0deg, rgba(0, 52, 99, .05) 0 1px, transparent 1px 52px);
  box-shadow: inset 0 -22px 38px rgba(23, 33, 47, .05), 0 16px 34px rgba(12, 37, 71, .06);
}

.meta-chart .bi-month {
  grid-template-rows: 58px minmax(240px, 1fr) 28px;
}

.meta-chart .bi-bars {
  align-items: end;
}

.meta-chart .bi-bar-label {
  display: none;
}

.meta-delete {
  border-color: #b42318;
  color: #9b1c16;
}

.bi-h-0 { height: 0; }
.bi-h-5 { height: 5%; }
.bi-h-10 { height: 10%; }
.bi-h-15 { height: 15%; }
.bi-h-20 { height: 20%; }
.bi-h-25 { height: 25%; }
.bi-h-30 { height: 30%; }
.bi-h-35 { height: 35%; }
.bi-h-40 { height: 40%; }
.bi-h-45 { height: 45%; }
.bi-h-50 { height: 50%; }
.bi-h-55 { height: 55%; }
.bi-h-60 { height: 60%; }
.bi-h-65 { height: 65%; }
.bi-h-70 { height: 70%; }
.bi-h-75 { height: 75%; }
.bi-h-80 { height: 80%; }
.bi-h-85 { height: 85%; }
.bi-h-90 { height: 90%; }
.bi-h-95 { height: 95%; }
.bi-h-100 { height: 100%; }

.bi-month strong {
  color: var(--muted);
  font-size: 12px;
  text-align: center;
}

.report-document {
  display: grid;
  gap: 20px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.report-cover {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding-bottom: 16px;
  border-bottom: 2px solid #dce7ef;
}

.report-cover h3 {
  margin: 0 0 6px;
  font-size: 22px;
}

.report-cover p,
.report-cover span {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.report-section {
  display: grid;
  gap: 10px;
}

.report-balance-page {
  display: grid;
  gap: 18px;
}

.report-section h3 {
  margin: 0;
  color: var(--blue-900);
  font-size: 18px;
}

.report-table {
  border: 1px solid var(--line);
}

.report-table th,
.report-table td {
  white-space: normal;
}

.report-table th:first-child,
.report-table td:first-child {
  width: 140px;
}

.report-table th:last-child {
  text-align: right;
}

.report-balance-section .report-table {
  table-layout: fixed;
  width: 100%;
}

.report-balance-section .bank-name-cell,
.report-balance-section th:nth-child(1) {
  width: 30%;
  white-space: normal;
}

.report-balance-section .bank-code-cell,
.report-balance-section th:nth-child(2) {
  width: 11%;
}

.report-balance-section .bank-agency-cell,
.report-balance-section th:nth-child(3) {
  width: 14%;
}

.report-balance-section .bank-account-cell,
.report-balance-section th:nth-child(4) {
  width: 18%;
}

.report-balance-section .money-cell,
.report-balance-section th:nth-child(5) {
  width: 27%;
  text-align: right;
}

.subtotal-row td {
  background: #eef7fc;
  color: var(--blue-900);
  font-weight: 800;
}

.total-row td {
  border-top: 2px solid var(--blue-700);
  background: #eafaf5;
  color: #005247;
  font-weight: 900;
}

.report-section-outcome .money-cell {
  color: #b45309;
}

.report-section-outcome .subtotal-row td {
  background: #fff7ed;
  color: #9a3412;
}

.report-section-outcome .total-row td {
  border-top-color: #c2410c;
  background: #ffedd5;
  color: #9a3412;
}

.report-balance-section .balance-outcome-row td {
  color: #9a3412;
  font-weight: 800;
}

.report-balance-section .balance-outcome-row .money-cell {
  color: #b45309;
}

.report-balance-section .balance-closing-negative td {
  border-top-color: #c2410c;
  background: #ffedd5;
  color: #9a3412;
}

.report-balance-section .balance-closing-positive td {
  border-top-color: var(--blue-700);
  background: #eafaf5;
  color: #005247;
}

.statement-cover {
  align-items: flex-start;
}

.statement-issued {
  display: grid;
  gap: 6px;
  text-align: right;
}

.statement-issued strong {
  color: var(--blue-900);
  font-size: 15px;
}

.statement-bank-line {
  display: grid;
  grid-template-columns: 2fr repeat(3, minmax(100px, 1fr));
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #f8fbfd;
  color: #35475c;
  font-size: 12px;
}

.statement-table {
  table-layout: fixed;
  width: 100%;
}

.statement-table th:nth-child(1),
.statement-table td:nth-child(1) {
  width: 11%;
}

.statement-table th:nth-child(2),
.statement-table td:nth-child(2) {
  width: 38%;
}

.statement-table th:nth-child(3),
.statement-table td:nth-child(3) {
  width: 13%;
}

.statement-table th:nth-child(4),
.statement-table td:nth-child(4),
.statement-table th:nth-child(5),
.statement-table td:nth-child(5),
.statement-table th:nth-child(6),
.statement-table td:nth-child(6) {
  width: 12.66%;
  text-align: right;
}

.statement-opening-row td {
  background: #f6fbff;
  color: var(--blue-900);
  font-weight: 800;
}

.statement-income-cell {
  color: #0f6b39;
}

.statement-table .statement-outcome-cell {
  color: #b91c1c;
}

.closing-note {
  margin: 0;
  padding: 12px 14px;
  border-radius: 6px;
  background: #fff8e9;
  color: #6a4700;
  font-weight: 700;
}

.money-cell {
  color: #063c5d;
  font-weight: 800;
  text-align: right;
  white-space: nowrap;
}

.table-action:disabled {
  opacity: .6;
  cursor: wait;
}

.empty-cell {
  color: var(--muted);
  text-align: center;
}

.right-menu {
  position: sticky;
  top: 18px;
  display: grid;
  align-self: start;
  gap: 7px;
  padding: 14px;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .98), rgba(248, 252, 255, .98)),
    #fff;
  border-color: #dce7f1;
  box-shadow: 0 18px 48px rgba(12, 37, 71, .10);
}

.right-menu::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 5px;
  background: linear-gradient(180deg, var(--orange), var(--blue-900));
}

.menu-group {
  position: relative;
  border: 0;
  border-bottom: 1px solid #e9f0f7;
  padding: 0 0 8px;
}

.menu-group:last-child {
  padding-bottom: 0;
  border-bottom-color: transparent;
}

.menu-group summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 44px;
  border-radius: 6px;
  border: 1px solid #d8e4ef;
  background: linear-gradient(135deg, #f7fbff, #edf5fb);
  color: var(--blue-900);
  cursor: pointer;
  font-size: 14px;
  font-weight: 900;
  list-style: none;
  padding: 0 10px 0 12px;
  box-shadow: 0 3px 0 rgba(0, 52, 99, .035), 0 10px 24px rgba(0, 52, 99, .14);
  user-select: none;
}

.menu-summary-label {
  display: inline-grid;
  grid-template-columns: 26px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.menu-icon {
  width: 21px;
  height: 21px;
  color: currentColor;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.menu-group summary::-webkit-details-marker {
  display: none;
}

.menu-group summary::after {
  content: "";
  width: 8px;
  height: 8px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  transition: transform .18s ease;
}

.menu-group[open] summary,
.menu-group summary:hover,
.menu-group summary:focus-visible {
  border-color: #b8d2e7;
  background: linear-gradient(135deg, #e7f3fb, #d7e9f6);
  color: var(--blue-900);
  box-shadow: 0 3px 0 rgba(0, 52, 99, .045), 0 14px 28px rgba(0, 52, 99, .18);
  outline: none;
}

.menu-group[open] summary::after {
  transform: rotate(225deg);
}

.menu-group-items {
  display: grid;
  gap: 7px;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  padding: 0 0;
  transition: max-height .2s ease, opacity .16s ease, padding .16s ease;
}

.menu-group[open] .menu-group-items {
  max-height: 560px;
  opacity: 1;
  padding: 8px 0 0 10px;
}

.menu-group.is-empty {
  display: none;
}

.menu-item {
  position: relative;
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  min-height: 43px;
  width: 100%;
  border: 1px solid #c7dbea;
  border-radius: 7px;
  background: linear-gradient(135deg, #eef6fb, #e3eff7);
  color: #28415d;
  font-size: 13px;
  font-weight: 800;
  text-align: left;
  padding: 0 12px;
  cursor: pointer;
  box-shadow: 0 3px 0 rgba(0, 52, 99, .035), 0 10px 22px rgba(0, 52, 99, .11);
  transition: background .16s ease, border-color .16s ease, color .16s ease, box-shadow .16s ease, transform .16s ease;
}

.menu-item span {
  min-width: 0;
  overflow-wrap: anywhere;
}

.menu-item:hover,
.menu-item:focus-visible {
  border-color: #9ebdd5;
  background: linear-gradient(135deg, #dcecf7, #cfe3f1);
  color: var(--blue-900);
  box-shadow: inset 4px 0 0 rgba(243, 147, 35, .7), 0 3px 0 rgba(0, 52, 99, .045), 0 15px 30px rgba(0, 52, 99, .16);
  outline: none;
  transform: translateX(-1px);
}

.menu-item.active {
  border-color: var(--blue-900);
  background: linear-gradient(135deg, var(--blue-900), #00528a);
  color: #fff;
  box-shadow: inset 5px 0 0 var(--orange), 0 12px 24px rgba(0, 52, 99, .22);
}

.menu-item.active .menu-icon {
  color: #fff;
}

.menu-item:disabled {
  cursor: default;
  opacity: .58;
}

.admin-main {
  display: grid;
  gap: 16px;
}

.admin-hero {
  display: flex;
  justify-content: space-between;
  gap: 24px;
}

.admin-layout {
  display: grid;
  grid-template-columns: minmax(320px, 420px) minmax(0, 1fr);
  gap: 16px;
}

.admin-form,
.admin-list {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 24px;
}

.admin-form {
  display: grid;
  gap: 16px;
  align-content: start;
}

.admin-form h3,
.admin-list h3 {
  margin: 0;
  font-size: 22px;
}

.admin-form label {
  display: grid;
  gap: 8px;
  color: #35475c;
  font-size: 13px;
  font-weight: 700;
}

.admin-form input,
.admin-form select {
  height: 42px;
  border: 1px solid #aebccc;
  border-radius: 6px;
  padding: 0 12px;
  outline: none;
}

.admin-form input:focus,
.admin-form select:focus {
  border-color: var(--blue-700);
  box-shadow: 0 0 0 3px rgba(0, 105, 159, .13);
}

.admin-form .admin-check-field {
  display: flex;
  align-items: center;
  gap: 10px;
}

.admin-form .admin-check-field input {
  width: 18px;
  height: 18px;
  padding: 0;
}

.admin-plan-details {
  margin: -8px 0 0;
  color: #60748b;
  font-size: 12px;
  font-weight: 700;
}

.admin-custom-plan-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.admin-form-actions {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
}

.admin-form button {
  height: 44px;
  border: 1px solid var(--blue-700);
  border-radius: 6px;
  background: var(--blue-700);
  color: #fff;
  font-weight: 700;
  cursor: pointer;
}

.admin-form .ghost-button {
  min-width: 108px;
  background: #fff;
  color: var(--blue-700);
}

.admin-form.loading button {
  opacity: .75;
  cursor: wait;
}

.admin-list {
  min-width: 0;
}

.admin-list-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
}

.admin-list-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}

.admin-list-header .ghost-button {
  width: auto;
  min-width: 110px;
}

.plan-catalog {
  display: grid;
  gap: 16px;
}

.plan-catalog .admin-list-header {
  margin-bottom: 0;
}

.plan-catalog-table input[type="number"] {
  width: 138px;
  min-width: 0;
  height: 38px;
  border: 1px solid #aebccc;
  border-radius: 6px;
  padding: 0 10px;
  color: var(--ink);
  font: inherit;
  font-weight: 700;
  outline: none;
}

.plan-catalog-table input[type="number"]:focus {
  border-color: var(--blue-700);
  box-shadow: 0 0 0 3px rgba(0, 105, 159, .13);
}

.plan-catalog-table input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--blue-700);
}

.plan-catalog-table td {
  vertical-align: middle;
}

.plan-catalog-table .plan-code {
  display: block;
  margin-top: 3px;
  color: #60748b;
  font-size: 11px;
  font-weight: 700;
}

.plan-catalog-table .plan-extra-empty {
  color: #60748b;
  font-size: 12px;
  font-weight: 700;
}

.plan-catalog-save {
  min-width: 82px;
}

.plan-catalog-note {
  margin: 0;
  color: #60748b;
  font-size: 12px;
  font-weight: 700;
}

.admin-muted {
  margin: 6px 0 0;
  color: #60748b;
  font-size: 13px;
  font-weight: 700;
}

.header-actions #openAdminPasswordChange {
  width: auto;
  min-width: 126px;
}

.server-health {
  display: grid;
  gap: 16px;
  padding: 4px 0 0;
}

.server-health-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.server-health-header h3 {
  margin: 0;
  font-size: 22px;
}

.server-health-header .ghost-button {
  width: auto;
  min-width: 110px;
}

.server-health-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, .84);
}

.server-health-metrics article {
  display: grid;
  gap: 8px;
  min-width: 0;
  padding: 16px 18px;
  border-right: 1px solid var(--line);
}

.server-health-metrics article:last-child {
  border-right: 0;
}

.server-health-metrics span,
.server-health-metrics small {
  color: #60748b;
  font-size: 12px;
  font-weight: 800;
}

.server-health-metrics strong {
  color: var(--innova-blue);
  font-size: 24px;
  line-height: 1;
}

.server-health-metrics meter {
  width: 100%;
  height: 9px;
}

.server-health-metrics meter::-webkit-meter-bar {
  border: 0;
  border-radius: 5px;
  background: #e6edf4;
}

.server-health-metrics meter::-webkit-meter-optimum-value,
.server-health-metrics meter::-webkit-meter-suboptimum-value,
.server-health-metrics meter::-webkit-meter-even-less-good-value {
  border-radius: 5px;
  background: #3f6f8f;
}

.server-health-note {
  margin: 0;
  color: #60748b;
  font-size: 12px;
  font-weight: 700;
}

.platform-finance {
  display: grid;
  gap: 16px;
  padding: 4px 0 0;
}

.platform-finance-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.platform-finance-header h3 {
  margin: 0;
  font-size: 22px;
}

.platform-finance-header .ghost-button {
  width: auto;
  min-width: 110px;
}

.platform-finance-metrics {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, .84);
}

.platform-finance-metrics article {
  display: grid;
  gap: 8px;
  min-width: 0;
  padding: 16px 18px;
  border-right: 1px solid var(--line);
}

.platform-finance-metrics article:last-child {
  border-right: 0;
}

.platform-finance-metrics span,
.platform-finance-metrics small {
  color: #60748b;
  font-size: 12px;
  font-weight: 800;
}

.platform-finance-metrics strong {
  color: var(--innova-blue);
  font-size: 24px;
  line-height: 1;
}

.platform-finance-metrics article:nth-child(2) strong {
  color: #355f87;
}

.platform-finance-metrics article:nth-child(3) strong {
  color: #0f6b39;
}

.platform-finance-metrics article:nth-child(4) strong {
  color: #8a4a00;
}

.platform-finance-metrics article:nth-child(5) strong {
  color: #ad2118;
}

.platform-finance-toolbar {
  display: flex;
  align-items: end;
  gap: 14px;
}

.platform-finance-toolbar label {
  display: grid;
  min-width: 190px;
  gap: 8px;
  color: #35475c;
  font-size: 13px;
  font-weight: 700;
}

.platform-finance-toolbar input,
.platform-finance-toolbar select {
  height: 42px;
  border: 1px solid #aebccc;
  border-radius: 6px;
  padding: 0 12px;
  background: #fff;
  color: var(--ink);
  outline: none;
}

.platform-finance-toolbar input:focus,
.platform-finance-toolbar select:focus {
  border-color: var(--blue-700);
  box-shadow: 0 0 0 3px rgba(0, 105, 159, .13);
}

.platform-finance-note {
  margin: 0;
  color: #60748b;
  font-size: 12px;
  font-weight: 700;
}

.finance-status-chip {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 5px 10px;
  border: 1px solid #d6e2ef;
  border-radius: 999px;
  background: #eef4f9;
  color: #42566c;
  font-size: 12px;
  font-weight: 800;
}

.finance-status-chip.paid {
  border-color: #bfe6d1;
  background: #e7f7ee;
  color: #0f6b39;
}

.finance-status-chip.pending {
  border-color: #f3d7a9;
  background: #fff6e8;
  color: #8a4a00;
}

.finance-status-chip.overdue {
  border-color: #f0c2bd;
  background: #fff0ee;
  color: #ad2118;
}

.finance-status-chip.cancelled {
  border-color: #d6e2ef;
  background: #f4f7fb;
  color: #60748b;
}

.finance-invoice-link {
  color: var(--innova-blue);
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
}

.finance-invoice-link:hover,
.finance-invoice-link:focus-visible {
  text-decoration: underline;
}

.finance-email-chip {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 5px 10px;
  border: 1px solid #d6e2ef;
  border-radius: 999px;
  background: #eef4f9;
  color: #42566c;
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.finance-email-chip.sent {
  border-color: #bfe6d1;
  background: #e7f7ee;
  color: #0f6b39;
}

.finance-email-chip.pending {
  border-color: #f3d7a9;
  background: #fff6e8;
  color: #8a4a00;
}

.finance-email-chip.failed {
  border-color: #f0c2bd;
  background: #fff0ee;
  color: #ad2118;
}

.finance-action-cell {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: max-content;
}

.finance-resend-button {
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid #b42318;
  border-radius: 6px;
  background: #b42318;
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
  cursor: pointer;
}

.finance-resend-button:disabled {
  cursor: wait;
  opacity: .72;
}

.admin-storage-cell {
  display: grid;
  gap: 3px;
}

.admin-storage-cell strong {
  color: #233b56;
}

.admin-storage-cell span {
  color: #60748b;
  font-size: 12px;
  font-weight: 700;
}

.church-status-cell {
  display: grid;
  gap: 3px;
}

.church-status-cell span {
  color: #60748b;
  font-size: 12px;
  font-weight: 700;
}

.church-status-cancelled {
  color: #9a3412;
}

.admin-email-cell {
  display: grid;
  gap: 4px;
  min-width: 180px;
}

.admin-email-cell strong {
  color: #17212f;
  font-size: 13px;
  font-weight: 800;
  word-break: break-word;
}

.admin-link-action {
  width: fit-content;
  border: 0;
  padding: 0;
  background: transparent;
  color: #00699f;
  font: inherit;
  font-size: 12px;
  font-weight: 800;
  text-align: left;
  cursor: pointer;
}

.admin-link-action:hover,
.admin-link-action:focus-visible {
  color: #003463;
  text-decoration: underline;
}

.admin-link-action:disabled {
  color: #60748b;
  cursor: wait;
  text-decoration: none;
}

.password-panel.loading button {
  opacity: .72;
  cursor: wait;
}

.admin-support-list {
  display: grid;
  gap: 16px;
}

.admin-reply-form {
  display: grid;
  gap: 14px;
  margin-top: 4px;
  padding: 18px;
  border: 1px solid #d6e2ef;
  border-radius: 8px;
  background: #f8fbfe;
}

.admin-reply-form[hidden] {
  display: none;
}

.admin-reply-form label {
  display: grid;
  gap: 8px;
  color: #35475c;
  font-size: 13px;
  font-weight: 700;
}

.admin-reply-form textarea {
  width: 100%;
  min-height: 132px;
  border: 1px solid #aebccc;
  border-radius: 6px;
  padding: 12px;
  color: var(--ink);
  line-height: 1.45;
  resize: vertical;
  outline: none;
}

.admin-reply-form textarea:focus {
  border-color: var(--blue-700);
  box-shadow: 0 0 0 3px rgba(0, 105, 159, .13);
}

.admin-reply-form button {
  height: 44px;
  border: 1px solid var(--blue-700);
  border-radius: 6px;
  background: var(--blue-700);
  color: #fff;
  font-weight: 700;
  cursor: pointer;
}

.admin-reply-form .ghost-button {
  min-width: 108px;
  background: #fff;
  color: var(--blue-700);
}

.admin-reply-form.loading button {
  opacity: .75;
  cursor: wait;
}

.admin-ticket-message {
  max-width: 360px;
  white-space: normal;
  line-height: 1.35;
}

.admin-ticket-chip {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 4px 8px;
  border: 1px solid #d6e2ef;
  border-radius: 999px;
  background: #eef4f9;
  color: #42566c;
  font-size: 11px;
  font-weight: 800;
}

.admin-ticket-chip.responded {
  border-color: #bfe6d1;
  background: #e7f7ee;
  color: #0f6b39;
}

.table-wrap {
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

th,
td {
  padding: 13px 14px;
  border-bottom: 1px solid #e8eef5;
  text-align: left;
  white-space: nowrap;
}

th {
  background: #eef4f9;
  color: #42566c;
  font-size: 12px;
}

tbody tr:last-child td {
  border-bottom: 0;
}

.future-payment-form {
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: 16px;
  align-items: end;
}

.future-payment-form label[hidden] {
  display: none !important;
}

.future-payment-form .future-bank-field {
  grid-column: span 3;
  min-width: 0;
}

.future-payment-form .future-type-field {
  grid-column: span 2;
  min-width: 0;
}

.future-payment-form .future-nature-field {
  grid-column: span 4;
  min-width: 0;
}

.future-payment-form .future-recurrence-field {
  grid-column: span 3;
  min-width: 0;
}

.future-payment-form .future-installments-field {
  grid-column: span 2;
  min-width: 0;
}

.future-payment-form .future-frequency-field {
  grid-column: span 3;
  min-width: 0;
}

.future-payment-form .future-date-field,
.future-payment-form .future-value-field {
  grid-column: span 2;
  min-width: 0;
}

.future-payment-form .future-description-field {
  grid-column: span 5;
  min-width: 300px;
}

.future-payment-form .future-submit {
  grid-column: span 3;
  min-width: 190px;
  width: 100%;
}

.future-status-chip {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
}

.future-status-pendente {
  border: 1px solid #f3d7a9;
  background: #fff6e8;
  color: #8a4a00;
}

.future-status-realizado {
  border: 1px solid #bfe6d1;
  background: #e7f7ee;
  color: #0f6b39;
}

.future-status-cancelado {
  border: 1px solid #f0c2bd;
  background: #fff0ee;
  color: #ad2118;
}

.cash-flow-dashboard {
  display: grid;
  gap: 16px;
  margin-top: 22px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, .92);
}

.cash-flow-title {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: end;
}

.cash-flow-title h3 {
  margin: 0;
  color: var(--innova-blue);
  font-size: 20px;
}

.cash-flow-title p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.cash-flow-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(150px, 1fr));
  gap: 12px;
}

.cash-flow-summary article {
  display: grid;
  gap: 8px;
  min-height: 82px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.cash-flow-summary span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.cash-flow-summary strong {
  color: #00456f;
  font-size: 22px;
}

.cash-flow-table-wrap {
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.cash-flow-table {
  min-width: 1200px;
  border-collapse: separate;
  border-spacing: 0;
}

.cash-flow-table th,
.cash-flow-table td {
  min-width: 86px;
  padding: 10px 12px;
  text-align: right;
  vertical-align: top;
}

.cash-flow-table thead th:first-child,
.cash-flow-table tbody th:first-child {
  position: sticky;
  left: 0;
  z-index: 2;
  min-width: 310px;
  text-align: left;
  background: #fff;
  box-shadow: 1px 0 0 #e8eef5;
}

.cash-flow-table thead th:first-child {
  z-index: 3;
  background: #eef4f9;
}

.cash-flow-table .cash-flow-total-row th,
.cash-flow-table .cash-flow-projected-row th {
  background: #f7fbff;
}

.cash-flow-details summary {
  cursor: pointer;
  color: #102033;
  font-weight: 900;
  white-space: normal;
}

.cash-flow-detail-list {
  display: grid;
  gap: 8px;
  margin-top: 10px;
  padding-left: 14px;
}

.cash-flow-detail-list div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: #33485f;
  font-size: 12px;
}

.cash-flow-income {
  color: var(--chart-income);
  font-weight: 900;
}

.cash-flow-outcome {
  color: var(--chart-outcome);
  font-weight: 900;
}

.cash-flow-projected {
  color: #12814b;
  font-weight: 900;
}

.cash-flow-total-row,
.cash-flow-projected-row {
  background: #f7fbff;
}

@media (max-width: 1440px) {
  .video-login-shell {
    justify-items: end;
    width: min(100% - 64px, 1220px);
    padding-right: clamp(24px, 5vw, 72px);
  }

  .video-login-card {
    width: min(44vw, 560px);
    min-height: 560px;
    padding: 56px 56px;
  }

  .video-login-form {
    gap: 18px;
  }

  .video-login-form label {
    font-size: 16px;
  }

  .video-login-form input {
    height: 58px;
    font-size: 17px;
  }

  .video-login-form button {
    height: 64px;
    margin-top: 18px;
    font-size: 20px;
  }

  .video-login-form .trial-entry-button {
    height: 52px;
    margin-top: -2px;
    font-size: 15px;
  }
}

@media (max-width: 1100px) {
  .dashboard-main {
    padding: 16px;
  }

  .dashboard-grid {
    grid-template-columns: 1fr;
  }

  .dashboard-nature-groups {
    grid-template-columns: 1fr;
  }

  .video-login-shell {
    justify-items: center;
    width: min(100% - 48px, 760px);
    padding-right: 0;
  }

  .video-login-card {
    width: min(100%, 580px);
  }

  .accountability-form,
  .user-accountability-field,
  .accountability-summary,
  .meta-detail-summary {
    grid-template-columns: 1fr;
  }

  .future-payment-filter-form {
    grid-template-columns: repeat(12, minmax(0, 1fr));
  }

  .future-payment-filter-form label,
  .future-payment-filter-form label:nth-child(4) {
    grid-column: span 3;
    min-width: 0;
  }

  .future-payment-filter-actions {
    grid-column: 9 / -1;
  }

  .user-accountability-field .inline-check {
    margin-bottom: 0;
  }

  .accountability-nature-field,
  .accountability-user-field,
  .accountability-form label:not(.accountability-nature-field):not(.accountability-user-field),
  .accountability-form button {
    grid-column: 1 / -1;
  }

  .meta-detail-header,
  .meta-detail-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .meta-detail-actions .ghost-button,
  .meta-detail-actions .primary-action {
    width: 100%;
  }
}

@media (max-width: 860px) {
  .dashboard-cards,
  .dashboard-chart-panel,
  .dashboard-concentric-body,
  .messaging-form {
    grid-template-columns: 1fr;
  }

  .dashboard-concentric-visual {
    min-height: 126px;
  }

  .login-video-page {
    overflow: auto;
  }

  .video-login-shell {
    justify-items: center;
    width: min(100% - 32px, 520px);
    padding: 28px 0;
  }

  .video-login-card {
    width: 100%;
    min-height: auto;
    padding: 34px 24px;
  }

  .video-login-form {
    gap: 16px;
  }

  .video-login-form label {
    font-size: 14px;
    gap: 8px;
  }

  .video-login-form input {
    height: 50px;
    font-size: 15px;
  }

  .video-login-form button {
    height: 52px;
    margin-top: 6px;
    font-size: 16px;
  }

  .video-login-form .trial-entry-button {
    height: 44px;
    margin-top: -4px;
    font-size: 13px;
  }

  .trial-modal {
    padding: 16px;
  }

  .trial-modal-panel {
    padding: 28px 18px 22px;
  }

  .trial-modal-panel h2 {
    font-size: 24px;
  }

  .trial-form {
    grid-template-columns: 1fr;
  }

  .user-billing-modal {
    padding: 16px;
  }

  .user-billing-panel {
    padding: 24px 18px;
  }

  .user-billing-panel h2 {
    font-size: 22px;
  }

  .user-billing-actions {
    display: grid;
  }

  .user-billing-actions .user-billing-button {
    width: 100%;
  }

  .login-page {
    overflow: auto;
    background:
      linear-gradient(180deg, #003a66 0%, #005987 42%, var(--surface) 42.1%);
  }

  .login-page::before,
  .login-page::after {
    display: none;
  }

  .login-shell {
    grid-template-columns: 1fr;
    gap: 28px;
    width: min(100% - 32px, 520px);
    padding: 28px 0 36px;
  }

  .brand-panel {
    min-height: auto;
    gap: 18px;
    color: #fff;
  }

  .brand-panel .eyebrow {
    color: #ffc36b;
  }

  .brand-copy h1 {
    font-size: 38px;
  }

  .brand-logo {
    width: 230px;
  }

  .brand-mark,
  .brand-metrics {
    display: none;
  }

  .support {
    color: rgba(255, 255, 255, .84);
    font-size: 16px;
  }

  .brand-status {
    color: rgba(255, 255, 255, .84);
  }

  .login-card {
    padding: 28px 22px;
  }

  .module-grid {
    grid-template-columns: 1fr;
  }

  .admin-layout {
    grid-template-columns: 1fr;
  }

  .admin-custom-plan-fields {
    grid-template-columns: 1fr;
  }

  .workspace-layout {
    grid-template-columns: 1fr;
  }

  .right-menu {
    display: none;
  }

  .dashboard-hero {
    min-height: auto;
    flex-direction: column;
    align-items: flex-start;
    padding: 26px;
  }

  .dashboard-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: -24px;
  }

  .dashboard-grid {
    grid-template-columns: 1fr;
  }

  .dashboard-chart-panel {
    grid-template-columns: 1fr;
  }

  .dashboard-nature-groups {
    display: none;
  }

  .bank-form,
  .nature-form,
  .balance-form,
  .member-form,
  .patrimony-form,
  .minutes-form,
  .agenda-form,
  .agenda-month-form,
  .user-form,
  .movement-form,
  .movement-filter-form,
  .future-payment-form,
  .report-form,
  .report-summary,
  .bi-form,
  .bi-summary,
  .cash-flow-form,
  .cash-flow-summary,
  .meta-form,
  .meta-bi-form,
  .meta-summary,
  .support-form,
  .support-actions {
    grid-template-columns: 1fr;
  }

  .wide-field,
  .bank-name-field,
  .bank-agency-field,
  .bank-account-field,
  .nature-code-field,
  .nature-class-field,
  .nature-type-field,
  .nature-transfer-field,
  .nature-description-field,
  .balance-bank-field,
  .balance-date-field,
  .balance-value-field,
  .balance-note-field,
  .member-name-field,
  .member-phone-field,
  .member-email-field,
  .member-birth-field,
  .member-since-field,
  .member-submit,
  .patrimony-description-field,
  .patrimony-series-field,
  .patrimony-invoice-field,
  .patrimony-purchase-field,
  .patrimony-value-field,
  .patrimony-location-field,
  .patrimony-responsible-field,
  .patrimony-state-field,
  .patrimony-note-field,
  .patrimony-submit,
  .patrimony-cancel,
  .minutes-type-field,
  .minutes-date-field,
  .minutes-participants-field,
  .minutes-agenda-field,
  .minutes-decisions-field,
  .minutes-attachment-field,
  .minutes-submit,
  .minutes-cancel,
  .agenda-title-field,
  .agenda-type-field,
  .agenda-date-field,
  .agenda-time-field,
  .agenda-description-field,
  .agenda-submit,
  .agenda-cancel,
  .agenda-month-form label,
  .agenda-month-form button,
  .user-name-field,
  .user-login-field,
  .user-profile-field,
  .user-password-field,
  .permission-field,
  .user-submit,
  .movement-bank-field,
  .movement-type-field,
  .movement-nature-search-field,
  .movement-nature-field,
  .movement-date-field,
  .movement-competence-field,
  .movement-value-field,
  .movement-description-field,
  .movement-person-field,
  .movement-doc-field,
  .movement-note-field,
  .movement-check-field,
  .future-payment-form .future-bank-field,
  .future-payment-form .future-type-field,
  .future-payment-form .future-nature-field,
  .future-payment-form .future-recurrence-field,
  .future-payment-form .future-installments-field,
  .future-payment-form .future-frequency-field,
  .future-payment-form .future-date-field,
  .future-payment-form .future-value-field,
  .future-payment-form .future-description-field,
  .future-payment-form .future-submit,
  .nature-submit,
  .bank-submit,
  .balance-submit,
  .movement-submit,
  .movement-filter-form label,
  .movement-filter-form label:nth-child(4),
  .movement-filter-form button,
  .movement-filter-clear,
  .report-form label,
  .report-form button,
  .bi-form label,
  .bi-form label:nth-child(2),
  .bi-form label:nth-child(3),
  .bi-form button,
  .meta-form label,
  .meta-form label:first-child,
  .meta-form button,
  .meta-bi-form label,
  .meta-bi-form label:nth-child(2),
  .meta-bi-form button,
  .cash-flow-form label,
  .cash-flow-form button,
  .cash-flow-form .message,
  .support-form label:first-child,
  .support-message-field,
  .bank-cancel,
  .nature-cancel,
  .balance-cancel,
  .member-cancel,
  .user-cancel,
  .movement-cancel {
    grid-column: auto;
  }

  .future-payment-filter-actions {
    grid-column: auto;
  }

  .agenda-board-header {
    flex-direction: column;
    align-items: stretch;
  }

  .agenda-calendar {
    grid-template-columns: repeat(7, minmax(104px, 1fr));
  }

  .report-cover {
    display: grid;
  }
}

@media (max-width: 560px) {
  .license-alert {
    align-items: stretch;
    flex-direction: column;
    gap: 12px;
  }

  .license-alert-copy {
    grid-template-columns: 1fr;
  }

  .license-alert .ghost-button {
    width: 100%;
  }

  .dashboard-cards {
    grid-template-columns: 1fr;
  }
}

@media print {
  body {
    background: #fff;
  }

  .app-header,
  .license-alert,
  .right-menu,
  .movement-filter-form,
  .report-form,
  .report-summary,
  .app-footer,
  .work-panel-header button {
    display: none !important;
  }

  .report-panel.summary-report .work-panel-header {
    display: none !important;
  }

  .app-main,
  .workspace-main {
    width: 100%;
    margin: 0;
    padding: 0;
  }

  .workspace-layout {
    display: block;
  }

  .work-panel,
  .report-document {
    border: 0;
    padding: 0;
  }

  .report-document {
    gap: 16px;
  }

  .report-document,
  .report-document * {
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }

  .report-cover,
  .report-section {
    break-inside: auto;
    page-break-inside: auto;
  }

  .report-balance-page {
    break-before: page;
    page-break-before: always;
    break-inside: avoid;
    page-break-inside: avoid;
    gap: 10px;
    padding-top: 8mm;
  }

  .report-document.summary-only .report-balance-page {
    break-before: auto;
    page-break-before: auto;
    padding-top: 0;
  }

  .report-balance-section {
    break-inside: avoid;
    page-break-inside: avoid;
  }

  .report-table {
    break-inside: auto;
    page-break-inside: auto;
  }

  .report-table thead {
    display: table-header-group;
  }

  .report-table tr {
    break-inside: avoid;
    page-break-inside: avoid;
  }

  .report-balance-page .report-section {
    gap: 6px;
  }

  .report-balance-page .report-section h3 {
    font-size: 15px;
  }

  .report-balance-page .closing-note {
    padding: 7px 9px;
    font-size: 10px;
  }

  .statement-bank-line {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    padding: 6px 8px;
    font-size: 9px;
  }

  .statement-section,
  .statement-table {
    overflow: visible;
  }

  .statement-table {
    border-collapse: separate;
    border-spacing: 0;
  }

  .statement-table thead,
  .statement-table tbody,
  .statement-table tr,
  .statement-table th,
  .statement-table td {
    break-inside: avoid !important;
    page-break-inside: avoid !important;
  }

  .statement-table tr {
    break-after: auto;
    page-break-after: auto;
  }

  th,
  td {
    padding: 8px 9px;
    font-size: 11px;
  }

  .report-balance-page th,
  .report-balance-page td {
    padding: 5px 7px;
    font-size: 10px;
  }

  .statement-table th,
  .statement-table td {
    padding: 5px 6px;
    font-size: 9px;
  }
}


/* LOGIN VIDEO - AJUSTE UNICO FINAL */
.video-login-shell {
  position: fixed !important;
  inset: 0 !important;
  width: 100% !important;
  min-height: 100vh !important;
  margin: 0 !important;
  padding: 0 !important;
  pointer-events: none !important;
}

#videoLoginCard {
  position: absolute !important;
  top: 300px !important;
  right: 280px !important;
  width: 440px !important;
  min-width: 440px !important;
  min-height: 410px !important;
  padding: 42px 38px !important;
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
  transform: none !important;
}

#videoLoginCard.login-visible {
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
  transform: none !important;
}

#videoLoginCard .video-login-title {
  display: none !important;
}

#videoLoginCard .video-login-form {
  margin-top: 0 !important;
}

.login-video-overlay {
  opacity: 1 !important;
}


/* LOGIN VIDEO - REFINO 5 SEGUNDOS E POSICAO */
#videoLoginCard {
  top: 260px !important;
  right: 280px !important;
  width: 440px !important;
  min-width: 440px !important;
  min-height: 0 !important;
  padding: 42px 38px 30px !important;
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
  transform: translateY(12px) scale(.99) !important;
}

#videoLoginCard.login-visible {
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
  transform: none !important;
}

.login-video-overlay {
  opacity: 0 !important;
}

.login-video-overlay.login-visible {
  opacity: 1 !important;
}

#videoLoginCard .video-login-form {
  gap: 20px !important;
}

#videoLoginCard .video-login-form .message {
  min-height: 0 !important;
  margin: 0 !important;
}


/* LOGIN VIDEO - AJUSTE FINO ALTURA */
#videoLoginCard {
  top: 220px !important;
}


/* LOGIN VIDEO - AJUSTE FINO ALTURA 2 */
#videoLoginCard {
  top: 180px !important;
}

/* LOGIN VIDEO - RESPONSIVO DESKTOP/NOTEBOOK */
#videoLoginCard {
  top: clamp(96px, 14vh, 180px) !important;
  right: clamp(32px, 10vw, 280px) !important;
  width: clamp(360px, 30vw, 440px) !important;
  min-width: 0 !important;
  padding: clamp(30px, 3.2vw, 42px) clamp(28px, 3vw, 38px) clamp(24px, 2.6vw, 30px) !important;
}

#videoLoginCard .video-login-form {
  gap: clamp(14px, 1.4vw, 20px) !important;
}

#videoLoginCard .video-login-form label {
  gap: clamp(8px, .8vw, 13px) !important;
  font-size: clamp(14px, 1.1vw, 18px) !important;
}

#videoLoginCard .video-login-form input {
  height: clamp(50px, 4.7vw, 70px) !important;
  padding-inline: clamp(16px, 1.7vw, 24px) !important;
  font-size: clamp(15px, 1.25vw, 19px) !important;
}

#videoLoginCard .video-login-form .password-input-wrap input {
  padding-right: clamp(62px, 5.2vw, 78px) !important;
}

#videoLoginCard .video-login-form .password-reveal-button {
  top: 50% !important;
  bottom: auto !important;
  right: clamp(10px, 1vw, 14px) !important;
  width: clamp(40px, 3.4vw, 46px) !important;
  min-width: clamp(40px, 3.4vw, 46px) !important;
  height: clamp(40px, 3.4vw, 46px) !important;
  margin: 0 !important;
  padding: 0 !important;
  transform: translateY(-50%) !important;
}

#videoLoginCard .video-login-form button {
  height: clamp(54px, 5.3vw, 78px) !important;
  margin-top: clamp(6px, 1.2vw, 18px) !important;
  font-size: clamp(16px, 1.7vw, 24px) !important;
}

#videoLoginCard .video-login-form .forgot-password-button {
  height: clamp(38px, 3vw, 42px) !important;
  margin-top: clamp(-8px, -.55vw, -2px) !important;
  font-size: clamp(13px, 1vw, 15px) !important;
}

#videoLoginCard .video-login-form .trial-entry-button {
  height: clamp(44px, 3.8vw, 54px) !important;
  margin-top: clamp(-4px, -.25vw, 0px) !important;
  font-size: clamp(13px, 1.2vw, 18px) !important;
}

@media (max-width: 1180px) {
  #videoLoginCard {
    top: clamp(72px, 12vh, 130px) !important;
    right: clamp(24px, 5vw, 64px) !important;
    width: min(420px, calc(100vw - 48px)) !important;
  }
}

@media (max-width: 1440px) and (min-width: 981px) {
  #videoLoginCard {
    top: clamp(78px, 10vh, 118px) !important;
    right: clamp(36px, 8vw, 128px) !important;
    width: 380px !important;
    padding: 28px 30px 24px !important;
  }

  #videoLoginCard .video-login-form {
    gap: 13px !important;
  }

  #videoLoginCard .video-login-form label {
    gap: 7px !important;
    font-size: 14px !important;
  }

  #videoLoginCard .video-login-form input {
    height: 48px !important;
    padding-inline: 18px !important;
    font-size: 15px !important;
  }

  #videoLoginCard .video-login-form .password-input-wrap input {
    padding-right: 60px !important;
  }

  #videoLoginCard .video-login-form .password-reveal-button {
    top: 50% !important;
    bottom: auto !important;
    width: 34px !important;
    min-width: 34px !important;
    height: 34px !important;
    right: 8px !important;
    border-radius: 7px !important;
    margin: 0 !important;
    padding: 0 !important;
    transform: translateY(-50%) !important;
  }

  #videoLoginCard .password-reveal-button svg {
    width: 19px !important;
    height: 19px !important;
  }

  #videoLoginCard .video-login-form button {
    height: 50px !important;
    margin-top: 6px !important;
    font-size: 16px !important;
  }

  #videoLoginCard .video-login-form .forgot-password-button {
    height: 36px !important;
    margin-top: -2px !important;
    font-size: 12px !important;
  }

  #videoLoginCard .video-login-form .trial-entry-button {
    height: 42px !important;
    margin-top: 0 !important;
    font-size: 13px !important;
  }
}

@media (max-width: 980px) {
  #videoLoginCard {
    right: 50% !important;
    transform: translateX(50%) translateY(12px) scale(.99) !important;
  }

  #videoLoginCard.login-visible {
    transform: translateX(50%) !important;
  }
}

@media (max-width: 860px) {
  .login-video-page {
    min-height: 100svh;
    overflow-x: hidden;
    overflow-y: auto;
    background:
      linear-gradient(118deg, rgba(255, 255, 255, .96) 0%, rgba(244, 248, 252, .94) 46%, rgba(226, 238, 248, .88) 100%),
      linear-gradient(142deg, rgba(0, 52, 99, .26) 0%, rgba(0, 77, 128, .12) 26%, rgba(255, 255, 255, 0) 42%),
      linear-gradient(326deg, rgba(243, 147, 35, .26) 0 9%, rgba(255, 255, 255, 0) 25%),
      var(--app-background-image) center top / cover no-repeat,
      #f4f7fb;
  }

  .login-bg-video {
    display: none;
  }

  .mobile-login-logo {
    display: block;
    width: min(340px, 82vw);
    margin: -8px auto 12px;
    filter: drop-shadow(0 14px 28px rgba(0, 52, 99, .14));
  }

  .login-video-overlay,
  .login-video-overlay.login-visible {
    opacity: 1 !important;
    background:
      linear-gradient(122deg, transparent 0 15%, rgba(0, 52, 99, .14) 15.2% 16%, rgba(255, 255, 255, .56) 16.2% 17.2%, transparent 17.4%),
      linear-gradient(128deg, transparent 0 70%, rgba(243, 147, 35, .58) 70.4% 71.4%, rgba(255, 255, 255, .62) 71.6% 72.3%, transparent 72.5%),
      linear-gradient(132deg, transparent 0 74%, rgba(0, 52, 99, .30) 74.3% 75.4%, rgba(255, 255, 255, .52) 75.6% 76.1%, transparent 76.4%),
      radial-gradient(circle at 50% 18%, rgba(255, 255, 255, .74), transparent 36%);
  }

  .video-login-shell {
    position: relative !important;
    inset: auto !important;
    width: min(100% - 32px, 420px) !important;
    min-height: 100svh !important;
    display: grid !important;
    align-content: center !important;
    align-items: center !important;
    justify-items: center !important;
    margin: 0 auto !important;
    padding: 72px 0 36px !important;
  }

  #videoLoginCard {
    position: relative !important;
    top: auto !important;
    right: auto !important;
    left: auto !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: 420px !important;
    min-height: 0 !important;
    padding: 28px 20px 22px !important;
    border-color: rgba(0, 52, 99, .18) !important;
    background: rgba(255, 255, 255, .72) !important;
    box-shadow: 0 24px 54px rgba(0, 52, 99, .14) !important;
    backdrop-filter: blur(14px) !important;
    transform: translateY(8px) !important;
  }

  #videoLoginCard.login-visible {
    transform: none !important;
  }

  #videoLoginCard .video-login-form {
    gap: 14px !important;
  }

  #videoLoginCard .video-login-form input {
    height: 48px;
    font-size: 15px;
  }

  #videoLoginCard .video-login-form button {
    height: 50px;
    margin-top: 4px;
    font-size: 16px;
  }

  #videoLoginCard .video-login-form .trial-entry-button {
    height: 44px;
    margin-top: 0;
    font-size: 13px;
  }

  #videoLoginCard .video-login-form .forgot-password-button {
    height: 38px;
    margin-top: -2px;
    font-size: 13px;
    text-transform: none;
  }

  .app-header {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
    min-height: 0;
    padding: 22px 18px 18px;
  }

  .app-title {
    width: 100%;
    align-items: center;
    gap: 14px;
  }

  .church-logo {
    width: 54px;
    height: 54px;
    flex: 0 0 auto;
  }

  .app-title p {
    font-size: 14px;
  }

  .app-title h1 {
    max-width: calc(100vw - 110px);
    font-size: clamp(24px, 8vw, 34px);
    line-height: 1.12;
    overflow-wrap: anywhere;
  }

  .header-actions {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    align-items: stretch;
  }

  .header-user-name {
    grid-column: 1 / -1;
    max-width: 100%;
    margin: 0;
    text-align: left;
    white-space: normal;
  }

  .header-actions .ghost-button {
    width: 100%;
    min-width: 0;
    min-height: 44px;
  }

  .app-main {
    width: min(100% - 24px, 720px);
    padding-top: 18px;
  }

  .app-footer {
    position: static;
    width: min(100% - 40px, 440px);
    justify-content: center;
    margin: 4px auto 96px;
  }
}

/* BOTOES - AZUL PADRAO INNOVA */
.license-modal-actions button,
.primary-action,
.agenda-month-form button,
.bank-form button,
.nature-form button,
.balance-form button,
.member-form button,
.minutes-form button,
.agenda-form button,
.user-form button,
.movement-form button,
.support-form button,
.accountability-form button,
.report-form button,
.bi-form button,
.meta-form button,
.meta-bi-form button,
.movement-filter-form button,
.cash-flow-form button,
.messaging-form button,
.admin-form button,
.admin-reply-form button,
.work-panel-header button {
  border-color: var(--innova-blue);
  background: var(--innova-blue);
  box-shadow: 0 12px 22px rgba(0, 52, 99, .18);
}

.ghost-button,
.secondary-report-button,
.admin-form .ghost-button,
.admin-reply-form .ghost-button,
.bank-list-header .ghost-button,
.user-billing-button {
  border-color: var(--innova-blue);
  background: #fff;
  color: var(--innova-blue);
}

.work-panel-header .ghost-button {
  width: auto;
  min-width: 92px;
  padding-inline: 16px;
  background: #fff;
  color: var(--innova-blue);
}

@media (max-width: 860px) {
  .server-health-header {
    align-items: stretch;
    flex-direction: column;
  }

  .server-health-header .ghost-button {
    width: 100%;
  }

  .server-health-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .server-health-metrics article:nth-child(2) {
    border-right: 0;
  }

  .server-health-metrics article:nth-child(-n + 2) {
    border-bottom: 1px solid var(--line);
  }

  .platform-finance-header {
    align-items: stretch;
    flex-direction: column;
  }

  .platform-finance-header .ghost-button {
    width: 100%;
  }

  .platform-finance-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .platform-finance-metrics article:nth-child(even) {
    border-right: 0;
  }

  .platform-finance-metrics article:nth-child(-n + 4) {
    border-bottom: 1px solid var(--line);
  }

  .platform-finance-toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .platform-finance-toolbar label {
    min-width: 0;
  }
}

@media (max-width: 520px) {
  .header-actions #openAdminPasswordChange {
    width: 100%;
    min-width: 0;
  }

  .server-health-metrics {
    grid-template-columns: 1fr;
  }

  .server-health-metrics article,
  .server-health-metrics article:nth-child(2) {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .server-health-metrics article:last-child {
    border-bottom: 0;
  }

  .platform-finance-metrics {
    grid-template-columns: 1fr;
  }

  .platform-finance-metrics article,
  .platform-finance-metrics article:nth-child(2) {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .platform-finance-metrics article:last-child {
    border-bottom: 0;
  }
}
