/* Secretaria Fiel V1.4.6 — acessibilidade, navegação e mobile. */
.sf-theme .sf-password-field{position:relative;display:block;width:100%;min-width:0}
.sf-theme .sf-password-field>input{width:100%;min-width:0;padding-right:55px!important;box-sizing:border-box}
.sf-theme .sf-password-toggle{position:absolute;right:4px;top:50%;transform:translateY(-50%);display:grid;place-items:center;width:44px;height:44px;min-height:44px;border:0;border-radius:12px;background:transparent;color:#27514c;cursor:pointer;box-shadow:none;z-index:1}
.sf-theme .sf-password-toggle:hover,.sf-theme .sf-password-toggle:focus-visible{background:#e5f0eb;color:#153c33}
.sf-theme .sf-password-visible .sf-password-toggle{background:#e5f0eb}
.sf-theme .sf-auth-back{display:inline-flex;align-items:center;min-height:44px;margin:-7px 0 10px;color:#27514c;font-weight:800;font-size:14px}
.sf-theme .sf-auth-back:hover{text-decoration:underline}
.sf-theme .sf-page-back{display:grid;place-items:center;flex:none;width:44px;height:44px;border-radius:14px;border:1px solid #c7d8d1;background:#fff;color:#205147;font-size:24px;font-weight:700;line-height:1;box-shadow:0 3px 9px rgba(25,65,53,.06)}
.sf-theme .sf-page-back:hover{background:#e6f1ec}
.sf-theme .v12-topbar-left{min-width:0}
.sf-theme .topbar-title{min-width:0}
.sf-theme .sf-app-context{display:flex;align-items:center;gap:6px;max-width:min(50vw,550px);color:#355c51;font-size:12px;font-weight:700;line-height:1.4;margin-top:4px;overflow:hidden}
.sf-theme .sf-church-indicator{display:inline-block;flex:none;width:7px;height:7px;border-radius:50%;background:#24866b}
.sf-theme .sf-church-name{overflow:hidden;white-space:nowrap;text-overflow:ellipsis;min-width:0}
.sf-theme .sf-church-role{flex:none;font-weight:500;color:#51695f}
.sf-theme .sf-feedback{border-radius:14px;border:1px solid #b5dcca;box-shadow:0 6px 15px rgba(20,61,48,.05);padding:16px 19px;font-weight:750;line-height:1.55;background:#eaf7ee;color:#205b3d}
.sf-theme .sf-feedback.flash-error{background:#fff0ec;border-color:#efc4b8;color:#85391f}
.sf-theme .sf-feedback:focus{outline:none}
.sf-theme .sf-feedback:focus-visible{outline:3px solid #c89a2f;outline-offset:2px}
.sf-theme form.sf-form-submitting{cursor:progress}
.sf-theme form.sf-form-submitting button[type="submit"]{pointer-events:none;cursor:progress;opacity:.78}
.sf-theme .sf-loading-button::before{content:"";display:inline-block;vertical-align:-2px;width:13px;height:13px;margin-right:9px;border:2px solid currentColor;border-right-color:transparent;border-radius:50%;animation:sf146-spin .9s linear infinite}
@keyframes sf146-spin{to{transform:rotate(360deg)}}
.sf-theme .sf-card-filters{display:flex;align-items:end;flex-wrap:wrap;gap:12px;margin:14px 0 18px;padding:15px;border:1px solid #d9d2c3;border-radius:16px;background:#fffdf8}
.sf-theme .sf-card-filters label{display:grid;gap:5px;flex:1 1 210px;min-width:0;font-size:13px;color:#31554b;font-weight:750}
.sf-theme .sf-card-filters label:nth-child(2){flex:0 1 185px}
.sf-theme .sf-card-filters input,.sf-theme .sf-card-filters select{width:100%;min-height:46px;border:1px solid #bacbc2;border-radius:12px;padding:10px 13px;background:white;color:#203f36;font-size:15px}
.sf-theme .sf-card-filters .sf-filter-counter{margin-left:auto;min-height:30px;align-self:center;color:#3b5b51;font-size:13px;font-weight:750}
.sf-theme .cards-grid .class-card[hidden],.sf-theme .teacher-directory tr[hidden]{display:none!important}
.sf-theme .sf-card-filters input:focus-visible,.sf-theme .sf-card-filters select:focus-visible{outline:3px solid #d5a33e;outline-offset:2px}
.sf-theme .sf-password-toggle:focus-visible,.sf-theme .sf-page-back:focus-visible,.sf-theme a:focus-visible,.sf-theme button:focus-visible{outline:3px solid #d4a641;outline-offset:3px}
.sf-theme .btn,.sf-theme .text-action,.sf-theme .sf-recovery-back a,.sf-theme .sf-forgot-link a{min-height:44px}
.sf-theme .sf-recovery-back a,.sf-theme .sf-forgot-link a{display:inline-flex;align-items:center}
.sf-theme .teacher-edit-btn,.sf-theme .class-card-actions a{display:inline-flex;align-items:center;min-height:44px}
.sf-theme .mobile-bottom-nav a,.sf-theme .mobile-bottom-nav button{min-width:44px;min-height:44px;touch-action:manipulation}
.sf-theme input,.sf-theme select,.sf-theme textarea{max-width:100%;font-size:max(16px,1em)}
.sf-theme .auth-card,.sf-theme .panel,.sf-theme .main-area{min-width:0}
.sf-theme .table-scroll{max-width:100%;overscroll-behavior-x:contain;-webkit-overflow-scrolling:touch}
.sf-theme .auth-bg{padding-bottom:max(44px,env(safe-area-inset-bottom))}
@media(max-width:920px){.sf-theme.sf-app.sf-input-focused .mobile-bottom-nav{display:none!important}.sf-theme .main-content{padding-bottom:calc(120px + env(safe-area-inset-bottom))}}
@media(max-width:780px){.sf-theme .sf-app-context{max-width:min(55vw,400px)}.sf-theme .sf-church-role{display:none}.sf-theme .sf-page-back{width:42px;height:42px}.sf-theme .v12-topbar-left{gap:9px}.sf-theme .sf-card-filters{padding:12px}.sf-theme .sf-card-filters label:nth-child(2){flex:1 1 155px}}
@media(max-width:430px){.sf-theme .app-topbar{gap:9px}.sf-theme .topbar-user{padding:4px;min-width:34px}.sf-theme .topbar-title h1{font-size:21px}.sf-theme .sf-app-context{max-width:50vw}.sf-theme .sf-card-filters .sf-filter-counter{margin-left:0}.sf-theme .sf-page-back{width:38px;height:42px}}
@media(prefers-reduced-motion:reduce){.sf-theme .sf-loading-button::before{animation:none}}
@media print{.sf-theme .sf-page-back,.sf-theme .sf-auth-back,.sf-theme .sf-card-filters,.sf-theme .sf-password-toggle{display:none!important}}
/* O título, o menu e o botão Voltar devem permanecer lado a lado no mobile. */
.sf-theme .v12-topbar-left{display:flex;flex-direction:row;align-items:center;gap:10px;min-width:0;flex:1}
.sf-theme .v12-app-menu{flex:none;min-width:42px;min-height:42px}
@media(max-width:430px){.sf-theme .v12-topbar-left{gap:7px}.sf-theme .v12-app-menu{min-width:40px;min-height:40px}.sf-theme .sf-page-back{flex:none}}
