:root{
    --premium-primary:#0f766e;
    --premium-primary-2:#14b8a6;
    --premium-dark:#07111f;
    --premium-slate:#10253d;
    --premium-gold:#d4af37;
    --premium-bg:#eef4f8;
    --premium-card:#ffffff;
    --premium-text:#1f2937;
    --premium-muted:#64748b;
    --premium-border:rgba(15,118,110,.14);
    --premium-shadow:0 22px 70px rgba(15,35,61,.14);
}
*{box-sizing:border-box}
body.igreja-pro-body{background:linear-gradient(135deg,#eef7f7 0%,#f8fafc 42%,#eff6ff 100%);font-family:'Roboto','Helvetica Neue',Arial,sans-serif;color:var(--premium-text)}
.premium-bg-orb{position:fixed;border-radius:999px;filter:blur(18px);opacity:.28;z-index:-1;pointer-events:none;animation:floatOrb 13s ease-in-out infinite}.orb-one{width:380px;height:380px;background:#14b8a6;top:70px;right:90px}.orb-two{width:260px;height:260px;background:#d4af37;bottom:60px;left:280px;animation-delay:-4s}@keyframes floatOrb{0%,100%{transform:translate3d(0,0,0) scale(1)}50%{transform:translate3d(18px,-24px,0) scale(1.05)}}
.igreja-wrapper{background:transparent}.premium-main-header .logo,.premium-main-header .navbar{background:linear-gradient(135deg,#07111f 0%,#123a50 55%,#0f766e 100%)!important}.premium-logo{box-shadow:inset -1px 0 rgba(255,255,255,.12)}.premium-logo .logo-lg{font-size:18px;letter-spacing:.2px}.premium-logo img{height:34px;max-width:46px;object-fit:contain;margin-right:8px;filter:drop-shadow(0 6px 14px rgba(0,0,0,.25))}.premium-navbar{box-shadow:0 12px 35px rgba(7,17,31,.16)}.navbar-status{float:left;color:rgba(255,255,255,.88);padding:15px 12px;font-weight:600}.status-dot{display:inline-block;width:9px;height:9px;border-radius:50%;background:#22c55e;box-shadow:0 0 0 7px rgba(34,197,94,.18);margin-right:8px}.premium-user-menu{border:0;border-radius:18px;box-shadow:var(--premium-shadow);overflow:hidden}.igreja-user-header{background:linear-gradient(135deg,#0f766e,#07111f)!important}.avatar-circle{width:52px;height:52px;border-radius:50%;display:flex;align-items:center;justify-content:center;background:linear-gradient(135deg,#d4af37,#fff3b0);color:#07111f;font-weight:900;margin:0 auto 9px;box-shadow:0 12px 30px rgba(0,0,0,.2)}.avatar-circle.large{width:100px;height:100px;font-size:46px;margin-bottom:20px}
.premium-sidebar{background:linear-gradient(180deg,#07111f 0%,#10253d 53%,#0f342f 100%)!important;box-shadow:14px 0 60px rgba(7,17,31,.22)}.premium-sidebar .sidebar{padding-bottom:30px}.church-panel{margin:18px 14px 14px;padding:16px;border-radius:22px;background:rgba(255,255,255,.08);border:1px solid rgba(255,255,255,.14);display:flex;gap:12px;align-items:center;box-shadow:0 10px 30px rgba(0,0,0,.12)}.church-panel img{width:48px;height:48px;object-fit:contain;border-radius:14px;background:#fff;padding:6px}.church-panel strong{display:block;color:#fff;line-height:1.1}.church-panel small{color:rgba(255,255,255,.68)}.premium-menu>li.header{color:#8fd8cd;background:transparent;font-weight:800;letter-spacing:.14em;font-size:11px}.premium-menu>li>a,.premium-menu .treeview-menu>li>a{color:rgba(255,255,255,.78)!important;border-left:3px solid transparent;transition:all .25s ease}.premium-menu>li>a{padding:13px 18px}.premium-menu>li:hover>a,.premium-menu>li.active>a,.premium-menu .treeview-menu>li.active>a,.premium-menu .treeview-menu>li>a:hover{background:rgba(255,255,255,.09)!important;color:#fff!important;border-left-color:var(--premium-gold);transform:translateX(3px)}.premium-menu .treeview-menu{background:rgba(0,0,0,.12)!important;padding:8px 0}.premium-menu i{width:20px;text-align:center}
.premium-content-wrapper{background:transparent;min-height:calc(100vh - 101px)}.premium-footer{border:0;background:rgba(255,255,255,.72);backdrop-filter:blur(20px);box-shadow:0 -12px 38px rgba(15,35,61,.06)}.premium-header{display:flex;align-items:flex-end;justify-content:space-between;padding:28px 28px 12px}.premium-header h1{font-weight:900;color:#10253d;font-size:28px;margin:0}.premium-header p{margin:6px 0 0;color:var(--premium-muted);font-size:14px}.premium-header .breadcrumb{position:static;float:none;background:rgba(255,255,255,.68);border:1px solid rgba(255,255,255,.7);border-radius:999px;padding:9px 16px;box-shadow:0 10px 30px rgba(15,35,61,.08)}.content{padding:18px 28px 32px}.reveal-up{animation:revealUp .6s cubic-bezier(.2,.8,.2,1) both}.delay-1{animation-delay:.08s}.delay-2{animation-delay:.16s}.delay-3{animation-delay:.24s}@keyframes revealUp{from{opacity:0;transform:translateY(22px)}to{opacity:1;transform:translateY(0)}}
.hero-dashboard{position:relative;overflow:hidden;border-radius:30px;padding:34px;margin-bottom:22px;background:radial-gradient(circle at top right,rgba(212,175,55,.28),transparent 32%),linear-gradient(135deg,#07111f,#0f766e);color:#fff;box-shadow:var(--premium-shadow);display:flex;align-items:center;justify-content:space-between;gap:22px}.hero-dashboard:before{content:"";position:absolute;right:-80px;top:-90px;width:280px;height:280px;border-radius:50%;border:40px solid rgba(255,255,255,.08)}.hero-dashboard h2{font-size:32px;font-weight:900;margin:10px 0}.hero-dashboard p{max-width:680px;color:rgba(255,255,255,.82);font-size:16px}.eyebrow{display:inline-flex;gap:8px;align-items:center;padding:8px 12px;border-radius:999px;background:rgba(255,255,255,.13);border:1px solid rgba(255,255,255,.18);font-weight:800;text-transform:uppercase;letter-spacing:.08em;font-size:11px}.hero-actions{display:flex;gap:10px;flex-wrap:wrap;z-index:1}.btn-premium{background:linear-gradient(135deg,var(--premium-primary),var(--premium-primary-2));border:0;color:#fff!important;border-radius:12px;font-weight:800;box-shadow:0 12px 28px rgba(15,118,110,.28);transition:all .25s ease}.btn-premium:hover{transform:translateY(-2px);box-shadow:0 18px 34px rgba(15,118,110,.34)}.btn-glass{background:rgba(255,255,255,.14);border:1px solid rgba(255,255,255,.24);color:#fff!important;border-radius:12px;font-weight:800;backdrop-filter:blur(12px)}.btn-default{border-radius:10px}.premium-stat-row{margin-bottom:18px}.premium-stat-card{display:block;position:relative;overflow:hidden;margin-bottom:20px;padding:24px;border-radius:26px;background:rgba(255,255,255,.82);border:1px solid rgba(255,255,255,.9);box-shadow:var(--premium-shadow);transition:all .25s ease;color:var(--premium-text);min-height:160px}.premium-stat-card:hover{transform:translateY(-6px);box-shadow:0 28px 80px rgba(15,35,61,.18);color:var(--premium-text)}.premium-stat-card:after{content:"";position:absolute;right:-36px;bottom:-36px;width:110px;height:110px;border-radius:50%;background:linear-gradient(135deg,rgba(20,184,166,.16),rgba(212,175,55,.18))}.premium-stat-card i{width:54px;height:54px;border-radius:18px;display:flex;align-items:center;justify-content:center;background:linear-gradient(135deg,#0f766e,#14b8a6);color:#fff;font-size:24px;box-shadow:0 14px 35px rgba(15,118,110,.25);margin-bottom:15px}.premium-stat-card span{display:block;color:var(--premium-muted);font-weight:700}.premium-stat-card strong{display:block;font-size:29px;line-height:1.2;color:#10253d;margin:4px 0;font-weight:900}.premium-stat-card small{color:var(--premium-muted)}.premium-box{border:0!important;border-radius:26px!important;overflow:hidden;box-shadow:var(--premium-shadow);background:rgba(255,255,255,.86)!important;backdrop-filter:blur(18px)}.premium-box>.box-header{border-bottom:1px solid rgba(15,118,110,.1);padding:18px 22px}.premium-box .box-title{font-weight:900;color:#10253d}.premium-box>.box-body{padding:22px}.module-toolbar{display:flex;align-items:center;justify-content:space-between;gap:12px}.module-toolbar small{color:var(--premium-muted);display:block;margin-top:4px}.quick-actions-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}.quick-actions-grid a{padding:18px;border-radius:20px;background:linear-gradient(135deg,#f8fafc,#ecfeff);border:1px solid rgba(15,118,110,.1);color:var(--premium-text);transition:all .22s ease}.quick-actions-grid a:hover{transform:translateY(-4px);box-shadow:0 18px 45px rgba(15,118,110,.16)}.quick-actions-grid i{font-size:24px;color:var(--premium-primary);display:block;margin-bottom:8px}.quick-actions-grid strong{display:block}.quick-actions-grid small{color:var(--premium-muted)}
.timeline-list{display:flex;flex-direction:column;gap:12px}.timeline-item-mini{border-left:3px solid var(--premium-primary);padding:8px 0 8px 14px;background:linear-gradient(90deg,rgba(20,184,166,.08),transparent);border-radius:0 12px 12px 0}.timeline-item-mini span{display:inline-block;font-size:11px;font-weight:900;color:var(--premium-primary);text-transform:uppercase;letter-spacing:.06em}.timeline-item-mini strong{display:block;color:#10253d}.timeline-item-mini small{color:var(--premium-muted)}.prayer-list{display:flex;flex-direction:column;gap:12px}.prayer-list>div{display:grid;grid-template-columns:32px 1fr;gap:9px;padding:12px;border-radius:16px;background:#f8fafc;border:1px solid #eef2f7}.prayer-list i{color:var(--premium-primary);font-size:18px}.prayer-list strong{display:block}.prayer-list span{grid-column:2;color:var(--premium-muted)}
.premium-filter{margin-bottom:18px}.premium-filter .input-group{max-width:620px;margin-left:auto}.premium-table-wrap{border-radius:18px;border:1px solid rgba(15,118,110,.1);overflow:hidden}.premium-table{margin-bottom:0!important}.premium-table thead th{background:linear-gradient(135deg,#f8fafc,#ecfeff);color:#10253d;font-weight:900;border-bottom:0!important}.premium-table tbody td{vertical-align:middle!important;border-color:#eef2f7!important}.premium-table tbody tr{transition:all .18s ease}.premium-table tbody tr:hover{background:#f0fdfa!important}.record-id{display:inline-block;padding:5px 8px;border-radius:999px;background:#eef7ff;color:#0f766e;font-weight:900}.action-buttons .btn{margin:1px;border-radius:9px}.label-soft{border-radius:999px;padding:5px 9px;font-weight:800}.premium-empty-row{padding:40px!important}.premium-empty-state{text-align:center;max-width:680px;margin:18px auto;padding:54px 34px;border-radius:30px;background:rgba(255,255,255,.86);box-shadow:var(--premium-shadow);border:1px solid rgba(255,255,255,.9)}.premium-empty-state i{font-size:54px;color:var(--premium-primary);margin-bottom:14px}.premium-empty-state h2{font-weight:900;color:#10253d}.premium-empty-state p{color:var(--premium-muted)}
.premium-form .premium-field label{font-weight:800;color:#10253d}.premium-field .form-control,.premium-form .form-control{border-radius:14px;border:1px solid #dbe7ef;box-shadow:none;min-height:42px;transition:all .2s;background:#fff}.premium-field .form-control:focus,.premium-form .form-control:focus{border-color:var(--premium-primary);box-shadow:0 0 0 4px rgba(20,184,166,.13)}.select2-container--default .select2-selection--single{border-radius:14px!important;border:1px solid #dbe7ef!important;min-height:42px;padding:6px}.select2-container--default .select2-selection--single .select2-selection__arrow{height:40px!important}.premium-actions{display:flex;justify-content:flex-end;gap:10px;border-top:1px solid rgba(15,118,110,.1)!important;background:#fbfdff!important;padding:16px 22px!important}.premium-switch label{display:flex;align-items:center;gap:10px;font-weight:800}.premium-switch input{display:none}.premium-switch span{position:relative;width:48px;height:26px;border-radius:999px;background:#cbd5e1;display:inline-block;transition:.2s}.premium-switch span:before{content:"";position:absolute;left:3px;top:3px;width:20px;height:20px;border-radius:50%;background:#fff;transition:.2s;box-shadow:0 4px 10px rgba(0,0,0,.18)}.premium-switch input:checked+span{background:linear-gradient(135deg,var(--premium-primary),var(--premium-primary-2))}.premium-switch input:checked+span:before{transform:translateX(22px)}.premium-detail-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.detail-item{padding:16px;border-radius:18px;background:#f8fafc;border:1px solid #eef2f7}.detail-item.wide{grid-column:1/-1}.detail-item span{display:block;color:var(--premium-muted);font-weight:800;font-size:12px;text-transform:uppercase;letter-spacing:.06em;margin-bottom:7px}.detail-item strong{font-weight:700;color:#10253d;white-space:pre-wrap}.inline-filter label{display:block}.profile-card-premium{padding:34px;border-radius:30px;background:linear-gradient(135deg,#07111f,#0f766e);color:#fff;text-align:center;box-shadow:var(--premium-shadow);position:relative;overflow:hidden}.profile-card-premium:before{content:"";position:absolute;width:180px;height:180px;border:28px solid rgba(255,255,255,.08);border-radius:50%;right:-50px;top:-50px}.profile-card-premium h3{font-weight:900}.profile-card-premium p{color:#d4af37;font-weight:800}.profile-card-premium span{color:rgba(255,255,255,.75)}.visual-preview{display:flex;align-items:center;gap:12px;padding:14px;border-radius:18px;background:#f8fafc;border:1px solid #eef2f7;margin-bottom:16px}.visual-preview img{width:70px;height:70px;object-fit:contain;background:#fff;border-radius:14px;padding:8px}.visual-preview span{font-weight:800;color:#10253d}.schedule-card{position:relative;overflow:hidden;border-radius:26px;background:rgba(255,255,255,.88);box-shadow:var(--premium-shadow);padding:24px;margin-bottom:22px;border:1px solid rgba(255,255,255,.9);transition:.25s}.schedule-card:hover{transform:translateY(-5px)}.day-badge{display:inline-block;padding:7px 12px;border-radius:999px;background:#e6fffb;color:#0f766e;font-weight:900;text-transform:uppercase;font-size:11px;letter-spacing:.08em}.schedule-card h3{font-weight:900;color:#10253d}.schedule-card p{color:var(--premium-muted)}.schedule-meta{margin:8px 0;color:#334155}.schedule-meta i{color:var(--premium-primary);width:20px}.grade-input{text-align:center;font-weight:900}.grade-average{padding:10px 16px;border-radius:999px;font-weight:900}.grade-average.ok{background:#dcfce7;color:#166534}.grade-average.warn{background:#fef9c3;color:#854d0e}.grade-average.bad{background:#fee2e2;color:#991b1b}.portal-card{text-decoration:none!important}.portal-card:hover{text-decoration:none!important}.settings-content .premium-box{margin-bottom:20px}
.premium-login{min-height:100vh;margin:0;background:linear-gradient(135deg,rgba(7,17,31,.9),rgba(15,118,110,.72)),var(--login-bg) center/cover fixed;color:#fff;overflow-x:hidden;font-family:'Roboto','Helvetica Neue',Arial,sans-serif}.premium-login:before{content:"";position:fixed;inset:0;background:radial-gradient(circle at 20% 20%,rgba(212,175,55,.22),transparent 32%),radial-gradient(circle at 80% 30%,rgba(20,184,166,.25),transparent 28%);pointer-events:none}.login-shell{position:relative;z-index:1;min-height:100vh;display:grid;grid-template-columns:1.2fr .8fr;gap:40px;align-items:center;padding:54px max(28px,7vw)}.login-brand-panel h1{font-size:clamp(36px,5vw,68px);line-height:.96;font-weight:900;letter-spacing:-.04em;margin:24px 0 18px;max-width:760px}.login-brand-panel p{font-size:18px;line-height:1.7;color:rgba(255,255,255,.78);max-width:760px}.login-logo-img{height:74px;max-width:180px;object-fit:contain;background:rgba(255,255,255,.9);border-radius:24px;padding:10px;box-shadow:0 22px 60px rgba(0,0,0,.22)}.login-badge{display:inline-flex;gap:8px;align-items:center;padding:10px 14px;border-radius:999px;background:rgba(255,255,255,.12);border:1px solid rgba(255,255,255,.2);margin-left:16px;font-weight:900}.login-feature-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;margin-top:30px;max-width:760px}.login-feature-grid>div{padding:18px;border-radius:22px;background:rgba(255,255,255,.1);border:1px solid rgba(255,255,255,.16);backdrop-filter:blur(12px);transition:.25s}.login-feature-grid>div:hover{transform:translateY(-5px);background:rgba(255,255,255,.16)}.login-feature-grid i{font-size:24px;color:#d4af37}.login-feature-grid strong{display:block;margin-top:8px;font-size:16px}.login-feature-grid small{color:rgba(255,255,255,.72)}.login-card-premium{background:rgba(255,255,255,.92);color:#10253d;border-radius:34px;padding:34px;box-shadow:0 34px 120px rgba(0,0,0,.35);border:1px solid rgba(255,255,255,.75);backdrop-filter:blur(22px);animation:revealUp .7s both}.login-card-header h2{font-weight:900;margin:0}.login-card-header p{color:var(--premium-muted);margin:8px 0 22px}.input-premium{position:relative}.input-premium label{font-weight:900}.input-premium i{position:absolute;left:14px;bottom:14px;color:var(--premium-primary)}.input-premium input{padding-left:40px;border-radius:16px;height:48px;border:1px solid #dbe7ef}.login-demo-users{margin-top:18px;padding:16px;border-radius:18px;background:#f8fafc;border:1px solid #e2e8f0;color:#334155}.login-demo-users strong,.login-demo-users span{display:block}.login-demo-users span{font-size:12px;margin-top:5px}.back-site{display:inline-block;margin-top:18px;color:#0f766e;font-weight:900}.login-orb{position:fixed;border-radius:50%;filter:blur(8px);background:rgba(212,175,55,.28);animation:floatOrb 10s ease-in-out infinite}.login-orb-a{width:190px;height:190px;left:7%;top:12%}.login-orb-b{width:280px;height:280px;right:8%;bottom:8%;animation-delay:-5s;background:rgba(20,184,166,.22)}
@media(max-width:991px){.login-shell{grid-template-columns:1fr}.quick-actions-grid{grid-template-columns:1fr 1fr}.premium-header{display:block}.premium-header .breadcrumb{margin-top:12px}.hero-dashboard{display:block}.hero-actions{margin-top:18px}.premium-detail-grid{grid-template-columns:1fr}.login-feature-grid{grid-template-columns:1fr}}@media(max-width:767px){.content{padding:14px}.premium-header{padding:20px 14px 8px}.hero-dashboard{border-radius:22px;padding:24px}.quick-actions-grid{grid-template-columns:1fr}.premium-stat-card{min-height:auto}.login-shell{padding:28px 18px}.login-brand-panel h1{font-size:36px}.login-card-premium{padding:24px;border-radius:24px}}

/* V3 modules */
.grades-grid th,.grades-grid td{white-space:nowrap}.final-col{min-width:150px}.final-average{background:#f8fafc!important;font-weight:900;text-align:center}.average-label{display:block;text-align:center;margin-top:6px;color:var(--premium-muted);font-weight:800}.evaluation-pill{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:10px 12px;border-radius:14px;background:#f8fafc;border:1px solid #e2e8f0;margin-bottom:8px}.evaluation-pill span{font-weight:800}.evaluation-pill small{color:var(--premium-muted)}.diary-card,.response-card{padding:18px;border-radius:20px;background:linear-gradient(135deg,#ffffff,#f8fafc);border:1px solid #e2e8f0;margin-bottom:14px;box-shadow:0 10px 30px rgba(15,35,61,.06)}.diary-card span,.response-card span{display:block;color:var(--premium-primary);font-weight:900;font-size:12px;text-transform:uppercase;letter-spacing:.06em}.diary-card h3{font-weight:900;color:#10253d;margin:6px 0}.diary-card footer{margin-top:12px;color:var(--premium-muted);font-weight:700}.question-box{background:#f8fafc;border:1px dashed #cbd5e1;border-radius:16px;padding:14px;margin:12px 0;white-space:pre-wrap}.answer-status{margin-top:12px;padding:12px;border-radius:16px;background:#f0fdfa;border:1px solid #ccfbf1}.report-tabs{display:flex;gap:10px;flex-wrap:wrap;margin:10px 0 20px}.report-tabs a{padding:10px 14px;border-radius:999px;background:#fff;border:1px solid #e2e8f0;color:#10253d;font-weight:900;box-shadow:0 8px 22px rgba(15,35,61,.06)}.report-tabs a.active{background:linear-gradient(135deg,var(--premium-primary),var(--premium-primary-2));color:#fff;border-color:transparent}.premium-switch.compact span{margin:0}.member-portal-details .premium-detail-grid{grid-template-columns:1fr 1fr}.portal-hero{background-image:linear-gradient(135deg,rgba(7,17,31,.9),rgba(15,118,110,.76)),var(--portal-bg);background-size:cover;background-position:center}.payments-content .badge,.homework-content .badge{border-radius:999px;padding:7px 10px}.bg-teal{background:#0f766e;color:#fff}.backup-content code,.menu-settings-content code{background:#eef6f7;border-radius:8px;padding:5px 8px;color:#0f766e}.public-form label{font-weight:800;margin-top:10px}.public-form .form-control{border-radius:14px;min-height:44px;margin-bottom:10px}
@media print{.main-header,.main-sidebar,.content-header,.premium-actions,.box-header .box-tools,.sidebar,.premium-footer,.btn{display:none!important}.content-wrapper{margin-left:0!important}.card-print-area{box-shadow:none!important}.member-id-card{break-inside:avoid;page-break-inside:avoid}}


/* ===== Versao 3.0: documentos, diario, atividades, pagamentos e relatórios ===== */
.settings-anchor-tabs,.report-tabs{display:flex;gap:10px;flex-wrap:wrap;margin:0 0 18px;padding:0;list-style:none}.settings-anchor-tabs a,.report-tabs a{display:inline-flex;align-items:center;gap:8px;padding:10px 15px;border-radius:999px;background:#fff;border:1px solid rgba(15,118,110,.14);font-weight:900;color:#0f766e;box-shadow:0 10px 28px rgba(15,35,61,.08)}.report-tabs li.active a,.settings-anchor-tabs a:hover{background:linear-gradient(135deg,#0f766e,#14b8a6);color:#fff;transform:translateY(-2px)}
.grade-columns-panel{display:flex;gap:12px;flex-wrap:wrap;margin-bottom:18px;padding:14px;border-radius:20px;background:#f8fafc;border:1px solid #e2e8f0}.grade-columns-panel>div{display:flex;align-items:center;gap:8px;background:#fff;border-radius:14px;padding:8px 10px;box-shadow:0 8px 20px rgba(15,35,61,.06)}.grade-columns-panel label{margin:0;font-weight:900;color:#10253d}.grade-columns-panel span{font-size:12px;color:#64748b;font-weight:800}.grade-columns-panel .grade-weight{width:70px;height:34px}.grade-matrix th,.grade-matrix td{vertical-align:middle!important}.grade-matrix .grade-input{min-width:92px}.grade-note{margin-top:6px;font-size:12px}.grade-final{background:#ecfeff!important;border-color:#99f6e4!important;font-weight:900;text-align:center}.final-grade-lock{margin-top:14px;padding:12px 14px;border-radius:16px;background:#f8fafc;border:1px solid #e2e8f0;color:#64748b;font-weight:800}.grade-average.ok{background:#dcfce7;color:#166534}.grade-average.warn{background:#fef9c3;color:#854d0e}.grade-average.bad{background:#fee2e2;color:#991b1b}
.diary-card,.homework-card{background:#fff;border-radius:26px;padding:24px;margin-bottom:18px;box-shadow:var(--premium-shadow);border:1px solid rgba(15,118,110,.12);position:relative;overflow:hidden}.diary-card:before,.homework-card:before{content:"";position:absolute;width:110px;height:110px;border-radius:50%;right:-38px;top:-38px;background:rgba(20,184,166,.12)}.diary-card{display:grid;grid-template-columns:180px 1fr;gap:20px}.diary-date strong{display:block;font-size:20px;color:#0f766e}.diary-body h3,.homework-card h3{font-weight:900;margin-top:0;color:#10253d}.diary-activity,.homework-questions{margin:12px 0;padding:14px;border-radius:18px;background:#f8fafc;border:1px solid #e2e8f0;color:#334155}.homework-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:12px}.homework-head span{font-weight:900;color:#0f766e}.homework-answer{margin-top:16px;padding-top:16px;border-top:1px solid #e2e8f0}.homework-answer textarea{margin-bottom:10px}.homework-submissions{margin-top:14px;color:#0f766e;font-weight:900}.payment-self-note{padding:12px 14px;border-radius:16px;background:#ecfeff;color:#0f766e;font-weight:900;margin-bottom:12px}.member-profile-box h3{font-weight:900;margin-top:0}.member-profile-box ul{padding:0;margin:18px 0 0;list-style:none}.member-profile-box li{padding:8px 0;border-bottom:1px solid #edf2f7}.mini-kpi{background:#fff;border-radius:24px;padding:24px;text-align:center;box-shadow:var(--premium-shadow);margin-bottom:18px}.mini-kpi strong{display:block;font-size:34px;color:#0f766e}.mini-kpi span{font-weight:900;color:#64748b}.premium-switch.mini span{transform:scale(.75);transform-origin:left center}.document-print-sheet{background:#fff;min-height:720px;padding:60px;box-shadow:0 16px 60px rgba(15,35,61,.12);border-radius:8px}.placeholder-cloud{display:flex;gap:8px;flex-wrap:wrap}.placeholder-cloud span{padding:7px 10px;border-radius:999px;background:#ecfeff;color:#0f766e;font-weight:800;font-size:12px}.mini-list-item{border-bottom:1px solid #e2e8f0;padding:10px 0}.mini-list-item strong,.mini-list-item small{display:block}.member-id-card{width:540px;max-width:100%;min-height:315px;border-radius:30px;margin:0 auto 22px;padding:24px;box-shadow:0 24px 80px rgba(7,17,31,.18);position:relative;overflow:hidden;background:linear-gradient(135deg,#07111f,#0f766e);color:#fff}.member-id-card.back{background:linear-gradient(135deg,#fff,#f8fafc);color:#10253d;border:1px solid #e2e8f0}.card-watermark{position:absolute;right:-10px;bottom:-36px;font-size:140px;font-weight:900;color:rgba(255,255,255,.06)}.card-top,.card-person,.card-bottom{display:flex;align-items:center;gap:16px;position:relative}.card-top img{width:74px;height:64px;object-fit:contain;background:#fff;border-radius:18px;padding:8px}.card-top strong,.card-top span{display:block}.card-person{margin:34px 0}.member-photo-placeholder{width:86px;height:86px;border-radius:26px;background:rgba(255,255,255,.18);display:flex;align-items:center;justify-content:center;font-size:42px;font-weight:900}.card-person h2{font-weight:900;margin:0}.card-bottom{justify-content:space-between;border-top:1px solid rgba(255,255,255,.18);padding-top:14px}.signature-line{margin-top:48px;border-top:1px solid #94a3b8;text-align:center;padding-top:8px;font-weight:900}.card-contact span{display:block;margin:8px 0}@media(max-width:767px){.diary-card{grid-template-columns:1fr}.grade-columns-panel{display:block}.grade-columns-panel>div{margin-bottom:8px}.report-tabs,.settings-anchor-tabs{display:block}.report-tabs li,.settings-anchor-tabs a{display:block;margin-bottom:8px}}
@media print{.main-header,.main-sidebar,.main-footer,.content-header,.box-header .box-tools,.premium-actions,.settings-anchor-tabs,.sidebar,.btn,.alert{display:none!important}.content-wrapper{margin:0!important}.box,.premium-box{box-shadow:none!important;border:0!important}.document-print-sheet{box-shadow:none!important;padding:20px}.member-id-card{page-break-inside:avoid;box-shadow:none!important}}


/* V3.2 - carteirinha profissional em tamanho real de cartão */
.card-print-area{display:flex;flex-wrap:wrap;gap:14px;align-items:flex-start;justify-content:center}.bulk-print{display:none}.idcard-pair{display:flex;gap:8px;margin:10px;break-inside:avoid;page-break-inside:avoid}.ad-id-card{width:86mm;height:54mm;background:#fff;border:1.3mm solid #161bdc;border-radius:3mm;padding:2.6mm;box-sizing:border-box;color:#111;font-family:Arial,Helvetica,sans-serif;position:relative;overflow:hidden}.ad-front{display:flex;flex-direction:column}.ad-card-head{background:#111bd6;color:#fff;text-align:center;border-radius:2mm;font-weight:800;font-size:9pt;line-height:1.15;padding:2.2mm;margin-bottom:2.3mm}.ad-card-head span{font-size:7.5pt}.ad-front-grid{display:grid;grid-template-columns:19mm 1fr 18mm;gap:2.2mm;align-items:stretch;margin-bottom:2.2mm}.ad-logo-box,.ad-photo{height:19mm;border:.35mm solid #c7c7c7;display:flex;align-items:center;justify-content:center;overflow:hidden;background:#fff}.ad-logo-box img{max-width:17mm;max-height:16mm}.ad-photo img{width:100%;height:100%;object-fit:cover}.ad-address{font-size:6pt;line-height:1.35}.ad-field{border:.55mm solid #161bdc;border-radius:1.2mm;min-height:8.5mm;padding:1.2mm 1.7mm;box-sizing:border-box;background:#fff;overflow:hidden}.ad-field label{display:block;margin:0;font-size:5.8pt;color:#071e8e;font-weight:800;line-height:1}.ad-field strong{display:block;margin-top:.8mm;font-size:7.2pt;line-height:1.1;font-weight:700;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.ad-field.full{margin-top:auto}.ad-bottom-fields{display:grid;grid-template-columns:1fr 22mm;gap:2mm;margin-top:2mm}.ad-back{display:flex;flex-direction:column;gap:2mm}.ad-back-row{display:grid;gap:2mm}.ad-back-row.two{grid-template-columns:1fr 1fr}.ad-back-row.three{grid-template-columns:1fr 1fr 1fr}.ad-back .ad-field{min-height:10mm}.ad-back .ad-field strong{font-size:6.5pt}.ad-card-note{text-align:center;font-size:6pt;line-height:1.25;margin:auto 3mm 0;color:#222}.ad-signature{width:44mm;margin:3mm auto 0;border-top:.25mm solid #333;text-align:center;font-size:6pt;padding-top:1mm}.member-card-content .premium-box{overflow:visible}@media(max-width:900px){.idcard-pair{flex-direction:column;align-items:center}.ad-id-card{width:86mm;max-width:100%}}@media print{@page{size:A4 landscape;margin:8mm}.no-print,.main-header,.main-sidebar,.main-footer,.content-header,.breadcrumb,.premium-actions,.box-header,.alert{display:none!important}.content-wrapper{margin:0!important}.content{padding:0!important}.box,.premium-box{box-shadow:none!important;border:0!important}.card-print-area{display:flex!important;gap:6mm;justify-content:flex-start;align-items:flex-start}.bulk-print{display:flex!important;flex-wrap:wrap}.bulk-print:not(.print-all){display:none!important}.card-print-area.single{display:flex!important}.idcard-pair{display:flex!important;flex-direction:row!important;gap:4mm;margin:0 0 6mm 0}.ad-id-card{box-shadow:none!important;-webkit-print-color-adjust:exact;print-color-adjust:exact}.ad-card-head{background:#111bd6!important;color:#fff!important}}


/* V3.2 final - selecao de carteirinhas e visual de impressao */
.member-card-select-list{max-height:220px;overflow:auto;border:1px solid #e2e8f0;border-radius:16px;background:#f8fafc;padding:8px;margin-top:10px}
.member-card-select-list label{display:flex;gap:8px;align-items:center;margin:0;padding:8px 10px;border-radius:12px;cursor:pointer;font-weight:800;color:#10253d}
.member-card-select-list label:hover{background:#fff}.member-card-select-list input{margin:0}.card-selection-form .box-footer{border-top:0!important}.ad-id-card{box-shadow:0 12px 35px rgba(15,35,61,.15)}.ad-card-note{font-family:Georgia,serif}.ad-signature{font-family:Georgia,serif}.ad-field strong{font-family:Arial,Helvetica,sans-serif}.ad-front .ad-field.full strong{font-size:7pt}.ad-bottom-fields .ad-field strong{font-size:6.9pt}
@media print{.member-card-select-list{display:none!important}.idcard-pair{page-break-inside:avoid;break-inside:avoid}.bulk-print.print-all,.bulk-print.print-all.print-selected{display:flex!important}.ad-id-card{border-color:#161bdc!important}.ad-field{border-color:#161bdc!important}.ad-card-head{background:#111bd6!important;color:#fff!important}}


/* V3.3 - impressao corrigida da carteirinha e visualizacao sempre visivel */
.print-helper-note{font-size:12px;color:#64748b;margin-top:8px}
@media print{
  html,body{background:#fff!important;height:auto!important;overflow:visible!important;}
  body.printing-carteirinha .wrapper, body.printing-carteirinha .content-wrapper{background:#fff!important;overflow:visible!important;}
  body.printing-carteirinha .main-header,
  body.printing-carteirinha .main-sidebar,
  body.printing-carteirinha .main-footer,
  body.printing-carteirinha .content-header,
  body.printing-carteirinha .no-print,
  body.printing-carteirinha .breadcrumb,
  body.printing-carteirinha .alert,
  body.printing-carteirinha .box-header,
  body.printing-carteirinha .box-tools,
  body.printing-carteirinha .premium-actions{display:none!important;}
  body.printing-carteirinha .content-wrapper{margin:0!important;padding:0!important;min-height:0!important;}
  body.printing-carteirinha .content{padding:0!important;margin:0!important;display:block!important;}
  body.printing-carteirinha .member-card-content{display:block!important;padding:0!important;margin:0!important;}
  body.printing-carteirinha .box,body.printing-carteirinha .premium-box{box-shadow:none!important;border:0!important;margin:0!important;background:#fff!important;}
  body.printing-carteirinha .box-body{padding:0!important;display:block!important;background:#fff!important;}
  body.printing-carteirinha .card-print-area{display:flex!important;visibility:visible!important;opacity:1!important;background:#fff!important;gap:6mm;justify-content:flex-start;align-items:flex-start;flex-wrap:wrap;}
  body.printing-carteirinha .bulk-print{display:none!important;}
  body.printing-carteirinha .bulk-print.print-all{display:flex!important;}
  body.printing-carteirinha .card-print-area.single{display:flex!important;}
  body.printing-carteirinha .idcard-pair{display:flex!important;flex-direction:row!important;gap:4mm;margin:0 0 6mm 0;page-break-inside:avoid;break-inside:avoid;}
  body.printing-carteirinha .ad-id-card{width:86mm!important;height:54mm!important;box-shadow:none!important;-webkit-print-color-adjust:exact!important;print-color-adjust:exact!important;border-color:#161bdc!important;}
  body.printing-carteirinha .ad-field{border-color:#161bdc!important;}
  body.printing-carteirinha .ad-card-head{background:#111bd6!important;color:#fff!important;}
}


/* ==========================================================
   CORRECAO FINAL TOPO, LOGO LATERAL E DASHBOARD
   ========================================================== */

/* Topo do painel: somente "Gestao X.X", sem IG e sem quadrado duplicado */
.main-header .logo.premium-logo.version-only-logo,
.premium-main-header .logo.premium-logo.version-only-logo,
.main-header .premium-logo.version-only-logo{
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  height:56px!important;
  min-height:56px!important;
  padding:0 10px!important;
  background:linear-gradient(135deg,#073b4c,#0f766e)!important;
  color:#fff!important;
  overflow:hidden!important;
}

.main-header .logo.premium-logo.version-only-logo .logo-mini,
.premium-main-header .logo.premium-logo.version-only-logo .logo-mini,
.version-only-logo .logo-mini{
  display:none!important;
  visibility:hidden!important;
  width:0!important;
  min-width:0!important;
  height:0!important;
  padding:0!important;
  margin:0!important;
  overflow:hidden!important;
}

.main-header .logo.premium-logo.version-only-logo .logo-lg,
.premium-main-header .logo.premium-logo.version-only-logo .logo-lg,
.version-only-logo .logo-lg{
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  width:100%!important;
  height:56px!important;
  line-height:1!important;
  color:#fff!important;
  font-size:18px!important;
  font-weight:950!important;
  letter-spacing:-.02em!important;
  white-space:nowrap!important;
  overflow:hidden!important;
}

.version-only-logo .logo-lg b{
  color:#fff!important;
  font-weight:950!important;
  margin-right:5px!important;
}

/* Card lateral: somente a logo, preenchendo quase todo o card */
.premium-sidebar .church-panel.logo-only-panel{
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  min-height:128px!important;
  padding:8px!important;
  margin:16px 10px 18px!important;
  border-radius:24px!important;
  background:linear-gradient(135deg,rgba(255,255,255,.10),rgba(255,255,255,.035))!important;
  border:1px solid rgba(255,255,255,.14)!important;
  box-shadow:0 16px 36px rgba(0,0,0,.22)!important;
  overflow:hidden!important;
}

.premium-sidebar .church-panel.logo-only-panel img{
  display:block!important;
  width:100%!important;
  max-width:100%!important;
  height:112px!important;
  max-height:112px!important;
  object-fit:contain!important;
  background:#fff!important;
  border-radius:18px!important;
  padding:8px!important;
  box-shadow:0 14px 30px rgba(0,0,0,.24)!important;
}

/* Remove qualquer barra de titulo extra abaixo do Dashboard */
.dashboard-church-title{
  display:none!important;
}

.content-header h1{
  letter-spacing:-.035em!important;
}

/* Responsivo */
@media(max-width:767px){
  .main-header .logo.premium-logo.version-only-logo .logo-lg,
  .premium-main-header .logo.premium-logo.version-only-logo .logo-lg,
  .version-only-logo .logo-lg{
    font-size:16px!important;
  }

  .premium-sidebar .church-panel.logo-only-panel{
    min-height:104px!important;
    padding:7px!important;
  }

  .premium-sidebar .church-panel.logo-only-panel img{
    height:90px!important;
    max-height:90px!important;
    border-radius:16px!important;
    padding:7px!important;
  }
}


/* ==========================================================
   CORRECAO MOBILE PAINEL - Responsivo, tabelas e logo
   ========================================================== */

/* Garante que o layout não corte conteúdo em telas pequenas */
html,
body.igreja-pro-body,
.igreja-wrapper{
  overflow-x:hidden!important;
}

/* Tabelas/listagens: permitem rolar para os lados no celular */
.box-body,
.premium-box .box-body,
.dataTables_wrapper,
.table-responsive,
.module-table-wrapper,
.content .box-body{
  max-width:100%!important;
}

@media(max-width:767px){

  html,
  body.igreja-pro-body{
    width:100%!important;
    max-width:100%!important;
    overflow-x:hidden!important;
  }

  .content-wrapper,
  .premium-content-wrapper{
    margin-left:0!important;
    padding-top:0!important;
    overflow-x:hidden!important;
  }

  .content{
    padding:10px 8px!important;
    overflow-x:hidden!important;
  }

  .content-header{
    padding:16px 12px 8px!important;
  }

  .content-header h1{
    font-size:24px!important;
    line-height:1.1!important;
    margin:0 0 6px!important;
  }

  .content-header .breadcrumb{
    position:relative!important;
    float:none!important;
    right:auto!important;
    top:auto!important;
    margin-top:10px!important;
    width:100%!important;
    border-radius:18px!important;
    font-size:11px!important;
    padding:8px 12px!important;
  }

  /* Header mobile mais fino */
  .main-header,
  .premium-main-header{
    min-height:50px!important;
  }

  .main-header .logo.premium-logo.version-only-logo,
  .premium-main-header .logo.premium-logo.version-only-logo,
  .main-header .navbar.premium-navbar,
  .premium-main-header .navbar.premium-navbar{
    height:50px!important;
    min-height:50px!important;
  }

  .main-header .logo.premium-logo.version-only-logo .logo-lg,
  .premium-main-header .logo.premium-logo.version-only-logo .logo-lg,
  .version-only-logo .logo-lg{
    height:50px!important;
    font-size:14px!important;
    font-weight:900!important;
  }

  .main-header .sidebar-toggle{
    height:50px!important;
    padding:15px 14px!important;
    font-size:14px!important;
  }

  .navbar-custom-menu > .nav > li > a,
  .main-header .navbar .nav > li > a{
    padding-top:15px!important;
    padding-bottom:15px!important;
    font-size:12px!important;
    height:50px!important;
  }

  .navbar-status{
    display:none!important;
  }

  /* Logo lateral maior no celular */
  .premium-sidebar .church-panel.logo-only-panel{
    min-height:100px!important;
    margin:12px 10px 14px!important;
    padding:6px!important;
    border-radius:22px!important;
  }

  .premium-sidebar .church-panel.logo-only-panel img{
    width:100%!important;
    height:88px!important;
    max-height:88px!important;
    object-fit:contain!important;
    padding:5px!important;
    border-radius:16px!important;
  }

  /* Caixas do painel mais compactas no celular */
  .premium-box,
  .box.premium-box{
    border-radius:22px!important;
    margin-bottom:16px!important;
    overflow:hidden!important;
  }

  .premium-box .box-header,
  .box.premium-box .box-header{
    padding:14px 14px!important;
  }

  .premium-box .box-title{
    font-size:17px!important;
    line-height:1.2!important;
  }

  .premium-box .box-body,
  .box.premium-box .box-body{
    padding:12px!important;
  }

  /* O ponto mais importante: listagens com rolagem horizontal */
  .premium-box .box-body:has(table),
  .box-body:has(.dataTables_wrapper),
  .dataTables_wrapper{
    overflow-x:auto!important;
    -webkit-overflow-scrolling:touch!important;
  }

  table.table,
  .table,
  .dataTable,
  table.dataTable{
    min-width:880px!important;
    width:max-content!important;
    max-width:none!important;
    white-space:nowrap!important;
  }

  .dataTables_wrapper .row{
    margin-left:0!important;
    margin-right:0!important;
  }

  .dataTables_wrapper .col-sm-6,
  .dataTables_wrapper .col-xs-6,
  .dataTables_wrapper [class*="col-"]{
    float:none!important;
    width:100%!important;
    padding-left:0!important;
    padding-right:0!important;
    margin-bottom:8px!important;
  }

  .dataTables_length,
  .dataTables_filter{
    text-align:left!important;
    display:block!important;
    width:100%!important;
  }

  .dataTables_length label,
  .dataTables_filter label{
    display:flex!important;
    align-items:center!important;
    gap:8px!important;
    width:100%!important;
    font-size:12px!important;
    flex-wrap:wrap!important;
  }

  .dataTables_filter input{
    width:100%!important;
    max-width:260px!important;
    margin-left:0!important;
    border-radius:12px!important;
  }

  .dataTables_length select{
    width:76px!important;
    border-radius:12px!important;
  }

  .dataTables_paginate{
    text-align:center!important;
    width:100%!important;
    overflow-x:auto!important;
    padding-top:8px!important;
  }

  .dataTables_info{
    white-space:normal!important;
    font-size:12px!important;
    padding-top:8px!important;
  }

  /* Busca superior do módulo mais ajustada */
  .premium-search,
  .module-search,
  .box-tools-search,
  form[action*="module"] .input-group{
    width:100%!important;
    max-width:100%!important;
  }

  .input-group .form-control{
    min-width:0!important;
  }

  /* Botões superiores não estouram a tela */
  .box-header .box-tools,
  .premium-box .box-tools{
    position:relative!important;
    right:auto!important;
    top:auto!important;
    float:none!important;
    display:flex!important;
    justify-content:flex-start!important;
    gap:8px!important;
    flex-wrap:wrap!important;
    margin-top:10px!important;
  }

  .btn,
  .btn-premium,
  .btn-glass{
    max-width:100%!important;
    white-space:normal!important;
  }

  /* Dashboard cards */
  .hero-dashboard{
    border-radius:22px!important;
    padding:24px 18px!important;
    display:block!important;
  }

  .hero-dashboard h2{
    font-size:24px!important;
    line-height:1.14!important;
  }

  .hero-dashboard p{
    font-size:14px!important;
    line-height:1.55!important;
  }

  .hero-actions{
    margin-top:16px!important;
    display:flex!important;
    gap:10px!important;
    flex-wrap:wrap!important;
  }

  .premium-stat-card{
    border-radius:22px!important;
    padding:18px!important;
  }

  .premium-stat-card strong{
    font-size:30px!important;
  }

  /* Evita campos grandes cortados nos formulários */
  .premium-form .row{
    margin-left:0!important;
    margin-right:0!important;
  }

  .premium-form [class*="col-"]{
    padding-left:0!important;
    padding-right:0!important;
  }

  .premium-form .form-control,
  .select2-container{
    width:100%!important;
    max-width:100%!important;
  }
}

/* Fallback para navegadores sem :has() */
@media(max-width:767px){
  .content .box-body{
    overflow-x:auto!important;
    -webkit-overflow-scrolling:touch!important;
  }
}


/* ==========================================================
   CORRECAO VISUAL - ANIVERSARIANTES DO MES
   Restaura o card premium no Dashboard
   ========================================================== */

.birthday-dashboard-box{
  overflow:hidden!important;
}

.birthday-dashboard-box .box-header{
  display:flex!important;
  align-items:center!important;
  justify-content:space-between!important;
  gap:12px!important;
}

.birthday-dashboard-box .box-title{
  display:flex!important;
  align-items:center!important;
  gap:8px!important;
  font-weight:950!important;
  color:#10253d!important;
}

.birthday-dashboard-box .box-title i{
  color:#d4af37!important;
}

.birthday-dashboard-box .box-tools{
  margin-left:auto!important;
}

.birthday-dashboard-box .box-tools a{
  color:#64748b!important;
  font-weight:800!important;
  font-size:12px!important;
  text-decoration:none!important;
}

.birthday-list{
  display:flex!important;
  flex-direction:column!important;
  gap:12px!important;
  overflow:visible!important;
}

.birthday-item{
  display:grid!important;
  grid-template-columns:72px 1fr auto!important;
  align-items:center!important;
  gap:14px!important;
  padding:13px 14px!important;
  border-radius:18px!important;
  background:linear-gradient(135deg,#ffffff,#f4fbfa)!important;
  border:1px solid rgba(15,118,110,.15)!important;
  box-shadow:0 12px 28px rgba(15,35,61,.08)!important;
  transition:.25s ease!important;
}

.birthday-item:hover{
  transform:translateY(-2px)!important;
  box-shadow:0 18px 38px rgba(15,35,61,.13)!important;
  border-color:rgba(15,118,110,.28)!important;
}

.birthday-item.today{
  background:linear-gradient(135deg,rgba(15,118,110,.14),rgba(212,175,55,.16))!important;
  border-color:rgba(15,118,110,.28)!important;
}

.birthday-day{
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  min-width:58px!important;
  height:42px!important;
  padding:0 10px!important;
  border-radius:14px!important;
  background:linear-gradient(135deg,#0f766e,#14b8a6)!important;
  color:#fff!important;
  font-size:14px!important;
  font-weight:950!important;
  line-height:1!important;
  box-shadow:0 10px 22px rgba(15,118,110,.22)!important;
}

.birthday-item > div{
  min-width:0!important;
}

.birthday-item strong,
.birthday-member-link{
  display:block!important;
  color:#10253d!important;
  font-size:14px!important;
  font-weight:950!important;
  line-height:1.22!important;
  text-decoration:none!important;
  white-space:normal!important;
}

.birthday-member-link:hover{
  color:#0f766e!important;
  text-decoration:underline!important;
}

.birthday-item small{
  display:block!important;
  margin-top:3px!important;
  color:#64748b!important;
  font-size:11px!important;
  font-weight:800!important;
  line-height:1.25!important;
}

.birthday-item em{
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  min-width:48px!important;
  min-height:28px!important;
  padding:6px 10px!important;
  border-radius:999px!important;
  background:#d4af37!important;
  color:#10253d!important;
  font-size:11px!important;
  line-height:1!important;
  font-style:normal!important;
  font-weight:950!important;
  box-shadow:0 8px 18px rgba(212,175,55,.24)!important;
}

.birthday-list .text-muted{
  margin:0!important;
  padding:18px!important;
  border-radius:18px!important;
  background:#f8fafc!important;
  border:1px dashed rgba(15,118,110,.2)!important;
  text-align:center!important;
  font-weight:800!important;
}

/* Ajuste especial no celular para não perder o efeito */
@media(max-width:767px){
  .birthday-dashboard-box .box-header{
    padding:14px 16px!important;
  }

  .birthday-dashboard-box .box-title{
    font-size:16px!important;
  }

  .birthday-dashboard-box .box-tools{
    position:static!important;
    float:none!important;
    margin-top:0!important;
  }

  .birthday-list{
    gap:10px!important;
    padding:2px!important;
  }

  .birthday-item{
    grid-template-columns:58px 1fr auto!important;
    gap:10px!important;
    padding:12px!important;
    border-radius:17px!important;
  }

  .birthday-day{
    min-width:52px!important;
    height:38px!important;
    border-radius:13px!important;
    font-size:13px!important;
  }

  .birthday-item strong,
  .birthday-member-link{
    font-size:13px!important;
  }

  .birthday-item small{
    font-size:10px!important;
  }

  .birthday-item em{
    min-width:44px!important;
    min-height:26px!important;
    padding:6px 9px!important;
    font-size:10px!important;
  }
}


/* ==========================================================
   ANIVERSARIANTES - status de e-mail e card compacto
   ========================================================== */
.birthday-dashboard-box .box-header{
  padding:13px 16px!important;
}

.birthday-dashboard-box .box-title{
  font-size:15px!important;
  line-height:1.15!important;
  margin:0!important;
}

.birthday-dashboard-box .box-tools a{
  font-size:11px!important;
  padding:0!important;
}

.birthday-list{
  gap:9px!important;
  padding:2px!important;
}

.birthday-item{
  grid-template-columns:64px minmax(0,1fr) auto!important;
  gap:10px!important;
  padding:10px 12px!important;
  border-radius:17px!important;
}

.birthday-day{
  min-width:54px!important;
  height:38px!important;
  border-radius:13px!important;
  font-size:13px!important;
  padding:0 8px!important;
}

.birthday-info{
  min-width:0!important;
}

.birthday-member-link,
.birthday-item strong{
  font-size:13px!important;
  line-height:1.12!important;
}

.birthday-item small{
  font-size:10px!important;
  line-height:1.15!important;
  margin-top:2px!important;
}

.birthday-badges{
  display:flex!important;
  flex-direction:column!important;
  align-items:flex-end!important;
  justify-content:center!important;
  gap:5px!important;
  min-width:76px!important;
}

.birthday-item em{
  min-width:auto!important;
  min-height:22px!important;
  padding:5px 8px!important;
  font-size:10px!important;
  border-radius:999px!important;
}

.birthday-email-status{
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  gap:4px!important;
  min-height:22px!important;
  padding:4px 7px!important;
  border-radius:999px!important;
  font-size:9.5px!important;
  line-height:1!important;
  font-weight:950!important;
  white-space:nowrap!important;
  border:1px solid transparent!important;
}

.birthday-email-status.sent{
  background:rgba(16,185,129,.13)!important;
  color:#047857!important;
  border-color:rgba(16,185,129,.22)!important;
}

.birthday-email-status.pending{
  background:rgba(100,116,139,.12)!important;
  color:#475569!important;
  border-color:rgba(100,116,139,.18)!important;
}

.birthday-email-status i{
  font-size:9px!important;
}

@media(max-width:767px){
  .birthday-dashboard-box .box-header{
    padding:12px 14px!important;
  }

  .birthday-dashboard-box .box-title{
    font-size:14px!important;
  }

  .birthday-dashboard-box .box-tools a{
    font-size:10px!important;
  }

  .birthday-item{
    grid-template-columns:54px minmax(0,1fr)!important;
    gap:9px!important;
    padding:10px!important;
  }

  .birthday-day{
    min-width:48px!important;
    height:36px!important;
    font-size:12px!important;
  }

  .birthday-badges{
    grid-column:1 / -1!important;
    flex-direction:row!important;
    align-items:center!important;
    justify-content:flex-start!important;
    min-width:0!important;
    margin-left:57px!important;
    margin-top:-4px!important;
  }

  .birthday-email-status{
    font-size:9px!important;
    padding:4px 7px!important;
  }
}


/* ==========================================================
   ANIVERSARIANTES - tempo restante do envio automático
   ========================================================== */
.birthday-email-status.countdown{
  background:rgba(14,165,233,.13)!important;
  color:#0369a1!important;
  border-color:rgba(14,165,233,.24)!important;
}

.birthday-email-status.scheduled{
  background:rgba(99,102,241,.12)!important;
  color:#4338ca!important;
  border-color:rgba(99,102,241,.22)!important;
}

.birthday-email-status.late{
  background:rgba(245,158,11,.16)!important;
  color:#92400e!important;
  border-color:rgba(245,158,11,.28)!important;
}

.birthday-email-status .fa-hourglass-half{
  animation:birthdayPulse 1.7s ease-in-out infinite;
}

@keyframes birthdayPulse{
  0%,100%{opacity:.55;transform:scale(.96)}
  50%{opacity:1;transform:scale(1.06)}
}

/* deixa mais compacto para textos como "Aguardando cron" */
.birthday-badges{
  min-width:92px!important;
}

.birthday-email-status{
  max-width:112px!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
}

@media(max-width:767px){
  .birthday-badges{
    min-width:0!important;
  }
  .birthday-email-status{
    max-width:150px!important;
  }
}


/* Ajuste visual do status do cron nos aniversariantes */
.birthday-email-status.late{
  background:rgba(245,158,11,.12)!important;
  color:#78350f!important;
  border-color:rgba(245,158,11,.24)!important;
}

.birthday-email-status{
  font-size:8.8px!important;
  padding:4px 6px!important;
  min-height:20px!important;
  max-width:96px!important;
}

.birthday-email-status i{
  font-size:8px!important;
}

.birthday-badges{
  min-width:82px!important;
}

@media(max-width:767px){
  .birthday-email-status{
    max-width:120px!important;
    font-size:8.8px!important;
  }
}


/* ==========================================================
   ANIVERSARIANTES - ajuste final status enviado
   ========================================================== */
.birthday-email-status.sent{
  background:rgba(16,185,129,.16)!important;
  color:#065f46!important;
  border-color:rgba(16,185,129,.28)!important;
}
.birthday-email-status.sent i{
  color:#059669!important;
}


/* Ajuste fino do card de aniversariantes */
.birthday-dashboard-box .box-header{
  gap:8px!important;
}
.birthday-dashboard-box .box-tools.pull-right{
  float:none!important;
  margin-left:auto!important;
}
.birthday-dashboard-box .box-tools a{
  white-space:nowrap!important;
}


/* Correção robusta: badge enviado no aniversariante */
.birthday-email-status.sent{
  background:rgba(16,185,129,.16)!important;
  color:#065f46!important;
  border-color:rgba(16,185,129,.30)!important;
}
.birthday-email-status.sent i{
  color:#059669!important;
}


/* Correção final Dashboard: status Enviado bem destacado */
.birthday-email-status.sent{
  background:#dcfce7!important;
  color:#166534!important;
  border-color:#86efac!important;
  font-weight:950!important;
}
.birthday-email-status.sent i{
  color:#16a34a!important;
}


/* Correção definitiva Dashboard aniversariante: Enviado */
.birthday-email-status.sent{
  background:#dcfce7!important;
  color:#166534!important;
  border-color:#86efac!important;
  font-weight:950!important;
}
.birthday-email-status.sent i{
  color:#16a34a!important;
}


/* Correção sem table_exists: status Enviado destacado */
.birthday-email-status.sent{
  background:#dcfce7!important;
  color:#166534!important;
  border-color:#86efac!important;
  font-weight:950!important;
}
.birthday-email-status.sent i{
  color:#16a34a!important;
}


/* ==========================================================
   CORREÇÃO - ESPAÇO VAZIO NO ACESSO RÁPIDO DO DASHBOARD
   ========================================================== */
.dashboard-premium .quick-actions-grid{
  display:grid!important;
  grid-template-columns:repeat(auto-fill,minmax(190px,1fr))!important;
  gap:14px!important;
  align-items:stretch!important;
  justify-items:stretch!important;
  grid-auto-flow:row dense!important;
}

.dashboard-premium .quick-actions-grid a{
  display:flex!important;
  flex-direction:column!important;
  justify-content:center!important;
  min-height:108px!important;
  width:100%!important;
  margin:0!important;
}

/* Evita que algum link herde margem/posição antiga e crie buraco no grid */
.dashboard-premium .quick-actions-grid a:nth-child(n){
  grid-column:auto!important;
  grid-row:auto!important;
  transform:none;
}

.dashboard-premium .quick-actions-grid a:hover{
  transform:translateY(-4px)!important;
}

@media(max-width:1199px){
  .dashboard-premium .quick-actions-grid{
    grid-template-columns:repeat(auto-fill,minmax(170px,1fr))!important;
  }
}

@media(max-width:767px){
  .dashboard-premium .quick-actions-grid{
    grid-template-columns:1fr!important;
  }
  .dashboard-premium .quick-actions-grid a{
    min-height:92px!important;
  }
}


/* ==========================================================
   CORREÇÃO FINAL - ACESSO RÁPIDO SEM ESPAÇO VAZIO
   Troca o bloco para flexbox e força início pela esquerda.
   ========================================================== */
.dashboard-premium .quick-actions-grid{
  display:flex!important;
  flex-wrap:wrap!important;
  align-items:stretch!important;
  justify-content:flex-start!important;
  gap:14px!important;
  width:100%!important;
  max-width:100%!important;
}

.dashboard-premium .quick-actions-grid::before,
.dashboard-premium .quick-actions-grid::after{
  display:none!important;
  content:none!important;
}

.dashboard-premium .quick-actions-grid > a{
  display:flex!important;
  flex-direction:column!important;
  justify-content:center!important;
  flex:0 0 calc(33.333% - 10px)!important;
  width:calc(33.333% - 10px)!important;
  max-width:calc(33.333% - 10px)!important;
  min-width:0!important;
  min-height:108px!important;
  margin:0!important;
  position:relative!important;
  left:auto!important;
  right:auto!important;
  top:auto!important;
  bottom:auto!important;
  transform:none!important;
  grid-column:auto!important;
  grid-row:auto!important;
  float:none!important;
  clear:none!important;
}

.dashboard-premium .quick-actions-grid > a:hover{
  transform:translateY(-4px)!important;
}

/* Remove qualquer deslocamento antigo por nth-child */
.dashboard-premium .quick-actions-grid > a:nth-child(1),
.dashboard-premium .quick-actions-grid > a:nth-child(2),
.dashboard-premium .quick-actions-grid > a:nth-child(3),
.dashboard-premium .quick-actions-grid > a:nth-child(4),
.dashboard-premium .quick-actions-grid > a:nth-child(5),
.dashboard-premium .quick-actions-grid > a:nth-child(6),
.dashboard-premium .quick-actions-grid > a:nth-child(7),
.dashboard-premium .quick-actions-grid > a:nth-child(8){
  margin-left:0!important;
  margin-right:0!important;
  grid-column:auto!important;
  grid-row:auto!important;
  order:initial!important;
}

@media(max-width:1199px){
  .dashboard-premium .quick-actions-grid > a{
    flex-basis:calc(50% - 7px)!important;
    width:calc(50% - 7px)!important;
    max-width:calc(50% - 7px)!important;
  }
}

@media(max-width:767px){
  .dashboard-premium .quick-actions-grid{
    gap:10px!important;
  }

  .dashboard-premium .quick-actions-grid > a{
    flex-basis:100%!important;
    width:100%!important;
    max-width:100%!important;
    min-height:92px!important;
  }
}


/* Correção Congregações: links de pastor e membros */
.premium-record-link{
  color:#0f766e!important;
  font-weight:900!important;
  text-decoration:none!important;
}
.premium-record-link:hover{
  color:#0b5f59!important;
  text-decoration:underline!important;
}
.premium-record-link i{
  margin-right:4px;
}


/* ==========================================================
   CORRECAO VISUAL - VIEW DE CONGREGACOES MAIS COMPACTA
   ========================================================== */
.premium-detail-grid{align-items:start!important;}
.premium-detail-grid .detail-item{align-self:start!important; min-height:auto!important;}

.congregacoes-view-content .congregacoes-premium-box{
  overflow:hidden!important;
}
.congregacoes-view-content .module-toolbar{
  padding-bottom:10px!important;
}
.congregacoes-view-content .congregacoes-detail-grid{
  grid-template-columns:repeat(2,minmax(260px,1fr))!important;
  gap:12px!important;
  align-items:start!important;
}
.congregacoes-view-content .detail-item{
  padding:14px 16px!important;
  border-radius:18px!important;
  background:linear-gradient(180deg,#ffffff 0%,#f8fbfd 100%)!important;
  border:1px solid #e6edf4!important;
  box-shadow:0 8px 24px rgba(15,35,61,.05)!important;
  min-height:auto!important;
}
.congregacoes-view-content .detail-item.wide{
  grid-column:1 / -1!important;
}
.congregacoes-view-content .detail-item span{
  margin-bottom:8px!important;
  font-size:11px!important;
  line-height:1.2!important;
  color:#64748b!important;
  letter-spacing:.07em!important;
}
.congregacoes-view-content .detail-item strong{
  display:block!important;
  font-size:15px!important;
  line-height:1.35!important;
  font-weight:800!important;
  color:#10253d!important;
  white-space:normal!important;
  word-break:break-word!important;
}
.congregacoes-view-content .detail-item .label,
.congregacoes-view-content .detail-item .badge{
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  min-width:96px!important;
  padding:8px 14px!important;
  border-radius:999px!important;
  font-size:12px!important;
  font-weight:900!important;
}
.congregacoes-view-content .congregacao-members-box{
  border-top:1px solid #edf2f7!important;
  padding-top:18px!important;
}
.congregacoes-view-content .congregacao-members-head{
  display:flex!important;
  align-items:center!important;
  justify-content:space-between!important;
  gap:12px!important;
  flex-wrap:wrap!important;
  margin:0 0 14px!important;
}
.congregacoes-view-content .congregacao-members-head h3{
  margin:0!important;
  font-size:18px!important;
  font-weight:900!important;
  color:#10253d!important;
}
.congregacoes-view-content .congregacao-members-count{
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  padding:7px 12px!important;
  border-radius:999px!important;
  background:linear-gradient(135deg,#0f766e,#14b8a6)!important;
  color:#fff!important;
  font-weight:900!important;
  font-size:12px!important;
  box-shadow:0 10px 24px rgba(15,118,110,.18)!important;
}
.congregacoes-view-content .congregacao-members-table-wrap{
  border:1px solid #e7eef5!important;
  border-radius:18px!important;
  overflow:hidden!important;
  background:#fff!important;
}
.congregacoes-view-content .congregacao-members-table{
  margin-bottom:0!important;
}
.congregacoes-view-content .congregacao-members-table th{
  white-space:nowrap!important;
}
.congregacoes-view-content .congregacao-members-empty{
  border-radius:16px!important;
  margin-bottom:0!important;
}

@media(max-width:991px){
  .congregacoes-view-content .congregacoes-detail-grid{
    grid-template-columns:1fr!important;
  }
}
@media(max-width:767px){
  .congregacoes-view-content .detail-item{
    padding:12px 14px!important;
    border-radius:16px!important;
  }
  .congregacoes-view-content .detail-item span{
    font-size:10px!important;
  }
  .congregacoes-view-content .detail-item strong{
    font-size:14px!important;
  }
  .congregacoes-view-content .congregacao-members-head h3{
    font-size:16px!important;
  }
}


/* ==========================================================
   CORREÇÃO FINAL - TOPO ALINHADO NA VIEW DE CONGREGAÇÕES
   ========================================================== */
.congregacoes-view-content .congregacoes-detail-grid-fixed{
  display:grid!important;
  grid-template-columns:1fr 1fr!important;
  gap:12px!important;
  align-items:start!important;
  grid-auto-flow:row!important;
}

.congregacoes-view-content .congregacoes-detail-grid-fixed .detail-item{
  margin:0!important;
  min-height:86px!important;
  height:auto!important;
  display:flex!important;
  flex-direction:column!important;
  justify-content:center!important;
}

.congregacoes-view-content .congregacoes-detail-grid-fixed .detail-item.wide{
  grid-column:1 / -1!important;
}

.congregacoes-view-content .congregacoes-detail-grid-fixed .cong-name{
  grid-column:1!important;
  grid-row:1!important;
}

.congregacoes-view-content .congregacoes-detail-grid-fixed .cong-pastor{
  grid-column:2!important;
  grid-row:1!important;
}

.congregacoes-view-content .congregacoes-detail-grid-fixed .detail-item span{
  margin-bottom:8px!important;
}

.congregacoes-view-content .congregacoes-detail-grid-fixed .detail-item strong{
  text-align:left!important;
}

@media(max-width:991px){
  .congregacoes-view-content .congregacoes-detail-grid-fixed{
    grid-template-columns:1fr!important;
  }

  .congregacoes-view-content .congregacoes-detail-grid-fixed .cong-name,
  .congregacoes-view-content .congregacoes-detail-grid-fixed .cong-pastor,
  .congregacoes-view-content .congregacoes-detail-grid-fixed .detail-item.wide{
    grid-column:1!important;
    grid-row:auto!important;
  }
}


/* ==========================================================
   CONGREGAÇÕES - BUSCA E ORDEM ALFABÉTICA DE MEMBROS
   ========================================================== */
.congregacoes-view-content .congregacao-members-head small{
  display:block!important;
  margin-top:4px!important;
  color:#64748b!important;
  font-weight:800!important;
  font-size:12px!important;
}

.congregacoes-view-content .congregacao-members-search{
  display:flex!important;
  align-items:center!important;
  gap:0!important;
  margin:0 0 14px!important;
  max-width:620px!important;
  border:1px solid #dbe7ef!important;
  border-radius:16px!important;
  overflow:hidden!important;
  background:#fff!important;
  box-shadow:0 10px 24px rgba(15,35,61,.05)!important;
}

.congregacoes-view-content .congregacao-members-search span{
  width:46px!important;
  min-width:46px!important;
  height:44px!important;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  color:#0f766e!important;
  background:#f0fdfa!important;
  border-right:1px solid #dbe7ef!important;
}

.congregacoes-view-content .congregacao-members-search .form-control{
  border:0!important;
  box-shadow:none!important;
  min-height:44px!important;
  height:44px!important;
  border-radius:0!important;
  font-weight:700!important;
}

.congregacoes-view-content .congregacao-members-search .form-control:focus{
  box-shadow:none!important;
}

.congregacoes-view-content .congregacao-members-table tbody tr{
  transition:background .18s ease!important;
}

.congregacoes-view-content .congregacao-members-table tbody tr:hover{
  background:#f8fffd!important;
}

@media(max-width:767px){
  .congregacoes-view-content .congregacao-members-search{
    max-width:100%!important;
  }
}


/* ==========================================================
   NÚMEROS DE CELULAR / WHATSAPP CLICÁVEIS
   ========================================================== */
.whatsapp-phone-link{
  display:inline-flex!important;
  align-items:center!important;
  gap:6px!important;
  color:#0f766e!important;
  font-weight:900!important;
  text-decoration:none!important;
  white-space:nowrap!important;
}


.whatsapp-phone-link:hover{
  color:#0b5f59!important;
  text-decoration:underline!important;
}

.table td .whatsapp-phone-link{
  font-size:13px!important;
}

.detail-item strong .whatsapp-phone-link{
  font-size:15px!important;
}


/* ==========================================================
   CORREÇÃO - ORDEM NUMÉRICA E ÍCONES DA TABELA
   ========================================================== */

/* Remove os quadradinhos causados por fonte/ícone quebrado no DataTables */
table.dataTable thead .sorting:after,
table.dataTable thead .sorting_asc:after,
table.dataTable thead .sorting_desc:after,
table.dataTable thead .sorting_asc_disabled:after,
table.dataTable thead .sorting_desc_disabled:after{
  font-family:"FontAwesome"!important;
  position:absolute!important;
  right:8px!important;
  top:50%!important;
  transform:translateY(-50%)!important;
  display:inline-block!important;
  opacity:.42!important;
  color:#0f766e!important;
  font-size:11px!important;
  line-height:1!important;
  background:none!important;
  width:auto!important;
  height:auto!important;
}

table.dataTable thead .sorting:after{
  content:"\f0dc"!important;
}

table.dataTable thead .sorting_asc:after{
  content:"\f0de"!important;
  opacity:.85!important;
}

table.dataTable thead .sorting_desc:after{
  content:"\f0dd"!important;
  opacity:.85!important;
}

table.dataTable thead th.sorting,
table.dataTable thead th.sorting_asc,
table.dataTable thead th.sorting_desc{
  position:relative!important;
  padding-right:24px!important;
  background-image:none!important;
}

/* Garante visual limpo nos cabeçalhos premium */
.premium-table thead th{
  vertical-align:middle!important;
}

/* Deixa a coluna do ID mais compacta e estável */
.igreja-data-table th:first-child,
.igreja-data-table td:first-child{
  white-space:nowrap!important;
  width:76px!important;
}


/* Correção: coluna ID ordena numericamente sem bagunçar visual */
.igreja-data-table td:first-child[data-order]{
  white-space:nowrap!important;
}
.igreja-data-table td:first-child .record-id{
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
}


/* ==========================================================
   DOCUMENTOS - UPLOAD E ARQUIVOS
   ========================================================== */
.document-files-content .document-files-stats{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:16px;
  margin-bottom:18px;
}

.document-files-content .document-files-stats > div{
  background:linear-gradient(135deg,#ffffff,#f7fbff);
  border:1px solid #dbe7ef;
  border-radius:22px;
  padding:18px 22px;
  box-shadow:0 18px 42px rgba(15,35,61,.08);
}

.document-files-content .document-files-stats strong{
  display:block;
  font-size:30px;
  line-height:1;
  font-weight:950;
  color:#0f766e;
}

.document-files-content .document-files-stats span{
  display:block;
  margin-top:8px;
  font-weight:900;
  color:#53657d;
}

.document-file-upload-form .form-control,
.document-files-filter .form-control{
  border-radius:14px!important;
}

.document-files-filter{
  margin-bottom:18px!important;
  padding:14px!important;
  border-radius:20px!important;
  background:#f8fafc!important;
  border:1px solid #e4edf5!important;
}

.document-files-filter label{
  font-weight:900;
  color:#102033;
  font-size:12px;
  text-transform:uppercase;
  letter-spacing:.04em;
}

.document-files-table-wrap{
  border-radius:18px;
  overflow:auto;
}

.document-file-name{
  display:flex;
  align-items:flex-start;
  gap:12px;
  min-width:260px;
}

.document-file-name > i{
  width:42px;
  height:42px;
  min-width:42px;
  border-radius:14px;
  display:flex;
  align-items:center;
  justify-content:center;
  background:linear-gradient(135deg,#0f766e,#14b8a6);
  color:#fff;
  font-size:18px;
  box-shadow:0 10px 22px rgba(15,118,110,.16);
}

.document-file-name a{
  display:block;
  font-weight:950;
  color:#102033;
}

.document-file-name a:hover{
  color:#0f766e;
  text-decoration:underline!important;
}

.document-file-name small,
.document-file-name em{
  display:block;
  color:#64748b;
  font-style:normal;
  font-weight:700;
  line-height:1.45;
  margin-top:2px;
}

.document-files-content td small{
  display:block;
  color:#64748b;
  font-weight:700;
}

.document-files-content .action-buttons{
  white-space:nowrap;
}

.document-files-content .action-buttons .btn{
  border-radius:10px!important;
  margin-right:3px;
}

@media(max-width:991px){
  .document-files-content .document-files-stats{
    grid-template-columns:1fr;
  }
}

@media(max-width:767px){
  .document-files-content .box-tools,
  .document-files-content .module-toolbar{
    display:block!important;
  }

  .document-file-name{
    min-width:220px;
  }
}


/* ==========================================================
   DOCUMENTOS - CATEGORIAS E LISTA MAIS COMPACTA
   ========================================================== */
.document-files-tabs{
  display:flex;
  align-items:center;
  gap:10px;
  margin:0 0 18px;
  flex-wrap:wrap;
}

.document-files-tabs a{
  display:inline-flex;
  align-items:center;
  gap:8px;
  min-height:42px;
  padding:0 16px;
  border-radius:999px;
  background:#fff;
  border:1px solid #dbe7ef;
  color:#102033;
  font-weight:900;
  box-shadow:0 10px 24px rgba(15,35,61,.06);
}

.document-files-tabs a.active{
  color:#fff;
  background:linear-gradient(135deg,#0f766e,#14b8a6);
  border-color:transparent;
  box-shadow:0 14px 28px rgba(15,118,110,.18);
}

.document-upload-header small{
  display:block;
  margin-top:5px;
  line-height:1.5;
}

/* Ícone menor na lista */
.document-files-table .document-file-name{
  min-width:220px;
  gap:10px;
}

.document-files-table .document-file-name > i,
.document-file-name.compact > i{
  width:30px!important;
  height:30px!important;
  min-width:30px!important;
  border-radius:9px!important;
  font-size:14px!important;
  box-shadow:0 8px 16px rgba(15,118,110,.12)!important;
}

.document-files-table .document-file-name a{
  font-size:14px;
  line-height:1.2;
}

.document-files-table .document-file-name small{
  font-size:11px;
  margin-top:3px;
}

.document-files-table .document-file-name em{
  font-size:11px;
  max-width:280px;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}

.document-category-pill{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:5px 9px;
  border-radius:999px;
  background:#eefdfb;
  color:#0f766e;
  font-weight:900;
  font-size:12px;
  white-space:nowrap;
}

/* Categorias */
.document-category-grid{
  display:grid;
  grid-template-columns:repeat(auto-fill,minmax(240px,1fr));
  gap:12px;
}

.document-category-card{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding:14px;
  border-radius:18px;
  background:#fff;
  border:1px solid #dbe7ef;
  box-shadow:0 10px 24px rgba(15,35,61,.06);
}

.document-category-card strong{
  display:block;
  color:#102033;
  font-weight:950;
}

.document-category-card strong i{
  color:#0f766e;
  margin-right:6px;
}

.document-category-card small{
  display:block;
  margin-top:3px;
  color:#64748b;
  font-weight:700;
  line-height:1.35;
}

.document-category-card.is-disabled{
  opacity:.58;
  background:#f8fafc;
}

.document-category-card form{
  margin:0;
}

@media(max-width:767px){
  .document-files-tabs a{
    width:100%;
    justify-content:center;
  }

  .document-category-grid{
    grid-template-columns:1fr;
  }

  .document-category-card{
    align-items:flex-start;
    flex-direction:column;
  }

  .document-category-card form,
  .document-category-card button{
    width:100%;
  }
}


/* ==========================================================
   DOCUMENTOS - CATEGORIA AUTOMÁTICA E ÍCONE COMPACTO
   ========================================================== */
.document-file-name.compact > i,
.document-files-table .document-file-name > i{
  width:28px!important;
  height:28px!important;
  min-width:28px!important;
  border-radius:8px!important;
  font-size:13px!important;
}

.document-files-table .document-file-name{
  gap:9px!important;
  align-items:flex-start!important;
}

.document-files-table .document-file-name a{
  font-size:13px!important;
}

.document-files-table .document-file-name small,
.document-files-table .document-file-name em{
  font-size:11px!important;
}

.document-file-upload-form input[list]{
  border-radius:14px!important;
}


/* ==========================================================
   AJUSTES - PROFISSÃO, FOTO/CÂMERA E DOCUMENTOS COMPACTO
   ========================================================== */

/* Documentos: ícone pequeno na tabela */
.document-file-name.compact > i,
.document-files-table .document-file-name > i{
  width:28px!important;
  height:28px!important;
  min-width:28px!important;
  border-radius:8px!important;
  font-size:13px!important;
}

.document-files-table .document-file-name{
  gap:9px!important;
  align-items:flex-start!important;
}

.document-files-table .document-file-name a{
  font-size:13px!important;
  line-height:1.2!important;
}

.document-files-table .document-file-name small,
.document-files-table .document-file-name em{
  font-size:11px!important;
}

/* Formulário de membros: deixa o campo foto mais agradável quando estiver no topo */
.module-form-content input[type="file"][accept="image/*"]{
  min-height:42px!important;
  padding:9px 12px!important;
  background:#fff!important;
  border-radius:14px!important;
}

.module-form-content input[type="file"][accept="image/*"] + .help-block{
  margin-top:7px!important;
  color:#4f6b85!important;
  font-weight:700!important;
}

.module-form-content input[type="file"][accept="image/*"] + .help-block i{
  color:#0f766e!important;
}


/* ==========================================================
   MEMBROS - FOTO NO TOPO E PROFISSÃO NO CADASTRO
   ========================================================== */
.module-form-content .membro-foto-top-field{
  width:100%!important;
  clear:both!important;
}

.module-form-content .membro-foto-top-field .premium-field{
  display:grid!important;
  grid-template-columns:180px 1fr!important;
  gap:14px!important;
  align-items:center!important;
  padding:14px!important;
  border:1px solid #dbe7ef!important;
  border-radius:18px!important;
  background:linear-gradient(135deg,#ffffff,#f8fbff)!important;
  box-shadow:0 10px 24px rgba(15,35,61,.06)!important;
}

.module-form-content .membro-foto-top-field label{
  margin:0!important;
  font-size:14px!important;
  font-weight:950!important;
  color:#102033!important;
}

.module-form-content .membro-foto-top-field img{
  max-width:86px!important;
  max-height:86px!important;
  border-radius:18px!important;
  margin-right:12px!important;
}

.module-form-content .membro-foto-top-field input[type="file"]{
  min-height:42px!important;
  padding:9px 12px!important;
  border-radius:14px!important;
  background:#fff!important;
}

.module-form-content .membro-foto-top-field .help-block{
  display:none!important;
}

@media(max-width:767px){
  .module-form-content .membro-foto-top-field .premium-field{
    grid-template-columns:1fr!important;
    gap:8px!important;
  }
}


/* ==========================================================
   CORREÇÃO DEFINITIVA - CADASTRO DE MEMBROS / PROFISSÃO
   ========================================================== */
.module-form-content .membro-foto-top-field{
  width:100%!important;
  clear:both!important;
}

.module-form-content .membro-foto-top-field .premium-field{
  display:grid!important;
  grid-template-columns:150px 1fr!important;
  gap:12px!important;
  align-items:center!important;
  padding:12px 14px!important;
  border:1px solid #dbe7ef!important;
  border-radius:16px!important;
  background:#f8fbff!important;
}

.module-form-content .membro-foto-top-field label{
  margin:0!important;
  font-weight:950!important;
  color:#102033!important;
}

.module-form-content .membro-foto-top-field input[type="file"]{
  min-height:40px!important;
  padding:8px 10px!important;
  border-radius:12px!important;
  background:#fff!important;
}

.module-form-content .membro-foto-top-field .help-block{
  display:none!important;
}

@media(max-width:767px){
  .module-form-content .membro-foto-top-field .premium-field{
    grid-template-columns:1fr!important;
  }
}


/* ==========================================================
   MEMBROS - CAMPOS DE FILIAÇÃO
   ========================================================== */
.module-form-content input[name="pai"],
.module-form-content input[name="mae"]{
  text-transform:none!important;
}

/* ==========================================================
   CARTEIRINHA DE MEMBRO - MODELO OFICIAL
   ========================================================== */
.member-card-content .box-body,
.module-view-content .member-card-profile-box .box-body,
.profile-member-card-box .box-body{
  overflow-x:auto;
}

.member-card-model-pair{
  display:flex;
  gap:4mm;
  align-items:flex-start;
  justify-content:center;
  width:max-content;
  max-width:100%;
  margin:0 auto 18px;
  padding:0;
}

.member-card-model-side{
  position:relative;
  width:85.6mm;
  height:54mm;
  flex:0 0 auto;
  overflow:hidden;
  background:#fff;
  color:#050505;
  font-family:Arial,Helvetica,sans-serif;
  box-shadow:0 16px 45px rgba(15,35,61,.16);
  -webkit-print-color-adjust:exact;
  print-color-adjust:exact;
}

.mc-template{
  position:absolute;
  z-index:1;
  display:block;
  width:180.5mm;
  height:auto;
  max-width:none!important;
  user-select:none;
  pointer-events:none;
  image-rendering:auto;
}

.mc-template-back{left:-3.05mm;top:-5.08mm}
.mc-template-front{left:-91.75mm;top:-5.08mm}

.mc-field{
  position:absolute;
  z-index:2;
  display:block;
  min-width:0;
  color:#050505;
  font-size:7pt;
  line-height:1.05;
  font-weight:850;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
  letter-spacing:0;
}

.mc-emissao{left:77%;top:6.1%;width:16%;font-size:5.3pt;text-align:center}
.mc-nascimento{left:13.5%;top:12.7%;width:19%;font-size:6.6pt}
.mc-cpf{left:39.6%;top:12.7%;width:20%;font-size:6.6pt}
.mc-validade{left:77.4%;top:12.7%;width:17.8%;font-size:6.6pt}
.mc-pai{left:12%;top:27%;width:80.5%}
.mc-mae{left:12%;top:41.5%;width:80.5%}
.mc-naturalidade{left:22%;top:56.4%;width:70.5%}
.mc-congregacao{left:22%;top:69.2%;width:70.5%}
.mc-batismo{left:16%;top:82.2%;width:29%}
.mc-estado-civil{left:59%;top:82.2%;width:34%}

.mc-credential-bar{
  position:absolute;
  z-index:3;
  left:25.4%;
  top:29.4%;
  width:67.6%;
  height:10.85%;
  display:flex;
  align-items:center;
  justify-content:center;
  background:#087542;
  color:#fff;
  font-size:10.6pt;
  line-height:1;
  font-weight:950;
  letter-spacing:0;
  white-space:nowrap;
}
.mc-ordinal{font-size:1em;line-height:1;vertical-align:baseline}

.mc-nome{left:14.8%;top:45.5%;width:50.5%;font-size:7.3pt}
.mc-funcao{left:16.8%;top:58.3%;width:48.5%;font-size:7.3pt}
.mc-photo{
  position:absolute;
  z-index:2;
  left:67%;
  top:43.1%;
  width:26.1%;
  height:46.7%;
  overflow:hidden;
  background:#fff;
}
.mc-photo img{width:700%;height:100%;object-fit:cover;display:block}

.card-print-area.single{
  justify-content:center;
}

.profile-member-card-box .card-print-area,
.member-card-profile-box .card-print-area{
  justify-content:flex-start;
}

.clean-form-page{
  max-width:1040px!important;
  margin:0 auto!important;
  padding-bottom:28px!important;
}

.clean-card{
  background:#fff!important;
  border:1px solid #dbe7ef!important;
  border-radius:20px!important;
  box-shadow:0 16px 45px rgba(15,35,61,.10)!important;
  margin-bottom:16px!important;
  overflow:hidden!important;
}

.clean-card-title{
  display:flex!important;
  align-items:center!important;
  gap:8px!important;
  padding:14px 18px!important;
  border-bottom:1px solid #edf2f7!important;
  color:#10253d!important;
  font-size:16px!important;
  font-weight:950!important;
}

.clean-card-title i{
  color:#0f766e!important;
}

.clean-form{
  padding:16px!important;
}

.clean-section{
  border:1px solid #edf2f7!important;
  background:#f8fafc!important;
  border-radius:16px!important;
  padding:14px!important;
  margin-bottom:12px!important;
}

.clean-section-title{
  display:flex!important;
  align-items:center!important;
  gap:8px!important;
  margin-bottom:12px!important;
  padding-bottom:8px!important;
  border-bottom:1px solid #e2e8f0!important;
  color:#10253d!important;
}

.clean-section-title i{
  color:#0f766e!important;
}

.clean-field{
  margin-bottom:10px!important;
}

.clean-field label{
  display:block!important;
  margin-bottom:4px!important;
  color:#10253d!important;
  font-size:11px!important;
  font-weight:950!important;
  text-transform:uppercase!important;
  letter-spacing:.03em!important;
}

.clean-field label span{
  color:#dc2626!important;
}

.clean-field .form-control{
  height:38px!important;
  min-height:38px!important;
  border-radius:10px!important;
  border:1px solid #dbe7ef!important;
  background:#fff!important;
  font-size:13px!important;
  font-weight:750!important;
  padding:7px 10px!important;
  box-shadow:none!important;
}

.clean-field textarea.form-control{
  height:auto!important;
  min-height:70px!important;
}

.clean-field .form-control:focus{
  border-color:#14b8a6!important;
  box-shadow:0 0 0 3px rgba(20,184,166,.12)!important;
}

.clean-photo-box{
  display:flex!important;
  align-items:center!important;
  gap:12px!important;
  padding:10px!important;
  border-radius:14px!important;
  background:#fff!important;
  border:1px dashed #cbd5e1!important;
}

.clean-photo-preview{
  width:66px!important;
  height:66px!important;
  min-width:66px!important;
  border-radius:14px!important;
  background:#f1f5f9!important;
  border:1px solid #dbe7ef!important;
  overflow:hidden!important;
}

.clean-photo-preview img{
  width:100%!important;
  height:100%!important;
  object-fit:cover!important;
}

.clean-photo-preview div{
  width:100%!important;
  height:100%!important;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  color:#64748b!important;
  font-size:26px!important;
}

.clean-photo-content strong{
  display:block!important;
  color:#10253d!important;
  font-size:14px!important;
  font-weight:950!important;
}

.clean-photo-content p{
  margin:2px 0 8px!important;
  color:#64748b!important;
  font-size:11px!important;
  font-weight:700!important;
}

.clean-photo-button{
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  gap:7px!important;
  height:32px!important;
  padding:0 12px!important;
  border-radius:10px!important;
  background:#0f766e!important;
  color:#fff!important;
  font-size:12px!important;
  font-weight:950!important;
  cursor:pointer!important;
}

.clean-photo-button input{
  display:none!important;
}

.clean-info{
  display:flex!important;
  align-items:center!important;
  gap:8px!important;
  margin-top:10px!important;
  padding:11px 13px!important;
  border-radius:14px!important;
  background:#ecfeff!important;
  border:1px solid #ccfbf1!important;
  color:#0f766e!important;
  font-size:12px!important;
  font-weight:850!important;
}

.clean-actions{
  display:flex!important;
  justify-content:flex-end!important;
  gap:10px!important;
  padding-top:14px!important;
}

.clean-actions .btn{
  height:38px!important;
  border-radius:10px!important;
  font-size:13px!important;
  font-weight:950!important;
  padding:0 18px!important;
}

@media(max-width:767px){
  .clean-form-page{
    max-width:100%!important;
  }

  .clean-form{
    padding:10px!important;
  }

  .clean-section{
    padding:12px!important;
  }

  .clean-photo-box{
    align-items:flex-start!important;
  }

  .clean-actions{
    flex-direction:column!important;
  }

  .clean-actions .btn{
    width:100%!important;
  }
}

@media(max-width:900px){
  .member-card-model-pair{
    flex-direction:column;
    align-items:center;
    width:100%;
  }
}

.clean-view-page{
  max-width:1040px!important;
  margin:0 auto!important;
  padding-bottom:28px!important;
}

.clean-view-card{
  background:#fff!important;
  border:1px solid #dbe7ef!important;
  border-radius:20px!important;
  box-shadow:0 16px 45px rgba(15,35,61,.10)!important;
  overflow:hidden!important;
}

.clean-view-head{
  display:flex!important;
  justify-content:space-between!important;
  align-items:center!important;
  gap:16px!important;
  padding:16px 18px!important;
  border-bottom:1px solid #edf2f7!important;
}

.clean-view-head span{
  display:block!important;
  color:#0f766e!important;
  font-size:11px!important;
  font-weight:950!important;
  text-transform:uppercase!important;
}

.clean-view-head h3{
  margin:3px 0 0!important;
  color:#10253d!important;
  font-size:18px!important;
  font-weight:950!important;
}

.clean-view-actions{
  display:flex!important;
  gap:8px!important;
}

.clean-view-section{
  margin:14px!important;
  padding:14px!important;
  border:1px solid #edf2f7!important;
  border-radius:16px!important;
  background:#f8fafc!important;
}

.clean-view-section-title{
  display:flex!important;
  align-items:center!important;
  gap:8px!important;
  padding-bottom:8px!important;
  margin-bottom:12px!important;
  border-bottom:1px solid #e2e8f0!important;
  color:#10253d!important;
}

.clean-view-section-title i{
  color:#0f766e!important;
}

.clean-view-section-title strong{
  font-size:15px!important;
  font-weight:950!important;
}

.clean-view-item{
  background:#fff!important;
  border:1px solid #e2e8f0!important;
  border-radius:13px!important;
  padding:9px 11px!important;
  margin-bottom:10px!important;
  min-height:62px!important;
}

.clean-view-item span{
  display:block!important;
  color:#64748b!important;
  font-size:10px!important;
  font-weight:950!important;
  text-transform:uppercase!important;
  margin-bottom:4px!important;
}

.clean-view-item strong{
  display:block!important;
  color:#10253d!important;
  font-size:13px!important;
  font-weight:850!important;
  word-break:break-word!important;
}

.clean-view-item strong.long{
  line-height:1.55!important;
}

.clean-view-photo-box{
  display:flex!important;
  align-items:center!important;
  gap:13px!important;
  background:#fff!important;
  border:1px dashed #cbd5e1!important;
  border-radius:14px!important;
  padding:10px!important;
}

.clean-view-photo-box img{
  width:72px!important;
  height:72px!important;
  min-width:72px!important;
  border-radius:14px!important;
  object-fit:cover!important;
  border:1px solid #dbe7ef!important;
}

.clean-view-photo-box strong{
  display:block!important;
  color:#10253d!important;
  font-size:16px!important;
  font-weight:950!important;
}

.clean-view-photo-box span{
  display:block!important;
  color:#64748b!important;
  font-size:12px!important;
  font-weight:800!important;
}

@media(max-width:767px){
  .clean-view-head{
    display:block!important;
  }

  .clean-view-actions{
    margin-top:10px!important;
  }

  .clean-view-actions .btn{
    width:100%!important;
  }
}

@media print{
  @page{size:A4 landscape;margin:8mm}
  body.printing-carteirinha .wrapper,
  body.printing-carteirinha .content-wrapper{background:#fff!important;overflow:visible!important}
  body.printing-carteirinha .main-header,
  body.printing-carteirinha .main-sidebar,
  body.printing-carteirinha .main-footer,
  body.printing-carteirinha .content-header,
  body.printing-carteirinha .member-card-controls,
  body.printing-carteirinha .no-print,
  body.printing-carteirinha .breadcrumb,
  body.printing-carteirinha .alert,
  body.printing-carteirinha .box-header,
  body.printing-carteirinha .box-tools,
  body.printing-carteirinha .premium-actions{display:none!important}
  body.printing-carteirinha .content-wrapper{margin:0!important;padding:0!important;min-height:0!important}
  body.printing-carteirinha .content{padding:0!important;margin:0!important;display:block!important}
  body.printing-carteirinha .member-card-content{display:block!important;padding:0!important;margin:0!important}
  body.printing-carteirinha .member-card-screen{display:block!important;margin:0!important}
  body.printing-carteirinha .member-card-preview{float:none!important;width:100%!important;max-width:none!important;padding:0!important}
  body.printing-carteirinha .box,
  body.printing-carteirinha .premium-box{box-shadow:none!important;border:0!important;margin:0!important;background:#fff!important}
  body.printing-carteirinha .box-body{padding:0!important;background:#fff!important;overflow:visible!important}
  body.printing-carteirinha .card-print-area{display:flex!important;visibility:visible!important;opacity:1!important;background:#fff!important;gap:6mm;justify-content:center;align-items:flex-start;flex-wrap:wrap;width:100%!important}
  body.printing-carteirinha .bulk-print{display:none!important}
  body.printing-carteirinha .bulk-print.print-all{display:flex!important}
  body.printing-carteirinha .member-card-model-pair{display:flex!important;flex-direction:row!important;gap:4mm;margin:0 0 6mm 0;max-width:none;page-break-inside:avoid;break-inside:avoid}
  body.printing-carteirinha .member-card-model-side{width:85.6mm!important;height:54mm!important;box-shadow:none!important;background:#fff!important}
  body.printing-carteirinha .mc-template{display:block!important;width:180.5mm!important;max-width:none!important}
  body.printing-carteirinha .mc-photo img{display:block!important}
}

/* ==========================================================
   CARTEIRINHA RECRIADA NO SISTEMA - DIGITAL E IMPRESSA
   ========================================================== */
.member-card-print-pair{
  display:flex;
  gap:0;
  align-items:flex-start;
  justify-content:flex-start;
  width:max-content;
  max-width:100%;
  margin:0 auto 18px;
  color:#050505;
  font-family:Arial,Helvetica,sans-serif;
}

.member-card-print-side{
  position:relative;
  width:95mm;
  height:60mm;
  flex:0 0 auto;
  overflow:hidden;
  background:#fff;
  border:2.3mm solid #0799c9;
  padding:0;
  box-shadow:0 16px 45px rgba(15,35,61,.16);
  box-sizing:border-box;
  -webkit-print-color-adjust:exact;
  print-color-adjust:exact;
}

.member-card-content .card-print-area.single{
  justify-content:flex-start;
  overflow:auto;
  padding:10px 8px 14px;
}

.member-card-content .card-print-area.single .member-card-print-pair{
  zoom:1.18;
}

.print-card-border{
  position:relative;
  height:100%;
  padding:3.2mm 4mm 2mm;
  box-sizing:border-box;
  background:#fff;
  border:1mm solid #fff200;
  outline:1.55mm solid #087e8a;
  outline-offset:-2.6mm;
  box-shadow:inset 0 0 0 .45mm #1fc6b1;
}

.print-card-border:after{
  content:"";
  position:absolute;
  inset:2.35mm;
  border:.45mm solid #0a1774;
  pointer-events:none;
}

.print-card-border>*{
  position:relative;
  z-index:1;
}

.print-date-line{
  position:absolute;
  top:3.2mm;
  right:4.5mm;
  font-size:4.1pt;
  line-height:1;
  font-weight:900;
}
.print-date-line span{display:inline-block;min-width:15mm;text-align:center;border-bottom:.2mm solid #222}

.print-back-grid{display:grid;gap:.7mm;margin-bottom:.7mm}
.print-back-grid.top{grid-template-columns:30mm 30mm 1fr;margin-top:1.2mm}
.print-back-grid.bottom{grid-template-columns:1fr 1fr;margin-top:.5mm;margin-bottom:0}

.print-box{
  min-height:6.5mm;
  border:.25mm solid #333;
  padding:.48mm .9mm;
  box-sizing:border-box;
  background:#fff;
  display:flex;
  align-items:center;
  gap:1.1mm;
  overflow:hidden;
}
.print-box.full{height:6.7mm;margin-bottom:1mm}
.print-box.small{height:6.9mm}
.print-box b{
  flex:0 0 auto;
  font-size:5.85pt;
  line-height:1;
  font-weight:950;
  white-space:nowrap;
}
.print-box span{
  display:block;
  min-width:0;
  font-size:5.05pt;
  line-height:1;
  font-weight:850;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
.print-box.validity{
  display:block;
  padding-top:.7mm;
}
.print-box.validity b{display:block;font-size:4.7pt;margin-bottom:.35mm}
.print-box.validity span{font-size:4.85pt;text-align:center}

.print-front .print-card-border{padding:0}
.print-front-head{
  position:absolute;
  left:5mm;
  right:4mm;
  top:3.5mm;
  height:18.5mm;
  display:block;
}
.print-church-logo{
  position:absolute;
  left:-7mm;
  top:-1mm;
  width:36mm;
  height:21mm;
  display:flex;
  align-items:center;
  justify-content:center;
  overflow:hidden;
}
.print-church-logo img{max-width:100%;max-height:100%;object-fit:contain;display:block}
.print-title{text-align:center;color:#030303;font-weight:900;line-height:1.05}
.print-front .print-title{
  position:absolute;
  left:24mm;
  right:0;
  top:0;
}
.print-title strong{
  display:block;
  font-size:6.15pt;
  white-space:nowrap;
  font-weight:950!important;
}
.print-title b{display:block;font-size:7.2pt;color:#d8232f;font-weight:950!important;white-space:nowrap;margin:.55mm 0 .35mm;border-bottom:.35mm solid #d8232f;padding-bottom:.2mm}
.print-title span{display:block;font-size:4.05pt;line-height:1.02;font-weight:850;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}

.print-credential{
  position:absolute;
  left:31mm;
  right:4.5mm;
  top:14.7mm;
  margin:0;
  height:6mm;
  background:transparent;
  color:#fff;
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:8pt;
  line-height:1;
  font-weight:950;
  white-space:nowrap;
  overflow:hidden;
  text-shadow: 0 .35mm .45mm rgba(0,0,0,.45);
  letter-spacing:.35mm;
}
.print-credential-bg{
  position:absolute;
  inset:0;
  z-index:0;
  width:100%;
  height:100%;
  display:block;
}
.print-credential span{
  position:relative;
  z-index:1;
}

.print-member-row{
  position:absolute;
  left:5mm;
  right:4.5mm;
  top:25.2mm;
  bottom:3.5mm;
  display:block;
}
.print-member-data{
  position:absolute;
  left:0;
  top:0;
  width:50mm;
  height:100%;
}
.print-label-box.no-border{
  border:none!important;
}
.print-label-box{
  height:6.5mm;
  border:.25mm solid #333;
  padding:.45mm .9mm;
  box-sizing:border-box;
  overflow:hidden;
}
.print-label-box+.print-label-box{margin-top:.6mm}
.print-label-box b{display:block;font-size:5.25pt;line-height:1;font-weight:950}
.print-label-box span{
  display:block;
  margin-top:.15mm;
  font-size:6.15pt;
  line-height:1;
  font-weight:900;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
  text-shadow:0 .15mm .25mm rgba(0,0,0,.40);
}
.print-label-box.no-border span{
  font-size:6.5pt!important;
}
.printed-pastor-docs {
    display: block;
    position: relative;
    left: -2mm;
    top: -1mm;
    font-size: 5.2px;
    line-height: 1;
    font-weight: 500;
    color: #000;
    text-transform: uppercase;
    white-space: nowrap;
    margin: 0;
}

.printed-pastor-docs strong{
    font-weight: 900;
}
.print-photo{
  position:absolute;
  right:0;
  top:0;
  width:24mm;
  height:25mm;
  border:.25mm solid #333;
  overflow:hidden;
  background:#fff;
}
.print-photo img{width:100%;height:100%;object-fit:cover;display:block}
.print-signature{
  position:absolute;
  left:16mm;
  top:12.5mm;
  width:34mm;
  text-align:center;
  margin:0;
  line-height:1;
}
.print-signature img{
  display:block;
  width:37mm;
  height:9mm;
  object-fit:contain;
  margin:0 auto .1mm;
}
.print-signature strong{display:block;font-size:4.35pt;font-weight:950}
.print-signature span{display:block;font-size:3.85pt;font-weight:850;margin-top:.1mm}
.print-signature small{display:block;font-size:3.35pt;font-weight:850;margin-top:.12mm}

.member-digital-card-stack{
  width:min(100%,760px);
  margin:0 auto;
  display:grid;
  gap:28px;
}
.member-digital-card{
  position:relative;
  min-height:340px;
  overflow:hidden;
  border-radius:24px;
  background:#f6f6f3;
  box-shadow:0 18px 55px rgba(15,35,61,.14);
  color:#202020;
  font-family:Arial,Helvetica,sans-serif;
  box-sizing:border-box;
}
.member-digital-card:before{
  content:"";
  position:absolute;
  inset:0;
  background:radial-gradient(circle at 20% 10%,rgba(255,255,255,.95),rgba(255,255,255,.35) 38%,rgba(235,235,230,.35));
  opacity:.75;
}
.member-digital-card>*{position:relative;z-index:1}
.digital-front{display:grid;grid-template-columns:220px 1fr 150px;grid-template-rows:150px 1fr;padding:36px 46px}
.digital-photo{grid-row:1 / span 1;width:185px;height:185px;border-radius:20px;overflow:hidden;background:#fff}
.digital-photo img{width:100%;height:100%;object-fit:cover;display:block}
.digital-title{grid-column:2;align-self:center;text-align:center;color:#7c0d0d;font-weight:950;line-height:1.14}
.digital-title strong,.digital-title span,.digital-title small{display:block}
.digital-title strong{font-size:24px}
.digital-title span{font-size:24px}
.digital-title small{font-size:24px}
.digital-title:after{content:"";display:block;width:260px;max-width:100%;height:2px;background:#7c0d0d;margin:16px auto 0}
.digital-logo{grid-column:3;align-self:center;justify-self:center;width:120px;height:90px;display:flex;align-items:center;justify-content:center}
.digital-logo img{max-width:100%;max-height:100%;object-fit:contain;display:block}
.digital-decor{position:absolute;right:44px;top:145px;width:82px;height:195px;border:3px solid #7c0d0d;border-left:0;border-radius:0 22px 22px 0}
.digital-main{grid-column:1 / span 3;align-self:end;padding-top:28px}
.digital-main h3{margin:0 0 10px;font-size:20px;line-height:1.05;font-weight:950;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.digital-main p{margin:7px 0;font-size:26px;line-height:1.05;font-weight:500}
.digital-main span{font-weight:500}.digital-main b{font-weight:950}
.digital-back{padding:58px 56px 34px;display:grid;grid-template-columns:1fr 330px;gap:20px;align-items:end}
.digital-back-lines p{margin:0 0 13px;font-size:28px;line-height:1.05}
.digital-back-lines span{font-weight:500}.digital-back-lines b{font-weight:950}
.digital-signature{text-align:center;line-height:1}
.digital-signature img{display:block;width:180px;height:70px;object-fit:contain;margin:0 auto 2px}
.digital-signature strong{display:block;font-size:18px;font-weight:950}
.digital-signature span{display:block;font-size:14px;font-weight:850;margin-top:2px}
.digital-signature small{display:block;font-size:12px;font-weight:850;margin:4px 0 7px}
.digital-signature em{display:block;font-style:normal;font-size:12px;line-height:1.2;margin-top:2px}

@media(max-width:900px){
  .member-card-print-pair{flex-direction:column;align-items:center;width:100%}
  .digital-front{grid-template-columns:150px 1fr;grid-template-rows:auto auto auto;padding:24px}
  .digital-photo{width:130px;height:130px}
  .digital-title{grid-column:2}
  .digital-logo{grid-column:1 / span 2;margin-top:8px}
  .digital-main{grid-column:1 / span 2}
  .digital-decor{display:none}
  .digital-main p,.digital-back-lines p{font-size:18px}
  .digital-back{grid-template-columns:1fr;padding:32px 28px}
}

@media print{
  body.printing-carteirinha .card-print-area{justify-content:flex-start!important;align-items:flex-start!important;gap:0!important}
  body.printing-carteirinha .member-card-content .card-print-area.single .member-card-print-pair{zoom:1!important}
  body.printing-carteirinha .member-card-print-pair{display:flex!important;flex-direction:row!important;gap:0!important;margin:0 0 6mm 0!important;page-break-inside:avoid;break-inside:avoid}
  body.printing-carteirinha .member-card-print-side{width:95mm!important;height:60mm!important;box-shadow:none!important;border-color:#0799c9!important;background:#fff!important}
  body.printing-carteirinha .print-card-border{border-color:#fff200!important;outline-color:#087e8a!important;box-shadow:inset 0 0 0 .45mm #1fc6b1!important}
  body.printing-carteirinha .print-credential{color:#fff!important}
  body.printing-carteirinha .print-credential-bg rect{fill:#087542!important}
  body.printing-carteirinha .member-digital-card-stack{display:none!important}
}


/* ==========================================================
   PAINEL - VISITANTES DO DIA
   ========================================================== */
.visitor-daily-filter{
  display:flex;
  align-items:flex-end;
  gap:12px;
  flex-wrap:wrap;
  margin-bottom:18px;
  padding:14px;
  border:1px solid #dbe7ef;
  background:#f8fafc;
  border-radius:18px;
}

.visitor-daily-filter label{
  display:block;
  width:100%;
  margin:0 0 -4px;
  font-weight:950;
  color:#102033;
}

.visitor-daily-filter input[type="date"]{
  max-width:220px;
  border-radius:14px!important;
}

.visitor-name-cell{
  font-weight:950;
  color:#0f766e;
}

.visitor-daily-table td{
  vertical-align:middle!important;
}


/* ==========================================================
   CORREÇÃO PAINEL - VISITANTES DO DIA
   ========================================================== */
.visitor-daily-content .box-tools .btn-premium{
  border-radius:14px!important;
  font-weight:900!important;
}

.visitor-daily-table .visitor-name-cell{
  font-size:15px!important;
}


/* ==========================================================
   PEDIDOS DE ORAÇÃO / CONTATO - VIEW COMPLETA E ATENDIMENTO
   ========================================================== */
.pedido-view-wrap{padding:24px!important;}
.pedido-view-top{display:grid;grid-template-columns:1.1fr .9fr;gap:18px;margin-bottom:18px;}
.pedido-reference-card,.pedido-status-card,.pedido-message-card,.pedido-action-panel{background:#fff;border:1px solid #dbe7ef;border-radius:22px;box-shadow:0 18px 45px rgba(15,35,61,.08);padding:20px;}
.pedido-reference-card span,.pedido-status-card span{display:block;color:#64748b;font-size:12px;font-weight:900;text-transform:uppercase;letter-spacing:.08em;margin-bottom:8px;}
.pedido-reference-card strong{display:block;font-size:28px;color:#0f766e;font-weight:950;letter-spacing:.04em;}
.pedido-reference-card small,.pedido-status-card small{display:block;margin-top:8px;color:#64748b;font-weight:700;}
.pedido-status-card strong .label{font-size:14px;padding:8px 14px;border-radius:999px;}
.pedido-info-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:14px;margin-bottom:18px;}
.pedido-message-card{margin-bottom:18px;}
.pedido-message-card h4,.pedido-action-head h4{margin:0 0 12px;color:#102033;font-weight:950;}
.pedido-message-text{white-space:pre-wrap;font-size:16px;line-height:1.8;color:#102033;font-weight:600;background:#f8fafc;border:1px solid #e2e8f0;border-radius:16px;padding:18px;max-height:none!important;overflow:visible!important;}
.pedido-action-head p{margin:0 0 12px;color:#64748b;font-weight:700;}
.pedido-response-area{border-radius:16px!important;min-height:130px!important;}
.pedido-action-buttons{display:flex;flex-wrap:wrap;gap:10px;margin-top:14px;}
.pedido-action-buttons .btn{border-radius:12px;font-weight:900;padding:10px 14px;}
.pedido-current-answer{margin-top:12px;background:#ecfdf5;border:1px solid #99f6e4;border-radius:16px;padding:14px;color:#0f5132;line-height:1.6;}
.detail-long-text{display:block!important;white-space:pre-wrap!important;line-height:1.7!important;max-height:none!important;overflow:visible!important;}
@media(max-width:991px){.pedido-view-top,.pedido-info-grid{grid-template-columns:1fr;}}


/* ==========================================================
   PEDIDOS / CONTATO - ATENDIMENTO
   ========================================================== */
.pedido-action-panel .pedido-action-head p{
  color:#53657c!important;
  font-weight:700!important;
}

.pedido-action-form .pedido-response-area{
  min-height:130px!important;
  line-height:1.6!important;
}

.pedido-action-buttons{
  display:flex!important;
  flex-wrap:wrap!important;
  gap:10px!important;
}

.pedido-action-buttons .btn{
  border-radius:12px!important;
  font-weight:900!important;
  padding:10px 16px!important;
}


/* ==========================================================
   PEDIDOS / CONTATO - RESPOSTA E FINALIZAÇÃO
   ========================================================== */
.pedido-saved-answer{
  margin:0 0 14px!important;
  padding:14px 16px!important;
  border-radius:16px!important;
  background:#ecfdf5!important;
  border:1px solid #a7f3d0!important;
  color:#064e3b!important;
  font-size:14px!important;
  line-height:1.6!important;
}

.pedido-saved-answer b{
  display:block!important;
  margin-bottom:6px!important;
  color:#065f46!important;
}

.pedido-action-form .pedido-response-area{
  min-height:132px!important;
}

.pedido-action-buttons .btn-success{
  background:#16a34a!important;
  border-color:#16a34a!important;
}

.status-finalizado .badge,
.status-finalizado .label,
.status-finalizado .status-label{
  background:#64748b!important;
}

.member-card-buttons{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
}

/* ==========================================================
   CARTEIRINHA - PÁGINA PREMIUM
   ========================================================== */

.member-card-premium-page{
  padding:18px 24px 32px!important;
}

.member-card-layout{
  display:grid!important;
  grid-template-columns:380px minmax(0,1fr)!important;
  gap:22px!important;
  align-items:start!important;
}

.member-card-sidebar{
  display:flex!important;
  flex-direction:column!important;
  gap:18px!important;
}

.member-card-panel,
.member-card-preview-shell{
  background:rgba(255,255,255,.94)!important;
  border:1px solid rgba(15,118,110,.12)!important;
  border-radius:28px!important;
  box-shadow:0 24px 70px rgba(15,35,61,.14)!important;
  overflow:hidden!important;
}

.member-card-panel{
  padding:22px!important;
}

.member-card-panel-head{
  display:flex!important;
  align-items:center!important;
  justify-content:space-between!important;
  gap:12px!important;
  margin-bottom:18px!important;
}

.member-card-panel-head h3{
  margin:4px 0 0!important;
  color:#10253d!important;
  font-size:22px!important;
  line-height:1.1!important;
  font-weight:950!important;
}

.member-card-panel-head > i{
  width:48px!important;
  height:48px!important;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  border-radius:18px!important;
  background:linear-gradient(135deg,#0f766e,#14b8a6)!important;
  color:#fff!important;
  font-size:22px!important;
  box-shadow:0 14px 32px rgba(15,118,110,.24)!important;
}

.member-card-panel-head.small h3{
  font-size:18px!important;
}

.member-card-eyebrow{
  display:inline-flex!important;
  align-items:center!important;
  padding:6px 10px!important;
  border-radius:999px!important;
  background:#ecfeff!important;
  color:#0f766e!important;
  font-size:10px!important;
  font-weight:950!important;
  text-transform:uppercase!important;
  letter-spacing:.08em!important;
}

.member-card-fields{
  display:flex!important;
  flex-direction:column!important;
  gap:13px!important;
}

.member-card-fields .form-group{
  margin-bottom:0!important;
}

.member-card-fields label{
  margin-bottom:6px!important;
  color:#10253d!important;
  font-size:13px!important;
  font-weight:950!important;
}

.member-card-fields .form-control{
  width:100%!important;
  min-height:44px!important;
  border-radius:16px!important;
  border:1px solid #dbe7ef!important;
  background:#fff!important;
  box-shadow:none!important;
  font-weight:800!important;
}

.member-card-fields input[type="file"].form-control{
  padding:9px 10px!important;
}

.member-card-fields .help-block{
  margin:6px 0 0!important;
  color:#64748b!important;
  font-size:11px!important;
  font-weight:700!important;
}

.member-card-code-box{
  padding:14px 16px!important;
  border-radius:18px!important;
  background:linear-gradient(135deg,#07111f,#0f766e)!important;
  color:#fff!important;
  box-shadow:0 18px 38px rgba(15,118,110,.2)!important;
}

.member-card-code-box span{
  display:block!important;
  color:rgba(255,255,255,.72)!important;
  font-size:11px!important;
  font-weight:850!important;
  text-transform:uppercase!important;
  letter-spacing:.07em!important;
}

.member-card-code-box strong{
  display:block!important;
  margin-top:5px!important;
  font-size:26px!important;
  line-height:1!important;
  font-weight:950!important;
  letter-spacing:.08em!important;
}

.member-card-code-box small{
  display:block!important;
  margin-top:7px!important;
  color:rgba(255,255,255,.76)!important;
  font-size:11px!important;
  font-weight:700!important;
}

.member-card-photo-note,
.member-card-user-note,
.member-card-print-warning{
  display:flex!important;
  align-items:flex-start!important;
  gap:10px!important;
  padding:13px 14px!important;
  border-radius:18px!important;
  background:#f0fdfa!important;
  border:1px solid #ccfbf1!important;
  color:#0f766e!important;
  font-weight:800!important;
}

.member-card-photo-note i,
.member-card-user-note i,
.member-card-print-warning i{
  margin-top:2px!important;
  color:#0f766e!important;
}

.member-card-user-note p{
  margin:0!important;
  color:#334155!important;
  line-height:1.5!important;
}

.member-card-print-warning strong,
.member-card-print-warning span{
  display:block!important;
}

.member-card-print-warning strong{
  color:#10253d!important;
}

.member-card-print-warning span{
  color:#64748b!important;
  font-size:12px!important;
}

.member-card-buttons{
  display:flex!important;
  gap:10px!important;
  flex-wrap:wrap!important;
  margin-top:16px!important;
}

.member-card-buttons .btn{
  flex:1 1 140px!important;
  min-height:42px!important;
  border-radius:14px!important;
  font-weight:950!important;
  white-space:normal!important;
  box-shadow:none!important;
}

.member-card-buttons-main .btn{
  flex-basis:100%!important;
}

.member-card-buttons .btn-premium{
  background:linear-gradient(135deg,#0f766e,#14b8a6)!important;
  color:#fff!important;
  border:0!important;
  box-shadow:0 14px 28px rgba(15,118,110,.22)!important;
}

.member-card-buttons .btn-default{
  background:#fff!important;
  border:1px solid #dbe7ef!important;
  color:#10253d!important;
}

.member-card-buttons .btn:hover{
  transform:translateY(-2px)!important;
}

.member-card-select-list{
  max-height:260px!important;
  overflow:auto!important;
  border:1px solid #e2e8f0!important;
  border-radius:18px!important;
  background:#f8fafc!important;
  padding:8px!important;
}

.member-card-select-list label{
  display:flex!important;
  align-items:center!important;
  gap:9px!important;
  padding:9px 10px!important;
  border-radius:13px!important;
  margin:0!important;
  color:#10253d!important;
  font-size:13px!important;
  font-weight:900!important;
  cursor:pointer!important;
}

.member-card-select-list label:hover{
  background:#fff!important;
}

.member-card-preview-area{
  min-width:0!important;
}

.member-card-preview-header{
  display:flex!important;
  align-items:center!important;
  justify-content:space-between!important;
  gap:18px!important;
  margin-bottom:16px!important;
  padding:22px 24px!important;
  border-radius:28px!important;
  background:linear-gradient(135deg,#07111f,#0f766e)!important;
  color:#fff!important;
  box-shadow:0 24px 70px rgba(15,35,61,.16)!important;
}

.member-card-preview-header h2{
  margin:6px 0 5px!important;
  font-size:28px!important;
  line-height:1.08!important;
  font-weight:950!important;
  color:#fff!important;
}

.member-card-preview-header p{
  margin:0!important;
  color:rgba(255,255,255,.75)!important;
  font-weight:700!important;
}

.member-card-preview-header .member-card-eyebrow{
  background:rgba(255,255,255,.14)!important;
  color:#d4af37!important;
  border:1px solid rgba(255,255,255,.18)!important;
}

.member-card-preview-header .btn{
  border-radius:14px!important;
  font-weight:950!important;
  background:#fff!important;
  color:#0f766e!important;
  border:0!important;
  min-height:42px!important;
}

.member-card-preview-shell{
  padding:24px!important;
  background:linear-gradient(135deg,#ffffff,#f8fafc)!important;
}

.member-card-preview-shell .card-print-area.single{
  justify-content:center!important;
  padding:16px!important;
  background:#eef4f8!important;
  border-radius:22px!important;
  overflow:auto!important;
}

.member-card-preview-shell .member-card-print-pair{
  margin:0 auto!important;
}

.member-card-content .bulk-print{
  display:none;
}

@media(max-width:1200px){
  .member-card-layout{
    grid-template-columns:340px minmax(0,1fr)!important;
  }
}

@media(max-width:991px){
  .member-card-layout{
    grid-template-columns:1fr!important;
  }

  .member-card-sidebar{
    order:1!important;
  }

  .member-card-preview-area{
    order:2!important;
  }
}

@media(max-width:767px){
  .member-card-premium-page{
    padding:12px 10px 24px!important;
  }

  .member-card-panel,
  .member-card-preview-shell,
  .member-card-preview-header{
    border-radius:22px!important;
  }

  .member-card-panel{
    padding:16px!important;
  }

  .member-card-preview-header{
    display:block!important;
    padding:18px!important;
  }

  .member-card-preview-header .btn{
    margin-top:14px!important;
    width:100%!important;
  }

  .member-card-preview-header h2{
    font-size:23px!important;
  }

  .member-card-preview-shell{
    padding:12px!important;
  }

  .member-card-preview-shell .card-print-area.single{
    padding:10px!important;
    justify-content:flex-start!important;
  }
}

@media print{
  .member-card-premium-page{
    padding:0!important;
  }

  .member-card-sidebar,
  .member-card-preview-header,
  .member-card-panel,
  .member-card-preview-shell{
    box-shadow:none!important;
  }
}

.member-card-buttons .btn{
  flex:1;
  min-width:160px;
  border-radius:12px!important;
}

/* ==========================================================
   CORREÇÃO FINAL - ATENDIMENTO NO VISUALIZAR
   ========================================================== */
.pedido-action-form{
  display:block!important;
}

.pedido-saved-answer{
  margin:0 0 14px!important;
  padding:14px 16px!important;
  border-radius:16px!important;
  background:#ecfdf5!important;
  border:1px solid #a7f3d0!important;
  color:#064e3b!important;
  font-size:14px!important;
  line-height:1.6!important;
}

.print-credential,
.print-credential span{
  color:#fff!important;
}

.member-card-lote-under-preview{
  margin-top:18px!important;
}

.member-card-search-box{
  display:flex!important;
  align-items:center!important;
  gap:0!important;
  width:100%!important;
  height:46px!important;
  margin:0 0 14px!important;
  border-radius:18px!important;
  background:#fff!important;
  border:1px solid #dbe7ef!important;
  overflow:hidden!important;
  box-shadow:0 10px 24px rgba(15,35,61,.06)!important;
}

.member-card-search-icon{
  width:48px!important;
  height:46px!important;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  background:#ecfeff!important;
  color:#0f766e!important;
  border-right:1px solid #dbe7ef!important;
}

.member-card-search-box input{
  width:100%!important;
  height:46px!important;
  border:0!important;
  outline:0!important;
  box-shadow:none!important;
  background:#fff!important;
  padding:0 14px!important;
  color:#10253d!important;
  font-size:13px!important;
  font-weight:800!important;
}

.member-card-search-box input::placeholder{
  color:#94a3b8!important;
  font-weight:700!important;
}

@media print{
  body.printing-carteirinha .print-credential,
  body.printing-carteirinha .print-credential span{
    color:#fff!important;
    -webkit-print-color-adjust:exact!important;
    print-color-adjust:exact!important;
  }
}

.pedido-saved-answer b{
  display:block!important;
  margin-bottom:6px!important;
  color:#065f46!important;
}

@media print{
  body.printing-carteirinha .print-title b{
    color:#d8232f!important;
    -webkit-print-color-adjust:exact!important;
    print-color-adjust:exact!important;
  }
}
.print-label-box.funcao span{
  color:#e00000!important;
}

@media print{
  body.printing-carteirinha .print-label-box.funcao span{
    color:#e00000!important;
    -webkit-print-color-adjust:exact!important;
    print-color-adjust:exact!important;
  }
}

@media print{
  body.printing-carteirinha .member-card-preview-shell,
  body.printing-carteirinha .member-card-preview-shell .card-print-area.single{
    background:#fff!important;
    box-shadow:none!important;
    border:0!important;
    border-radius:0!important;
    padding:0!important;
    margin:0!important;
  }

  body.printing-carteirinha .member-card-print-pair{
    background:#fff!important;
    box-shadow:none!important;
    border-radius:0!important;
    margin:0!important;
  }

  body.printing-carteirinha .member-card-print-side{
    box-shadow:none!important;
  }
}

@media print{
  @page{
    size:A4 portrait;
    margin:5mm;
  }

  body.printing-carteirinha .card-print-area{
    display:flex!important;
    flex-direction:column!important;
    flex-wrap:nowrap!important;
    gap:6mm!important;
    align-items:flex-start!important;
    justify-content:flex-start!important;
    width:100%!important;
  }

  body.printing-carteirinha .member-card-print-pair{
    width:190mm!important;
    height:60mm!important;
    margin:0!important;
    gap:0!important;
    page-break-inside:avoid!important;
    break-inside:avoid!important;
  }

  body.printing-carteirinha .member-card-print-side{
    width:95mm!important;
    height:60mm!important;
  }
}

.member-card-layout-fit{
  grid-template-columns:360px minmax(0,1fr)!important;
  gap:18px!important;
}

.member-card-preview-fit{
  padding:16px!important;
}

.member-card-preview-fit .card-print-area.single{
  max-height:300px!important;
  overflow:auto!important;
}

.member-card-live-list{
  max-height:230px!important;
  overflow:auto!important;
}

.member-card-live-list .member-card-check-item{
  transition:.15s ease!important;
}

@media(max-width:1200px){
  .member-card-layout-fit{
    grid-template-columns:330px minmax(0,1fr)!important;
  }
}

@media(max-width:991px){
  .member-card-layout-fit{
    grid-template-columns:1fr!important;
  }
}
.pedido-action-buttons button[type="submit"]{
  cursor:pointer!important;
}

.member-profile-humanized .profile-welcome-hero{
  display:flex!important;
  align-items:center!important;
  justify-content:space-between!important;
  gap:20px!important;
  padding:26px 30px!important;
  margin-bottom:22px!important;
  border-radius:30px!important;
  background:linear-gradient(135deg,#07111f,#0f766e)!important;
  color:#fff!important;
  box-shadow:0 24px 70px rgba(15,35,61,.18)!important;
}

.profile-welcome-hero span{
  display:inline-flex!important;
  padding:7px 12px!important;
  border-radius:999px!important;
  background:rgba(255,255,255,.14)!important;
  color:#d4af37!important;
  font-weight:950!important;
  text-transform:uppercase!important;
  font-size:11px!important;
  letter-spacing:.08em!important;
}

.profile-welcome-hero h2{
  margin:10px 0 8px!important;
  font-size:30px!important;
  font-weight:950!important;
  color:#fff!important;
}

.profile-welcome-hero p{
  margin:0!important;
  color:rgba(255,255,255,.78)!important;
  font-weight:700!important;
}

.profile-welcome-hero > i{
  width:68px!important;
  height:68px!important;
  min-width:68px!important;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  border-radius:24px!important;
  background:rgba(255,255,255,.13)!important;
  color:#d4af37!important;
  font-size:30px!important;
}

.profile-top-grid{
  display:grid!important;
  grid-template-columns:350px minmax(0,1fr)!important;
  gap:18px!important;
  margin-bottom:18px!important;
}

.daily-verse-card{
  min-height:218px!important;
  padding:26px!important;
  border-radius:30px!important;
  background:linear-gradient(135deg,#ffffff,#f0fdfa)!important;
  border:1px solid rgba(15,118,110,.16)!important;
  box-shadow:0 24px 70px rgba(15,35,61,.12)!important;
  display:flex!important;
  flex-direction:column!important;
  justify-content:center!important;
}

.daily-verse-card span{
  display:inline-flex!important;
  align-items:center!important;
  gap:8px!important;
  width:max-content!important;
  padding:7px 12px!important;
  border-radius:999px!important;
  background:#ecfeff!important;
  color:#0f766e!important;
  font-size:11px!important;
  font-weight:950!important;
  text-transform:uppercase!important;
  letter-spacing:.08em!important;
}

.daily-verse-card blockquote{
  margin:18px 0 12px!important;
  padding:0!important;
  border:0!important;
  color:#10253d!important;
  font-size:24px!important;
  line-height:1.35!important;
  font-weight:900!important;
}

.daily-verse-card strong{
  display:block!important;
  color:#0f766e!important;
  font-size:15px!important;
  font-weight:950!important;
}

.daily-verse-card small{
  display:block!important;
  margin-top:8px!important;
  color:#64748b!important;
  font-weight:700!important;
}

.member-profile-humanized .premium-box{
  border-radius:28px!important;
}

.member-profile-humanized .premium-box .box-header{
  padding:18px 22px!important;
}

.member-profile-humanized .premium-box .box-body{
  padding:22px!important;
}

.member-data-box .row{
  margin-left:-8px!important;
  margin-right:-8px!important;
}

.member-data-box [class*="col-"]{
  padding-left:8px!important;
  padding-right:8px!important;
}

.member-data-box .premium-field label{
  font-size:12px!important;
  text-transform:uppercase!important;
  letter-spacing:.04em!important;
}

.member-data-box .form-control{
  min-height:42px!important;
  border-radius:14px!important;
  font-weight:800!important;
}

@media(max-width:991px){
  .profile-top-grid{
    grid-template-columns:1fr!important;
  }
}

@media(max-width:767px){
  .member-profile-humanized .profile-welcome-hero{
    display:block!important;
    padding:22px!important;
    border-radius:24px!important;
  }

  .profile-welcome-hero > i{
    margin-top:16px!important;
  }

  .profile-welcome-hero h2{
    font-size:24px!important;
  }

  .daily-verse-card blockquote{
    font-size:19px!important;
  }
}
/* ==========================================================
   CORRECAO DEFINITIVA - CARTEIRINHA / LAYOUT / BUSCA
   Coloque este bloco por ultimo para evitar conflitos antigos.
   ========================================================== */
body:not(.printing-carteirinha) .member-card-premium-page{padding:12px 18px 22px!important;overflow-x:hidden!important}
body:not(.printing-carteirinha) .member-card-layout,body:not(.printing-carteirinha) .member-card-layout-fit{display:grid!important;grid-template-columns:320px minmax(0,1fr)!important;gap:16px!important;align-items:start!important;max-width:100%!important}
body:not(.printing-carteirinha) .member-card-sidebar{min-width:0!important}
body:not(.printing-carteirinha) .member-card-panel{padding:18px!important;border-radius:24px!important;background:#fff!important;overflow:hidden!important}
body:not(.printing-carteirinha) .member-card-fields{gap:10px!important}
body:not(.printing-carteirinha) .member-card-fields label{font-size:12px!important;margin-bottom:4px!important}
body:not(.printing-carteirinha) .member-card-fields .form-control{min-height:40px!important;height:40px!important;border-radius:14px!important;font-size:12px!important}
body:not(.printing-carteirinha) .member-card-fields input[type="file"].form-control{padding:7px 9px!important}
body:not(.printing-carteirinha) .member-card-fields .help-block{font-size:10px!important;margin-top:4px!important}
body:not(.printing-carteirinha) .member-card-code-box{padding:12px 14px!important;border-radius:16px!important}
body:not(.printing-carteirinha) .member-card-code-box strong{font-size:24px!important}
body:not(.printing-carteirinha) .member-card-photo-note{padding:11px 12px!important;border-radius:16px!important;font-size:12px!important}
body:not(.printing-carteirinha) .member-card-buttons{margin-top:12px!important;gap:9px!important}
body:not(.printing-carteirinha) .member-card-buttons .btn{min-height:38px!important;border-radius:13px!important;font-size:12px!important;line-height:1.15!important}
body:not(.printing-carteirinha) .member-card-preview-area{min-width:0!important;max-width:100%!important;overflow:hidden!important}
body:not(.printing-carteirinha) .member-card-preview-header{padding:14px 18px!important;margin-bottom:14px!important;border-radius:22px!important}
body:not(.printing-carteirinha) .member-card-preview-header h2{font-size:22px!important;margin:4px 0 4px!important}
body:not(.printing-carteirinha) .member-card-preview-header p{font-size:12px!important}
body:not(.printing-carteirinha) .member-card-preview-shell,body:not(.printing-carteirinha) .member-card-preview-fit{padding:14px!important;border-radius:24px!important;background:#fff!important;overflow:hidden!important}
body:not(.printing-carteirinha) .member-card-preview-shell .card-print-area.single{justify-content:flex-start!important;align-items:flex-start!important;padding:12px!important;border-radius:18px!important;background:#eef4f8!important;overflow:auto!important;max-height:280px!important;max-width:100%!important}
body:not(.printing-carteirinha) .member-card-preview-shell .member-card-print-pair{margin:0!important;flex:0 0 auto!important}
body:not(.printing-carteirinha) .member-card-content .card-print-area.single .member-card-print-pair{zoom:.92!important}
body:not(.printing-carteirinha) .member-card-lote-under-preview{margin-top:16px!important;padding:18px!important;border-radius:24px!important}
body:not(.printing-carteirinha) .member-card-search-box{display:flex!important;align-items:center!important;width:100%!important;height:42px!important;margin:0 0 12px!important;border-radius:16px!important;background:#fff!important;border:1px solid #dbe7ef!important;overflow:hidden!important;box-shadow:0 8px 20px rgba(15,35,61,.05)!important}
body:not(.printing-carteirinha) .member-card-search-icon{width:44px!important;min-width:44px!important;height:42px!important;display:flex!important;align-items:center!important;justify-content:center!important;background:#ecfeff!important;color:#0f766e!important;border-right:1px solid #dbe7ef!important}
body:not(.printing-carteirinha) .member-card-search-box input{flex:1 1 auto!important;width:100%!important;height:42px!important;border:0!important;outline:0!important;box-shadow:none!important;background:#fff!important;padding:0 12px!important;color:#10253d!important;font-size:13px!important;font-weight:850!important}
body:not(.printing-carteirinha) .member-card-search-box input::placeholder{color:#94a3b8!important;font-weight:700!important}
body:not(.printing-carteirinha) .member-card-select-list,body:not(.printing-carteirinha) .member-card-live-list{max-height:220px!important;overflow-y:auto!important;overflow-x:hidden!important;margin-top:0!important;padding:8px!important;border-radius:18px!important;background:#f8fafc!important;border:1px solid #e2e8f0!important}
body:not(.printing-carteirinha) .member-card-check-item{display:flex!important;align-items:center!important;gap:9px!important;width:100%!important;padding:8px 10px!important;border-radius:12px!important;color:#10253d!important;font-size:13px!important;font-weight:900!important;cursor:pointer!important;transition:background .15s ease,transform .15s ease!important}
body:not(.printing-carteirinha) .member-card-check-item:hover{background:#fff!important;transform:translateX(2px)!important}
body:not(.printing-carteirinha) .member-card-check-item input{flex:0 0 auto!important;margin:0!important}
body:not(.printing-carteirinha) .member-card-check-item span{display:block!important;min-width:0!important;overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap!important}
@media(max-width:1280px){body:not(.printing-carteirinha) .member-card-layout,body:not(.printing-carteirinha) .member-card-layout-fit{grid-template-columns:300px minmax(0,1fr)!important;gap:14px!important}body:not(.printing-carteirinha) .member-card-content .card-print-area.single .member-card-print-pair{zoom:.82!important}body:not(.printing-carteirinha) .member-card-preview-shell .card-print-area.single{max-height:250px!important}}
@media(max-width:1100px){body:not(.printing-carteirinha) .member-card-layout,body:not(.printing-carteirinha) .member-card-layout-fit{grid-template-columns:1fr!important}body:not(.printing-carteirinha) .member-card-content .card-print-area.single .member-card-print-pair{zoom:.9!important}}
@media(max-width:767px){body:not(.printing-carteirinha) .member-card-premium-page{padding:10px 8px 20px!important}body:not(.printing-carteirinha) .member-card-panel,body:not(.printing-carteirinha) .member-card-preview-header,body:not(.printing-carteirinha) .member-card-preview-shell{border-radius:20px!important}body:not(.printing-carteirinha) .member-card-content .card-print-area.single .member-card-print-pair{zoom:.72!important}body:not(.printing-carteirinha) .member-card-preview-shell .card-print-area.single{max-height:240px!important}}
@media print{body.printing-carteirinha .member-card-preview-shell,body.printing-carteirinha .member-card-preview-shell .card-print-area.single,body.printing-carteirinha .member-card-panel{background:#fff!important;box-shadow:none!important;border:0!important;border-radius:0!important;padding:0!important;margin:0!important}body.printing-carteirinha .member-card-print-pair{background:#fff!important;box-shadow:none!important;border-radius:0!important;margin:0 0 6mm 0!important}body.printing-carteirinha .member-card-print-side{box-shadow:none!important}}

body:not(.printing-carteirinha) .member-card-preview-shell .card-print-area.single{
  justify-content:flex-start!important;
}

body:not(.printing-carteirinha) .member-card-preview-shell .member-card-print-pair{
  transform:translateX(45px)!important;
}

.main-footer,
.premium-footer{
  position:relative!important;
  width:100%!important;
  min-height:22px!important;
  height:22px!important;
  padding:3px 12px!important;
  margin:0!important;
  background:#eef2f4!important;
  border-top:1px solid #dbe7ef!important;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  text-align:center!important;
  font-size:10px!important;
  line-height:1!important;
}

/* alinha os blocos de cima pela base */
.member-card-layout{
  display:grid!important;
  grid-template-columns:300px minmax(0,1fr)!important;
  align-items:start!important;
  gap:18px!important;
}

.member-card-sidebar{
  align-self:start!important;
}

/* Ajuste da posição da foto no cadastro/view */
.clean-photo-preview img,
.clean-view-photo-box img{
  object-fit:cover!important;
  object-position:center top!important;
}

/* Ajuste da foto na carteirinha impressa */
.print-photo img{
  object-fit:cover!important;
  object-position:center top!important;
}

/* Se ainda cortar a cabeça, use este mais baixo */
.print-photo img,
.clean-photo-preview img,
.clean-view-photo-box img{
  object-position:center 20%!important;
}

/* Desce um pouco Nasc. e CPF no verso da carteirinha */
.print-back-grid.top .print-box:not(.validity){
  padding-top:8px!important;
  align-items:flex-start!important;
}

/* SUBIR SOMENTE A VALIDADE */
.print-back-grid.top .print-box.validity b,
.print-back-grid.top .print-box.validity span{
  position:relative!important;
  display:block!important;
  width:100%!important;
  text-align:center!important;
  top:1px!important;
}
.member-card-preview-area{
  align-self:start!important;
}

/* diminui espaço embaixo */
/* Corrige impressão da carteirinha */
@media print{
  .main-footer,
  .premium-footer{
    display:none!important;
  }

  .content-wrapper,
  .premium-content-wrapper,
  .content,
  .member-card-content{
    padding:0!important;
    margin:0!important;
    width:100%!important;
    max-width:none!important;
    overflow:visible!important;
  }

  body.printing-carteirinha .member-card-preview-shell,
  body.printing-carteirinha .card-print-area.single{
    width:auto!important;
    max-width:none!important;
    overflow:visible!important;
  }

  body.printing-carteirinha .member-card-print-pair{
    transform:none!important;
    zoom:1!important;
    margin:0!important;
  }
}
