:root {
  --blue-900: #003a66;
  --blue-800: #004d80;
  --blue-700: #00699f;
  --orange: #c25a00;
  --ink: #17212f;
  --muted: #62748a;
  --line: #d8e1ea;
  --panel: #ffffff;
  --surface: #f4f7fb;
  --shadow: 0 22px 60px rgba(12, 37, 71, .14);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--ink);
  background: 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;
}

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

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

.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 .message {
  min-height: 18px;
  color: #fff;
  font-weight: 800;
}

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

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

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

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

.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: 18px;
  margin-bottom: 16px;
  padding: 20px 24px;
  border: 1px solid #f2c46d;
  border-left: 6px solid var(--orange);
  border-radius: 8px;
  background: #fff8e9;
}

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

.license-alert h2 {
  margin: 0 0 6px;
  font-size: 22px;
}

.license-alert p {
  margin: 0;
  color: #5d4a20;
}

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

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

.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,
.user-form,
.movement-form,
.support-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;
}

.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,
.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,
.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: span 3;
  min-width: 210px;
}

.nature-type-field {
  grid-column: span 2;
  min-width: 180px;
}

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

.nature-submit {
  grid-column: 10 / -1;
  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;
}

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

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

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

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

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

.user-access-cell {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  max-width: 360px;
}

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

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

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

.bank-form label,
.nature-form label,
.balance-form label,
.user-form label,
.movement-form label,
.report-form label,
.support-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,
.user-form input,
.user-form select,
.movement-form input,
.movement-form select,
.support-form select,
.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,
.user-form input,
.user-form select,
.movement-form input,
.movement-form select,
.support-form select,
.report-form input,
.report-form select {
  height: 42px;
  padding: 0 12px;
}

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

.bank-form input:focus,
.nature-form input:focus,
.nature-form select:focus,
.balance-form input:focus,
.balance-form select:focus,
.user-form input:focus,
.user-form select:focus,
.movement-form input:focus,
.movement-form select:focus,
.support-form select: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,
.user-form button,
.movement-form button,
.support-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,
.user-form.loading button,
.movement-form.loading button,
.support-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,
.user-form .message,
.movement-form .message,
.support-form .message,
.report-form .message,
.bi-form .message,
.meta-form .message {
  grid-column: 1 / -1;
  min-height: 16px;
}

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

.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 {
  height: 32px;
  min-width: 78px;
  border: 1px solid var(--blue-700);
  border-radius: 6px;
  background: #fff;
  color: var(--blue-700);
  font-weight: 700;
  cursor: pointer;
}

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

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

.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(12, 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 2;
  gap: 8px;
  color: #35475c;
  font-size: 13px;
  font-weight: 700;
}

.movement-filter-form label:nth-child(4) {
  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 1;
  height: 42px;
  border: 1px solid var(--blue-700);
  border-radius: 6px;
  background: var(--blue-700);
  color: #fff;
  font-weight: 700;
  cursor: pointer;
}

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

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

.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;
  color: #fff;
  background: var(--blue-700);
  font-weight: 700;
  cursor: pointer;
}

.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: #004d80;
}

.report-summary #reportOutcome,
.report-summary #closingOutcome {
  color: #b45309;
}

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

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

.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: #004d80;
}

#biOutcomeTotal {
  color: var(--orange);
}

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

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

.bi-chart-section {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.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: #1f6fa8;
}

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

.bi-check-list {
  display: grid;
  gap: 6px;
  height: 42px;
  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;
  box-shadow: 0 18px 44px rgba(22, 50, 78, .18);
}

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

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

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

.bi-check-option span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

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

.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: #1f6fa8 !important;
}

.bi-value-outcome {
  color: var(--orange) !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;
}

.bi-bar-income {
  background: #1f6fa8;
}

.bi-bar-outcome {
  background: var(--orange);
}

.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: 150px;
}

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

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

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

.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(--orange) !important;
}

#metaRealizedTotal {
  color: #004d80;
}

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

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

.legend-goal,
.bi-bar-goal {
  background: var(--orange);
}

.meta-chart-section {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.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-outcome-cell {
  color: #b45309;
}

.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;
  gap: 14px;
  padding: 18px;
}

.right-menu section {
  display: grid;
  gap: 8px;
  padding-bottom: 14px;
  border-bottom: 1px solid #e6edf4;
}

.right-menu section:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.right-menu h3 {
  margin: 0 0 4px;
  color: var(--blue-900);
  font-size: 15px;
}

.menu-item {
  min-height: 40px;
  border: 1px solid #cbd8e6;
  border-radius: 6px;
  background: #fff;
  color: #203246;
  font-weight: 700;
  text-align: left;
  padding: 0 12px;
  cursor: pointer;
}

.menu-item.active {
  border-color: var(--blue-700);
  background: var(--blue-700);
  color: #fff;
  box-shadow: inset 4px 0 0 var(--orange);
}

.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 {
  height: 42px;
  border: 1px solid #aebccc;
  border-radius: 6px;
  padding: 0 12px;
  outline: none;
}

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

.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-header .ghost-button {
  width: 110px;
}

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

@media (max-width: 860px) {
  .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;
  }

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

  .workspace-layout {
    grid-template-columns: 1fr;
  }

  .right-menu {
    position: static;
  }

  .bank-form,
  .nature-form,
  .balance-form,
  .user-form,
  .movement-form,
  .movement-filter-form,
  .report-form,
  .report-summary,
  .bi-form,
  .bi-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-type-field,
  .nature-description-field,
  .balance-bank-field,
  .balance-date-field,
  .balance-value-field,
  .balance-note-field,
  .user-name-field,
  .user-login-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,
  .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,
  .support-form label:first-child,
  .support-message-field,
  .bank-cancel,
  .nature-cancel,
  .balance-cancel,
  .user-cancel,
  .movement-cancel {
    grid-column: auto;
  }

  .report-cover {
    display: grid;
  }
}

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