:root{--navy:#102e39;--navy-deep:#0b232d;--teal:#176e70;--teal-light:#e4f2ef;--gold:#c4a56c;--ink:#193b45;--muted:#71868b;--line:#dfe9e8;--canvas:#f3f7f6;--white:#fff;--radius:16px;--shadow:0 6px 28px #173d4410;font-family:Inter,"Segoe UI",Arial,sans-serif;color:var(--ink);background:var(--canvas);font-size:18.515px}*{box-sizing:border-box}body{margin:0}a{color:inherit;text-decoration:none}button,input,select,textarea{font:inherit}button,a,input,select,textarea{touch-action:manipulation}button{cursor:pointer}button:disabled{opacity:.6;cursor:wait}input,textarea,select{min-height:43px;border:1px solid #d9e4e3;border-radius:9px;padding:10px 12px;color:var(--ink);background:#fff;max-width:100%}input:focus,select:focus,textarea:focus{outline:2px solid #3e929479;outline-offset:2px}input[type=checkbox]{width:19px;min-height:19px;height:19px;accent-color:var(--teal)}input[type=file]{padding:9px}textarea{resize:vertical}h1,h2,h3,p{margin-top:0}h1{font-size:42.32px;letter-spacing:-1px;line-height:1.2;margin-bottom:10px;font-weight:650}h2{font-size:23.805px;letter-spacing:-.3px;font-weight:650;margin-bottom:16px}h3{font-size:19.8375px;font-weight:600;margin-bottom:7px}p{line-height:1.7;color:var(--muted)}small{font-size:15.87px}.icon{width:20px;height:20px;flex-shrink:0}.sidebar{position:fixed;inset:0 auto 0 0;width:266px;background:linear-gradient(165deg,#123943 0%,#0b252f 85%);padding:31px 20px 76px;color:#d9e7e6;overflow-y:auto;scrollbar-width:thin;z-index:30}.brand{display:flex;align-items:center;gap:13px;font-size:33.0625px;letter-spacing:4px;color:#fff;font-weight:650;line-height:1.25;padding:0 8px}.brand-symbol{display:grid;place-items:center;width:42px;height:48px;border:1px solid #c5ad7a77;border-radius:13px;font-family:Georgia,serif;font-size:46.2875px;color:#dbc18c;letter-spacing:0;font-weight:400}.brand-sub{display:block;font-size:10.58px;letter-spacing:1.8px;font-weight:400;color:#aec6c7;margin-top:5px}.workspace-label{font-size:11.9025px;letter-spacing:1.8px;color:#78999f;margin:44px 12px 15px}.nav-link,.nav-group summary{display:flex;align-items:center;gap:11px;border-radius:9px;min-height:44px;padding:12px;margin:3px 0;color:#b8d0d1;font-size:15.87px;cursor:pointer;transition:.15s}.nav-link.active{background:#2a6168;color:#fff;border-left:2px solid var(--gold)}.nav-link:hover,.nav-group summary:hover{background:#ffffff0d;color:#fff}.nav-group summary{list-style:none}.nav-group summary::-webkit-details-marker{display:none}.nav-group .chevron{margin-left:auto;font-size:21.16px;color:#6a969a}.nav-children{margin:1px 0 12px 21px;border-left:1px solid #3a5b61;padding-left:14px}.nav-children a{display:block;font-size:14.5475px;padding:9px 8px;line-height:1.4;color:#99b7bb;border-radius:6px}.nav-children a:hover,.nav-children a.selected{color:white;background:#ffffff0b}.nav-children a.selected{color:#e1c994}.sidebar-bottom{position:fixed;bottom:0;left:0;width:266px;display:flex;align-items:center;gap:8px;background:#0c2731;padding:20px 29px;color:#8fafb4;font-size:13.225px;border-top:1px solid #ffffff09}.sidebar-bottom span:last-child{margin-left:auto;font-size:11.9025px}.tiny-dot{display:inline-block;width:6px;height:6px;background:#75b5a0;border-radius:50%}.main-shell{margin-left:266px;min-height:100vh;display:flex;flex-direction:column}.topbar{height:88px;display:flex;align-items:center;justify-content:space-between;padding:0 42px;background:#fff;border-bottom:1px solid #e7edeb;gap:20px}.topbar-context{font-size:14.5475px;color:#8a9a9d}.user-menu{display:flex;align-items:center;gap:11px;font-size:14.5475px;font-weight:600}.user-menu small{display:block;color:#90a0a3;font-weight:400;font-size:11.9025px;margin-top:5px}.avatar{width:36px;height:36px;background:#e5efed;border-radius:50%;display:grid;place-items:center;color:#336e6c;font-size:17.1925px;font-weight:600}.icon-button{display:flex;align-items:center;justify-content:center;border:0;background:transparent;color:#6e8a8e;padding:9px;border-radius:8px}.icon-button:hover{background:#f0f6f4}.menu-toggle{display:none}.content{padding:25px 42px 45px;flex:1;max-width:1700px;width:100%;margin:0 auto}.breadcrumb{font-size:11.9025px;letter-spacing:.3px;color:#809699;margin:0 0 30px}.breadcrumb span{padding:0 10px;color:#b4c5c5}.page-heading{display:flex;justify-content:space-between;gap:22px;align-items:center;margin:0 0 27px}.page-heading p{font-size:14.5475px;margin:0}.eyebrow{font-size:11.9025px;font-weight:650;letter-spacing:1.9px;color:#558582;margin-bottom:13px}.actions,.utility-row{display:flex;gap:9px;flex-wrap:wrap}.button{display:inline-flex;align-items:center;justify-content:center;gap:12px;min-height:40px;padding:11px 18px;border:1px solid transparent;border-radius:8px;font-size:13.225px;font-weight:600;letter-spacing:.15px;white-space:nowrap;line-height:1.5}.button.primary{background:#17686b;color:#fff;box-shadow:0 4px 12px #17686b17}.button.primary:hover{background:#12575b}.button.secondary{background:#fff;border-color:var(--line);color:#4b7077}.button.secondary:hover{background:#f6faf9}.button.quiet{padding:8px 4px;background:transparent;color:var(--teal);min-height:30px}.button.danger{background:#fff0ef;border-color:#f0cfcb;color:#a34940}.button.full-width{width:100%;justify-content:space-between;min-height:48px;font-size:15.87px}.welcome-banner{border-radius:var(--radius);padding:35px 36px;min-height:225px;color:#fff;background:radial-gradient(ellipse at 100% 20%,#417f7c77,transparent 60%),linear-gradient(115deg,#143b44,#18434c);display:flex;justify-content:space-between;align-items:center;position:relative;overflow:hidden;border:1px solid #325d61;margin-bottom:23px}.welcome-banner:after{content:"";position:absolute;width:440px;height:440px;border:1px solid #ffffff08;border-radius:50%;right:-115px;top:-145px;box-shadow:0 0 0 55px #ffffff04,0 0 0 110px #ffffff03;pointer-events:none}.welcome-banner .eyebrow{color:#cfb884;font-size:10.58px}.welcome-banner h2{font-size:37.03px;line-height:1.25;letter-spacing:-.6px;font-weight:500;margin-bottom:13px}.welcome-banner p{font-size:13.225px;color:#a8c3c6;margin:0}.banner-mark{display:flex;align-items:center;gap:23px;color:#c3b083bd;font-family:Georgia,serif;font-size:161.345px;line-height:.9;margin-right:40px;font-weight:400;z-index:1}.banner-mark span{font-family:"Segoe UI",Arial,sans-serif;font-size:18.515px;line-height:1.8;letter-spacing:5px;color:#bdd1ce80}.stats-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:17px;margin-bottom:24px}.stat-card{background:#fff;border:1px solid #e0e9e7;border-radius:13px;padding:21px 22px;box-shadow:var(--shadow);min-height:142px}.stat-card>div{display:flex;align-items:center;justify-content:space-between;color:#71898b;font-size:13.225px;gap:8px}.stat-card .icon{width:18px;height:18px;color:#4e8b86}.stat-card>strong{display:block;font-size:38.3525px;letter-spacing:-.9px;font-weight:550;margin:15px 0 8px}.stat-card small{font-size:10.58px;color:#9bacae;display:block}.dashboard-grid{display:grid;grid-template-columns:1.2fr 1fr;gap:23px;margin-bottom:23px;align-items:start}.panel{background:#fff;border:1px solid #e0e9e7;border-radius:var(--radius);padding:24px 25px;box-shadow:var(--shadow);margin-bottom:22px;min-width:0}.dashboard-grid .panel{margin:0;min-height:285px}.panel-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;border-bottom:1px solid #edf1ef;padding-bottom:16px;margin-bottom:8px}.panel-heading h2{font-size:18.515px;margin:0}.badge{display:inline-flex;align-items:center;gap:6px;background:#edf5f1;color:#4c8172;padding:5px 8px;border-radius:5px;font-size:11.9025px;white-space:nowrap}.event-row{display:flex;align-items:center;gap:15px;padding:17px 0;border-bottom:1px solid #f0f4f2}.event-row:last-child{border-bottom:0}.event-row>span:last-child{margin-left:auto;color:#92aca8}.event-row h3{font-size:14.5475px;margin:0 0 5px}.event-row p{font-size:11.9025px;margin:0;color:#8a9fa1}.date-box{width:46px;height:50px;border-radius:9px;background:#edf4f0;display:grid;place-content:center;text-align:center;color:#44766d;gap:1px;flex-shrink:0}.date-box strong{font-size:25.1275px;font-weight:600}.date-box span{font-size:9.2575px;letter-spacing:.5px}.quick-actions a{display:flex;align-items:center;gap:12px;padding:15px 0;border-bottom:1px solid #f0f4f2}.quick-actions a:last-child{border:0}.quick-actions a>.icon{background:#f0f6f3;box-sizing:content-box;padding:9px;border-radius:9px;width:18px;height:18px;color:#629a8f}.quick-actions a>span:last-child{margin-left:auto;color:#91aba4}.quick-actions strong{display:block;font-size:14.5475px;font-weight:550;margin-bottom:5px}.quick-actions small{font-size:11.9025px;color:#8a9fa1}.empty-state{text-align:center;padding:42px 15px;color:#8aa3a2}.empty-state>.icon{width:30px;height:30px;opacity:.5;margin-bottom:12px}.empty-state h3{font-size:17.1925px;color:#6c8b8c}.empty-state p{font-size:13.225px;margin:0 auto;max-width:350px}.simple-row{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:15px 0;border-bottom:1px solid #edf2ef;font-size:14.5475px}.simple-row:last-child{border:0}.simple-row small{color:#8ca3a5}.notice{border-bottom:1px solid #edf1ef;padding:16px 0}.notice:last-child{border:0}.notice .eyebrow{font-size:10.58px}.notice h3{font-size:17.1925px}.notice p{font-size:14.5475px;margin:0}.footer{border-top:1px solid #dfe9e5;display:flex;justify-content:space-between;padding:20px 42px;font-size:11.9025px;color:#839b99}.footer span{color:#9fb0af;font-size:10.58px}.filters{display:flex;align-items:end;gap:10px;flex-wrap:wrap;padding-bottom:19px}.filters select{font-size:13.225px;min-width:125px}.filters label{font-size:13.225px;color:#6f8a8c;display:flex;flex-direction:column;gap:6px}.filters input[type=date]{font-size:13.225px;min-height:40px}.search-input{position:relative;flex:1;min-width:190px}.search-input .icon{position:absolute;left:12px;top:13px;width:15px;height:15px;color:#8eaaa8}.search-input input{width:100%;padding-left:36px;font-size:14.5475px}.table-meta{font-size:13.225px;color:#8da2a3;padding:15px 0;border-top:1px solid #edf1ef;display:flex;gap:5px}.table-meta strong{color:#446e70}.table-meta span{margin-left:auto}.table-scroll{overflow-x:auto}table{border-collapse:collapse;width:100%;font-size:14.5475px;text-align:left}th{padding:13px 12px;background:#f5f8f6;color:#75908d;font-size:11.9025px;font-weight:550;white-space:nowrap;border-bottom:1px solid #e7eeea}th:first-child{border-radius:7px 0 0 7px}th:last-child{border-radius:0 7px 7px 0}td{padding:17px 12px;border-bottom:1px solid #edf2ef;line-height:1.5}td .text-link{font-size:13.225px;white-space:nowrap;color:#317f79}tr:last-child td{border-bottom:0}tbody tr:hover{background:#fbfdfb}.pagination{display:flex;justify-content:space-between;align-items:center;margin-top:21px;padding-top:16px;border-top:1px solid #edf1ef;font-size:13.225px;color:#8ca19f}.pagination>div{display:flex;gap:8px}.pagination .button{min-height:33px;padding:7px 13px}.utility-row{margin:-7px 0 20px}.form-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:23px 22px}.field{display:flex;flex-direction:column;gap:8px;font-size:14.5475px;color:#507274}.field b{color:#bd9262;font-weight:500}.field input,.field select,.field textarea{width:100%;font-size:15.87px}.field.wide,.wide{grid-column:1/-1}.form-section h2{padding-bottom:19px;border-bottom:1px solid #e8efea;margin-bottom:23px;font-size:19.8375px}.form-footer{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-top:25px;padding-top:20px;border-top:1px solid #e3ece7;font-size:13.225px;color:#8ca39f}.form-footer p{margin:0}.record-form>.form-footer{padding:0;border:0}.inline-form{display:inline-flex;gap:12px;align-items:end;flex-wrap:wrap}.detail-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:22px}.detail-item>span{display:block;color:#879c9c;font-size:13.225px;margin-bottom:8px}.detail-item>strong{font-weight:500;font-size:15.87px;line-height:1.8;overflow-wrap:anywhere}.preserve{white-space:pre-wrap;overflow-wrap:anywhere}.archive-panel{box-shadow:none;background:#f9fbf9}.archive-panel h2{font-size:18.515px}.archive-panel p{font-size:14.5475px}.alert{padding:16px 19px;border-radius:10px;margin-bottom:20px;background:#e9f4eb;border:1px solid #cbdfce;color:#37734e;line-height:1.6;font-size:15.87px}.alert.error{background:#fff1ef;border-color:#efdad4;color:#a15046}.alert.info{background:#eef4f6;border-color:#d5e5e9;color:#456c80}.muted{color:#8da3a2}.tabs{display:flex;gap:5px;border-bottom:1px solid #dce7e0;margin-bottom:20px;flex-wrap:wrap}.tabs a{padding:12px 18px;font-size:14.5475px;color:#78968f;border-bottom:2px solid transparent}.tabs a.active{border-bottom-color:var(--teal);color:var(--teal);font-weight:600}.report-stats{display:grid;grid-template-columns:repeat(3,1fr);gap:20px;padding:20px 0 30px}.report-stats div{border-left:2px solid #c5b07e;padding:0 17px}.report-stats span{display:block;font-size:14.5475px;color:#819992;margin-bottom:10px}.report-stats strong{font-size:30.4175px;font-weight:550}.panel>h2:not(:first-child){margin-top:30px}.calendar-day a{display:block;font-size:11.9025px;padding:6px 5px;background:#e9f2ed;color:#477c68;border-radius:4px;margin-bottom:4px;line-height:1.4}.calendar-day a small{font-size:10.58px;color:#7c9c8d}.auth{min-height:100vh;display:grid;place-items:center;background:#edf3f1;padding:32px}.auth-layout{max-width:1060px;min-height:650px;width:100%;background:#fff;border-radius:22px;overflow:hidden;display:grid;grid-template-columns:1.1fr 1fr;box-shadow:0 25px 80px #173b4412}.auth-story{padding:49px;display:flex;flex-direction:column;justify-content:space-between;background:radial-gradient(ellipse at 120% 90%,#3b747377,transparent 70%),linear-gradient(150deg,#153d46,#0c2832);color:white}.auth-story .brand{padding:0}.auth-story .eyebrow{color:#cbb17c;font-size:10.58px}.auth-story h1{font-family:Georgia,serif;font-size:58.19px;font-weight:400;line-height:1.2;letter-spacing:-.5px;margin-bottom:24px}.auth-story p{font-size:15.87px;color:#a2c0c1;max-width:300px}.auth-story small{font-size:10.58px;color:#6f939a}.auth-form{padding:85px 50px 50px;display:flex;flex-direction:column;justify-content:center}.auth-form h2{font-size:33.0625px;letter-spacing:-.6px;margin-bottom:12px}.auth-form>p{font-size:14.5475px}.auth-form form{margin-top:23px}.auth-form .field{margin-bottom:21px}.auth-form .button{margin-top:10px}.auth-help{font-size:11.9025px!important;margin-top:27px;max-width:280px;line-height:1.7}.secure-note{font-size:10.58px;display:flex;align-items:center;gap:7px;color:#92aaa4;margin-top:14px}.secure-note .icon{width:13px;height:13px}.setup-card{background:#fff;border:1px solid var(--line);padding:40px;max-width:560px;width:100%;border-radius:18px;box-shadow:var(--shadow)}.setup-card h1{font-size:33.0625px;margin-top:25px}.setup-card .field{margin-bottom:18px}.setup-card p{font-size:15.87px}.dark-brand{color:var(--ink);padding:0}.dark-brand .brand-sub{color:#789b94}.document-sheet{background:white;padding:65px;max-width:800px;width:100%;min-height:900px;box-shadow:var(--shadow);margin:25px auto}.document-brand{font-size:39.675px;letter-spacing:6px;border-bottom:2px solid var(--gold);padding-bottom:25px;margin-bottom:55px}.document-brand small{display:block;letter-spacing:1px;font-size:15.87px;margin-top:10px}.document-sheet h1{text-align:center;font-family:Georgia,serif;font-weight:400;font-size:37.03px;margin:30px 0 50px}.document-body{line-height:2.1;font-size:21.16px}.signature{text-align:center;border-top:1px solid #8baba5;margin:110px auto 50px;padding-top:15px;max-width:300px;font-size:18.515px}.signature small{display:block;margin-top:8px;color:var(--muted);font-size:14.5475px}.document-sheet footer{text-align:center;font-size:13.225px;color:var(--muted)}.credential{max-width:500px;min-height:300px;padding:35px;border-radius:15px;border:1px solid #cbb681}.credential .document-brand{font-size:29.095px;margin-bottom:20px;padding-bottom:18px}.credential h1{font-size:29.095px;margin:10px 0 20px}.credential .document-body{font-size:18.515px;line-height:1.9}.credential .signature{margin:40px auto 20px;font-size:14.5475px}.print-toolbar{max-width:800px;width:100%;display:flex;justify-content:space-between;margin:10px auto}.import-form{margin-top:30px}.permissions{overflow:auto}.permissions table td:first-child{min-width:250px}.permissions td{padding:10px 12px}
@media(min-width:1500px){.content{padding-top:35px}.welcome-banner{min-height:245px}}
@media(max-width:1150px){.sidebar{width:235px;padding-left:14px;padding-right:14px}.sidebar-bottom{width:235px}.main-shell{margin-left:235px}.content{padding:25px}.topbar{padding:0 25px}.stats-grid{gap:12px}.stat-card{padding:17px}.stat-card>strong{font-size:31.74px}.form-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.banner-mark{margin-right:0;font-size:132.25px}.banner-mark span{display:none}.page-heading{align-items:start}.actions{justify-content:flex-end}.topbar-context{font-size:13.225px}}
@media(max-width:850px){.sidebar{transform:translateX(-100%);width:266px;transition:transform .2s}.sidebar-bottom{width:266px}.menu-open .sidebar{transform:translateX(0)}.main-shell{margin-left:0}.menu-toggle{display:flex}.topbar{height:74px}.topbar-context{display:none}.content{padding:24px 20px}.stats-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.welcome-banner{padding:28px}.dashboard-grid{gap:18px}.footer{padding:20px}.detail-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.auth-layout{grid-template-columns:1fr 1fr;min-height:600px}.auth-story{padding:35px}.auth-story h1{font-size:44.965px}.auth-form{padding:40px 30px}}
@media(max-width:600px){h1{font-size:35.7075px}.page-heading{display:block}.page-heading .actions{margin-top:19px;justify-content:flex-start}.breadcrumb{margin-bottom:24px}.welcome-banner{min-height:215px}.welcome-banner h2{font-size:33.0625px}.banner-mark{display:none}.welcome-banner p{max-width:230px;font-size:13.225px}.dashboard-grid{grid-template-columns:1fr}.dashboard-grid .panel{min-height:0}.panel{padding:20px 17px}.form-grid,.detail-grid{grid-template-columns:1fr}.field.wide,.wide{grid-column:auto}.stat-card{min-height:134px}.stat-card>strong{font-size:31.74px}.stat-card small{font-size:10.58px;line-height:1.5}.filters{align-items:stretch}.filters>select,.filters>.search-input{width:100%;flex-basis:100%}.form-footer{align-items:start;flex-direction:column}.form-footer .button{width:100%}.report-stats{grid-template-columns:1fr}.footer span{display:none}.auth{padding:16px}.auth-layout{display:block;min-height:auto}.auth-story{padding:28px;min-height:280px}.auth-story>small{display:none}.auth-story .brand{font-size:25.1275px}.auth-story .brand-symbol{width:35px;height:39px;font-size:35.7075px}.auth-story>div{margin-top:30px}.auth-story h1{font-size:39.675px}.auth-story h1 br:nth-child(2){display:none}.auth-story p{font-size:13.225px;margin:0}.auth-story .eyebrow{font-size:9.2575px}.auth-form{padding:35px 28px}.auth-form h2{font-size:30.4175px}.setup-card{padding:28px}.print-toolbar{flex-wrap:wrap;gap:10px}.document-sheet{padding:25px;min-height:700px}.credential{min-height:300px}.document-body{font-size:18.515px}.simple-row{flex-wrap:wrap}.inline-form{width:100%}.inline-form .field{width:100%}}
@media print{body{background:white!important;padding:0!important}.sidebar,.topbar,.footer,.breadcrumb,.page-heading .actions,.tabs,.filters,.print-toolbar,.pagination,.button{display:none!important}.main-shell{margin:0}.content{padding:0;max-width:none}.panel{border:0;box-shadow:none;padding:10px 0;break-inside:auto}.document-sheet{box-shadow:none;margin:0;max-width:none;padding:30px;min-height:0}.credential{max-width:100mm;min-height:62mm;padding:10mm;border:1px solid #777}.document-sheet h1{font-size:33.0625px}.report-stats strong{font-size:22.4825px}th,td{padding:8px;font-size:11.9025px}.table-scroll{overflow:visible}.auth{display:block}.signature{margin-top:75px}@page{size:A4;margin:15mm}}

.menu-backdrop{display:none}@media(max-width:850px){.menu-open .menu-backdrop{display:block;position:fixed;inset:0;z-index:29;border:0;background:#08262d66;border-radius:0;width:100%;height:100vh}}
@media(max-width:850px){.menu-open .menu-backdrop{left:266px;width:calc(100% - 266px)}}

.dashboard-grid>.panel:only-child{grid-column:1/-1}
[hidden]{display:none!important}

/* Igreja Sede — organização compacta e diretoria em cartões. */
.church-page .breadcrumb{margin-bottom:18px}
.church-page .page-heading{margin-bottom:20px;gap:16px}
.church-page .page-heading h1{font-size:32px;letter-spacing:-.7px;margin-bottom:7px}
.church-page .eyebrow{margin-bottom:8px}
.church-page .panel{border-radius:12px;margin-bottom:16px;padding:20px}
.church-page .record-form,.church-details{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;align-items:start}
.church-page .record-form>.panel,.church-details>.panel{margin:0;height:100%}
.church-info,.church-page .form-footer,.church-details>.panel:first-child{grid-column:1/-1}
.church-page .form-section h2,.church-details h2{font-size:19.8375px;padding-bottom:12px;margin-bottom:16px;border-bottom:1px solid var(--line)}
.church-info{border-top:3px solid var(--teal)}
.church-info .form-grid{grid-template-columns:repeat(6,minmax(0,1fr));gap:14px 16px}
.church-info .field{grid-column:span 2}
.church-info label[for="f_name"],.church-info label[for="f_address"]{grid-column:span 4}
.church-role{background:linear-gradient(140deg,#f4f9f7,#fff 65%);border-top:3px solid #c4a56c;box-shadow:0 3px 14px #173d4408}
.church-role h2{display:flex;align-items:center;gap:9px}
.church-role h2:before{content:"";width:8px;height:8px;border-radius:50%;background:var(--teal);flex:none}
.church-role .form-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
.church-role label[for$="_name"]{grid-column:1/-1}
.church-page .field{gap:6px;min-width:0}
.church-page .field input,.church-page .field select{min-height:42px;padding:9px 11px;border-radius:8px}
.church-page .form-footer{margin:0;padding:16px 20px!important;background:#eaf2ef;border:1px solid #d6e4df!important;border-radius:12px;color:#507274}
.church-details{margin-bottom:16px}
.church-details .detail-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px 18px}
.church-details .detail-item:first-child{grid-column:1/-1}
.church-details .detail-item>span{margin-bottom:4px}
.church-details .detail-item>strong{line-height:1.5}
.church-page .archive-panel{padding:16px 20px}
.church-page .archive-panel p{margin-bottom:12px}
.church-page .panel-heading{flex-wrap:wrap}
@media(max-width:1100px){.church-page .record-form,.church-details{grid-template-columns:1fr}.church-role .form-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.church-role label[for$="_name"]{grid-column:auto}}
@media(max-width:650px){.church-page .page-heading h1{font-size:28px}.church-info .form-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.church-info .field{grid-column:auto}.church-info label[for="f_name"],.church-info label[for="f_address"],.church-info label[for="f_parent_id"],.church-info label[for="f_pastor"]{grid-column:1/-1}.church-role .form-grid,.church-details .detail-grid{grid-template-columns:1fr}.church-page .panel{padding:17px}.church-page .form-footer{padding:16px!important}.church-page .panel-heading .actions{width:100%}.church-page .panel-heading .actions .button{white-space:normal}}
@media print{.church-page .record-form,.church-details{display:block}.church-page .panel{border:0;background:white;box-shadow:none;break-inside:avoid}}

.person-picker{display:block;position:relative;min-width:0}
.person-results{position:absolute;top:44px;left:0;right:0;z-index:15;background:white;border:1px solid #c4d9d4;border-radius:9px;box-shadow:0 9px 28px #102e3926;max-height:240px;overflow:auto;padding:5px}
.person-results button{display:block;width:100%;text-align:left;border:0;background:white;color:var(--ink);padding:11px 10px;border-radius:6px;font-size:15.87px;overflow-wrap:anywhere}
.person-results button:hover,.person-results button[aria-selected=true]{background:var(--teal-light);color:var(--teal)}
.person-status{display:block;font-size:12px;line-height:1.5;color:#617d7b;margin-top:5px}
input[readonly]{background:#f1f5f3;color:#617d7b}
.church-role label[for$="_person_id"]{grid-column:1/-1}
.membership-options{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
.membership-options label{display:flex;align-items:center;gap:9px;padding:12px;border:1px solid var(--line);border-radius:8px;font-size:15.87px}
.membership-help{font-size:14.5475px;margin:14px 0 0}
.linked-panel .simple-row{align-items:flex-start;overflow-wrap:anywhere}.linked-panel .simple-row>span{min-width:0}.linked-panel .simple-row small{flex-shrink:0}
@media(max-width:1100px){.church-role label[for$="_person_id"]{grid-column:auto}.membership-options{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:650px){.membership-options{grid-template-columns:1fr}.linked-panel .simple-row{flex-wrap:wrap}}

.person-option-detail{display:block;font-size:12px;color:var(--muted);margin-top:4px}
.disciple-profile{display:flex;align-items:center;gap:18px;padding:24px;border:1px solid #2d6265;border-radius:14px;background:linear-gradient(120deg,#123943,#20565a);color:white;margin-bottom:20px}
.disciple-profile h2{font-size:26px;margin:0 0 12px;color:white}.disciple-profile .eyebrow{color:#d0bd91;margin-bottom:8px}.disciple-profile>.button{margin-left:auto}
.disciple-initial{width:64px;height:64px;display:grid;place-items:center;background:#ffffff12;border:1px solid #ffffff25;border-radius:18px;font-size:30px;flex-shrink:0;color:#e0cb9f}
.disciple-chips{display:flex;gap:8px;flex-wrap:wrap;font-size:13.225px}.disciple-chips span{padding:5px 9px;border:1px solid #ffffff25;border-radius:6px;color:#d5e6e1}
.disciple-cell{display:flex;align-items:center;justify-content:space-between;gap:18px}.disciple-cell h2{margin-bottom:9px}.disciple-cell p{margin:0;font-size:15.87px}
.disciple-more{border:1px solid var(--line);border-radius:12px;background:white;margin-bottom:20px}.disciple-more>summary{padding:18px 22px;cursor:pointer;color:var(--teal);font-size:15.87px;font-weight:600}.disciple-more .panel{margin:0;border:0;box-shadow:none}
.cell-leader-preview{padding:12px 15px;border:1px solid #cfe2da;background:#eff7f3;color:#376e62;border-radius:9px;margin-top:18px;font-size:15.87px}
.relative-form{border-top:1px solid var(--line);padding-top:20px;margin-top:18px}.relative-submit{align-self:center}.relative-degree{display:block;margin-top:6px;color:var(--muted);font-size:13.225px}
.disciple-finance-totals{display:grid;grid-template-columns:1fr 1fr;gap:15px;margin-bottom:18px}.disciple-finance-totals>div{padding:18px;border:1px solid var(--line);border-radius:10px;background:#f4f8f5}.disciple-finance-totals span{display:block;font-size:14.5475px;color:var(--muted);margin-bottom:9px}.disciple-finance-totals strong{font-size:25px;color:var(--teal)}
@media(max-width:650px){.disciple-profile{padding:18px;flex-wrap:wrap}.disciple-profile h2{font-size:23px;overflow-wrap:anywhere}.disciple-profile>div{flex:1;min-width:0}.disciple-profile>.button{margin:0;width:100%}.disciple-initial{width:48px;height:48px;font-size:25px;border-radius:12px}.disciple-cell{align-items:flex-start;flex-direction:column}.disciple-finance-totals{grid-template-columns:1fr}.relative-submit .button{width:100%}}

.ministry-selected{display:flex;gap:9px;flex-wrap:wrap;margin-top:16px;min-height:12px}
.ministry-person{display:inline-flex;align-items:center;gap:10px;background:#eaf4ee;border:1px solid #cfe2d7;color:#315f53;border-radius:8px;padding:8px 10px;font-size:15.87px;max-width:100%;overflow-wrap:anywhere}
.ministry-person button{border:0;background:#dbece2;color:#376750;border-radius:5px;min-width:28px;min-height:28px;font-size:21px;line-height:1}
.ministry-person button:hover{background:#c9e0d1}

.postal-code-status{display:block;font-size:12px;line-height:1.5;color:#587a71;margin-top:5px}

.person-photo-field{display:flex;gap:22px;align-items:center}.person-photo-field h2{margin-bottom:14px}.photo-preview{width:105px;height:105px;border:1px solid #cbded6;background:#edf5f0;border-radius:18px;overflow:hidden;display:grid;place-items:center;color:var(--teal);font-size:38px;flex-shrink:0}.photo-preview img,.disciple-initial img{width:100%;height:100%;object-fit:cover}.disciple-initial{overflow:hidden}.photo-remove{display:flex;align-items:center;gap:8px;font-size:14.5475px;margin-top:12px}.identity-rule{font-size:14.5475px;color:var(--muted);margin-bottom:20px}
@media(max-width:600px){.person-photo-field{align-items:flex-start;flex-direction:column}.person-photo-field>div:last-child{width:100%}}

.tithe-explanation{font-size:14.5475px;line-height:1.65;margin:14px 0;color:#6b8380}.panel>.tithe-explanation:last-child{margin-bottom:0}

.tithe-live-toolbar{display:flex;align-items:center;justify-content:space-between;gap:15px;margin:0 0 14px;font-size:13.225px;color:var(--muted)}.tithe-overdue{background:#faf0d9;color:#8a6729}
@media(max-width:600px){.tithe-live-toolbar{align-items:flex-start;flex-direction:column}}

.general-cash{display:flex;align-items:center;justify-content:space-between;gap:20px;border-top:3px solid var(--teal)}.general-cash p{font-size:14.5475px;margin:0}.general-cash>strong{font-size:30px;color:var(--teal)}
@media(max-width:600px){.general-cash{align-items:flex-start;flex-direction:column}.general-cash>strong{font-size:26px}}

.entry-card-breakdown{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px;background:#f3f8f5;border-color:#d3e4dc}.entry-card-breakdown span{display:block;font-size:14.5475px;color:#65857b;margin-bottom:8px}.entry-card-breakdown strong{font-size:24px;color:var(--teal)}
@media(max-width:600px){.entry-card-breakdown{grid-template-columns:1fr}.entry-card-breakdown strong{font-size:22px}}

.overview-metrics{grid-template-columns:repeat(4,minmax(0,1fr));gap:16px}.overview-metrics .stat-card{min-height:155px;padding:21px;position:relative;overflow:hidden;border-radius:13px}.overview-metrics .stat-card>div{font-size:14px;line-height:1.4;align-items:flex-start}.overview-metrics .stat-card>strong{font-size:32px;margin:18px 0 9px;overflow-wrap:anywhere}.overview-metrics .stat-card>small{font-size:12px;line-height:1.4}.overview-attention{border-top:3px solid #cfb475}.overview-income{border-top:3px solid #268b76;background:#f6fbf8}.overview-expense{border-top:3px solid #c09c81;background:#fcf9f6}.overview-visibility{margin:0}.overview-grid{display:grid;grid-template-columns:1.12fr 1fr;gap:20px;align-items:start}.overview-grid>.panel{margin:0;padding:22px}.overview-wide{grid-column:1/-1}.overview-grid .panel-heading{margin-bottom:12px}.overview-grid .panel-heading h2{font-size:20px;line-height:1.4}.overview-note{font-size:13px;line-height:1.5;margin-bottom:14px}.overview-amount{white-space:nowrap;font-weight:600;color:var(--teal)}.overview-birthdays{max-height:410px;overflow:auto;overscroll-behavior:contain}.overview-birthdays .simple-row{padding:13px 2px}.overview-birthdays .simple-row>span:first-child{min-width:0}.overview-birthdays strong{font-size:15px;font-weight:600;overflow-wrap:anywhere}.birthday-day{flex-shrink:0;display:inline-flex;align-items:center;justify-content:center;min-width:63px;min-height:35px;background:#edf5f0;border:1px solid #d7e7de;border-radius:8px;font-size:14px;color:#447966}.overview-payables-total{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:14px 16px;border-radius:9px;background:#f8f5ee;margin-bottom:16px;font-size:14px;color:#7e725a}.overview-payables-total strong{font-size:23px;color:#7f6545}.overview-panel-footer{display:flex;justify-content:flex-end;margin-top:17px}.overview-due{background:#faebe4;color:#a76445}
@media(max-width:1150px){.overview-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}.overview-metrics .stat-card>strong{font-size:30px}}
@media(max-width:760px){.overview-grid{grid-template-columns:1fr}.overview-wide{grid-column:auto}.overview-visibility .button{white-space:normal}.overview-metrics .stat-card{padding:17px;min-height:152px}.overview-metrics .stat-card>div{font-size:13px}.overview-metrics .stat-card>strong{font-size:28px}.overview-payables-total{align-items:flex-start;flex-direction:column}}
@media(max-width:390px){.overview-metrics{gap:10px}.overview-metrics .stat-card{padding:13px}.overview-metrics .stat-card>strong{font-size:24px}.overview-metrics .stat-card>small{font-size:11px}}

.ledger-filters{display:grid;grid-template-columns:1.6fr 1.1fr 1fr 1fr auto;gap:14px;align-items:end}.ledger-filters .button{min-height:43px}.ledger-range{font-size:14px;color:var(--muted);margin-top:18px;padding-top:14px;border-top:1px solid var(--line)}.ledger-out .ledger-value,.ledger-out .ledger-direction,.ledger-negative{color:#ba3f38!important}.ledger-out .ledger-direction{background:#fff0ed}.ledger-in .ledger-value{color:var(--teal)}.ledger-value{white-space:nowrap;font-weight:650}.ledger-month-total{display:flex;flex-wrap:wrap;gap:16px 25px;padding:8px 0;color:var(--ink);font-size:14px}.ledger-month-total>strong{margin-left:auto}.ledger-grand-total{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px;border-top:3px solid var(--teal)}.ledger-grand-total h2{grid-column:1/-1;margin:0}.ledger-grand-total>div{display:flex;flex-direction:column;gap:8px;font-size:14px;color:var(--muted)}.ledger-grand-total>div>strong{font-size:26px;color:var(--ink)}.ledger-grand-total .ledger-negative>strong{color:#ba3f38}
@media(max-width:1150px){.ledger-filters{grid-template-columns:repeat(2,minmax(0,1fr))}.ledger-search{grid-column:1/-1}.ledger-filters .button{justify-self:start}}
@media(max-width:600px){.ledger-filters{grid-template-columns:1fr}.ledger-search{grid-column:auto}.ledger-grand-total{grid-template-columns:1fr}.ledger-grand-total h2{grid-column:auto}.ledger-month-total{flex-direction:column;gap:9px}.ledger-month-total>strong{margin:0}}

.overview-metrics .overview-balance{grid-column:1/-1;border-top:3px solid var(--teal);background:linear-gradient(110deg,#edf7f3,#fff)}

.photo-finance-row{border:1px solid var(--line);border-radius:12px;padding:22px;margin:18px 0;background:#fcfefd}.photo-finance-row .form-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.photo-finance-row .field>label{font-size:14px;margin-top:8px}.photo-row-excluded{background:#f3f5f4;opacity:.65}.photo-finance-summary{padding:18px;border-radius:10px;background:var(--teal-light);color:var(--teal);font-weight:600;line-height:1.8}.photo-review-confirm{display:flex;gap:12px;align-items:flex-start;margin-top:20px;line-height:1.5}.photo-finance-net{margin:15px 0 0;color:var(--teal);font-weight:600}@media(max-width:900px){.photo-finance-row .form-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:600px){.photo-finance-row .form-grid{grid-template-columns:1fr}.photo-finance-row{padding:15px}.photo-finance-row .panel-heading{align-items:flex-start;gap:10px}}

.free-disciples-filters{display:grid;grid-template-columns:minmax(220px,1fr) minmax(180px,250px) auto auto;gap:14px;align-items:end;margin-bottom:15px}.free-disciples-filters .button{min-height:43px}@media(max-width:760px){.free-disciples-filters{grid-template-columns:1fr 1fr}}@media(max-width:480px){.free-disciples-filters{grid-template-columns:1fr}}

.password-control{display:flex;align-items:center;border:1px solid #d9e4e3;border-radius:9px;background:#fff;overflow:hidden}.password-control:focus-within{outline:2px solid #3e929479;outline-offset:2px}.password-control input{flex:1;min-width:0;width:100%;border:0;border-radius:0}.password-control input:focus{outline:0}.password-control .password-toggle{flex:none;min-width:85px;min-height:44px;align-self:stretch;border:0;border-left:1px solid var(--line);padding:8px 12px;background:#edf5f3;color:var(--teal);font-size:14px;font-weight:600}.password-control .password-toggle:hover{background:#dfefea}.password-control .password-toggle:focus-visible{outline:2px solid var(--teal);outline-offset:-3px}.password-control .password-toggle[hidden]{display:none}

/* Identidade do produto AC CHURCH */
.brand{gap:10px;letter-spacing:0}.brand .brand-symbol{width:40px;height:44px;flex-shrink:0;font-family:inherit;font-size:18px;font-weight:650;letter-spacing:-1px}.brand-copy{display:flex;flex-direction:column;gap:4px;min-width:0}.brand-name{display:block;font-size:21px;font-weight:650;letter-spacing:1px;white-space:nowrap;line-height:1.2}.brand-tagline{display:block;font-size:9.5px;font-weight:400;letter-spacing:0;line-height:1.5}.brand-credit{display:block;font-size:10px;font-weight:400;letter-spacing:.2px;color:#cdbb95;line-height:1.4}.auth-story .brand-name{font-size:28px}.auth-story .brand-tagline{font-size:12px}.auth-story .brand-credit{font-size:11px}.dark-brand .brand-credit{color:var(--teal)}.footer{gap:12px;flex-wrap:wrap}.footer>strong{font-size:12px;letter-spacing:1px}.footer>small{font-size:12px;color:var(--muted)}.document-product-line{display:block;font-family:inherit;font-size:12px;font-weight:400;letter-spacing:0;margin:6px 0;color:var(--muted)}@media(max-width:480px){.auth-story .brand-name{font-size:23px}.auth-story .brand-tagline{font-size:10px}.footer{justify-content:center;text-align:center}.footer>span,.footer>small{width:100%;margin:0}}

/* Logo 3D original: enquadramento responsivo sem distorção da imagem. */
.product-logo{display:block;position:relative;overflow:hidden;width:100%;aspect-ratio:3/1;background:#fff;border-radius:8px;isolation:isolate}.product-logo img{display:block;width:100%;max-width:100%;height:auto;object-fit:contain}.sidebar .brand{display:block;padding:0;width:100%}.auth-story .brand{display:block;width:100%;max-width:480px}.setup-card .brand{display:block;width:100%;max-width:400px;margin-bottom:24px}.footer-with-logo{justify-content:center}.footer-with-logo>.product-logo{width:260px;max-width:100%}.document-brand>.product-logo{width:360px;max-width:100%;margin-bottom:12px}.document-brand>small{display:block}.brand .product-logo{box-shadow:0 3px 12px #00000012}@media(max-width:480px){.auth-story .brand{max-width:360px}.footer-with-logo>.product-logo{width:240px}.product-logo{border-radius:6px}}@media print{.product-logo{break-inside:avoid;print-color-adjust:exact;-webkit-print-color-adjust:exact}}

.footer-with-logo>.product-logo{display:block}

/* Árvore familiar da ficha: parentescos explícitos, cartões navegáveis. */
.family-tree-panel{overflow:hidden}.family-tree-panel .panel-heading{align-items:center}.family-tree-panel h2{margin-bottom:0}.family-tree-intro{font-size:15px;margin:12px 0 22px}.family-tree-canvas{background:radial-gradient(ellipse at center,#e5f4ef 0%,#f7faf9 65%);border:1px solid #e0eeea;border-radius:16px;padding:26px 18px}.family-tree-generation{position:relative;text-align:center}.family-tree-generation h3{font-size:11px;letter-spacing:1.8px;text-transform:uppercase;color:#64847d;margin:0 0 14px}.family-tree-nodes{display:flex;flex-wrap:wrap;gap:14px;justify-content:center;align-items:stretch}.family-tree-card{display:flex;align-items:center;gap:12px;width:240px;max-width:100%;padding:16px;border:1px solid #d9e8e3;border-radius:14px;background:#fff;box-shadow:0 5px 18px #123e3910;text-align:left;transition:transform .18s,box-shadow .18s}.family-tree-card[href]:hover{transform:translateY(-3px);box-shadow:0 9px 24px #123e3920;border-color:#81b3a4}.family-tree-card[href]:focus-visible{outline:3px solid #228a79;outline-offset:3px}.family-tree-avatar{display:grid;place-items:center;width:46px;height:46px;flex-shrink:0;border-radius:50%;background:#e8f3ef;color:#216f62;font-weight:650;font-size:20px;overflow:hidden}.family-tree-avatar img{width:100%;height:100%;object-fit:cover}.family-tree-card-copy{display:flex;flex-direction:column;gap:5px;min-width:0}.family-tree-card-copy small{color:#6d8a83;font-size:11px}.family-tree-card-copy strong{font-size:15px;line-height:1.4;overflow-wrap:anywhere}.family-tree-focus{background:linear-gradient(130deg,#153f49,#1c716b);border-color:#236c69;color:white;box-shadow:0 8px 22px #174d4930}.family-tree-focus .family-tree-avatar{background:#ffffff1f;color:white;border:1px solid #ffffff30}.family-tree-focus .family-tree-card-copy small{color:#c8e5db}.family-tree-up{padding-bottom:34px}.family-tree-up:after{content:'';position:absolute;left:50%;bottom:0;height:26px;width:2px;background:#b6d5c9}.family-tree-down{padding-top:34px}.family-tree-down:before{content:'';position:absolute;left:50%;top:0;height:25px;width:2px;background:#b6d5c9}.family-tree-branches{margin-top:22px;padding-top:22px;border-top:1px solid var(--line);display:grid;gap:24px}.family-tree-empty{margin-top:18px;border:1px dashed #b4d2c6;border-radius:10px;padding:18px;text-align:center;color:#64847d;font-size:14px;line-height:1.7}.family-tree-note{font-size:12px;line-height:1.7;margin:18px 0 0;color:#7e938d}.family-tree-archived{border-style:dashed}.family-tree-archive-label{font-size:10px;color:#92775c}@media(max-width:600px){.family-tree-canvas{padding:22px 10px}.family-tree-card{width:100%;padding:14px}.family-tree-nodes{gap:10px}.family-tree-panel .panel-heading{align-items:flex-start;gap:10px;flex-wrap:wrap}}@media(prefers-reduced-motion:reduce){.family-tree-card{transition:none}}

.platform-shell{max-width:1500px;margin:0 auto;padding:28px}.platform-header{display:flex;align-items:center;justify-content:space-between;gap:24px;margin-bottom:28px;flex-wrap:wrap}.platform-header .brand{width:280px}.platform-auth,.platform-setup{max-width:560px;margin:40px auto;padding:28px}.platform-setup{max-width:1000px}.platform-auth .brand,.platform-setup .brand{display:block;max-width:360px;margin-bottom:24px}.platform-auth .field{margin-bottom:18px}.platform-auth .text-link{display:block;margin-top:20px}.platform-metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;margin-bottom:22px}.platform-metrics>div{padding:22px;border:1px solid var(--line);border-radius:14px;background:white}.platform-metrics span{display:block;color:var(--muted);font-size:14px}.platform-metrics strong{display:block;font-size:30px;margin-top:8px}.platform-shell details summary{cursor:pointer;font-weight:650;font-size:20px}.platform-shell details form{margin-top:24px}.platform-shell .form-grid{margin-bottom:22px}.platform-shell h1{font-size:30px}.platform-shell .panel>form>.button{margin-top:14px}@media(max-width:650px){.platform-shell{padding:16px}.platform-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}.platform-auth,.platform-setup{margin:16px auto;padding:20px}.platform-header .brand{max-width:100%}}

.human-check{width:100%;min-width:0;margin:12px 0}.human-check .cf-turnstile{width:100%;min-width:0}.human-check noscript{display:block;color:#a34436;font-size:14px}

.human-check-status{font-size:13px;line-height:1.5;margin:0 0 10px;color:var(--muted)}.human-check[data-state="error"] .human-check-status{color:#a34436}.human-check[data-state="success"] .human-check-status{color:#216f62}.human-check .human-check-retry{margin-top:10px;font-size:13px}.human-check [hidden]{display:none!important}

/* Login AC CHURCH: relevo, iluminação e cores do símbolo da marca. */
.auth:has(.login-premium){
  background:
    radial-gradient(ellipse at 12% 12%,#165cb947,transparent 42%),
    radial-gradient(ellipse at 86% 86%,#00bcb132,transparent 44%),
    linear-gradient(140deg,#07162c,#101f36 48%,#081b2c);
  padding:clamp(22px,4vw,64px);min-height:100svh;
}
.login-premium{
  position:relative;isolation:isolate;overflow:visible;max-width:1140px;
  min-height:720px;grid-template-columns:1.04fr 1fr;border-radius:30px;
  background:#eef5fa;border:1px solid #ffffff36;
  box-shadow:0 5px 0 #07162f,0 12px 0 #050e20,0 36px 65px #0000006b,
    -16px 0 65px #1c80ff20,16px 0 70px #02d9c62b,0 -18px 60px #2985ff28,0 26px 65px #02baa82b;
}
.login-premium:before{
  content:"";position:absolute;inset:-3px;border-radius:32px;z-index:-1;
  background:conic-gradient(from 20deg,#2278ff66,#00e4cd88,#091c33 38%,#ff8a4266,#1c76ed88,#00cfb38c,#2278ff66);
  filter:blur(18px);opacity:.8;pointer-events:none;
}
.login-premium .auth-story{
  position:relative;isolation:isolate;overflow:hidden;border-radius:29px 0 0 29px;
  padding:clamp(30px,4vw,54px);gap:48px;
  background:radial-gradient(ellipse at 0 0,#2978dc80,transparent 58%),
    radial-gradient(ellipse at 110% 100%,#00cbb179,transparent 58%),
    linear-gradient(145deg,#103d77 0%,#092a51 45%,#073741 100%);
  border:1px solid #8cdfff42;border-right-color:#071c3d;
  box-shadow:inset 1px 2px 2px #c1ecff70,inset -10px 0 24px #020d2e66,inset 0 -7px 16px #00122470;
}
.login-premium .auth-story:before{
  content:"";position:absolute;width:340px;height:340px;border-radius:50%;
  background:radial-gradient(circle,#00e1d53a,transparent 65%);
  top:-175px;right:-140px;border:1px solid #78d8ff30;
  box-shadow:0 0 0 28px #54adff07,0 0 0 62px #49dce508;z-index:-1;pointer-events:none;
}
.login-premium .auth-story:after{
  content:"";position:absolute;width:250px;height:250px;border:35px solid #2cded51a;
  border-radius:50%;right:-160px;bottom:70px;transform:rotate(-25deg);
  box-shadow:inset 8px 12px 20px #0b102d77,-6px -6px 18px #34f6d52b,9px 15px 30px #00132d66;
  z-index:-1;pointer-events:none;
}
.login-premium .auth-story .brand{
  position:relative;max-width:440px;border-radius:18px;padding:7px;background:linear-gradient(145deg,#fff,#cedce9);
  border:1px solid #fff;transform:perspective(1100px) rotateY(3deg) rotateX(2deg);
  box-shadow:0 3px 0 #8facc5,0 7px 0 #466e95,0 18px 27px #00132b80,0 -3px 20px #68bcff38;
}
.login-premium .auth-story .product-logo{border-radius:12px;box-shadow:inset 0 1px 2px #fff;}
.login-premium .auth-story .eyebrow{
  display:inline-flex;align-items:center;gap:9px;font-size:10px;font-weight:700;letter-spacing:2px;
  color:#a8f4eb;text-shadow:0 2px 2px #001d3e;margin-bottom:22px;
}
.login-premium .auth-story .eyebrow:before{
  content:"";display:block;width:7px;height:7px;border-radius:50%;background:#fc9a50;
  box-shadow:0 0 12px #ffab51a1,inset 0 1px 1px #fff8;
}
.login-premium .auth-story h1{
  font-family:Inter,"Segoe UI",Arial,sans-serif;font-size:clamp(38px,4.3vw,57px);
  font-weight:780;line-height:1.13;letter-spacing:-1.9px;color:#f0fbff;
  text-shadow:0 1px 0 #a7ccdf,0 2px 0 #7ba4c4,0 3px 0 #355d85,0 5px 0 #153858,0 12px 20px #00152f99;
  margin-bottom:25px;
}
.login-premium .auth-story h1 br{display:initial;}
.login-premium .auth-story p{
  color:#c1dbe9;max-width:330px;font-size:15px;line-height:1.85;
  text-shadow:0 2px 2px #02172eb3;margin-bottom:0;
}
.login-premium .auth-story .auth-credit{
  display:block;font-size:11px;color:#b6dbeb;letter-spacing:1px;
  padding-top:18px;border-top:1px solid #8fcbdf29;text-shadow:0 2px 2px #031a35;
}
.login-premium .auth-form{
  position:relative;min-width:0;border-radius:0 29px 29px 0;
  background:linear-gradient(155deg,#fff 0%,#f8fbfd 65%,#eaf5f8 100%);
  padding:50px clamp(28px,4vw,52px);box-shadow:inset 0 2px 1px #fff,inset -2px 0 2px #fff;
}
.login-premium .auth-form>.eyebrow{color:#177f8c;font-size:10px;letter-spacing:2.2px;text-shadow:0 1px 0 #fff;}
.login-premium .auth-form h2{
  color:#15355d;font-size:clamp(27px,2.8vw,36px);line-height:1.2;font-weight:750;
  letter-spacing:-1px;text-shadow:0 1px 0 #fff,0 2px 0 #bcd0df,0 5px 8px #133c6420;
}
.login-premium .auth-form>p{font-size:14px;line-height:1.8;color:#647d8f;text-shadow:0 1px 0 white;}
.login-premium .auth-form form{margin-top:24px;}
.login-premium .auth-form .field{margin-bottom:20px;}
.login-premium .auth-form .field>span,.login-premium .auth-form label.field,.login-premium .auth-form .field>label{
  font-size:13px;font-weight:600;color:#365875;text-shadow:0 1px 0 #fff;
}
.login-premium .auth-form input:not([type=hidden]){
  background:linear-gradient(180deg,#eef3f8,#fff 72%);border:1px solid #c4d4e2;border-radius:12px;
  box-shadow:inset 0 2px 4px #163a5c12,0 1px 0 #fff;font-size:15px;min-height:52px;
  color:#183858;text-shadow:0 1px 0 #fff;padding:13px 15px;
}
.login-premium .auth-form input::placeholder{color:#8092a3;font-weight:400;}
.login-premium .auth-form input:focus{outline:3px solid #16b6b42b;border-color:#18a9b1;outline-offset:2px;}
.login-premium .password-control{border:1px solid #c4d4e2;border-radius:12px;box-shadow:0 1px 0 #fff;}
.login-premium .password-control input{border:0!important;border-radius:0!important;box-shadow:none!important;}
.login-premium .password-control .password-toggle{
  background:linear-gradient(150deg,#e1f3f3,#c8e3e8);color:#176477;
  border-left:1px solid #c4d7e1;font-size:12px;text-shadow:0 1px 0 #fff;
  box-shadow:inset 0 1px 0 white;
}
.login-premium .auth-form .button.primary{
  min-height:54px;border-radius:12px;margin-top:15px;padding:14px 20px;
  background:linear-gradient(125deg,#1554a9,#106d99 48%,#079c94);
  border:1px solid #1b83ad;color:white;font-size:15px;
  box-shadow:inset 0 1px 1px #a6f0ff80,0 4px 0 #07466e,0 9px 0 #d8e6ed,0 14px 24px #0a699b29;
  text-shadow:0 2px 2px #034169a6;transition:transform .18s,box-shadow .18s;
}
.login-premium .auth-form .button.primary:hover:not(:disabled){
  background:linear-gradient(125deg,#1b65c7,#0b7ba9 48%,#06aaa0);
  transform:translateY(-2px);box-shadow:inset 0 1px 1px #c8fbff80,0 6px 0 #07466e,0 11px 0 #d8e6ed,0 18px 26px #0a699b38;
}
.login-premium .auth-form .button.primary:active:not(:disabled){transform:translateY(3px);box-shadow:inset 0 1px 1px #a6f0ff70,0 1px 0 #07466e,0 5px 13px #0a699b26;}
.login-premium .auth-help{margin-top:30px;max-width:100%;font-size:11px!important;color:#738798;}
.login-premium .secure-note{color:#478b8c;font-size:10px;text-shadow:0 1px 0 white;}
.login-premium .auth-form .alert{font-size:13px;line-height:1.7;border-radius:12px;}
.login-premium .human-check{margin-top:16px;}
.login-premium .human-check-status{font-size:12px;}
.login-premium .human-check .cf-turnstile{min-height:65px;}
@media(max-width:900px){
  .auth:has(.login-premium){padding:28px;}
  .login-premium{min-height:680px;grid-template-columns:1fr 1fr;}
  .login-premium .auth-story{padding:32px 28px;gap:36px;}
  .login-premium .auth-story h1{font-size:42px;}
  .login-premium .auth-story .eyebrow{font-size:9px;letter-spacing:1.2px;}
  .login-premium .auth-form{padding:38px 28px;}
}
@media(max-width:720px){
  .auth:has(.login-premium){padding:22px 14px 32px;display:block;}
  .login-premium{display:grid;grid-template-columns:1fr;min-height:auto;max-width:480px;margin:0 auto;border-radius:24px;}
  .login-premium .auth-story{border-radius:23px 23px 0 0;padding:28px;gap:30px;border-right-color:#8cdfff42;}
  .login-premium .auth-story>div{margin-top:0;}
  .login-premium .auth-story .brand{max-width:300px;transform:none;}
  .login-premium .auth-story h1{font-size:37px;line-height:1.13;letter-spacing:-1.2px;margin-bottom:18px;}
  .login-premium .auth-story .eyebrow{margin-bottom:16px;}
  .login-premium .auth-story p{font-size:13px;max-width:310px;}
  .login-premium .auth-story .auth-credit{display:none;}
  .login-premium .auth-form{border-radius:0 0 23px 23px;padding:34px 27px 32px;}
  .login-premium .auth-form h2{font-size:29px;}
}
@media(max-width:370px){
  .auth:has(.login-premium){padding-left:8px;padding-right:8px;}
  .login-premium .auth-story{padding:24px;}
  .login-premium .auth-form{padding:30px 21px;}
  .login-premium .auth-story h1{font-size:33px;}
  .login-premium .auth-form h2{font-size:26px;}
  .login-premium .human-check{margin-left:-21px;width:calc(100% + 42px);}
  .login-premium .human-check-status{padding:0 12px;}
}
@media(prefers-reduced-motion:reduce){.login-premium .auth-form .button.primary{transition:none;}}

/* Ajuste compacto do login 3D. */
.login-premium{max-width:1040px;min-height:640px;}
.login-premium .auth-story{padding:36px 40px;gap:34px;}
.login-premium .auth-story .brand{max-width:370px;}
.login-premium .auth-story h1{font-size:clamp(36px,4vw,50px);margin-bottom:20px;}
.login-premium .auth-story .eyebrow{margin-bottom:17px;}
.login-premium .auth-story p{font-size:14px;line-height:1.75;}
.login-premium .auth-form{padding:36px 40px;}
.login-premium .auth-form h2{font-size:clamp(27px,2.7vw,32px);margin-bottom:10px;}
.login-premium .auth-form>p{font-size:13px;line-height:1.65;}
.login-premium .auth-form form{margin-top:16px;}
.login-premium .auth-form .field{margin-bottom:16px;}
.login-premium .auth-form input:not([type=hidden]){min-height:48px;padding:11px 13px;}
.login-premium .auth-form .button.primary{min-height:49px;padding:12px 18px;margin-top:11px;}
.login-premium .auth-help{margin-top:24px;}
.login-premium .human-check{margin-top:12px;}
@media(max-width:900px){
 .login-premium{min-height:620px;}
 .login-premium .auth-story{padding:30px 27px;gap:30px;}
 .login-premium .auth-story h1{font-size:39px;}
 .login-premium .auth-form{padding:30px 27px;}
}
@media(max-width:720px){
 .auth:has(.login-premium){padding-top:16px;padding-bottom:26px;}
 .login-premium{min-height:auto;max-width:460px;}
 .login-premium .auth-story{padding:24px 27px;gap:24px;}
 .login-premium .auth-story .brand{max-width:270px;}
 .login-premium .auth-story h1{font-size:34px;margin-bottom:15px;}
 .login-premium .auth-story p{font-size:12px;}
 .login-premium .auth-form{padding:28px 27px;}
 .login-premium .auth-form h2{font-size:28px;}
}
@media(max-width:370px){
 .login-premium .auth-story{padding:22px;}
 .login-premium .auth-form{padding:26px 21px;}
 .login-premium .auth-story h1{font-size:31px;}
 .login-premium .auth-form h2{font-size:25px;}
}

/* Altura natural compacta: cabe em telas de computador sem cortar conteúdo. */
.auth:has(.login-premium){padding:16px;}
.login-premium{max-width:1020px;min-height:0;}
.login-premium .auth-story{padding:28px 34px;gap:26px;}
.login-premium .auth-story .brand{max-width:330px;}
.login-premium .auth-story h1{font-size:clamp(33px,3.6vw,46px);line-height:1.12;margin-bottom:16px;}
.login-premium .auth-story .eyebrow{margin-bottom:14px;}
.login-premium .auth-story p{font-size:13px;line-height:1.65;}
.login-premium .auth-form{padding:24px 32px;}
.login-premium .auth-form>.eyebrow{font-size:9px;margin-bottom:9px;}
.login-premium .auth-form h2{font-size:29px;margin-bottom:8px;line-height:1.15;}
.login-premium .auth-form>p{font-size:12px;line-height:1.5;margin-bottom:0;}
.login-premium .auth-form form{margin-top:15px;}
.login-premium .auth-form .field{margin-bottom:11px;gap:5px;line-height:1.3;}
.login-premium .auth-form .field>label{margin-top:0;}
.login-premium .auth-form label.field,.login-premium .auth-form .field>label{font-size:12px;}
.login-premium .auth-form input:not([type=hidden]){min-height:43px;height:43px;padding:10px 12px;font-size:14px;}
.login-premium .password-control .password-toggle{min-height:43px;}
.login-premium .auth-form .button.primary{min-height:45px;padding:10px 17px;margin-top:8px;}
.login-premium .human-check{margin-top:8px;margin-bottom:6px;}
.login-premium .human-check-status{font-size:11px;line-height:1.4;margin-bottom:6px;}
.login-premium .auth-form>p.auth-help{font-size:10px!important;margin-top:19px;line-height:1.5;}
.login-premium .secure-note{font-size:9px;margin-top:8px;line-height:1.4;}
.login-premium .auth-form .alert{margin-bottom:12px;padding:12px 14px;font-size:12px;}
@media(min-width:721px) and (max-height:720px){
 .auth:has(.login-premium){padding:10px 16px;}
 .login-premium .auth-story{padding:24px 30px;gap:20px;}
 .login-premium .auth-story .brand{max-width:300px;}
 .login-premium .auth-story h1{font-size:40px;}
 .login-premium .auth-form{padding:20px 30px;}
 .login-premium .auth-form form{margin-top:12px;}
 .login-premium .auth-form .field{margin-bottom:9px;}
 .login-premium .secure-note{display:none;}
}
@media(max-width:720px){
 .auth:has(.login-premium){padding:12px 10px 22px;}
 .login-premium{max-width:460px;min-height:0;}
 .login-premium .auth-story{padding:18px 24px;gap:18px;}
 .login-premium .auth-story .brand{max-width:230px;}
 .login-premium .auth-story h1{font-size:27px;line-height:1.1;margin-bottom:0;}
 .login-premium .auth-story h1 br{display:none;}
 .login-premium .auth-story p,.login-premium .auth-story .eyebrow{display:none;}
 .login-premium .auth-form{padding:23px 25px;}
 .login-premium .auth-form h2{font-size:27px;}
}
@media(max-width:720px) and (max-height:760px){
 .login-premium .auth-story{padding:14px 22px;}
 .login-premium .auth-story>div{display:none;}
 .login-premium .auth-story .brand{max-width:215px;margin:auto;}
 .login-premium .auth-form{padding-top:19px;padding-bottom:19px;}
 .login-premium .secure-note{display:none;}
}
@media(max-width:370px){
 .auth:has(.login-premium){padding-left:8px;padding-right:8px;}
 .login-premium .auth-form{padding-left:21px;padding-right:21px;}
 .login-premium .auth-form h2{font-size:25px;}
}

/* Contenção horizontal no celular sem bloquear a rolagem das tabelas. */
@media(max-width:850px){
 html{max-width:100%;overflow-x:clip;overscroll-behavior-x:none;}
 body{width:100%;max-width:100%;min-width:0;overflow-x:clip;}
 .main-shell,.content,.topbar,.dashboard-grid,.panel{min-width:0;max-width:100%;}
 .table-scroll{max-width:100%;overflow-x:auto;overscroll-behavior-x:contain;}
 .auth-layout,.login-premium{min-width:0;max-width:100%;width:100%;}
 .auth-story,.auth-form{min-width:0;max-width:100%;}
 .auth-story .brand,.auth-story .product-logo{max-width:100%;}
 .auth-form form,.auth-form .field,.password-control{min-width:0;max-width:100%;}
 .auth-form input,.auth-form .button{max-width:100%;}
 .auth-form h2,.auth-story h1,.auth-help,.human-check-status{overflow-wrap:anywhere;}
 .auth-form .alert{overflow-wrap:anywhere;}
}
@media(min-width:721px) and (max-width:850px){
 .login-premium{grid-template-columns:minmax(0,1fr) minmax(0,1fr);}
}
@media(max-width:720px){
 .login-premium{grid-template-columns:minmax(0,1fr);max-width:460px;}
 .login-premium:before{inset:0;filter:blur(12px);}
}
@supports not (overflow:clip){
 @media(max-width:850px){html,body{overflow-x:hidden;}}
}

/* Reserva o espaço do Turnstile antes da chegada do iframe. */
.login-premium .human-check-status{min-height:32px;}
.login-premium .human-check .cf-turnstile{min-height:65px;}
@media(min-width:721px){
 html:has(.login-premium){scrollbar-gutter:stable;}
 .auth:has(.login-premium){grid-template-columns:minmax(0,1fr);}
 .login-premium{grid-template-columns:minmax(0,1.04fr) minmax(0,1fr);width:100%;}
 .login-premium .human-check{min-height:103px;}
 .login-premium .auth-story,.login-premium .auth-form{min-width:0;}
}

/* Painel alinhado à identidade do login: azul, turquesa e relevo discreto. */
.app{background:radial-gradient(ellipse at 90% 0,#d8f0f578,transparent 44%),linear-gradient(140deg,#f0f4fa,#f5f9fc 60%,#eef7f7);color:#203f5a;}
.app .sidebar{background:radial-gradient(ellipse at 0 0,#246bc34a,transparent 44%),radial-gradient(ellipse at 110% 100%,#00b5a747,transparent 60%),linear-gradient(160deg,#10345e,#092942 65%,#07333b);border-right:1px solid #a2e8f334;box-shadow:5px 0 24px #133e641a;}
.app .sidebar .brand{border-radius:13px;padding:5px;background:linear-gradient(140deg,#fff,#d6e5f0);box-shadow:0 3px 0 #436a8a,0 10px 18px #00142770;}
.app .sidebar .product-logo{border-radius:9px;}
.app .workspace-label{color:#9ad0dd;font-size:10px;letter-spacing:2px;}
.app .nav-link,.app .nav-group summary{color:#c3d9e7;}
.app .nav-link.active{border-left:3px solid #ff9d53;background:linear-gradient(110deg,#2266aa85,#10aaa22b);color:#fff;box-shadow:inset 0 1px 0 #93daff30,0 3px 8px #0013273b;}
.app .nav-link:hover,.app .nav-group summary:hover{background:#5ac2df19;color:#fff;}
.app .nav-children{border-left-color:#65cfd133;}
.app .nav-children a{color:#adc9db;}
.app .nav-children a.selected{background:linear-gradient(110deg,#287ab34a,#09b5a01a);color:#b8fff1;box-shadow:inset 0 1px 0 #ffffff12;}
.app .sidebar-bottom{background:#0b2943;border-top:1px solid #85d9ea21;color:#9bc5d9;}
.app .tiny-dot{background:#36d5b9;box-shadow:0 0 8px #36d5b973;}
.app .topbar{background:linear-gradient(120deg,#fff,#f8fcff);border-bottom:1px solid #dce7f0;box-shadow:0 4px 16px #17447006;}
.app .topbar-context{color:#69839c;}
.app .avatar{background:linear-gradient(145deg,#e3f5fa,#c8e3ec);border:1px solid #c5e2eb;box-shadow:inset 0 1px 1px #fff,0 2px 0 #b7d5e0;color:#176482;}
.app .breadcrumb{color:#7b91a6;}
.app .page-heading h1{color:#153c64;font-weight:750;letter-spacing:-1px;text-shadow:0 1px 0 #fff,0 2px 0 #d4e1ee,0 5px 10px #173b6410;}
.app .page-heading .eyebrow{color:#238a99;font-size:10px;letter-spacing:2px;}
.app .page-heading p{color:#73899d;}
.app .panel,.app .stat-card{background:linear-gradient(150deg,#fff,#fcfdff);border:1px solid #dce6f0;border-radius:17px;box-shadow:inset 0 1px 0 #fff,0 3px 0 #dfe8f1,0 11px 27px #173c6410;}
.app .panel{margin-bottom:25px;}
.app .panel-heading{border-bottom-color:#e9eff6;}
.app .panel-heading h2,.app .form-section h2{color:#234c70;font-weight:650;}
.app .stat-card{padding:22px;transition:transform .16s,box-shadow .16s;}
.app a.stat-card:hover{transform:translateY(-2px);box-shadow:inset 0 1px 0 #fff,0 5px 0 #d4e3ed,0 16px 30px #173c641c;}
.app .stat-card>strong{color:#183f68;font-weight:650;text-shadow:0 1px 0 white,0 2px 0 #d5e2ed;}
.app .stat-card>div{color:#657f98;}
.app .stat-card .icon{color:#229aab;filter:drop-shadow(0 1px 0 #fff);}
.app .stat-card small{color:#8297ab;}
.app .overview-income{background:linear-gradient(140deg,#fff,#edf9f7);border-top:3px solid #22aa9b;}
.app .overview-expense{background:linear-gradient(140deg,#fff,#fff5f1);border-top:3px solid #d38b70;}
.app .overview-balance{background:linear-gradient(140deg,#fff,#edf5fe);border-top:3px solid #3886c8;}
.app .overview-attention{border-top:3px solid #e1ad63;}
.app .button.primary{border:1px solid #167d9f;border-radius:10px;background:linear-gradient(120deg,#1658a5,#087f95 75%,#099f96);box-shadow:inset 0 1px 0 #a0eaff70,0 3px 0 #0d4c75,0 8px 15px #176b9e19;text-shadow:0 1px 2px #003f6f80;}
.app .button.primary:hover{background:linear-gradient(120deg,#1c67b8,#098aa3 75%,#0aa99e);}
.app .button.primary:active{transform:translateY(2px);box-shadow:inset 0 1px 0 #a0eaff60,0 1px 0 #0d4c75;}
.app .button.secondary{border-radius:10px;border-color:#d3e1ec;color:#496e8e;background:linear-gradient(155deg,#fff,#f2f7fb);box-shadow:inset 0 1px 0 #fff,0 2px 0 #e2eaf2;}
.app .button.quiet{color:#187d9b;}
.app .badge{border:1px solid #d6e9eb;background:linear-gradient(140deg,#f0f8fa,#e1f2ef);color:#397c84;border-radius:7px;}
.app table th{background:#f1f6fa;color:#637f96;}
.app table td{border-bottom-color:#ecf1f6;}
.app tbody tr:hover td{background:#f4f9fc;}
.app input:not([type=checkbox]):not([type=hidden]),.app select,.app textarea{border-color:#d1dfeb;border-radius:10px;background:linear-gradient(180deg,#f9fbfd,#fff);box-shadow:inset 0 1px 3px #173c6408,0 1px 0 #fff;}
.app input:focus,.app select:focus,.app textarea:focus{outline-color:#24a8bc5c;border-color:#42adbc;}
.app .field{color:#52728f;}
.app .field-help{font-size:11px;font-weight:400;color:#7990a5;line-height:1.6;}
.app .form-footer{border-color:#dce7ef;}
.app .text-link{color:#167c9c;}
.app .congregant-complete{display:flex;align-items:center;justify-content:space-between;gap:24px;border-left:3px solid #1aa797;background:linear-gradient(130deg,#fff,#edf9f8);}
.app .congregant-complete h2{font-size:20px;margin-bottom:8px;color:#235a71;}
.app .congregant-complete p{font-size:13px;margin:0;max-width:700px;}
.app .footer{color:#7f96aa;}
@media(max-width:850px){.app .content{padding:23px 18px;}.app .stat-card{padding:19px;}.app .page-heading h1{font-size:32px;}}
@media(max-width:600px){.app .congregant-complete{align-items:flex-start;flex-direction:column;gap:18px;}.app .congregant-complete .button{white-space:normal;width:100%;}.app .page-heading h1{font-size:29px;}}
@media(prefers-reduced-motion:reduce){.app .stat-card{transition:none;}}
