:root{--nav:#111827;--bg:#eef2f7}body{background:var(--bg);font-family:Arial,sans-serif}.navbar{background:linear-gradient(90deg,#0f172a,#1d4ed8)}.panel{background:#fff;border-radius:14px;padding:18px;box-shadow:0 5px 20px #0001}.toolbar{display:grid;grid-template-columns:1fr 260px auto;gap:10px;margin-bottom:14px}.stat{background:#fff;border-radius:14px;padding:20px;box-shadow:0 5px 20px #0001}.stat strong{font-size:2rem}.badge-cat{white-space:normal}.login-wrap{min-height:100vh;display:grid;place-items:center;background:linear-gradient(135deg,#0f172a,#2563eb)}.login-card{background:#fff;padding:32px;border-radius:18px;width:min(390px,92vw);box-shadow:0 20px 50px #0005;text-align:center}.login-card small{display:block;margin-top:14px;color:#64748b}.picker{max-height:420px;overflow:auto}.pick,.sel,.saved{display:flex;justify-content:space-between;align-items:center;padding:10px;border-bottom:1px solid #e5e7eb}.cat-Calmo{background:#70be48!important}.cat-Mediano{background:#ed7d31!important}.cat-Cantor{background:#4b4b4b!important;color:#fff}.cat-Animado{background:#fff200!important}.cat-Suspensa{background:#f00!important;color:#fff}@media(max-width:800px){.toolbar{grid-template-columns:1fr}.table{font-size:.82rem}}@media print{nav,#dash,#songs,.col-lg-5,.btn,hr,#savedSets,h5:last-of-type{display:none!important}#sets{display:block!important}.col-lg-7{width:100%}.panel{box-shadow:none}}.picker-legend{display:flex;justify-content:space-between;gap:8px;font-size:.76rem;color:#64748b;background:#f8fafc;border:1px solid #e2e8f0;border-radius:8px;padding:7px 9px;margin-bottom:6px}.pick-card{border:1px solid #dbe2ea;border-left-width:7px;border-radius:10px;margin:7px 2px;padding:10px;background:#fff!important;gap:10px}.pick-card.cat-Calmo{border-left-color:#70be48}.pick-card.cat-Mediano{border-left-color:#ed7d31}.pick-card.cat-Cantor{border-left-color:#4b4b4b;color:#111827}.pick-card.cat-Animado{border-left-color:#e8d800}.pick-card.cat-Suspensa{border-left-color:#f00}.pick-main{min-width:0;flex:1}.pick-title{display:flex;align-items:center;gap:8px;line-height:1.15}.qty-pill{display:inline-grid;place-items:center;min-width:30px;height:30px;padding:0 7px;border-radius:999px;background:#0f766e;color:#fff;font-weight:800;font-size:.85rem}.pick-meta{display:grid;grid-template-columns:70px 1fr;gap:2px 12px;font-size:.76rem;color:#475569;margin-top:6px}.pick-meta span:first-child{grid-column:1}.pick-meta span:nth-child(2){grid-column:2}.pick-meta span:nth-child(3){grid-column:2}.pick-type{display:inline-block;margin-top:6px;padding:2px 7px;border-radius:999px;background:#e2e8f0;color:#334155;font-size:.70rem;font-weight:700}.pick-add{flex:0 0 auto}@media(max-width:600px){.picker-legend{display:block}.picker-legend span{display:block}.pick-card{align-items:flex-start}.pick-meta{grid-template-columns:1fr}.pick-meta span{grid-column:1!important}.pick-add{margin-top:2px}}
.set-info-box{background:#f8fafc;border:1px solid #dbe2ea;border-radius:12px;padding:14px}.set-info-box .form-label{font-size:.82rem;font-weight:700;color:#475569;margin-bottom:4px}.set-picker-panel h5{margin-bottom:2px}.saved-set-card{border:1px solid #e2e8f0;border-radius:10px;margin-bottom:8px;padding:12px}.saved-info{min-width:0}.saved-actions{display:flex;gap:7px;flex:0 0 auto}.sel{border:1px solid #e2e8f0;border-radius:9px;margin-bottom:7px;background:#fff}.sel small{color:#64748b;margin-left:5px}@media(max-width:600px){.saved-set-card{align-items:flex-start;gap:10px}.saved-actions{flex-direction:column}.set-info-box{padding:11px}}
.login-brand{display:flex;justify-content:center;align-items:center;gap:18px;margin-bottom:18px}.login-brand img{width:105px;height:88px;object-fit:contain;border-radius:12px}.login-brand img:last-child{background:#07142d}.nav-brand{display:flex;align-items:center;gap:10px;color:#fff}.nav-brand img{width:48px;height:42px;object-fit:contain;border-radius:7px}.nav-brand img:last-child{background:#07142d}.nav-brand div{display:flex;flex-direction:column;line-height:1.05}.nav-brand small{font-size:.68rem;opacity:.82;margin-top:3px}.selected-song{gap:12px;align-items:center}.selected-song-info{min-width:0;flex:1;display:flex;flex-direction:column}.selected-song-info small{margin:3px 0 0;color:#64748b}.selected-tone{width:145px;flex:0 0 145px}.selected-tone label{display:block;font-size:.68rem;font-weight:700;color:#475569;margin-bottom:2px}.selected-actions{display:flex;gap:5px;flex:0 0 auto}@media(max-width:700px){.navbar{align-items:flex-start}.nav-brand img{width:40px;height:36px}.nav-brand div{max-width:130px}.selected-song{align-items:flex-start;flex-wrap:wrap}.selected-song-info{flex-basis:calc(100% - 40px)}.selected-tone{width:calc(100% - 125px);flex:1}.selected-actions{margin-left:auto}.login-brand img{width:88px;height:74px}}
.tag-wrap{display:flex;flex-wrap:wrap;gap:5px}.song-tag{display:inline-flex;align-items:center;min-height:24px;padding:3px 9px;border-radius:999px;background:color-mix(in srgb,var(--tag-color) 16%,white);border:1px solid var(--tag-color);color:#1f2937;font-size:.72rem;font-weight:700;line-height:1.15}.song-tag::before{content:"";width:7px;height:7px;border-radius:50%;background:var(--tag-color);margin-right:6px}.tag-choice-box{display:flex;flex-wrap:wrap;gap:8px;max-height:180px;overflow:auto;border:1px solid #dee2e6;border-radius:8px;padding:10px;background:#f8fafc}.tag-check{cursor:pointer}.tag-check input{position:absolute;opacity:0;pointer-events:none}.tag-check .song-tag{opacity:.48;transition:.15s}.tag-check input:checked+.song-tag{opacity:1;box-shadow:0 0 0 2px color-mix(in srgb,var(--tag-color) 25%,transparent)}.tag-color-preview{display:inline-block;width:30px;height:30px;border-radius:8px;border:1px solid #cbd5e1}.form-control-color{width:58px;min-width:58px}.table td .tag-wrap{min-width:180px}@media(max-width:800px){.table td .tag-wrap{min-width:130px}.song-tag{font-size:.66rem}}

.module-head{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:18px}.module-head h5{margin:0}.church-card{display:flex;justify-content:space-between;gap:16px;border:1px solid #e2e8f0;border-radius:12px;padding:14px;margin-bottom:10px;background:#fff}.church-card small{display:block;color:#64748b;margin-top:4px}.church-actions{display:flex;gap:6px;align-items:center}@media(max-width:700px){.church-card,.module-head{align-items:stretch;flex-direction:column}.church-actions{justify-content:flex-end}}

.portal-back{position:fixed;right:18px;bottom:18px;background:#c9a45f;color:#111;padding:10px 15px;border-radius:6px;text-decoration:none;font-weight:700;z-index:1080;box-shadow:0 8px 24px #0003}

/* Identidade visual Ministerio de Musica */
.login-brand .logo-ministerio{width:145px;height:120px;background:#000;border-radius:16px;box-shadow:0 10px 28px #0002}
.login-brand .logo-igreja{width:78px;height:68px;background:transparent}
.nav-brand .logo-ministerio{width:58px;height:50px;background:#000;border-radius:9px}
.nav-brand .logo-igreja{width:38px;height:34px;background:transparent}
@media(max-width:700px){.login-brand .logo-ministerio{width:118px;height:100px}.login-brand .logo-igreja{width:68px;height:58px}.nav-brand .logo-ministerio{width:48px;height:42px}.nav-brand .logo-igreja{width:32px;height:29px}}

/* Menu agrupado do Ministerio de Musica */
.ministry-dropdown{min-width:210px;border:0;box-shadow:0 14px 32px #0003;padding:8px}
.ministry-dropdown .dropdown-item{border-radius:7px;padding:9px 12px;font-weight:600}
.ministry-dropdown .dropdown-item:hover{background:#eef2ff;color:#1d4ed8}
#ministryNav.active{box-shadow:0 0 0 2px rgba(255,255,255,.45) inset}
.permission-group{background:#fff;border:1px solid #dbe3ee;border-left:4px solid #d3aa39;border-radius:9px;padding:12px}
@media(max-width:700px){.ministry-dropdown{min-width:190px}}

/* Repertorio automatico sugestivo */
.auto-set-panel{border-left:5px solid #d3aa39;background:linear-gradient(90deg,#fffdf5 0,#fff 38%)}
.auto-set-head{display:flex;justify-content:space-between;align-items:flex-start;gap:16px}
.auto-set-panel .form-label{font-size:.82rem;font-weight:700;color:#475569;margin-bottom:4px}
.auto-set-panel #autoSetMessage:empty{display:none}
@media(max-width:600px){.auto-set-head{display:block}.auto-set-panel .btn{width:100%}}


/* Dias de culto obrigatorios para Setlists */
.worship-status-panel{border-left:5px solid #1d4ed8}
.worship-day-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(155px,1fr));gap:10px}
.worship-day-icon{min-height:142px;border:2px solid #dbe3ee;border-radius:14px;background:#fff;padding:12px;text-align:center;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;transition:.15s;cursor:pointer;color:#1f2937}
.worship-day-icon:hover{transform:translateY(-1px);box-shadow:0 6px 18px #0001}
.worship-day-icon.done{border-color:#22c55e;background:#f0fdf4}
.worship-day-icon.pending{border-color:#eab308;background:#fffdf0}
.worship-calendar{font-size:1.8rem;line-height:1}.worship-date{font-weight:800;font-size:.95rem}.worship-title{font-size:.78rem;line-height:1.15}.worship-time{font-size:.72rem;color:#64748b}.worship-state{margin-top:5px;font-size:.72rem;font-weight:800}.done .worship-state{color:#15803d}.pending .worship-state{color:#a16207}
.worship-empty{grid-column:1/-1;border:1px dashed #cbd5e1;border-radius:10px;padding:18px;text-align:center;color:#64748b;background:#f8fafc}
.selected-worship-day{border:1px dashed #f59e0b;background:#fffbeb;color:#92400e;border-radius:10px;padding:10px 12px;font-size:.85rem}
.selected-worship-day.selected{border-style:solid;border-color:#22c55e;background:#f0fdf4;color:#166534}
@media(max-width:520px){.worship-day-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.worship-day-icon{min-height:132px;padding:9px}}

/* Compartilhamento sofisticado do setlist pelo WhatsApp */
.btn-whatsapp{background:#128c4a;border-color:#128c4a;color:#fff;font-weight:700;display:inline-flex;align-items:center;gap:8px;box-shadow:0 5px 14px rgba(18,140,74,.18)}
.btn-whatsapp:hover,.btn-whatsapp:focus{background:#0d783f;border-color:#0d783f;color:#fff}
.wa-icon{display:inline-grid;place-items:center;width:21px;height:21px;border:2px solid currentColor;border-radius:50%;font-size:.72rem;line-height:1}

.worship-day-icon .worship-leader{display:block;font-size:.78rem;line-height:1.25;margin-top:.25rem;opacity:.9;font-weight:600}
#setResponsibleLeader{font-weight:600;color:#163a5f}

.notification-settings-box{border:1px solid #d9e2ec;border-radius:14px;padding:14px;background:#f8fafc}.notification-settings-box .form-check-input{width:2.6em;height:1.35em}

/* Escala mensal automatica de cultos */
.monthly-worship-note{display:flex;flex-wrap:wrap;gap:.45rem 1rem;align-items:center;padding:.85rem 1rem;border:1px solid #d7dee8;border-radius:12px;background:#f8fafc}.monthly-worship-note span{color:#526172;font-size:.9rem}.monthly-worship-header{display:flex;align-items:center;justify-content:space-between;padding:.55rem .1rem .8rem}.monthly-worship-header b{text-transform:capitalize;font-size:1.05rem}.monthly-worship-header small{display:block;color:#6b7280}.monthly-worship-row{display:grid;grid-template-columns:minmax(220px,1fr) minmax(280px,1.25fr) auto;gap:14px;align-items:end;padding:14px 0;border-top:1px solid #e5e7eb}.monthly-worship-row.past{opacity:.62}.monthly-worship-info{display:flex;flex-direction:column;gap:3px}.monthly-worship-info small,.monthly-worship-assignment small{color:#667085}.monthly-worship-assignment label{font-size:.82rem;font-weight:600;margin-bottom:4px}.worship-auto-badge{align-self:flex-start;border-radius:999px;background:#eef5ff;color:#245a9b;font-size:.72rem;font-weight:700;padding:2px 8px}.monthly-worship-row.past .worship-auto-badge{background:#f1f3f5;color:#6b7280}.monthly-worship-save{min-height:38px;white-space:nowrap}@media(max-width:800px){.monthly-worship-row{grid-template-columns:1fr}.monthly-worship-save{width:100%}}

.worship-history-panel{border-top:1px solid #dfe5ec;padding-top:18px}.worship-history-head{display:flex;align-items:end;justify-content:space-between;gap:14px;flex-wrap:wrap}.worship-history-head .form-select{max-width:270px}.worship-history-summary{display:flex;gap:8px 16px;flex-wrap:wrap;align-items:center;margin:14px 0 8px;padding:10px 12px;border-radius:10px;background:#f8fafc;border:1px solid #e3e8ef}.worship-history-summary span{font-size:.85rem;color:#586779}.worship-history-list{border-top:1px solid #e5e7eb;margin-top:10px}.worship-history-row{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:12px 2px;border-bottom:1px solid #edf0f3}.worship-history-row>div{display:flex;flex-direction:column;gap:3px}.worship-history-row small{color:#667085}.history-set-status{font-size:.78rem;font-weight:700;border-radius:999px;padding:4px 9px;white-space:nowrap}.history-set-status.done{background:#e8f6ee;color:#19733a}.history-set-status.missing{background:#f2f4f7;color:#667085}.worship-history-empty{padding:16px 2px}@media(max-width:700px){.worship-history-head{align-items:stretch}.worship-history-head .form-select{max-width:none;width:100%}.worship-history-row{align-items:flex-start;flex-direction:column}}


/* Equipe por culto */
.monthly-worship-row-team{grid-template-columns:minmax(210px,1fr) minmax(220px,.8fr) minmax(0,2.4fr) auto;align-items:start}
.monthly-team-grid{display:grid;grid-template-columns:repeat(3,minmax(140px,1fr));gap:.55rem .7rem;min-width:0}
.monthly-team-field{min-width:0}
.monthly-team-field label{display:block;font-size:.72rem;font-weight:700;color:#64748b;margin-bottom:.18rem}
.monthly-worship-row-team .monthly-worship-save{align-self:center;white-space:nowrap}
.worship-history-row small{display:block}
@media(max-width:1100px){.monthly-worship-row-team{grid-template-columns:1fr 1fr}.monthly-team-grid{grid-column:1/-1}.monthly-worship-row-team .monthly-worship-save{justify-self:start}}
@media(max-width:700px){.monthly-worship-row-team{grid-template-columns:1fr}.monthly-team-grid{grid-template-columns:1fr 1fr;grid-column:auto}.monthly-worship-row-team .monthly-worship-save{width:100%}}
@media(max-width:430px){.monthly-team-grid{grid-template-columns:1fr}}

/* Compartilhamento da escala mensal */
.monthly-worship-note{display:flex;align-items:center;justify-content:space-between;gap:14px;flex-wrap:wrap}.monthly-worship-note>div{display:flex;flex-direction:column;gap:2px}.monthly-worship-note .btn-whatsapp{white-space:nowrap}

/* Pré-visualização e identidade visual da escala mensal */
.monthly-schedule-actions{display:flex;gap:.55rem;flex-wrap:wrap}
.schedule-preview-overlay{position:fixed;inset:0;background:rgba(0,0,0,.82);z-index:9999;display:flex;align-items:center;justify-content:center;padding:24px;backdrop-filter:blur(5px)}
.schedule-preview-card{width:min(96vw,1500px);max-height:94vh;background:#0d0e10;border:1px solid #b89548;border-radius:18px;box-shadow:0 28px 80px rgba(0,0,0,.58);display:flex;flex-direction:column;overflow:hidden}
.schedule-preview-head{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:18px 22px;border-bottom:1px solid rgba(213,173,85,.35);color:#fff}.schedule-preview-head h5{margin:0;color:#f0d187}.schedule-preview-head small{color:#a8a8a8}
.schedule-preview-body{flex:1;overflow:auto;padding:16px;background:#18191b;text-align:center}.schedule-preview-body img{max-width:100%;height:auto;display:block;margin:auto;border-radius:8px;box-shadow:0 10px 36px rgba(0,0,0,.45)}.schedule-preview-loading{padding:70px 20px;color:#d8c38d;font-weight:700}
.schedule-preview-actions{display:flex;justify-content:flex-end;gap:10px;flex-wrap:wrap;padding:14px 20px;border-top:1px solid rgba(213,173,85,.35);background:#0a0b0c}
@media(max-width:700px){.schedule-preview-overlay{padding:8px}.schedule-preview-card{max-height:98vh;border-radius:12px}.schedule-preview-actions .btn{flex:1 1 100%}}


/* ===== EBD sofisticada ===== */
.ebd-panel{background:linear-gradient(180deg,#fff 0,#fbfcfe 100%)}.ebd-head{padding-bottom:14px;border-bottom:1px solid #e7ebf0}.ebd-kicker{display:block;font-size:.68rem;letter-spacing:.16em;font-weight:800;color:#a47a22;margin-bottom:4px}.ebd-study-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(330px,1fr));gap:16px}.ebd-study-card{position:relative;background:#fff;border:1px solid #e1e6ed;border-left:5px solid #94a3b8;border-radius:16px;padding:18px;box-shadow:0 8px 24px rgba(15,23,42,.055);display:flex;flex-direction:column;min-height:300px;overflow:hidden}.ebd-study-card.open{border-left-color:#2563eb}.ebd-study-card.progress{border-left-color:#d99718}.ebd-study-card.done{border-left-color:#16a34a;background:linear-gradient(145deg,#fff 0,#f4fbf6 100%)}.ebd-study-card.closed{border-left-color:#64748b}.ebd-study-card.cancelled{border-left-color:#dc2626;background:#fffafa}.ebd-card-top{display:flex;justify-content:space-between;gap:10px;align-items:center;margin-bottom:12px}.ebd-status{font-size:.72rem;font-weight:800;border-radius:999px;padding:5px 9px;background:#eef2f7;color:#475569}.ebd-status.open{background:#eaf2ff;color:#1d4ed8}.ebd-status.progress{background:#fff5da;color:#9a6700}.ebd-status.done{background:#eaf8ee;color:#15803d}.ebd-status.closed{background:#eef1f4;color:#475569}.ebd-status.cancelled{background:#feecec;color:#b91c1c}.ebd-reference{font-size:.75rem;color:#7a8797;font-weight:600;text-align:right}.ebd-study-card h3{font-size:1.15rem;margin:0 0 8px;color:#172033}.ebd-desc{font-size:.88rem;color:#657287;line-height:1.45;min-height:38px}.ebd-meta{display:grid;grid-template-columns:1fr 1fr;gap:7px 12px;font-size:.8rem;color:#4b5b70;margin:8px 0 14px}.ebd-card-progress{display:flex;justify-content:space-between;gap:12px;border-top:1px solid #edf0f4;border-bottom:1px solid #edf0f4;padding:10px 0;font-size:.78rem;color:#5e6b7c;margin-top:auto}.ebd-card-actions{display:flex;gap:7px;flex-wrap:wrap;padding-top:13px}.ebd-stat{border:1px solid #e1e6ec;background:#fff;border-radius:14px;padding:14px 16px;box-shadow:0 5px 16px rgba(15,23,42,.04)}.ebd-stat span{display:block;font-size:.75rem;color:#728095;font-weight:700}.ebd-stat strong{font-size:1.55rem;color:#172033}.ebd-empty{grid-column:1/-1;text-align:center;padding:35px;border:1px dashed #cbd5df;border-radius:14px;color:#718096;background:#f8fafc}.ebd-assessment-card{display:flex;justify-content:space-between;gap:12px;align-items:center;border:1px solid #e4e8ed;border-radius:12px;padding:12px 14px;margin-bottom:9px;background:#fff}.ebd-assessment-card small{display:block;color:#6b7787;margin-top:3px}@media(max-width:700px){.ebd-study-grid{grid-template-columns:1fr}.ebd-meta{grid-template-columns:1fr}.ebd-card-top{align-items:flex-start}.ebd-study-card{min-height:0}.ebd-card-actions .btn{flex:1 1 auto}}

/* Carrossel da Home */
.home-carousel-panel{background:linear-gradient(180deg,#fff,#fbfcfe)}.home-carousel-kicker{display:block;font-size:.68rem;letter-spacing:.16em;font-weight:800;color:#a47a22;margin-bottom:4px}.home-carousel-tip{margin:14px 0 18px;padding:10px 13px;border:1px solid #eadab9;border-radius:10px;background:#fffaf0;color:#7a5d22;font-size:.84rem}.home-carousel-admin-list{display:grid;gap:11px}.home-carousel-admin-item{display:grid;grid-template-columns:150px minmax(0,1fr) auto;gap:15px;align-items:center;padding:11px;border:1px solid #e4e8ee;border-radius:14px;background:#fff;box-shadow:0 5px 16px rgba(15,23,42,.04)}.home-carousel-admin-item.inactive{opacity:.6}.home-carousel-thumb{width:150px;height:88px;border-radius:10px;overflow:hidden;background:#111}.home-carousel-thumb img{width:100%;height:100%;object-fit:cover}.home-carousel-info{display:flex;flex-direction:column;gap:3px;min-width:0}.home-carousel-info b{font-size:.95rem}.home-carousel-info small{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:620px}.home-carousel-actions{display:flex;gap:5px;flex-wrap:wrap;justify-content:flex-end}.home-carousel-empty{padding:35px;border:1px dashed #ccd4df;border-radius:14px;text-align:center;color:#728095;display:grid;gap:4px}.home-slide-preview{margin-top:10px;height:220px;border-radius:12px;overflow:hidden;background:#111}.home-slide-preview img{width:100%;height:100%;object-fit:cover}@media(max-width:800px){.home-carousel-admin-item{grid-template-columns:110px 1fr}.home-carousel-thumb{width:110px;height:78px}.home-carousel-actions{grid-column:1/-1;justify-content:flex-start}.home-carousel-info small{max-width:55vw}}

/* ===== Layout administrativo 2026 · preserva funcionalidades ===== */
:root{--betel-navy:#07152d;--betel-navy-2:#10284f;--betel-bg:#f4f7fb;--betel-line:#e5eaf1;--betel-text:#0e1a2f;--betel-muted:#718096;--betel-gold:#b9822d;}
body{background:var(--betel-bg);color:var(--betel-text)}
.betel-admin-shell{min-height:100vh;background:var(--betel-bg)}
.betel-topbar{height:148px;background:linear-gradient(115deg,#08152d,#0e2347);display:flex;align-items:center;justify-content:space-between;padding:18px 38px;color:#fff;border-radius:0 0 22px 22px;box-shadow:0 9px 28px rgba(15,34,64,.12);position:relative;z-index:1030}
.betel-topbar-brand{display:flex;align-items:center;gap:22px;min-width:0}.betel-topbar-brand .church-logo-only{width:116px;height:116px;object-fit:contain;border-radius:12px;background:#353535;flex:0 0 auto}.betel-topbar-brand b{display:block;font-size:30px;line-height:1.05;letter-spacing:-.02em}.betel-topbar-brand small{display:block;font-size:17px;margin-top:8px;color:#eef4ff}.betel-topbar-user{display:flex;align-items:center;gap:13px}.topbar-who{font-size:15px;color:#fff;white-space:nowrap}.user-avatar,.topbar-icon-btn{width:46px;height:46px;border-radius:50%;display:grid;place-items:center;background:rgba(255,255,255,.08);border:0;color:#fff;font-size:20px}.topbar-icon-btn{cursor:pointer}.betel-body{display:grid;grid-template-columns:305px minmax(0,1fr);min-height:calc(100vh - 148px)}
.betel-sidebar{background:#fff;border-right:1px solid var(--betel-line);padding:34px 14px 40px;position:relative;z-index:1020}.sidebar-title{font-weight:800;font-size:14px;color:#64748b;margin:0 16px 18px}.sidebar-link{width:100%;border:0;background:transparent;color:#1f2c43;display:flex;align-items:center;gap:15px;padding:15px 18px;margin:3px 0;border-radius:10px;text-align:left;font-size:16px;transition:.18s}.sidebar-link span{font-size:19px;width:22px;text-align:center}.sidebar-link:hover{background:#f4f7fb;color:#07152d}.sidebar-link.active,#dashNav.active,.sidebar-dropdown .sidebar-link.active{background:linear-gradient(135deg,#0d254c,#07152d);color:#fff;box-shadow:0 7px 18px rgba(7,21,45,.15)}#homeProgrammingNav.active,#homeCarouselNav.active{background:#fbf4e8;color:#ad7624;box-shadow:none}.sidebar-dropdown .dropdown-menu{width:245px;border:1px solid #e7ebf0;border-radius:12px;padding:8px}.betel-main{padding:28px 26px 48px;min-width:0}.betel-main .panel{border:1px solid #edf0f4;box-shadow:0 8px 25px rgba(21,39,68,.055);border-radius:20px;background:#fff}.stat.dashboard-stat{min-height:140px;background:#fff;border:1px solid #edf0f4;border-radius:18px;box-shadow:0 7px 22px rgba(21,39,68,.05);display:flex;align-items:center;gap:17px;padding:22px}.dashboard-stat-icon{width:72px;height:72px;border-radius:16px;display:grid;place-items:center;font-size:32px;flex:0 0 auto}.stat-blue .dashboard-stat-icon{background:#e9f2ff;color:#1970e8}.stat-green .dashboard-stat-icon{background:#e9f8ef;color:#159447}.stat-orange .dashboard-stat-icon{background:#fff2df;color:#f09a12}.stat-purple .dashboard-stat-icon{background:#f1ebff;color:#7e49d9}.dashboard-stat-copy small{font-size:14px;color:#40506a}.dashboard-stat-copy strong{font-size:31px;line-height:1.15;color:#07152d}.dashboard-stat-copy em{font-style:normal;font-size:13px;display:block;margin-top:7px}.stat-blue em{color:#1970e8}.stat-green em{color:#159447}.stat-orange em{color:#ee7427}.stat-purple em{color:#7e49d9}.dashboard-feature-row>div{display:flex}.dashboard-feature-row .panel{width:100%;padding:24px}.dashboard-panel-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:14px}.dashboard-panel-head h5,.dashboard-quick-panel h5{font-size:21px;font-weight:800;margin:0 0 16px}.dashboard-panel-head h5{margin:0}.upcoming-admin-item{display:grid;grid-template-columns:92px 1fr;gap:16px;padding:19px 12px;border-bottom:1px solid #e7ebf0}.upcoming-admin-item:last-child{border-bottom:0}.upcoming-date{border-right:1px solid #dfe5ec;text-align:center;padding-right:14px}.upcoming-date small{display:block;color:#65738a;font-weight:700}.upcoming-date b{font-size:27px;color:#a67629}.upcoming-date span{display:block;color:#65738a;font-size:12px}.upcoming-info .type{font-size:12px;letter-spacing:.06em;color:#b57d29;font-weight:800}.upcoming-info h6{font-size:20px;font-weight:800;margin:4px 0}.upcoming-info p{margin:0;color:#6b778c}.quick-access-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px}.quick-access-card{border:1px solid #e4e9ef;border-radius:15px;padding:18px;display:flex;align-items:center;gap:14px;cursor:pointer;background:#fff;transition:.18s;min-height:96px}.quick-access-card:hover{transform:translateY(-2px);box-shadow:0 9px 20px rgba(21,39,68,.07)}.quick-access-card.wide{grid-column:1/-1}.quick-access-icon{width:54px;height:54px;border-radius:13px;display:grid;place-items:center;font-size:25px;background:#eef4ff}.quick-access-card:nth-child(2) .quick-access-icon{background:#f3edff}.quick-access-card:nth-child(3) .quick-access-icon{background:#fff2df}.quick-access-card:nth-child(4) .quick-access-icon{background:#e9f8ef}.quick-access-copy b{display:block;font-size:15px}.quick-access-copy small{color:#6b778c}.portal-back{z-index:1040}
@media(max-width:1050px){.betel-body{grid-template-columns:245px minmax(0,1fr)}.betel-topbar{padding:18px 24px}.betel-topbar-brand .church-logo-only{width:98px;height:98px}.betel-topbar-brand b{font-size:25px}.quick-access-grid{grid-template-columns:1fr}.quick-access-card.wide{grid-column:auto}}
@media(max-width:760px){.betel-topbar{height:auto;min-height:110px;padding:12px 14px;align-items:center;border-radius:0 0 16px 16px}.betel-topbar-brand{gap:10px}.betel-topbar-brand .church-logo-only{width:72px;height:72px}.betel-topbar-brand b{font-size:20px}.betel-topbar-brand small{font-size:13px;margin-top:3px}.topbar-who{display:none}.user-avatar{display:none}.betel-body{display:block}.betel-sidebar{display:flex;gap:6px;overflow-x:auto;padding:10px 10px;border-right:0;border-bottom:1px solid var(--betel-line);position:sticky;top:0}.sidebar-title{display:none}.sidebar-link{width:auto;white-space:nowrap;padding:10px 12px;margin:0}.sidebar-link span{display:none}.sidebar-dropdown{flex:0 0 auto}.betel-main{padding:15px 10px 70px}.stat.dashboard-stat{min-height:112px;padding:16px}.dashboard-stat-icon{width:56px;height:56px;font-size:25px}.quick-access-grid{grid-template-columns:1fr}.upcoming-admin-item{grid-template-columns:72px 1fr}}

/* Ajuste do cabeçalho: ações compactas e sem sobreposição */
.betel-topbar-user{gap:9px;flex:0 0 auto;white-space:nowrap}
.betel-topbar-user .topbar-icon-btn,.betel-topbar-user .user-avatar{width:42px;height:42px;min-width:42px;padding:0;line-height:1;font-size:18px;overflow:hidden}
.betel-topbar-user .topbar-icon-btn:disabled{opacity:1;cursor:default}
.betel-topbar-user .topbar-who{max-width:180px;overflow:hidden;text-overflow:ellipsis}
.betel-topbar-user .btn{white-space:nowrap}
@media(max-width:1100px){.betel-topbar-user .topbar-who,.betel-topbar-user .user-avatar{display:none}.betel-topbar{padding-left:22px;padding-right:22px}}
@media(max-width:760px){.betel-topbar-user{gap:6px}.betel-topbar-user .topbar-icon-btn{width:38px;height:38px;min-width:38px;font-size:16px}.betel-topbar-user .btn{padding:.35rem .6rem;font-size:.78rem}}

/* Menu Ministério de Música no celular: dropdown visível fora da barra horizontal */
@media(max-width:760px){
  .sidebar-dropdown .ministry-dropdown{
    position:fixed !important;
    inset:auto 10px auto 10px !important;
    width:auto !important;
    max-height:70vh;
    overflow-y:auto;
    transform:none !important;
    z-index:2200 !important;
    border-radius:14px;
    box-shadow:0 18px 40px rgba(7,21,45,.28) !important;
  }
  .sidebar-dropdown .ministry-dropdown .dropdown-item{padding:12px 14px;font-size:15px}
}

/* Correção definitiva do submenu Ministério de Música no celular */
@media(max-width:760px){
  #ministryNavGroup{position:static!important}
  #ministryNavGroup .ministry-dropdown.mobile-open{
    display:block!important;
    position:fixed!important;
    left:12px!important;right:12px!important;
    width:auto!important;
    max-width:none!important;
    transform:none!important;
    z-index:9999!important;
    background:#fff!important;
    border:1px solid #dfe5ec!important;
    border-radius:16px!important;
    padding:8px!important;
    box-shadow:0 20px 50px rgba(7,21,45,.30)!important;
    max-height:62vh!important;overflow-y:auto!important;
  }
  #ministryNavGroup .ministry-dropdown.mobile-open .dropdown-item{
    display:block!important;width:100%!important;padding:13px 14px!important;
    border-radius:10px!important;font-size:16px!important;color:#17243b!important;
  }
  #ministryNavGroup .ministry-dropdown.mobile-open .dropdown-item:active{background:#eef4ff!important}
}

/* Ministério de Música mobile: menu portado para o BODY, sempre acima do conteúdo */
@media(max-width:760px){
  body > #mobileMinistryMenu.mobile-open{
    display:block!important;
    position:fixed!important;
    left:12px!important;
    right:12px!important;
    width:auto!important;
    min-width:0!important;
    max-width:none!important;
    margin:0!important;
    transform:none!important;
    z-index:2147483000!important;
    background:#fff!important;
    border:1px solid #dfe5ec!important;
    border-radius:16px!important;
    padding:8px!important;
    box-shadow:0 24px 70px rgba(7,21,45,.38)!important;
    max-height:62vh!important;
    overflow-y:auto!important;
    -webkit-overflow-scrolling:touch;
  }
  body > #mobileMinistryMenu.mobile-open .dropdown-item{
    display:block!important;
    width:100%!important;
    padding:13px 14px!important;
    border-radius:10px!important;
    font-size:16px!important;
    color:#17243b!important;
    background:#fff!important;
  }
  body > #mobileMinistryMenu.mobile-open .dropdown-item:active{background:#eef4ff!important}
}

/* Login: somente logo oficial da Igreja Batista Betel */
.login-brand.login-brand-church-only{justify-content:center}
.login-brand.login-brand-church-only .logo-igreja{width:132px;height:132px;object-fit:contain;border-radius:18px}
@media(max-width:700px){.login-brand.login-brand-church-only .logo-igreja{width:118px;height:118px}}


/* Membros > Ministérios e funções: alinhamento uniforme */
.member-function-grid{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  padding-top:6px;
  align-items:center;
}
.member-function-pill{
  display:inline-flex;
  align-items:center;
  gap:7px;
  min-height:36px;
  padding:6px 11px;
  margin:0;
  border:1px solid #d7dee8;
  border-radius:10px;
  background:#fff;
  line-height:1.15;
  cursor:pointer;
  white-space:nowrap;
}
.member-function-pill .form-check-input{
  position:static!important;
  float:none!important;
  margin:0!important;
  flex:0 0 auto;
}
.member-function-pill span{display:block}
@media(max-width:760px){
  .member-function-grid{gap:7px}
  .member-function-pill{min-height:38px;padding:7px 10px}
}

/* Pré-cadastro público e aprovação de usuários */
.login-prereg-divider{display:flex;align-items:center;gap:10px;color:#94a3b8;font-size:.78rem;margin:15px 0 12px}.login-prereg-divider:before,.login-prereg-divider:after{content:"";height:1px;background:#e2e8f0;flex:1}.prereg-admin-card{display:flex;align-items:center;justify-content:space-between;gap:16px;border:1px solid #e2e8f0;border-radius:14px;padding:14px 16px;margin-bottom:10px;background:#fff}.prereg-admin-card>div:first-child{display:flex;flex-direction:column;gap:3px}.prereg-admin-card small{color:#64748b}@media(max-width:700px){.prereg-admin-card{align-items:flex-start;flex-direction:column}}
