/* Otzar 2026 — camada visual compartilhada, sem alterar as regras financeiras. */
:root { --v2-orange: #f39323; --v2-blue: #003463; --v2-graphite: #333b44; --v2-sidebar: 256px; }
.otzar-login, .otzar-app { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif; -webkit-font-smoothing: antialiased; }
.otzar-login { background: #f1f2f4; color: #29333e; }
.otzar-login :focus-visible, .otzar-app :focus-visible { outline: 3px solid #d4760b; outline-offset: 3px; }
.access-layout { min-height: 100vh; min-height: 100dvh; display: grid; grid-template-columns: 1fr 1fr; }
.access-brand { position: relative; display: flex; flex-direction: column; justify-content: space-between; gap: 48px; padding: clamp(36px, 5vw, 86px); overflow: hidden; color: #fff; background: radial-gradient(ellipse at 0 100%, #00346370, transparent 65%), linear-gradient(145deg, #333b44, #202a34); }
.access-brand::after { content: ""; position: absolute; width: 470px; height: 470px; border: 1px solid #ffffff12; border-radius: 50%; right: -260px; top: 10%; box-shadow: 0 0 0 70px #ffffff03, 0 0 0 140px #ffffff03; pointer-events: none; }
.access-brand-top { display: flex; align-items: center; gap: 12px; font-size: 11px; font-weight: 600; letter-spacing: 2px; color: #d1d5db; }
.access-brand-top img { width: 160px; height: 44px; object-fit: cover; object-position: center 52%; margin-left: -18px; }
.access-brand-copy { position: relative; z-index: 1; max-width: 560px; }
.access-kicker { font-size: 10px; line-height: 1.5; font-weight: 700; letter-spacing: 2px; }
.access-brand-copy > .access-kicker { color: #ffc077; }
.access-brand-copy h1 { margin: 24px 0; font-size: clamp(34px, 3.6vw, 60px); font-weight: 600; line-height: 1.16; letter-spacing: -1.8px; }
.access-brand-copy em { color: #ffb35e; font-style: normal; }
.access-brand-copy p { max-width: 390px; font-size: 15px; line-height: 1.85; color: #c0c7ce; }
.access-features { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; }
.access-features span { padding: 9px 12px; background: #ffffff08; border: 1px solid #ffffff18; border-radius: 6px; font-size: 11px; color: #dce1e5; }
.access-brand-bottom { display: flex; align-items: center; gap: 9px; color: #b6bfc8; font-size: 11px; }
.access-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--v2-orange); }
.access-panel { display: grid; place-items: center; padding: 40px 32px; background: radial-gradient(ellipse at 100% 0, #f393230d, transparent 55%), #f5f5f6; }
.access-card { width: min(100%, 410px); }
.access-logo { display: block; width: 190px; height: 82px; object-fit: cover; object-position: center 46.5%; margin: 0 0 30px -5px; }
.access-heading { margin-bottom: 28px; }
.access-heading .access-kicker { color: #68707a; margin: 0 0 10px; }
.access-heading h2 { margin: 0 0 10px; color: #25313d; font-size: 30px; font-weight: 650; letter-spacing: -.8px; }
.access-heading > p:last-child { font-size: 14px; color: #6e7580; }
.access-form { display: grid; gap: 18px; }
.access-form label { display: grid; gap: 8px; font-size: 12px; color: #454e58; font-weight: 600; }
.access-form input { width: 100%; min-width: 0; height: 48px; padding: 0 14px; border: 1px solid #d1d5db; border-radius: 7px; background: #fff; color: #29333e; font-size: 15px; transition: border-color .15s, box-shadow .15s; }
.access-form input::placeholder { color: #8a919a; font-size: 13px; }
.access-form input:focus { outline: none; border-color: #c87919; box-shadow: 0 0 0 3px #f393231b; }
.access-form .password-input-wrap input { padding-right: 50px; }
.access-form button { cursor: pointer; font: inherit; }
.access-form .password-reveal-button { position: absolute; right: 5px; top: 4px; display: grid; place-items: center; width: 40px; height: 40px; padding: 0; border: 0; border-radius: 5px; color: #64707b; background: transparent; }
.access-form .password-reveal-button:hover { background: #eef0f3; }
.access-form .access-submit { display: flex; justify-content: space-between; align-items: center; height: 49px; margin-top: 4px; padding: 0 18px; border: 1px solid #df861d; border-radius: 7px; background: var(--v2-orange); color: #302719; font-size: 14px; font-weight: 700; box-shadow: 0 4px 12px #f393231a; }
.access-submit span { font-size: 21px; }
.access-form .access-submit:hover { background: #f8a13c; }
.access-form.loading button { opacity: .65; cursor: wait; }
.access-form .forgot-password-button { justify-self: center; min-height: 32px; padding: 4px 12px; border: 0; background: transparent; color: var(--v2-blue); font-size: 12px; font-weight: 600; }
.access-form .trial-entry-button { min-height: 44px; padding: 10px 16px; background: transparent; border: 1px solid #d0d5db; border-radius: 7px; color: #56616c; font-size: 12px; }
.access-form .trial-entry-button:hover { background: #e9edf1; }
.access-form .message:empty { display: none; }
.access-card-footer { display: flex; align-items: center; flex-wrap: wrap; gap: 5px; margin-top: 30px; padding-top: 20px; border-top: 1px solid #dfe2e6; font-size: 10px; color: #7b828a; }
.access-card-footer strong { color: #59636e; font-weight: 600; }
.access-version { margin-left: auto; }
@media (max-width: 900px) { .access-layout { grid-template-columns: .85fr 1fr; } .access-brand { padding: 32px; } .access-brand-copy h1 { font-size: 36px; } .access-features { display: none; } }
@media (max-width: 680px) { .access-layout { grid-template-columns: 1fr; } .access-brand { display: none; } .access-panel { min-height: 100vh; min-height: 100dvh; padding: 28px 24px; border-top: 4px solid var(--v2-orange); } .access-logo { margin-bottom: 22px; } .access-heading h2 { font-size: 28px; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; animation: none !important; } }
@media screen {
  .otzar-app { --line: #dfe3e7; --muted: #727b85; background: radial-gradient(ellipse at 0 0, #f3932307, transparent 40%), #eff1f3; }
  .skip-link { position: fixed; top: -80px; left: 16px; z-index: 200; padding: 12px; border-radius: 6px; color: #fff; background: var(--v2-blue); }
  .skip-link:focus { top: 8px; }
  .otzar-app .app-header { min-height: 85px; margin-left: var(--v2-sidebar); padding: 16px 28px; gap: 20px; background: #ffffffd9; border-bottom: 1px solid #dce1e6; backdrop-filter: blur(16px); }
  .otzar-app .app-title { min-width: 0; gap: 14px; }
  .otzar-app .app-title > div { min-width: 0; }
  .otzar-app .app-title h1 { max-width: none; margin-top: 6px; color: #343e48; font-size: clamp(17px, 1.4vw, 23px); line-height: 1.25; overflow-wrap: anywhere; letter-spacing: -.4px; }
  .otzar-app .app-title .header-context { display: flex; flex-wrap: wrap; gap: 8px; font-size: 9px; font-weight: 600; letter-spacing: 1px; color: #6c7681; }
  .header-context > span:first-child { color: #c8822f; }
  .otzar-app .church-logo { flex: 0 0 44px; width: 44px; height: 44px; font-size: 17px; border: 1px solid #d6dce2; border-radius: 12px; background: #fff; box-shadow: none; }
  .otzar-app .header-actions { flex-shrink: 0; gap: 8px; }
  .otzar-app .header-actions .ghost-button { width: auto; min-height: 36px; height: 36px; padding: 0 13px; border-color: #d9dfe5; border-radius: 6px; color: #54616f; font-size: 11px; background: #fff; box-shadow: none; }
  .otzar-app .header-user-name { max-width: 180px; color: #62707c; font-size: 10px; font-weight: 600; }
  .navigation-toggle { display: grid; place-items: center; flex: 0 0 36px; width: 36px; height: 36px; padding: 8px; border: 1px solid #dce1e6; border-radius: 7px; background: #fff; color: #55616c; cursor: pointer; }
  .navigation-toggle svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; }
  .otzar-app .app-main { width: calc(100% - var(--v2-sidebar)); max-width: none; min-height: calc(100vh - 150px); margin: 0 0 0 var(--v2-sidebar); padding: 26px 28px; }
  .otzar-app .workspace-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0; }
  .otzar-app .right-menu { position: fixed; inset: 0 auto 0 0; z-index: 90; display: flex; flex-direction: column; gap: 0; width: var(--v2-sidebar); height: 100vh; height: 100dvh; max-height: 100dvh; padding: 0 16px; overflow: auto; overscroll-behavior: contain; border: 0; border-right: 1px solid #ffffffc9; border-radius: 0; background: linear-gradient(165deg, #ffffffc9, #e5e8edcf); backdrop-filter: blur(24px); box-shadow: 6px 0 28px #26384a06; transition: transform .2s ease; }
  .otzar-app .right-menu::before { display: none; }
  .sidebar-brand { display: flex; align-items: center; justify-content: space-between; flex: 0 0 100px; gap: 8px; padding: 16px 7px 12px; }
  .sidebar-brand img { width: 150px; height: 65px; object-fit: cover; object-position: center 46.5%; }
  #closeNavigation { display: grid; place-items: center; flex: 0 0 28px; width: 28px; height: 28px; border: 1px solid #d7dce2; border-radius: 6px; background: #ffffff66; color: #6c7781; font-size: 20px; cursor: pointer; }
  .sidebar-label { margin: 12px 12px 18px; color: #818a94; font-size: 9px; font-weight: 700; letter-spacing: 1.6px; }
  .right-menu nav { display: grid; gap: 8px; }
  .otzar-app .menu-group { padding: 0 0 8px; border-bottom: 1px solid #dce1e566; }
  .otzar-app .menu-group summary { min-height: 42px; padding: 0 12px; border: 0; border-radius: 7px; background: transparent; color: #58636f; font-size: 12px; font-weight: 600; box-shadow: none; }
  .otzar-app .menu-summary-label { grid-template-columns: 20px minmax(0,1fr); gap: 11px; }
  .otzar-app .menu-icon { width: 18px; height: 18px; stroke-width: 1.6; }
  .otzar-app .menu-group summary::after { width: 5px; height: 5px; border-width: 1.5px; opacity: .6; }
  .otzar-app .menu-group[open] summary { color: #003463; background: #00346308; }
  .otzar-app .menu-group summary:hover { background: #ffffffb3; }
  .otzar-app .menu-group[open] .menu-group-items { gap: 4px; padding: 6px 0 0 8px; }
  .otzar-app .menu-item { min-height: 39px; grid-template-columns: 18px minmax(0,1fr); gap: 10px; padding: 8px 10px; border: 1px solid transparent; border-radius: 6px; background: transparent; color: #64717e; font-size: 11px; font-weight: 500; box-shadow: none; }
  .otzar-app .menu-item:hover { transform: none; background: #ffffffab; color: #003463; }
  .otzar-app .menu-item.active { background: #f393231b; border-color: #f3932330; color: #734411; font-weight: 650; box-shadow: inset 3px 0 0 #f39323; }
  .otzar-app .menu-item.active .menu-icon { color: #b46713; }
  .otzar-app .menu-item[hidden] { display: none; }
  .sidebar-footer { display: flex; gap: 10px; align-items: center; margin-top: auto; padding: 26px 12px 22px; color: #58636f; }
  .sidebar-footer > div { display: grid; gap: 5px; }
  .sidebar-footer strong { font-size: 11px; font-weight: 650; }
  .sidebar-footer span { font-size: 9px; color: #828c96; }
  .sidebar-footer-mark { flex: 0 0 8px; width: 8px; height: 25px; border-radius: 3px; background: linear-gradient(#f39323 50%, #003463 50%); }
  .otzar-app .app-footer { position: static; justify-content: flex-end; width: auto; margin: 0 28px 16px calc(var(--v2-sidebar) + 28px); padding: 0; border: 0; background: transparent; box-shadow: none; font-size: 9px; }
  .otzar-app .app-footer img { width: 70px; height: 28px; object-fit: cover; }
  .otzar-app .work-panel { border-color: #e0e4e8; border-radius: 12px; padding: clamp(18px, 2vw, 30px); box-shadow: 0 3px 16px #26384a03; }
  .otzar-app .work-panel h2 { font-size: clamp(21px, 1.8vw, 28px); color: #35414d; letter-spacing: -.5px; }
  .otzar-app .work-panel-header { margin-bottom: 26px; padding-bottom: 18px; border-bottom: 1px solid #edf0f2; }
  .otzar-app .eyebrow { color: #9b5a0a; letter-spacing: 1.2px; font-size: 10px; }
  .otzar-app .work-panel input:not([type="checkbox"]):not([type="radio"]), .otzar-app .work-panel select, .otzar-app .work-panel textarea { min-width: 0; max-width: 100%; border-color: #d0d7df; border-radius: 6px; }
  .otzar-app .work-panel form > label { min-width: 0; }
  .otzar-app .work-panel form button { box-shadow: none; }
  .otzar-app .table-wrap { max-width: 100%; border-color: #e0e5ea; border-radius: 8px; }
  .otzar-app th { background: #f5f6f8; color: #6b7784; font-size: 11px; font-weight: 600; }
  .otzar-app td { border-bottom-color: #eef0f3; }
  .otzar-app tbody tr:hover { background: #f3932305; }
  .otzar-app .dashboard-panel { padding: 0; gap: 24px; }
  .otzar-app .dashboard-hero { min-height: 154px; padding: 30px; background: linear-gradient(120deg, #fafbfc, #edf0f3); border-bottom: 1px solid #e2e7ec; color: #35414d; }
  .otzar-app .dashboard-hero h2 { font-weight: 650; font-size: 29px; }
  .otzar-app .dashboard-hero p:not(.eyebrow) { color: #76818d; font-size: 13px; }
  .otzar-app .dashboard-brand { min-width: 0; }
  .otzar-app .dashboard-brand img { width: 190px; height: 78px; object-fit: cover; object-position: center 46.5%; }
  .otzar-app .dashboard-cards { margin-top: 0; gap: 16px; padding: 0 26px; }
  .otzar-app .dashboard-card { position: relative; min-height: 108px; padding: 22px; border-color: #e3e6eb; border-radius: 9px; background: #fff; box-shadow: 0 2px 7px #26384a03; }
  .otzar-app .dashboard-card::before { content: ""; position: absolute; left: 0; top: 23px; bottom: 23px; width: 3px; border-radius: 0 3px 3px 0; background: #00346350; }
  .otzar-app .dashboard-card:nth-child(3)::before { background: #f39323; }
  .otzar-app .dashboard-card p { font-size: 11px; font-weight: 500; color: #74808c; }
  .otzar-app .dashboard-card strong { font-size: clamp(19px, 1.7vw, 28px); font-weight: 650; }
  .otzar-app .dashboard-grid { grid-template-columns: minmax(0, 1.4fr) minmax(280px, .85fr); gap: 20px; padding: 0 26px 26px; }
  .otzar-app .dashboard-widget { min-width: 0; border-color: #e4e8ed; border-radius: 9px; }
  .otzar-app .dashboard-nature-groups { display: grid; }
  .otzar-app .dashboard-bank-row { gap: 12px; }
  .otzar-app .report-document { min-width: 0; overflow-x: auto; }
  .navigation-backdrop { position: fixed; inset: 0; z-index: 85; border: 0; padding: 0; background: #17212f66; backdrop-filter: blur(3px); }
  .navigation-backdrop[hidden] { display: none; }
  .otzar-app.navigation-collapsed { --v2-sidebar: 0px; }
  .otzar-app.navigation-collapsed .right-menu { width: 256px; transform: translateX(-100%); }
}
@media screen and (max-width: 1350px) and (min-width: 1101px) { .otzar-app { --v2-sidebar: 232px; } .otzar-app .dashboard-cards { grid-template-columns: repeat(2,minmax(0,1fr)); } .otzar-app .header-user-name { max-width: 110px; } }
@media screen and (max-width: 1100px) {
  .otzar-app { --v2-sidebar: 0px; }
  .otzar-app .right-menu { width: 280px; max-width: calc(100vw - 40px); transform: translateX(-100%); }
  .otzar-app.navigation-open { overflow: hidden; }
  .otzar-app.navigation-open .right-menu { transform: none; }
  .otzar-app .app-header { display: flex; padding: 16px 22px; }
  .otzar-app .app-main { padding: 22px; }
  .otzar-app .dashboard-cards { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media screen and (max-width: 760px) {
  .otzar-app .app-header { flex-wrap: wrap; padding: 14px 16px; gap: 14px; }
  .otzar-app .app-title { width: 100%; gap: 10px; }
  .otzar-app .app-title h1 { font-size: 18px; }
  .otzar-app .header-actions { display: flex; width: 100%; justify-content: flex-end; gap: 8px; }
  .otzar-app .header-user-name { max-width: 50%; margin-right: auto; text-align: left; white-space: nowrap; }
  .otzar-app .app-main { padding: 16px 12px; }
  .otzar-app .dashboard-hero { flex-direction: row; min-height: 120px; padding: 22px; }
  .otzar-app .dashboard-brand { display: none; }
  .otzar-app .dashboard-cards { padding: 0 16px; gap: 10px; }
  .otzar-app .dashboard-card { padding: 18px 14px; min-height: 100px; }
  .otzar-app .dashboard-card strong { font-size: 20px; overflow-wrap: anywhere; }
  .otzar-app .dashboard-grid { grid-template-columns: minmax(0,1fr); padding: 0 16px 16px; }
  .otzar-app .dashboard-hero h2 { font-size: 25px; }
  .otzar-app .work-panel-header, .otzar-app .bank-list-header { flex-wrap: wrap; gap: 14px; }
  .otzar-app .dashboard-widget { padding: 16px; }
  .otzar-app .dashboard-bank-row strong { justify-self: end; }
  .otzar-app .report-summary { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .otzar-app .report-summary strong { font-size: 20px; overflow-wrap: anywhere; }
  .otzar-app .work-panel input, .otzar-app .work-panel select, .otzar-app .work-panel textarea { font-size: 16px; }
  .otzar-app .app-footer { margin: 0 16px 16px; }
}
@media print {
  .skip-link, .navigation-toggle, .navigation-backdrop, #primaryNavigation { display: none !important; }
}
@media screen and (max-width: 860px) {
  .otzar-app .movement-filter-form label:nth-child(5) { grid-column: 1 / -1; }
}
@media screen and (max-width: 760px) {
  .otzar-app .dashboard-bank-row { flex-wrap: wrap; }
  .otzar-app .dashboard-bank-account { width: 100%; }
  .otzar-app .dashboard-bank-account span { white-space: normal; overflow: visible; text-overflow: clip; }
  .otzar-app .dashboard-bank-row > strong { margin-left: auto; }
}

/* Paleta grafite — referência visual do Portal Innova. */
@media screen {
  .otzar-app { background: #e7ebef; }
  .otzar-app .app-header { background: #f4f5f7ed; border-bottom-color: #d5dbe2; }
  .otzar-app .right-menu { background: linear-gradient(165deg, #333333fa, #2e3033fa); border-right-color: #404247; box-shadow: 5px 0 22px #1c263014; }
  .otzar-app .sidebar-brand img { background: #f8f9fa; border-radius: 9px; }
  .otzar-app #closeNavigation { color: #d0d3d7; border-color: #ffffff24; background: #ffffff09; }
  .otzar-app .sidebar-label { color: #b3b5b9; }
  .otzar-app .menu-group { border-bottom-color: #ffffff0c; }
  .otzar-app .menu-group summary { color: #dedfe2; }
  .otzar-app .menu-group[open] summary { color: #fff; background: #ffffff08; }
  .otzar-app .menu-group summary:hover { color: #fff; background: #ffffff10; }
  .otzar-app .menu-item { color: #c9cbd0; }
  .otzar-app .menu-item:hover { color: #fff; background: #ffffff0e; }
  .otzar-app .menu-item.active { color: #fff; background: #ffffff16; border-color: #ffffff08; box-shadow: inset 3px 0 0 #f39323; }
  .otzar-app .menu-item.active .menu-icon { color: #ffb35a; }
  .otzar-app .sidebar-footer { color: #d0d1d5; }
  .otzar-app .sidebar-footer span { color: #adb0b6; }
  .otzar-app .work-panel { background: #edf0f3; border-color: #d5dce3; }
  .otzar-app .work-panel-header { border-bottom-color: #d9dfe5; }
  .otzar-app .work-panel form:not(.report-form):not(.bi-form):not(.cash-flow-form) { background-color: #e7ebef; border-color: #d6dde4; }
  .otzar-app .work-panel input:not([type="checkbox"]):not([type="radio"]),
  .otzar-app .work-panel select, .otzar-app .work-panel textarea { background-color: #fafbfc; }
  .otzar-app .dashboard-panel { background: transparent; border-color: transparent; box-shadow: none; }
  .otzar-app .dashboard-hero { background: transparent; border-bottom-color: transparent; }
  .otzar-app .dashboard-card { background: #f7f8fa; border-color: #d6dee6; }
  .otzar-app .dashboard-widget { background: #f5f7f9; border-color: #d6dee6; }
  .otzar-app .dashboard-nature-list-card { background: #edf1f5; border-color: #d7dfe7; box-shadow: none; }
  .otzar-app .dashboard-nature-list-head { background: #e8edf2; }
  .otzar-app .table-wrap { background: #f8f9fb; border-color: #d5dde5; }
  .otzar-app th { background: #e1e6ec; color: #536170; }
  .otzar-app td { border-bottom-color: #dfe5eb; }
  .otzar-app tbody tr:hover { background: #edf1f5; }
  .otzar-app .report-summary article { background: #f5f7f9; border-color: #d6dee6; }
}
@media screen {
  .otzar-app .dashboard-nature-list-card { border-left-color: #003463; }
  .otzar-app .dashboard-nature-list-card.expense { border-left-color: #f39323; }
}

@media screen {
  .otzar-app .sidebar-footer { flex-direction: column; align-items: flex-start; gap: 4px; }
  .otzar-app .sidebar-innova-logo { display: block; width: 170px; height: 48px; max-width: 100%; object-fit: cover; object-position: center 52%; margin-left: -18px; }
}

/* Cadastro de usuários: permissões organizadas por área. */
@media screen {
  #userPermissionList { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-top: 8px; align-items: start; }
  #userPermissionList .permission-group { min-width: 0; border: 1px solid #d3dce5; border-radius: 8px; background: #f8fafc; overflow: hidden; }
  #userPermissionList .permission-group h4 { margin: 0; padding: 12px 14px; border-bottom: 1px solid #dce3ea; background: #e0e6ec; color: #35475c; font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
  #userPermissionList .permission-group-options { display: grid; padding: 6px; gap: 2px; }
  #userPermissionList .permission-option { display: flex !important; min-width: 0; min-height: 40px; margin: 0; padding: 9px 10px; gap: 10px !important; border: 1px solid transparent; border-radius: 5px; background: transparent; font-size: 12px !important; font-weight: 500 !important; line-height: 1.4; cursor: pointer; transition: background .15s, border-color .15s; }
  #userPermissionList .permission-option span { min-width: 0; overflow-wrap: anywhere; }
  #userPermissionList .permission-option input { flex: 0 0 16px; width: 16px !important; height: 16px !important; accent-color: #003463; }
  #userPermissionList .permission-option:hover { background: #e9eef4; }
  #userPermissionList .permission-option:has(input:checked) { background: #e5eef7; border-color: #c3d5e6; color: #003463 !important; font-weight: 600 !important; }
  #userPermissionList .permission-option:has(input:focus-visible) { outline: 2px solid #003463; outline-offset: 1px; }
  #userPermissionList .permission-option:has(input:disabled) { cursor: default; }
  @media (max-width: 1150px) { #userPermissionList { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
  @media (max-width: 600px) { #userPermissionList { grid-template-columns: minmax(0, 1fr); gap: 12px; } }
}
