:root{
  --blue:#1f5eff;
  --blue-2:#0b2e8f;
  --red:#e7354f;
  --red-2:#a9142c;
  --ink:#07111f;
  --text:#132033;
  --muted:#64748b;
  --soft:#f5f7fb;
  --panel:#ffffff;
  --line:#e5eaf3;
  --white:#ffffff;
  --shadow:0 18px 45px rgba(15,23,42,.10);
  --shadow-strong:0 32px 90px rgba(2,8,23,.24);
  --grad:linear-gradient(135deg,#1f5eff 0%,#563bd7 48%,#e7354f 100%);
  --grad-soft:linear-gradient(135deg,rgba(31,94,255,.12),rgba(231,53,79,.10));
  --sidebar:linear-gradient(180deg,#07111f 0%,#0b1f45 55%,#111827 100%);
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{margin:0;font-family:Inter,Segoe UI,Arial,sans-serif;background:radial-gradient(circle at top right,rgba(31,94,255,.08),transparent 28%),radial-gradient(circle at bottom left,rgba(231,53,79,.08),transparent 26%),var(--soft);color:var(--text)}
a{text-decoration:none;color:inherit}
.auth-body{min-height:100vh;background:linear-gradient(135deg,#081225 0%,#102b65 46%,#a9142c 100%);display:grid;place-items:center;padding:30px;overflow:hidden;position:relative}
.auth-body:before,.auth-body:after{content:"";position:absolute;border-radius:999px;filter:blur(2px);opacity:.58;pointer-events:none}
.auth-body:before{width:420px;height:420px;background:rgba(31,94,255,.35);left:-130px;top:-120px}
.auth-body:after{width:440px;height:440px;background:rgba(231,53,79,.32);right:-150px;bottom:-160px}
.auth-shell{width:min(1120px,100%);position:relative;z-index:1}
.login-card{display:grid;grid-template-columns:1fr 460px;background:rgba(255,255,255,.96);border:1px solid rgba(255,255,255,.32);border-radius:32px;overflow:hidden;box-shadow:var(--shadow-strong);min-height:620px}
.login-hero{background:linear-gradient(145deg,rgba(7,17,31,.94),rgba(31,94,255,.78) 55%,rgba(231,53,79,.82));color:#fff;padding:64px 56px;display:flex;flex-direction:column;justify-content:space-between;position:relative;overflow:hidden}
.login-hero:before{content:"";position:absolute;right:-100px;top:-120px;width:340px;height:340px;border-radius:50%;background:rgba(255,255,255,.12)}
.login-hero:after{content:"";position:absolute;left:-90px;bottom:-90px;width:250px;height:250px;border-radius:50%;border:42px solid rgba(255,255,255,.08)}
.cross{width:78px;height:78px;border-radius:24px;background:rgba(255,255,255,.16);border:1px solid rgba(255,255,255,.24);display:grid;place-items:center;font-size:44px;margin-bottom:26px;box-shadow:inset 0 1px 0 rgba(255,255,255,.20)}
.login-hero h1{font-size:48px;line-height:1.02;margin:0 0 16px;letter-spacing:-.05em;max-width:520px}
.login-hero p{font-size:18px;line-height:1.55;opacity:.90;max-width:590px}
.feature-row{display:flex;gap:10px;flex-wrap:wrap;margin-top:30px;position:relative;z-index:1}
.feature-row span{background:rgba(255,255,255,.14);border:1px solid rgba(255,255,255,.22);padding:10px 14px;border-radius:999px;font-weight:700;color:#fff}
.login-form{padding:58px 52px;display:flex;flex-direction:column;gap:18px;justify-content:center;background:linear-gradient(180deg,#fff,#fbfcff)}
.login-form h2{font-size:34px;margin:0;letter-spacing:-.04em;color:var(--ink)}
.muted{color:var(--muted)}
label{font-weight:800;font-size:13px;display:flex;flex-direction:column;gap:8px;color:#0f172a}
input,select,textarea{width:100%;border:1px solid var(--line);background:#fff;border-radius:16px;padding:14px 15px;font:inherit;outline:none;color:var(--text);transition:.18s;box-shadow:0 1px 0 rgba(15,23,42,.03)}
textarea{min-height:96px;resize:vertical}
input:focus,select:focus,textarea:focus{border-color:rgba(31,94,255,.72);box-shadow:0 0 0 5px rgba(31,94,255,.12)}
.btn{border:0;border-radius:16px;padding:13px 19px;font-weight:900;cursor:pointer;display:inline-flex;justify-content:center;align-items:center;gap:8px;transition:.18s;letter-spacing:-.01em}
.btn:hover{transform:translateY(-1px);box-shadow:0 12px 28px rgba(31,94,255,.18)}
.primary{background:var(--grad);color:#fff;box-shadow:0 12px 28px rgba(31,94,255,.25)}
.secondary{background:#eef4ff;color:var(--blue-2);border:1px solid #dbe7ff}
.light{background:rgba(255,255,255,.95);color:var(--blue-2)}
.alert{padding:13px 14px;border-radius:14px;font-weight:700}.danger{background:#fff1f2;color:#b42318;border:1px solid #ffd8de}
.app{display:flex;min-height:100vh}.sidebar{width:292px;background:var(--sidebar);color:#fff;position:fixed;inset:0 auto 0 0;padding:24px 18px;overflow:auto;z-index:20;box-shadow:18px 0 50px rgba(2,8,23,.18)}
.sidebar:before{content:"";position:absolute;inset:0;background:radial-gradient(circle at 10% 0%,rgba(31,94,255,.35),transparent 30%),radial-gradient(circle at 100% 70%,rgba(231,53,79,.22),transparent 32%);pointer-events:none}
.brand{display:flex;align-items:center;gap:12px;margin-bottom:28px;position:relative;z-index:1;padding:7px}.brand-mark{width:52px;height:52px;display:grid;place-items:center;background:var(--grad);border-radius:18px;font-size:30px;box-shadow:0 14px 36px rgba(31,94,255,.34)}.brand small{display:block;color:#afc1df;margin-top:4px}.brand strong{font-size:18px}
.sidebar nav{display:grid;gap:7px;position:relative;z-index:1}.sidebar a{padding:13px 14px;border-radius:15px;color:#dce8ff;font-weight:760;border:1px solid transparent}.sidebar a:hover{background:rgba(255,255,255,.11);border-color:rgba(255,255,255,.12);color:#fff;transform:translateX(2px)}
.main{margin-left:292px;flex:1;min-width:0}.topbar{position:sticky;top:0;z-index:10;background:rgba(255,255,255,.88);backdrop-filter:blur(22px);border-bottom:1px solid rgba(229,234,243,.78);padding:18px 28px;display:flex;align-items:center;gap:18px;justify-content:space-between}.topbar h1{margin:0;font-size:25px;letter-spacing:-.035em;color:var(--ink)}.topbar p{margin:3px 0 0;color:var(--muted)}.hamb{display:none;border:0;background:#eef4ff;border-radius:13px;padding:11px;color:var(--blue-2);font-weight:900}.user-pill{display:flex;align-items:center;gap:12px;background:#fff;border:1px solid var(--line);padding:10px 13px;border-radius:999px;box-shadow:0 10px 24px rgba(15,23,42,.06)}.user-pill span:before{content:"●";color:#16a34a;margin-right:8px;font-size:10px}.user-pill a{color:var(--red);font-weight:900}.content{padding:30px}.hero-panel,.module-hero{background:linear-gradient(135deg,#0b1f45 0%,#1f5eff 55%,#e7354f 100%);color:#fff;border-radius:30px;padding:30px;display:flex;align-items:center;justify-content:space-between;margin-bottom:24px;box-shadow:0 22px 55px rgba(31,94,255,.22);position:relative;overflow:hidden}.hero-panel:after,.module-hero:after{content:"";position:absolute;right:-80px;top:-80px;width:220px;height:220px;border-radius:50%;background:rgba(255,255,255,.12)}.hero-panel h2,.module-hero h2{margin:0 0 8px;font-size:34px;letter-spacing:-.045em}.hero-panel p,.module-hero p{margin:0;opacity:.88;max-width:760px}.module-hero span{font-size:48px;display:block;margin-bottom:8px}
.cards{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:17px;margin-bottom:24px}.card{background:rgba(255,255,255,.92);border:1px solid var(--line);border-radius:24px;padding:21px;box-shadow:var(--shadow);position:relative;overflow:hidden}.card:before{content:"";position:absolute;left:0;top:0;width:100%;height:4px;background:var(--grad)}.card span{color:var(--muted);font-weight:900;font-size:12px;text-transform:uppercase;letter-spacing:.04em}.card strong{display:block;font-size:32px;margin:11px 0 5px;letter-spacing:-.04em;color:var(--ink)}.card small{color:var(--muted)}
.panel{background:rgba(255,255,255,.95);border:1px solid var(--line);border-radius:26px;padding:22px;margin-bottom:24px;box-shadow:var(--shadow)}.panel-head{display:flex;justify-content:space-between;gap:12px;align-items:center;margin-bottom:16px}.panel h3{margin:0;font-size:20px;letter-spacing:-.03em;color:var(--ink)}.grid-form{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}.grid-form .btn{align-self:end}.hidden{display:none}.table-wrap{overflow:auto;border:1px solid var(--line);border-radius:18px;background:#fff}table{width:100%;border-collapse:collapse;min-width:820px}th,td{text-align:left;padding:14px 15px;border-bottom:1px solid var(--line);vertical-align:top}th{background:#f7f9fd;font-size:12px;text-transform:uppercase;letter-spacing:.05em;color:#475569}tbody tr:hover{background:#fbfdff}.danger-link{color:var(--red);font-weight:900}.timeline{display:grid;gap:11px}.timeline div{padding:14px 15px;background:linear-gradient(135deg,#f8fbff,#fff);border:1px solid #edf2f8;border-radius:16px}.timeline span{display:block;color:var(--muted);font-size:13px;margin-top:4px}.search{max-width:270px}.check-list{grid-column:1/-1;display:flex;flex-wrap:wrap;gap:10px}.check-list label{flex-direction:row;align-items:center;background:#f7f9fd;padding:10px 12px;border-radius:12px;border:1px solid var(--line)}.report-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:17px}.report-card{background:#fff;border:1px solid var(--line);border-radius:24px;padding:25px;font-weight:950;box-shadow:var(--shadow);position:relative;overflow:hidden}.report-card:before{content:"";position:absolute;left:0;top:0;width:5px;height:100%;background:var(--grad)}.report-card:hover{transform:translateY(-2px);box-shadow:0 20px 42px rgba(15,23,42,.12)}
@media(max-width:1180px){.cards{grid-template-columns:repeat(3,1fr)}.grid-form{grid-template-columns:repeat(2,1fr)}.login-card{grid-template-columns:1fr 420px}.login-hero h1{font-size:42px}}
@media(max-width:900px){.login-card{grid-template-columns:1fr;min-height:auto}.login-hero{padding:38px}.login-form{padding:34px}.sidebar{transform:translateX(-110%);transition:.25s}.sidebar.open{transform:none}.main{margin-left:0}.hamb{display:block}.cards,.report-grid{grid-template-columns:1fr}.grid-form{grid-template-columns:1fr}.topbar{align-items:flex-start}.user-pill{font-size:13px}.content{padding:18px}.hero-panel,.module-hero{display:block}.login-hero h1{font-size:34px}.search{max-width:100%}.panel-head{align-items:flex-start;flex-direction:column}.panel-head .search{width:100%}}
@media(max-width:520px){.auth-body{padding:14px}.login-card{border-radius:24px}.login-hero,.login-form{padding:26px}.topbar{padding:14px 16px}.hero-panel h2,.module-hero h2{font-size:27px}.content{padding:14px}.user-pill{padding:8px 10px}}
.alert{padding:12px 16px;border-radius:14px;margin-bottom:14px;font-weight:700}.alert.error{background:#fee2e2;color:#991b1b}.alert.success{background:#dcfce7;color:#166534}.toolbar{display:flex;gap:10px;align-items:center;flex-wrap:wrap}.mini-import{display:flex;gap:10px;align-items:center;flex-wrap:wrap;margin:10px 0 14px}.inline-form{display:flex;gap:12px;flex-wrap:wrap}.inline-form input,.inline-form select{padding:12px;border:1px solid #dbe3ef;border-radius:12px}.check-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:8px;margin-top:8px}.full{grid-column:1/-1}.timeline{display:grid;gap:10px}.timeline>div{border-left:4px solid #6366f1;background:#f8fafc;border-radius:12px;padding:12px}.timeline small{display:block;color:#64748b}.report-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:14px}.report-grid>div{background:#f8fafc;border:1px solid #e2e8f0;border-radius:16px;padding:16px}.stats-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:16px;margin-bottom:18px}.stat-card{background:#fff;border-radius:20px;padding:18px;box-shadow:0 16px 35px rgba(15,23,42,.08);border:1px solid rgba(226,232,240,.9)}.stat-card span{display:block;color:#64748b;font-weight:700}.stat-card strong{font-size:26px;color:#0f172a}table th a{color:inherit;text-decoration:none}.btn{display:inline-flex;align-items:center;justify-content:center;text-decoration:none}


/* v8 Professional Bible Split Login */
.auth-body{min-height:100vh;background:#f7f9fc;display:flex;align-items:stretch;justify-content:center;padding:0;overflow:hidden;position:relative}
.auth-body:before,.auth-body:after{display:none}
.auth-shell{width:100%;min-height:100vh;display:flex;align-items:stretch;justify-content:center;position:relative;z-index:1}
.login-split{width:100%;min-height:100vh;display:grid;grid-template-columns:1fr 1.16fr;background:#fff;overflow:hidden;border:1px solid rgba(15,23,42,.08)}
.login-image-panel{position:relative;min-height:100vh;background:linear-gradient(130deg,rgba(6,12,22,.82),rgba(11,19,32,.48)),radial-gradient(circle at 20% 8%,rgba(255,230,160,.35),transparent 27%),linear-gradient(145deg,#17120d,#3a2b19 48%,#070b12);overflow:hidden;display:flex;align-items:center;justify-content:center;padding:72px}
.login-image-panel:before{content:"";position:absolute;inset:0;background:linear-gradient(90deg,rgba(10,18,30,.72),rgba(12,20,32,.32));z-index:1}
.login-image-panel:after{content:"";position:absolute;left:-140px;bottom:-130px;width:420px;height:420px;border-radius:50%;background:rgba(37,99,235,.12);z-index:1}
.login-image-overlay{position:absolute;inset:0;background:linear-gradient(0deg,rgba(0,0,0,.38),rgba(0,0,0,.05));z-index:2}
.login-bible-art{position:absolute;left:7%;right:6%;bottom:5%;z-index:2;filter:drop-shadow(0 35px 55px rgba(0,0,0,.54))}
.login-bible-art img{width:100%;max-width:760px;display:block;opacity:.97}
.login-quote{position:relative;z-index:3;align-self:center;justify-self:start;max-width:560px;color:#fff;margin-top:-60px;text-shadow:0 8px 24px rgba(0,0,0,.28)}
.login-quote .quote-line{display:block;font-size:33px;font-weight:400;letter-spacing:-.04em;margin-bottom:6px}
.login-quote strong{display:block;font-size:38px;line-height:1.06;letter-spacing:-.045em;font-weight:900}
.login-quote i{display:block;width:128px;height:4px;border-radius:20px;background:linear-gradient(90deg,#2563eb,#7c3aed,#e11d48);margin:24px 0}
.login-quote p{font-size:18px;line-height:1.55;max-width:500px;color:rgba(255,255,255,.9);margin:0}
.login-modern-form{min-height:100vh;background:#fff;padding:72px 9vw;display:flex;flex-direction:column;justify-content:center;gap:22px;box-shadow:-22px 0 70px rgba(15,23,42,.06)}
.login-brand-mini{display:flex;align-items:flex-start;gap:22px;margin-bottom:8px}
.login-brand-mini .brand-badge{width:76px;height:76px;border-radius:18px;background:linear-gradient(135deg,#2563eb,#7c3aed 52%,#e11d48);display:grid;place-items:center;color:#fff;font-size:38px;font-weight:900;box-shadow:0 18px 35px rgba(37,99,235,.24)}
.login-brand-mini h1{margin:14px 0 6px;font-size:34px;line-height:1.05;letter-spacing:-.055em;background:linear-gradient(90deg,#2563eb,#7c3aed,#e11d48);-webkit-background-clip:text;background-clip:text;color:transparent;font-weight:900}
.login-brand-mini p{margin:0;color:#64748b;font-size:17px;font-weight:650}
.login-security-note{display:flex;gap:16px;align-items:flex-start;color:#64748b;max-width:430px;font-size:15px;line-height:1.45;margin-bottom:8px}
.login-security-note span{width:28px;height:28px;border-radius:10px;display:grid;place-items:center;background:#f1f5f9;color:#2563eb;flex:0 0 auto}
.login-security-note p{margin:0}
.field-line{display:flex;flex-direction:column;gap:10px;font-weight:800;color:#020617}
.field-line span{font-size:14px}
.input-icon{height:58px;border:1px solid #d9e1ed;border-radius:12px;background:#fff;display:flex;align-items:center;padding:0 18px;gap:14px;transition:.2s;box-shadow:0 10px 22px rgba(15,23,42,.035)}
.input-icon:focus-within{border-color:#2563eb;box-shadow:0 0 0 4px rgba(37,99,235,.10)}
.input-icon b{font-size:18px;color:#94a3b8;width:22px;text-align:center;font-weight:400}
.input-icon input{border:0!important;outline:0!important;box-shadow:none!important;padding:0!important;height:auto!important;width:100%;font-weight:650;color:#0f172a;background:transparent!important}
.login-options{display:flex;justify-content:space-between;align-items:center;gap:16px;margin:2px 0 2px;color:#334155;font-size:14px}
.login-options label{display:flex;align-items:center;gap:9px;font-weight:600}
.login-options input{width:18px;height:18px;accent-color:#2563eb}
.login-options a{color:#2563eb;text-decoration:none;font-weight:700}
.login-options a:hover{text-decoration:underline}
.login-gradient-btn{height:60px;border:0;border-radius:12px;background:linear-gradient(90deg,#2563eb,#6d35de 48%,#e11d48)!important;color:#fff;font-size:17px;font-weight:900;box-shadow:0 18px 35px rgba(225,29,72,.18);cursor:pointer}
.login-gradient-btn:hover{transform:translateY(-1px);box-shadow:0 22px 42px rgba(37,99,235,.22)}
.default-hint{color:#64748b;line-height:1.45;font-weight:600;margin-top:4px}
.login-modern-form .alert{border-radius:12px;padding:14px 16px}
@media(max-width:1050px){.login-split{grid-template-columns:1fr}.login-image-panel{min-height:380px;padding:36px}.login-modern-form{min-height:auto;padding:44px 7vw}.login-bible-art{right:2%;left:42%;bottom:-8%;opacity:.72}.login-quote{margin:0;max-width:540px}.login-brand-mini h1{font-size:30px}}
@media(max-width:640px){.auth-body{overflow:auto}.login-image-panel{min-height:340px;padding:26px;align-items:flex-start}.login-quote .quote-line{font-size:25px}.login-quote strong{font-size:30px}.login-quote p{font-size:15px}.login-bible-art{left:18%;right:-18%;bottom:-8%;opacity:.5}.login-modern-form{padding:34px 22px}.login-brand-mini{gap:14px}.login-brand-mini .brand-badge{width:58px;height:58px;font-size:29px;border-radius:15px}.login-brand-mini h1{font-size:26px;margin-top:4px}.login-options{align-items:flex-start;flex-direction:column}.login-split{border:0}.input-icon{height:54px}}

/* V9 Softlock-style Bible login page */
.auth-body{
  min-height:100vh!important;
  background:#fff!important;
  display:block!important;
  padding:0!important;
  margin:0!important;
  overflow:hidden!important;
}
.auth-shell{
  width:100%!important;
  min-height:100vh!important;
  display:block!important;
}
.softlock-login{
  width:100vw;
  min-height:100vh;
  display:grid;
  grid-template-columns:40% 60%;
  background:#fff;
  border:1px solid rgba(0,0,0,.12);
  border-radius:8px;
  overflow:hidden;
  box-shadow:0 2px 6px rgba(0,0,0,.10);
}
.softlock-photo-panel{
  min-height:100vh;
  position:relative;
  background-image:linear-gradient(0deg,rgba(21,150,117,.63),rgba(87,226,190,.66)),url('login-bible-photo.jpg');
  background-size:cover;
  background-position:center center;
}
.softlock-form{
  min-height:100vh;
  background:#fff;
  display:flex;
  flex-direction:column;
  justify-content:center;
  align-items:flex-start;
  padding-left:15.5vw;
  padding-right:6vw;
  color:#111;
}
.softlock-brand{
  display:flex;
  align-items:center;
  gap:26px;
  margin-bottom:28px;
}
.softlock-brand img{
  width:88px;
  height:88px;
  object-fit:contain;
  display:block;
}
.softlock-title{
  display:flex;
  flex-direction:column;
  line-height:.92;
  font-family:Arial, Helvetica, sans-serif;
}
.softlock-title strong{
  font-size:52px;
  font-weight:900;
  letter-spacing:-3px;
  color:#050505;
}
.softlock-subtitle{
  margin:0 0 34px 0;
  font-size:20px;
  color:#111827;
  font-weight:400;
}
.softlock-field{
  width:500px;
  max-width:100%;
  height:48px;
  display:flex;
  align-items:center;
  border-bottom:2px solid #e5e5e5;
  margin:0 0 14px 0;
  color:#a7a7a7;
  position:relative;
}
.softlock-field .softlock-icon{
  width:42px;
  height:42px;
  border-radius:50%;
  display:grid;
  place-items:center;
  background:#ededed;
  color:#b7b7b7;
  font-size:17px;
  margin-right:12px;
  filter:grayscale(1);
  opacity:.8;
}
.softlock-field input{
  border:0!important;
  outline:0!important;
  box-shadow:none!important;
  background:transparent!important;
  flex:1;
  font-size:18px;
  height:100%;
  color:#222;
  padding:0 8px!important;
  font-weight:400;
}
.softlock-field input::placeholder{color:#a0a7b4;opacity:1}
.softlock-eye{
  position:absolute;
  right:0;
  color:#bdbdbd;
  font-size:20px;
  transform:rotate(-18deg);
  opacity:.65;
}
.softlock-error{
  width:500px;
  max-width:100%;
  color:#e3064e;
  font-size:18px;
  line-height:1.25;
  margin:0 0 22px 0;
  background:transparent;
  border:0;
  padding:0;
}
.softlock-forgot{
  color:#1685ff;
  text-decoration:underline;
  font-size:16px;
  align-self:flex-start;
  margin:24px 0 42px 190px;
}
.softlock-button{
  width:340px;
  height:58px;
  border:0;
  border-radius:4px;
  background:#49d2ae;
  color:#fff;
  font-size:20px;
  font-weight:400;
  cursor:pointer;
  align-self:flex-start;
  margin-left:120px;
  transition:.2s ease;
}
.softlock-button:hover{background:#36c6a1;transform:translateY(-1px)}
@media(max-width:1050px){
  .softlock-login{grid-template-columns:1fr}.softlock-photo-panel{min-height:280px}.softlock-form{min-height:auto;padding:48px 7vw}.softlock-brand img{width:70px;height:70px}.softlock-title strong{font-size:40px}.softlock-forgot,.softlock-button{margin-left:0;align-self:stretch}.softlock-button{width:100%}
}
@media(max-width:640px){
  .auth-body{overflow:auto!important}.softlock-photo-panel{min-height:220px}.softlock-form{padding:36px 24px}.softlock-brand{gap:16px;margin-bottom:22px}.softlock-brand img{width:58px;height:58px}.softlock-title strong{font-size:31px;letter-spacing:-1.5px}.softlock-subtitle{font-size:17px}.softlock-field,.softlock-error{width:100%}.softlock-field input{font-size:16px}.softlock-forgot{margin:18px 0 28px 0}.softlock-button{height:54px;font-size:18px}
}

/* V10 exact Softlock form alignment and icon replacement */
.softlock-form{
  justify-content:center!important;
  align-items:flex-start!important;
}
.softlock-subtitle{
  width:500px;
  max-width:100%;
  margin:0 0 30px 0!important;
  font-size:20px!important;
  font-weight:400!important;
  line-height:1.3!important;
}
.softlock-field{
  width:500px!important;
  max-width:100%!important;
  height:58px!important;
  display:flex!important;
  flex-direction:row!important;
  align-items:center!important;
  justify-content:flex-start!important;
  gap:0!important;
  border:0!important;
  border-bottom:2px solid #e0e0e0!important;
  border-radius:0!important;
  margin:0 0 18px 0!important;
  padding:0!important;
  background:transparent!important;
  box-shadow:none!important;
  font-weight:400!important;
}
.softlock-field:focus-within{border-bottom-color:#d2d2d2!important;box-shadow:none!important}
.softlock-field .softlock-icon{
  width:42px!important;
  height:42px!important;
  min-width:42px!important;
  border-radius:50%!important;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  background:#ededed!important;
  color:#8f8f8f!important;
  margin:0 28px 0 0!important;
  padding:0!important;
  opacity:1!important;
  filter:none!important;
  line-height:1!important;
}
.softlock-field .softlock-icon svg{
  width:21px!important;
  height:21px!important;
  display:block!important;
  fill:#7f7f7f!important;
}
.softlock-field input,
.softlock-field input:focus{
  flex:1 1 auto!important;
  min-width:0!important;
  width:auto!important;
  height:56px!important;
  border:0!important;
  border-radius:0!important;
  outline:0!important;
  box-shadow:none!important;
  background:transparent!important;
  padding:0 8px 0 0!important;
  margin:0!important;
  font-size:20px!important;
  line-height:56px!important;
  color:#111!important;
  font-weight:400!important;
}
.softlock-field input::placeholder{color:#9ca3af!important;opacity:1!important;font-weight:400!important}
.softlock-eye{
  position:static!important;
  width:34px!important;
  height:34px!important;
  min-width:34px!important;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  border:0!important;
  background:transparent!important;
  color:#bfbfbf!important;
  padding:0!important;
  margin:0 0 0 18px!important;
  cursor:pointer!important;
  transform:none!important;
  opacity:1!important;
}
.softlock-eye svg{width:28px!important;height:28px!important;fill:#bfbfbf!important;display:block!important}
.softlock-error{
  width:500px!important;
  max-width:100%!important;
  margin:-2px 0 20px 0!important;
  color:#e40046!important;
  font-size:21px!important;
  font-weight:400!important;
  line-height:1.25!important;
  padding:0!important;
  border:0!important;
  background:transparent!important;
}
.softlock-forgot{
  display:block!important;
  width:500px!important;
  max-width:100%!important;
  margin:24px 0 42px 0!important;
  text-align:center!important;
  align-self:flex-start!important;
  color:#1685ff!important;
  font-size:18px!important;
  font-weight:400!important;
  text-decoration:underline!important;
}
.softlock-button{
  width:340px!important;
  height:58px!important;
  margin:0 0 0 120px!important;
  align-self:flex-start!important;
  border-radius:4px!important;
  background:#49d2ae!important;
  font-size:21px!important;
  font-weight:400!important;
}
@media(max-width:1050px){
  .softlock-field,.softlock-error,.softlock-subtitle,.softlock-forgot{width:100%!important}
  .softlock-button{width:100%!important;margin-left:0!important}
}


/* V11 Inside outlook matched to Softlock-style login */
.softlock-app{background:#f6f8fb;min-height:100vh;}
.softlock-sidebar{
  width:318px!important;
  background:#fff!important;
  color:#111!important;
  padding:0!important;
  box-shadow:3px 0 12px rgba(0,0,0,.08)!important;
  border-right:1px solid #e8e8e8;
  overflow:hidden!important;
}
.softlock-sidebar:before{display:none!important;}
.inside-brand{
  display:flex;
  align-items:center;
  gap:18px;
  padding:48px 30px 36px 34px;
  min-height:160px;
}
.inside-brand img{
  width:76px;
  height:76px;
  object-fit:contain;
  display:block;
  filter:drop-shadow(0 5px 10px rgba(0,0,0,.08));
}
.inside-brand-text strong{
  display:block;
  font-size:30px;
  line-height:.92;
  letter-spacing:-1.8px;
  font-weight:900;
  color:#050505;
  font-family:Arial, Helvetica, sans-serif;
}
.inside-brand-text small{
  display:block;
  margin-top:12px;
  color:#8b93a3;
  font-size:14px;
  font-weight:500;
}
.inside-nav{
  display:flex!important;
  flex-direction:column;
  gap:0!important;
  padding:0 0 24px 0;
  position:relative;
  z-index:1;
}
.inside-nav a{
  height:68px;
  border-radius:0!important;
  color:#4b5563!important;
  padding:0 28px 0 34px!important;
  display:flex!important;
  align-items:center!important;
  gap:20px!important;
  font-size:17px;
  font-weight:500!important;
  border:0!important;
  border-bottom:1px solid #eeeeee!important;
  background:#fff!important;
  transform:none!important;
  transition:.18s ease;
  position:relative;
}
.inside-nav a:hover{
  background:#f7fffc!important;
  color:#111827!important;
  transform:none!important;
}
.inside-nav a.active{
  background:#f3fffb!important;
  color:#111!important;
  font-weight:700!important;
}
.inside-nav a.active:before{
  content:"";
  position:absolute;
  left:0;
  top:0;
  bottom:0;
  width:6px;
  background:#49d2ae;
}
.inside-nav-icon{
  width:44px;
  height:44px;
  border-radius:50%;
  flex:0 0 44px;
  display:grid;
  place-items:center;
  background:#ededed;
  color:#9ea3aa;
}
.inside-nav-icon svg{
  width:22px;
  height:22px;
  fill:currentColor;
  display:block;
}
.inside-nav a.active .inside-nav-icon,
.inside-nav a:hover .inside-nav-icon{
  background:#49d2ae;
  color:#fff;
}
.softlock-main{
  margin-left:318px!important;
  min-height:100vh;
  background:#f7f8fb!important;
}
.softlock-topbar{
  background:#fff!important;
  border-bottom:1px solid #e8e8e8!important;
  border-radius:0!important;
  margin:0!important;
  padding:24px 34px!important;
  box-shadow:0 2px 8px rgba(0,0,0,.03)!important;
}
.softlock-topbar h1{color:#111!important;letter-spacing:-1.2px;font-size:30px!important;}
.softlock-topbar p{color:#8b93a3!important;}
.softlock-content{padding:30px 34px!important;}
.softlock-user-pill{background:#f4f6f8!important;border:1px solid #e6e8ec!important;border-radius:5px!important;}
.softlock-user-pill a{background:#49d2ae!important;color:#fff!important;border-radius:4px!important;padding:9px 14px!important;}
.softlock-user-pill span{color:#111!important;}
.hamb{background:#49d2ae!important;color:#fff!important;border-radius:4px!important;border:0!important;}
@media(max-width:900px){
  .softlock-sidebar{transform:translateX(-110%);transition:.25s;z-index:1000;width:300px!important;}
  .softlock-sidebar.open{transform:none;}
  .softlock-main{margin-left:0!important;}
  .inside-brand{padding:34px 24px 24px;}
  .inside-brand img{width:60px;height:60px;}
  .inside-brand-text strong{font-size:25px;}
  .inside-nav a{height:62px;padding-left:24px!important;}
}


/* V12 screen-fit scale + Softlock-style signed-in account section */
html,body{width:100%;max-width:100%;overflow-x:hidden!important;}
.auth-body{overflow:hidden!important;}
.softlock-login{
  min-height:100vh!important;
  height:100vh!important;
  grid-template-columns:40% 60%!important;
  border-radius:6px!important;
}
.softlock-photo-panel{min-height:100vh!important;background-position:center!important;}
.softlock-form{
  min-height:100vh!important;
  justify-content:center!important;
  padding-left:15vw!important;
  padding-right:7vw!important;
  transform:scale(.92);
  transform-origin:center left;
}
.softlock-brand{gap:22px!important;margin-bottom:24px!important;}
.softlock-brand img{width:76px!important;height:76px!important;}
.softlock-title strong{font-size:46px!important;letter-spacing:-2.4px!important;line-height:.92!important;}
.softlock-subtitle{font-size:18px!important;margin-bottom:26px!important;width:470px!important;}
.softlock-field{width:470px!important;height:54px!important;margin-bottom:16px!important;}
.softlock-field .softlock-icon{width:38px!important;height:38px!important;min-width:38px!important;margin-right:24px!important;}
.softlock-field .softlock-icon svg{width:19px!important;height:19px!important;}
.softlock-field input,.softlock-field input:focus{font-size:18px!important;height:52px!important;line-height:52px!important;}
.softlock-eye{width:30px!important;height:30px!important;min-width:30px!important;}
.softlock-eye svg{width:25px!important;height:25px!important;}
.softlock-error{width:470px!important;font-size:18px!important;margin:-2px 0 18px 0!important;}
.softlock-forgot{width:470px!important;font-size:16px!important;margin:22px 0 38px 0!important;}
.softlock-button{width:320px!important;height:54px!important;margin-left:105px!important;font-size:19px!important;}

.softlock-sidebar{
  width:260px!important;
  min-width:260px!important;
  box-shadow:2px 0 8px rgba(0,0,0,.06)!important;
}
.inside-brand{padding:26px 28px 22px 28px!important;min-height:112px!important;gap:14px!important;}
.inside-brand img{width:54px!important;height:54px!important;}
.inside-brand-text strong{font-size:25px!important;line-height:.9!important;letter-spacing:-1.4px!important;}
.inside-brand-text small{font-size:12px!important;margin-top:8px!important;}
.inside-nav a{
  height:56px!important;
  padding:0 18px 0 28px!important;
  gap:14px!important;
  font-size:15px!important;
  border-bottom:1px solid #f0f0f0!important;
}
.inside-nav-icon{width:34px!important;height:34px!important;flex-basis:34px!important;min-width:34px!important;}
.inside-nav-icon svg{width:18px!important;height:18px!important;}
.inside-nav a.active:before{width:4px!important;}
.softlock-main{margin-left:260px!important;min-height:100vh!important;}
.softlock-topbar{
  min-height:76px!important;
  padding:16px 28px!important;
  display:flex!important;
  align-items:center!important;
  gap:18px!important;
}
.softlock-topbar .page-heading{min-width:0;flex:1 1 auto;}
.softlock-topbar h1{font-size:23px!important;line-height:1.1!important;letter-spacing:-.8px!important;margin:0!important;}
.softlock-topbar p{font-size:13px!important;margin:5px 0 0!important;}
.softlock-content{padding:22px 28px!important;}
.softlock-content .card,.softlock-content .panel,.softlock-content .table-card{border-radius:8px!important;}
.stat-grid{gap:12px!important;margin-bottom:14px!important;}
.stat-card{padding:14px!important;border-radius:10px!important;}
.stat-card strong{font-size:22px!important;}

.softlock-user-pill{display:none!important;}
.softlock-account{position:relative;display:flex;align-items:center;justify-content:flex-end;flex:0 0 auto;margin-left:auto;}
.account-trigger{border:0;background:transparent;display:flex;align-items:center;gap:12px;cursor:pointer;padding:0;margin:0;color:#111;}
.account-copy{display:flex;flex-direction:column;align-items:flex-end;line-height:1.15;}
.account-copy strong{font-size:14px;font-weight:800;color:#000;white-space:nowrap;max-width:260px;overflow:hidden;text-overflow:ellipsis;}
.account-copy small{font-size:13px;color:#0b4b93;font-weight:500;margin-top:2px;white-space:nowrap;}
.account-avatar{width:42px;height:42px;border-radius:50%;background:#f2f3f5;display:grid;place-items:center;color:#b8bcc2;box-shadow:inset 0 0 0 1px rgba(0,0,0,.03);}
.account-avatar svg{width:26px;height:26px;fill:#b8bcc2;display:block;}
.account-menu{position:absolute;top:54px;right:0;width:185px;background:#fff;border-radius:4px;box-shadow:0 12px 28px rgba(0,0,0,.18);border:1px solid #f0f0f0;padding:12px 0;display:none;z-index:100;}
.softlock-account.open .account-menu,.softlock-account:hover .account-menu{display:block;}
.account-menu a{display:block;padding:12px 20px;color:#111827;font-size:15px;font-weight:400;text-decoration:none;}
.account-menu a:hover{background:#f7f7f7;color:#111;}

@media(max-width:1050px){
  .softlock-form{transform:none!important;padding:44px 7vw!important;}
  .softlock-brand img{width:62px!important;height:62px!important;}
  .softlock-title strong{font-size:36px!important;}
  .softlock-field,.softlock-error,.softlock-subtitle,.softlock-forgot{width:100%!important;}
  .softlock-button{width:100%!important;margin-left:0!important;}
}
@media(max-width:900px){
  .softlock-sidebar{width:260px!important;min-width:260px!important;}
  .softlock-main{margin-left:0!important;}
  .softlock-topbar{padding:14px 18px!important;}
  .account-copy{display:none;}
  .account-menu{top:48px;}
}
@media(max-width:640px){
  .auth-body{overflow:auto!important;}
  .softlock-login{height:auto!important;min-height:100vh!important;grid-template-columns:1fr!important;}
  .softlock-photo-panel{min-height:210px!important;}
  .softlock-form{min-height:auto!important;padding:32px 24px!important;}
  .softlock-brand img{width:50px!important;height:50px!important;}
  .softlock-title strong{font-size:29px!important;}
  .softlock-subtitle{font-size:16px!important;}
  .softlock-field{height:50px!important;}
  .softlock-field input,.softlock-field input:focus{font-size:16px!important;height:48px!important;line-height:48px!important;}
  .softlock-forgot{font-size:15px!important;margin:18px 0 28px!important;}
  .softlock-button{height:52px!important;font-size:18px!important;}
}

/* V13 precise sidebar logo alignment + Softlock account page */
.softlock-sidebar{
  width:275px!important;
  min-width:275px!important;
}
.softlock-main{margin-left:275px!important;}
.inside-brand{
  min-height:116px!important;
  padding:22px 18px 20px 26px!important;
  gap:12px!important;
  align-items:center!important;
  overflow:hidden!important;
  border-bottom:1px solid #f0f0f0;
}
.inside-brand img{
  width:58px!important;
  height:58px!important;
  min-width:58px!important;
  object-fit:contain!important;
  filter:none!important;
}
.inside-brand-text{min-width:0!important;display:flex!important;flex-direction:column!important;justify-content:center!important;}
.inside-brand-text strong{
  font-size:24px!important;
  line-height:.92!important;
  letter-spacing:-1.1px!important;
  white-space:normal!important;
  overflow:visible!important;
  color:#050505!important;
}
.inside-brand-text small{
  font-size:12px!important;
  margin-top:8px!important;
  color:#8b93a3!important;
  white-space:nowrap!important;
}
.inside-nav a{padding-left:28px!important;}
.softlock-topbar{min-height:72px!important;padding:14px 28px!important;}
.account-trigger{gap:10px!important;}
.account-copy strong{font-size:14px!important;font-weight:800!important;}
.account-copy small{font-size:13px!important;color:#0b4b93!important;}
.account-avatar{width:38px!important;height:38px!important;}
.account-avatar svg{width:24px!important;height:24px!important;}
.account-menu{top:48px!important;right:0!important;width:178px!important;padding:10px 0!important;border-radius:4px!important;box-shadow:0 14px 30px rgba(0,0,0,.20)!important;}
.account-menu a{font-size:15px!important;padding:12px 18px!important;}
.account-softlock-page{
  max-width:1180px;
  margin:0 auto;
  display:grid;
  grid-template-columns:minmax(360px,1fr) minmax(420px,1fr);
  gap:24px;
  align-items:start;
}
.account-card{
  background:#fff;
  border:1px solid #e5e5e5;
  border-radius:0;
  box-shadow:0 3px 12px rgba(0,0,0,.18);
  padding:30px 32px;
  color:#111827;
}
.account-card h2{
  margin:0 0 24px;
  font-size:26px;
  font-weight:400;
  letter-spacing:-.8px;
  color:#111;
}
.account-card p{margin:0 0 8px;font-size:15px;color:#1f2937;}
.account-card form{display:flex;flex-direction:column;gap:8px;}
.account-card label{display:flex;flex-direction:column;gap:4px;font-size:14px;color:#4b5563;font-weight:600;}
.account-card input{
  height:46px!important;
  border:1px solid #dedede!important;
  border-radius:0!important;
  box-shadow:none!important;
  background:#fff!important;
  padding:0 12px!important;
  font-size:16px!important;
  font-weight:400!important;
  color:#111827!important;
}
.account-card input:focus{border-color:#49d2ae!important;box-shadow:0 0 0 2px rgba(73,210,174,.12)!important;}
.account-card .softlock-readonly{background:#f7f7f7!important;border-color:#f7f7f7!important;}
.softlock-save-btn{
  width:100%;
  height:54px;
  margin-top:12px;
  border:0;
  border-radius:4px;
  background:#49d2ae;
  color:#fff;
  font-size:16px;
  font-weight:400;
  cursor:pointer;
}
.softlock-save-btn:hover,.softlock-add-device:hover{background:#37c6a1;}
.password-line{display:flex;border:1px solid #dedede;height:46px;background:#fff;}
.password-line input{border:0!important;flex:1;height:44px!important;}
.password-eye{width:48px;display:grid;place-items:center;color:#bdbdbd;border-left:1px solid #dedede;font-size:22px;transform:rotate(-22deg);}
.password-note{font-size:14px!important;line-height:1.35!important;color:#6b7280!important;margin:0 0 4px!important;}
.account-2fa-card{grid-column:1 / 2;}
.twofa-row{display:flex;align-items:center;justify-content:space-between;gap:16px;}
.twofa-row p{margin:0;font-size:16px;color:#111827;}
.softlock-add-device{
  min-width:182px;
  height:52px;
  border:0;
  border-radius:4px;
  background:#49d2ae;
  color:#fff;
  font-size:15px;
  font-weight:400;
  cursor:pointer;
  display:inline-flex;
  justify-content:center;
  align-items:center;
  gap:10px;
}
.softlock-add-device span{font-size:24px;line-height:1;font-weight:600;}
@media(max-width:1050px){
  .account-softlock-page{grid-template-columns:1fr;max-width:760px;}
  .account-2fa-card{grid-column:auto;}
}
@media(max-width:900px){
  .softlock-sidebar{width:275px!important;min-width:275px!important;}
  .softlock-main{margin-left:0!important;}
}
@media(max-width:640px){
  .inside-brand{padding:20px 18px!important;}
  .inside-brand img{width:48px!important;height:48px!important;min-width:48px!important;}
  .inside-brand-text strong{font-size:21px!important;}
  .account-card{padding:24px 20px;box-shadow:0 2px 10px rgba(0,0,0,.12);}
  .twofa-row{flex-direction:column;align-items:stretch;}
}


/* V14 custom executive theme polish + exact click-only account menu */
:root{
  --church-green:#49d2ae;
  --church-green-dark:#28b893;
  --church-ink:#121826;
  --church-muted:#7a8494;
  --church-bg:#f4f7f6;
  --church-card:#ffffff;
  --church-line:#e8ecef;
  --church-shadow:0 14px 34px rgba(18,24,38,.08);
}
body{background:var(--church-bg)!important;color:var(--church-ink)!important;}
.softlock-app{background:var(--church-bg)!important;}
.softlock-sidebar{
  width:270px!important;
  min-width:270px!important;
  background:#f5f5f4!important;
  border-right:1px solid #dedede!important;
  box-shadow:none!important;
}
.softlock-main{margin-left:270px!important;background:#fafafa!important;}
.inside-brand{
  min-height:112px!important;
  padding:24px 18px 22px 24px!important;
  gap:12px!important;
  border-bottom:1px solid #e7e7e7!important;
  background:#f5f5f4!important;
}
.inside-brand img{width:54px!important;height:54px!important;min-width:54px!important;object-fit:contain!important;}
.inside-brand-text strong{
  font-size:23px!important;
  line-height:.93!important;
  letter-spacing:-1.2px!important;
  font-family:Arial,Helvetica,sans-serif!important;
}
.inside-brand-text small{font-size:12px!important;color:#8b93a3!important;margin-top:7px!important;}
.inside-nav{padding-top:0!important;background:#f5f5f4!important;}
.inside-nav a{
  height:56px!important;
  padding:0 18px 0 26px!important;
  border-bottom:0!important;
  background:#f5f5f4!important;
  color:#1f2937!important;
  font-size:15px!important;
  font-weight:500!important;
}
.inside-nav a.active{
  background:#eefcf8!important;
  color:#050505!important;
  font-weight:700!important;
}
.inside-nav a.active:before{width:4px!important;background:var(--church-green)!important;}
.inside-nav-icon{
  width:36px!important;
  height:36px!important;
  flex:0 0 36px!important;
  background:#e7e7e7!important;
  color:#81858b!important;
}
.inside-nav a.active .inside-nav-icon,.inside-nav a:hover .inside-nav-icon{background:var(--church-green)!important;color:#fff!important;}
.inside-nav a:hover{background:#f0fbf8!important;color:#111!important;}
.softlock-topbar{
  min-height:72px!important;
  background:#fff!important;
  border-bottom:1px solid #e5e5e5!important;
  box-shadow:0 2px 8px rgba(0,0,0,.035)!important;
  padding:13px 26px!important;
}
.softlock-topbar h1{font-size:24px!important;font-weight:400!important;letter-spacing:-.8px!important;color:#111!important;}
.softlock-topbar p{display:none!important;}
.account-trigger{padding:0!important;border:0!important;background:transparent!important;}
.account-trigger:hover{background:transparent!important;box-shadow:none!important;transform:none!important;}
.softlock-account .account-menu{display:none!important;}
.softlock-account.open .account-menu{display:block!important;}
.softlock-account:hover .account-menu{display:none!important;}
.softlock-account.open:hover .account-menu{display:block!important;}
.account-copy strong{font-size:14px!important;font-weight:700!important;color:#050505!important;}
.account-copy small{font-size:12.5px!important;color:#07539a!important;font-weight:400!important;}
.account-avatar{width:36px!important;height:36px!important;background:#f2f2f2!important;}
.account-avatar svg{width:24px!important;height:24px!important;fill:#b7b7b7!important;}
.account-menu{
  top:48px!important;
  right:0!important;
  width:175px!important;
  border-radius:3px!important;
  box-shadow:0 16px 28px rgba(0,0,0,.18)!important;
  padding:10px 0!important;
  border:1px solid #efefef!important;
}
.account-menu a{font-size:15px!important;font-weight:400!important;padding:13px 20px!important;color:#111!important;}
.account-menu a:hover{background:#f5f5f5!important;color:#111!important;}
.softlock-content{padding:22px 26px!important;}
.hero-panel,.module-hero{
  background:#fff!important;
  color:#111!important;
  border:1px solid var(--church-line)!important;
  border-radius:4px!important;
  box-shadow:var(--church-shadow)!important;
  padding:22px 26px!important;
  margin-bottom:20px!important;
}
.hero-panel:after,.module-hero:after{display:none!important;}
.hero-panel h2,.module-hero h2{font-size:26px!important;font-weight:400!important;letter-spacing:-.9px!important;color:#111!important;}
.hero-panel p,.module-hero p{color:#6b7280!important;font-size:15px!important;}
.module-hero span{font-size:34px!important;margin-bottom:4px!important;}
.cards,.stats-grid{gap:16px!important;margin-bottom:20px!important;}
.card,.stat-card,.panel,.report-card{
  background:#fff!important;
  border:1px solid var(--church-line)!important;
  border-radius:4px!important;
  box-shadow:var(--church-shadow)!important;
}
.card{padding:18px!important;}
.card:before{background:var(--church-green)!important;height:3px!important;}
.card span,.stat-card span{color:#6b7280!important;font-size:11px!important;font-weight:700!important;}
.card strong,.stat-card strong{font-size:28px!important;font-weight:500!important;color:#111!important;}
.panel{padding:24px 26px!important;margin-bottom:20px!important;}
.panel h3{font-size:22px!important;font-weight:400!important;color:#111!important;}
.panel-head{margin-bottom:18px!important;}
.btn,.primary,.secondary,.light,.softlock-save-btn,.softlock-add-device{
  border-radius:4px!important;
  box-shadow:none!important;
  font-weight:400!important;
  text-transform:none!important;
}
.primary,.softlock-save-btn,.softlock-add-device{background:var(--church-green)!important;color:#fff!important;}
.primary:hover,.softlock-save-btn:hover,.softlock-add-device:hover{background:var(--church-green-dark)!important;transform:none!important;}
.secondary,.light{background:#fff!important;color:#111!important;border:1px solid #dedede!important;}
.secondary:hover,.light:hover{background:#f6f6f6!important;transform:none!important;}
input,select,textarea{
  border-radius:2px!important;
  border:1px solid #dcdcdc!important;
  box-shadow:none!important;
  background:#fff!important;
}
input:focus,select:focus,textarea:focus{border-color:var(--church-green)!important;box-shadow:0 0 0 2px rgba(73,210,174,.14)!important;}
.table-wrap{border-radius:4px!important;border:1px solid #dedede!important;box-shadow:none!important;}
table{background:#fff!important;}
th{background:#f5f5f5!important;color:#4b5563!important;font-weight:700!important;font-size:11px!important;}
th,td{padding:12px 14px!important;border-bottom:1px solid #ececec!important;}
tbody tr:hover{background:#f7fffc!important;}
.timeline div{border-radius:4px!important;background:#fff!important;border:1px solid #ececec!important;}
.report-grid{gap:16px!important;}
.report-card:before{background:var(--church-green)!important;width:4px!important;}
.account-softlock-page{max-width:1180px!important;gap:24px!important;}
.account-card{border-radius:3px!important;box-shadow:0 4px 14px rgba(0,0,0,.14)!important;}
.hamb{background:var(--church-green)!important;border-radius:4px!important;}
@media(max-width:900px){.softlock-main{margin-left:0!important}.softlock-sidebar{width:270px!important;min-width:270px!important}.softlock-topbar{padding:12px 18px!important}.softlock-content{padding:16px!important}}


/* V15 Members & Visitors page: matches clean attached table layout while keeping current green/white theme */
.members-modern-page{display:flex;flex-direction:column;gap:22px;max-width:100%;}
.members-titlebar{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:2px 0 14px;border-bottom:1px dashed #e4e8ef;}
.members-title-left{display:flex;align-items:center;gap:18px;}
.members-title-icon{width:52px;height:52px;border:1px solid #dce4ee;border-radius:50%;display:grid;place-items:center;background:#fff;color:#2f3340;box-shadow:0 7px 18px rgba(15,23,42,.05);}
.members-title-icon svg{width:22px;height:22px;fill:currentColor;}
.members-titlebar h2{margin:0;font-size:19px;line-height:1.2;font-weight:800;color:#222;letter-spacing:-.02em;}
.members-titlebar p{margin:5px 0 0;color:#8b95a5;font-size:14px;}
.members-add-btn{height:42px;padding:0 22px;border:0;border-radius:7px;background:#43c978;color:#fff;font-size:15px;font-weight:800;display:inline-flex;align-items:center;gap:10px;box-shadow:none;cursor:pointer;}
.members-add-btn span{font-size:24px;line-height:0;font-weight:300;margin-top:-2px;}
.members-toolbar-row{display:flex;align-items:center;justify-content:space-between;gap:18px;}
.period-btn,.outline-action{height:41px;border:1px solid #dde3eb;border-radius:7px;background:#fff;color:#30343b;font-weight:650;font-size:14px;padding:0 14px;display:inline-flex;align-items:center;gap:9px;cursor:pointer;text-decoration:none;white-space:nowrap;}
.period-btn svg,.outline-action svg,.members-search svg{width:17px;height:17px;fill:currentColor;}
.period-btn{box-shadow:0 6px 16px rgba(15,23,42,.035);}
.members-actions{display:flex;align-items:center;gap:12px;margin-left:auto;}
.members-search{height:41px;width:min(360px,32vw);display:flex;align-items:center;gap:8px;border:1px solid #dbe2eb;border-radius:7px;background:#fff;padding:0 13px;color:#7a8596;}
.members-search input{height:100%!important;border:0!important;box-shadow:none!important;padding:0!important;border-radius:0!important;background:transparent!important;font-weight:500;font-size:14px;}
.inline-import input[type=file]{display:none;}
.members-tabs{display:flex;gap:26px;border-bottom:1px solid #dfe5ec;margin-top:2px;}
.members-tabs a{padding:0 0 14px;color:#949aa4;font-size:14px;text-decoration:none;position:relative;}
.members-tabs a.active{color:#2d2f34;font-weight:700;}
.members-tabs a.active:after{content:"";position:absolute;left:0;bottom:-1px;width:100%;height:2px;background:#26b85d;border-radius:20px;}
.members-form-card{display:none;background:#fff;border:1px solid #e6ebf2;border-radius:10px;padding:22px;box-shadow:0 10px 24px rgba(15,23,42,.035);}
.members-form-card.show{display:block;}
.members-form-head{display:flex;justify-content:space-between;align-items:center;gap:15px;margin-bottom:16px;}
.members-form-head h3,.members-form-card h3{margin:0;font-size:19px;font-weight:750;color:#111827;}
.compact-member-form{grid-template-columns:repeat(4,minmax(160px,1fr));gap:15px;}
.compact-member-form textarea{min-height:76px;}
.compact-member-form .form-actions{grid-column:1/-1;display:flex;gap:12px;align-items:center;}
.members-table-panel{background:#fff;border:0;border-radius:0;padding:0;margin-top:16px;box-shadow:none;}
.members-table-wrap{overflow:auto;background:#fff;}
.members-clean-table{width:100%;border-collapse:collapse;font-size:13px;color:#2c3138;min-width:960px;background:#fff;}
.members-clean-table thead th{background:#fafafa;color:#222;font-weight:800;text-align:left;padding:18px 18px;border-bottom:1px solid #e1e4e8;font-size:13px;text-transform:none;letter-spacing:0;}
.members-clean-table tbody td{padding:17px 18px;border-bottom:1px solid #e7e9ed;vertical-align:middle;color:#30343b;background:#fff;}
.members-clean-table tbody tr:hover td{background:#fbfdfc;}
.row-actions{position:relative;text-align:center;width:78px;}
.kebab{width:32px;height:32px;border:0;background:transparent;color:#707986;font-size:24px;line-height:1;cursor:pointer;border-radius:50%;}
.kebab:hover{background:#eef2f6;}
.row-menu{display:none;position:absolute;right:14px;top:40px;background:#fff;border:1px solid #e1e6ee;box-shadow:0 14px 30px rgba(15,23,42,.12);border-radius:8px;z-index:5;min-width:105px;padding:6px;}
.row-actions.open .row-menu,.row-menu.open{display:grid;}
.row-menu a{padding:8px 10px;text-align:left;border-radius:6px;color:#1f2937;text-decoration:none;font-size:13px;}
.row-menu a:hover{background:#f4f7fb;}
.row-menu .danger-link{color:#d12945!important;}
.members-pagination{height:54px;display:flex;align-items:center;justify-content:flex-end;gap:17px;color:#2c3138;font-size:13px;border-top:0;background:#fff;}
.members-pagination button{border:0;background:transparent;font-size:24px;color:#111;cursor:pointer;opacity:.4;}
.empty-row{text-align:center;padding:34px!important;}
@media(max-width:1100px){.members-titlebar,.members-toolbar-row{align-items:flex-start;flex-direction:column}.members-actions{width:100%;flex-wrap:wrap;margin-left:0}.members-search{width:100%;}.compact-member-form{grid-template-columns:repeat(2,minmax(160px,1fr));}}
@media(max-width:680px){.members-title-left{align-items:flex-start}.members-add-btn,.period-btn,.outline-action{width:100%;justify-content:center}.members-actions{display:grid;grid-template-columns:1fr 1fr}.members-search{grid-column:1/-1}.compact-member-form{grid-template-columns:1fr}.members-tabs{gap:18px}.members-titlebar h2{font-size:18px}}


/* V16 members/visitors merge and table refinements */
.members-titlebar{border-bottom:1px solid #edf0f4;}
.members-add-btn.theme-matched{
  background:#48d1ad!important;
  color:#fff!important;
  border:0!important;
  box-shadow:none!important;
}
.members-add-btn.theme-matched:hover{background:#35c29d!important;}
.members-tabs a{color:#8b96a8;}
.members-tabs a.active{color:#232a31;border-bottom-color:#2fbf71;}
.position-pill{display:inline-flex;align-items:center;padding:5px 10px;border-radius:999px;background:#eafaf3;color:#1c8f55;font-weight:700;font-size:12px;}
.member-detail-panel{background:#fff;border:1px solid #e6eaf0;border-radius:6px;margin:0 0 20px;padding:22px;box-shadow:0 1px 2px rgba(20,27,40,.04);}
.detail-head{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:18px;}
.detail-head h3{margin:0;font-size:21px;}
.detail-head p{margin:4px 0 0;color:#7c8798;}
.detail-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;}
.detail-grid div{background:#f8fafc;border:1px solid #edf0f4;border-radius:6px;padding:13px 14px;}
.detail-grid small{display:block;color:#7f8a9a;margin-bottom:6px;font-size:12px;text-transform:uppercase;letter-spacing:.03em;}
.detail-grid strong{font-size:14px;color:#1f2937;}
.row-menu a{display:block;white-space:nowrap;}
@media(max-width:900px){.detail-grid{grid-template-columns:repeat(2,minmax(0,1fr));}}
@media(max-width:560px){.detail-grid{grid-template-columns:1fr;}.members-titlebar{align-items:flex-start}.members-add-btn.theme-matched{width:100%;justify-content:center;}}
/* v17 professional members/visitors controls */
.member-filter-panel{display:none;grid-template-columns:repeat(6,minmax(140px,1fr));gap:12px;align-items:end;background:#fff;border:1px solid #e4e8ee;border-radius:10px;padding:16px;margin:12px 0 14px;box-shadow:0 1px 2px rgba(15,23,42,.04)}
.member-filter-panel.show{display:grid}.member-filter-panel label{font-weight:600;font-size:13px;color:#1f2937}.member-filter-panel input,.member-filter-panel select{width:100%;margin-top:6px;border:1px solid #d9e0e8;border-radius:7px;padding:10px 11px;background:#fff}.filter-actions{display:flex;gap:10px;align-items:center}.members-add-btn.small{padding:10px 16px;border:0}.range-notice{background:#f6fffb;border:1px solid #d8f5ea;color:#38545a;border-radius:8px;padding:10px 13px;margin:10px 0 12px;font-size:14px}.members-tabs a{display:inline-flex;align-items:center;padding:12px 0;margin-right:30px;color:#7b8794;text-decoration:none;border-bottom:2px solid transparent}.members-tabs a.active{color:#0f172a;border-color:#23b26d;font-weight:700}.members-clean-table th{user-select:none;cursor:context-menu}.column-editor{position:fixed;inset:0;background:rgba(15,23,42,.32);display:none;z-index:9999;align-items:center;justify-content:center}.column-editor.show{display:flex}.column-editor-card{background:#fff;border-radius:14px;width:min(520px,92vw);padding:22px;box-shadow:0 20px 60px rgba(15,23,42,.25)}.column-editor-card h3{margin:0 0 6px}.column-editor-card p{color:#7b8794;margin:0 0 16px}.column-item{display:flex;justify-content:space-between;align-items:center;border:1px solid #edf0f3;border-radius:8px;padding:10px 12px;margin-bottom:8px}.column-item button{border:1px solid #d9e0e8;background:#fff;border-radius:6px;margin-left:5px;padding:4px 8px}.profile-page{padding:24px 28px}.profile-topbar{display:flex;gap:16px;align-items:center;margin-bottom:18px}.profile-topbar h2{margin:0;font-size:26px}.profile-topbar p{margin:4px 0 0;color:#8491a3}.passport-card{background:#fff;border:1px solid #e4e8ee;border-radius:16px;padding:24px;display:grid;grid-template-columns:180px 1fr;gap:24px;box-shadow:0 5px 18px rgba(15,23,42,.06)}.passport-photo{height:210px;border-radius:14px;background:linear-gradient(135deg,#eefaf6,#e9f0f7);display:flex;align-items:center;justify-content:center;border:1px solid #dfe7ef;overflow:hidden}.passport-photo img{width:100%;height:100%;object-fit:cover}.passport-photo span{width:98px;height:98px;border-radius:50%;background:#47d1ad;color:#fff;font-size:42px;font-weight:800;display:flex;align-items:center;justify-content:center}.passport-main h1{margin:0;font-size:32px}.passport-sub{color:#15945d;font-weight:700;margin:7px 0 18px}.passport-grid,.profile-info-grid{display:grid;grid-template-columns:repeat(4,minmax(150px,1fr));gap:14px}.passport-grid div,.profile-info-grid div,.summary-cards div{background:#f9fafb;border:1px solid #edf0f3;border-radius:10px;padding:12px}.passport-grid small,.profile-info-grid small,.summary-cards small{display:block;color:#7b8794;font-size:12px;margin-bottom:5px}.passport-grid strong{font-size:15px}.profile-section{background:#fff;border:1px solid #e4e8ee;border-radius:14px;margin-top:16px;padding:0 18px 18px;box-shadow:0 4px 14px rgba(15,23,42,.04)}.profile-section summary{font-size:18px;font-weight:800;padding:18px 0;cursor:pointer}.growth-ladder{display:grid;grid-template-columns:repeat(5,1fr);gap:10px;margin-bottom:16px}.growth-step{background:#f1f5f9;border:1px solid #e5e7eb;color:#6b7280;border-radius:999px;text-align:center;padding:10px;font-weight:700}.growth-step.done{background:#dcfce7;color:#15803d;border-color:#bbf7d0}.summary-cards{display:grid;grid-template-columns:repeat(4,minmax(150px,1fr));gap:12px;margin-bottom:14px}.summary-cards strong{display:block;font-size:22px}.summary-cards span{color:#7b8794;font-size:12px}.timeline div{border-left:3px solid #47d1ad;padding:0 0 14px 12px;margin-left:8px}.timeline small{display:block;color:#7b8794;margin:3px 0}@media(max-width:900px){.member-filter-panel,.passport-grid,.profile-info-grid,.summary-cards{grid-template-columns:1fr 1fr}.passport-card{grid-template-columns:1fr}.growth-ladder{grid-template-columns:1fr 1fr}.profile-page{padding:16px}}

/* V18 period shortcut polish */
.period-shortcuts{display:flex;align-items:center;gap:10px;flex-wrap:wrap;}
.period-btn.active{background:#eafff6;border-color:#47d1ad;color:#0a8f60;box-shadow:0 8px 22px rgba(71,209,173,.13);}
.period-btn:hover,.outline-action:hover{border-color:#47d1ad;color:#0a8f60;background:#f7fffc;}
@media(max-width:680px){.period-shortcuts{width:100%;display:grid;grid-template-columns:1fr 1fr}.period-shortcuts .period-btn{width:100%;}}

/* v20: simplified members toolbar - search moved to the left, no period/status notice */
.members-toolbar-row.compact-toolbar{justify-content:space-between;align-items:center;margin-top:14px;margin-bottom:18px;}
.members-toolbar-row.compact-toolbar .main-search{margin-left:0;width:min(420px,42vw);height:42px;}
.members-toolbar-row.compact-toolbar .members-actions{margin-left:auto;}
.range-notice{display:none!important;}
.members-titlebar .members-title-left p strong{font-weight:600;}
@media(max-width:1100px){.members-toolbar-row.compact-toolbar .main-search{width:100%;}.members-toolbar-row.compact-toolbar .members-actions{margin-left:0;}}

/* Click-only action dropdown and live-search polish */
.row-actions{overflow:visible;}
.members-clean-table td.row-actions{position:relative;}
.row-menu{pointer-events:auto;}
.row-actions:not(.open) .row-menu{display:none!important;}
.row-actions.open .row-menu{display:grid!important;}
.empty-row-holder td{padding:24px!important;text-align:center!important;}
.members-search input:focus{outline:none!important;}

/* V22: table header right-click menu and column editor polish */
.table-header-context-menu{
  position:fixed;
  z-index:10020;
  min-width:190px;
  display:none;
  padding:8px;
  background:#fff;
  border:1px solid #dfe5ec;
  border-radius:10px;
  box-shadow:0 18px 48px rgba(15,23,42,.18);
}
.table-header-context-menu.show{display:grid;gap:4px;}
.table-header-context-menu button{
  width:100%;
  border:0;
  background:transparent;
  color:#1f2937;
  padding:10px 12px;
  text-align:left;
  border-radius:8px;
  font-weight:700;
  cursor:pointer;
}
.table-header-context-menu button:hover{background:#ecfdf5;color:#059669;}
.column-editor-head{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;margin-bottom:10px;}
.column-editor-close{width:34px;height:34px;border:0;border-radius:50%;background:#f3f4f6;color:#111827;font-size:22px;line-height:1;cursor:pointer;}
.column-editor-close:hover{background:#e5e7eb;}
.column-editor-list{max-height:380px;overflow:auto;padding-right:4px;margin-top:12px;}
.column-item label{display:flex;align-items:center;gap:9px;flex-direction:row;font-size:14px;color:#111827;}
.column-item input{width:16px;height:16px;accent-color:#49d2ae;}
.column-editor-actions{display:flex;justify-content:flex-end;gap:10px;margin-top:16px;}
.members-clean-table th{cursor:context-menu;}

/* V23: refined color blending for member tabs and filter controls */
.members-tabs{
  border-bottom:1px solid #e8edf2!important;
  gap:30px!important;
  margin-top:10px!important;
}
.members-tabs a{
  color:#7d8796!important;
  font-weight:500!important;
  padding:12px 0 13px!important;
  border-bottom:0!important;
}
.members-tabs a.active{
  color:#0f172a!important;
  font-weight:800!important;
}
.members-tabs a.active:after{
  height:3px!important;
  background:#49d2ae!important;
  width:100%!important;
  bottom:-1px!important;
  border-radius:999px!important;
  box-shadow:0 3px 9px rgba(73,210,174,.22)!important;
}
.member-filter-panel{
  background:#fff!important;
  border:1px solid #dfe6ee!important;
  border-radius:9px!important;
  box-shadow:0 8px 20px rgba(15,23,42,.045)!important;
}
.member-filter-panel label{
  color:#172033!important;
  font-weight:750!important;
}
.member-filter-panel input,
.member-filter-panel select{
  height:42px!important;
  border-color:#d8dee8!important;
  border-radius:4px!important;
  color:#111827!important;
  font-weight:600!important;
}
.member-filter-panel input:focus,
.member-filter-panel select:focus{
  border-color:#49d2ae!important;
  box-shadow:0 0 0 3px rgba(73,210,174,.12)!important;
}
.filter-actions{
  align-items:end!important;
}
.filter-actions .members-add-btn.small,
.member-filter-panel .members-add-btn.small{
  min-width:116px!important;
  height:44px!important;
  padding:0 18px!important;
  border-radius:7px!important;
  background:#49d2ae!important;
  color:#fff!important;
  font-size:15px!important;
  line-height:1!important;
  font-weight:850!important;
  white-space:nowrap!important;
  box-shadow:0 10px 20px rgba(73,210,174,.18)!important;
}
.filter-actions .members-add-btn.small:hover,
.member-filter-panel .members-add-btn.small:hover{
  background:#35c29d!important;
}
.filter-actions .outline-action,
.member-filter-panel .outline-action{
  min-width:86px!important;
  height:44px!important;
  border-radius:7px!important;
  border-color:#49d2ae!important;
  color:#0a8f60!important;
  font-weight:800!important;
  background:#fff!important;
}
.filter-actions .outline-action:hover,
.member-filter-panel .outline-action:hover{
  background:#effdf8!important;
}


/* V24: separate column functions: Adjust = resize, Edit = show/hide */
.column-editor-card{width:min(560px,92vw);}
.column-editor-head{align-items:center;margin-bottom:16px;}
.column-editor-card h3{margin:0;font-size:22px;font-weight:800;color:#111827;}
.column-editor-card p{display:none!important;}
.column-item label{display:flex;align-items:center;gap:10px;font-weight:700;color:#111827;}
.column-item input[type="checkbox"]{width:18px;height:18px;accent-color:#43cca0;}
.resize-column-item{gap:16px;}
.column-width-control{display:flex;align-items:center;gap:8px;min-width:260px;}
.column-width-range{width:150px;accent-color:#43cca0;}
.column-width-input{width:72px;border:1px solid #d9e0e8;border-radius:8px;padding:7px 8px;font-weight:700;text-align:center;background:#fff;}
.column-width-control span{font-size:12px;color:#7b8794;font-weight:700;}
.column-editor-actions .members-add-btn.small{min-width:132px;}
@media(max-width:640px){.column-item,.resize-column-item{align-items:flex-start;flex-direction:column}.column-width-control{min-width:100%;width:100%}.column-width-range{flex:1;width:auto}}

/* V25: polished column modal and Members & Visitors icon blend */
.members-cluster-svg{width:22px!important;height:22px!important;display:block;overflow:visible;}
.inside-nav-icon .members-cluster-svg circle,
.inside-nav-icon .members-cluster-svg path,
.members-title-icon .members-cluster-svg circle,
.members-title-icon .members-cluster-svg path{filter:none!important;}
.inside-nav a.active .inside-nav-icon .members-cluster-svg circle,
.inside-nav a.active .inside-nav-icon .members-cluster-svg path,
.inside-nav a:hover .inside-nav-icon .members-cluster-svg circle,
.inside-nav a:hover .inside-nav-icon .members-cluster-svg path{fill:#fff!important;opacity:1!important;}
.inside-nav a.active .inside-nav-icon .members-cluster-svg circle:nth-child(1),
.inside-nav a:hover .inside-nav-icon .members-cluster-svg circle:nth-child(1){opacity:.72!important;}
.inside-nav a.active .inside-nav-icon .members-cluster-svg circle:nth-child(2),
.inside-nav a.active .inside-nav-icon .members-cluster-svg circle:nth-child(3),
.inside-nav a:hover .inside-nav-icon .members-cluster-svg circle:nth-child(2),
.inside-nav a:hover .inside-nav-icon .members-cluster-svg circle:nth-child(3){opacity:.85!important;}
.members-title-icon{background:#fff!important;color:inherit!important;}
.members-title-icon .members-cluster-svg{width:25px!important;height:25px!important;}

.column-editor{background:rgba(17,24,39,.34)!important;backdrop-filter:blur(4px);}
.column-editor-card{
  width:min(620px,94vw)!important;
  max-height:88vh!important;
  padding:24px!important;
  border-radius:18px!important;
  border:1px solid rgba(226,232,240,.9)!important;
  box-shadow:0 24px 70px rgba(15,23,42,.25)!important;
}
.column-editor-head{padding-bottom:12px!important;border-bottom:1px solid #eef2f5!important;margin-bottom:14px!important;}
.column-editor-card h3{font-size:24px!important;letter-spacing:-.03em!important;}
.column-editor-close{width:38px!important;height:38px!important;background:#f6f7f8!important;color:#0f172a!important;font-weight:800!important;}
.column-editor-close:hover{background:#eafaf5!important;color:#05865c!important;}
.column-editor-list{max-height:430px!important;padding-right:8px!important;scrollbar-width:thin;scrollbar-color:#b8c0c9 #f1f5f9;}
.column-editor-list::-webkit-scrollbar{width:8px;}
.column-editor-list::-webkit-scrollbar-track{background:#f1f5f9;border-radius:999px;}
.column-editor-list::-webkit-scrollbar-thumb{background:#b8c0c9;border-radius:999px;}
.column-item{
  min-height:58px!important;
  padding:13px 15px!important;
  border:1px solid #e7edf2!important;
  border-radius:11px!important;
  background:#fff!important;
  box-shadow:0 2px 9px rgba(15,23,42,.025)!important;
}
.column-item:hover{border-color:#cdeee4!important;background:#fbfffd!important;box-shadow:0 8px 18px rgba(73,210,174,.07)!important;}
.resize-column-item{display:grid!important;grid-template-columns:160px 1fr!important;align-items:center!important;gap:20px!important;}
.resize-column-item label span{font-size:15px!important;color:#111827!important;font-weight:850!important;}
.column-width-control{min-width:0!important;width:100%!important;display:grid!important;grid-template-columns:1fr 86px 24px!important;align-items:center!important;gap:12px!important;}
.column-width-range{
  appearance:none!important;
  -webkit-appearance:none!important;
  width:100%!important;
  height:8px!important;
  border-radius:999px!important;
  background:linear-gradient(90deg,#49d2ae,#dff7ef)!important;
  outline:none!important;
  cursor:pointer!important;
}
.column-width-range::-webkit-slider-thumb{
  appearance:none!important;
  -webkit-appearance:none!important;
  width:20px!important;height:20px!important;border-radius:50%!important;background:#49d2ae!important;border:3px solid #fff!important;box-shadow:0 4px 12px rgba(73,210,174,.45)!important;
}
.column-width-range::-moz-range-thumb{width:20px!important;height:20px!important;border-radius:50%!important;background:#49d2ae!important;border:3px solid #fff!important;box-shadow:0 4px 12px rgba(73,210,174,.45)!important;}
.column-item input.column-width-input[type="number"]{
  width:86px!important;height:38px!important;min-width:86px!important;max-width:86px!important;
  border:1px solid #d7e0e7!important;border-radius:8px!important;background:#fff!important;
  padding:0 8px!important;text-align:center!important;font-weight:800!important;color:#0f172a!important;font-size:14px!important;
}
.column-item input.column-width-input[type="number"]:focus{outline:none!important;border-color:#49d2ae!important;box-shadow:0 0 0 3px rgba(73,210,174,.14)!important;}
.column-width-control span{font-size:13px!important;color:#7b8794!important;font-weight:800!important;}
.column-item input.column-visible-toggle[type="checkbox"]{width:19px!important;height:19px!important;accent-color:#49d2ae!important;border-radius:5px!important;}
.column-editor-actions{padding-top:16px!important;border-top:1px solid #eef2f5!important;margin-top:14px!important;}
.column-editor-actions .outline-action{height:44px!important;border-radius:9px!important;font-weight:850!important;}
.column-editor-actions .members-add-btn.small{height:44px!important;border-radius:9px!important;background:#49d2ae!important;box-shadow:0 10px 22px rgba(73,210,174,.22)!important;}
.column-editor-actions .members-add-btn.small:hover{background:#34c59d!important;}
@media(max-width:640px){.resize-column-item{grid-template-columns:1fr!important}.column-width-control{grid-template-columns:1fr 78px 22px!important}.column-editor-card{padding:18px!important}}

/* V26: restore original Members/Visitors icon and improve Edit Columns ordering */
.inside-nav-icon svg:not(.members-cluster-svg),
.members-title-icon svg:not(.members-cluster-svg){fill:currentColor;}
.members-title-icon svg:not(.members-cluster-svg){width:24px!important;height:24px!important;}
.inside-nav a.active .inside-nav-icon svg:not(.members-cluster-svg),
.inside-nav a:hover .inside-nav-icon svg:not(.members-cluster-svg){fill:#fff!important;}

.adjustable-table thead th.draggable-column{cursor:grab;position:relative;transition:background .15s ease, box-shadow .15s ease, color .15s ease;}
.adjustable-table thead th.draggable-column:active{cursor:grabbing;}
.adjustable-table thead th.dragging-column{opacity:.55;background:#ecfff8!important;}
.adjustable-table thead th.drag-over-column{background:#e9fbf5!important;box-shadow:inset 3px 0 0 #49d2ae;color:#059669!important;}

.column-drag-item{display:grid!important;grid-template-columns:34px 1fr auto!important;align-items:center!important;gap:12px!important;cursor:grab!important;}
.column-drag-item:active{cursor:grabbing!important;}
.column-drag-handle{width:28px;height:28px;border-radius:8px;background:#f3f6f8;color:#98a2ae;display:grid;place-items:center;font-weight:900;letter-spacing:-4px;line-height:1;user-select:none;}
.column-drag-item:hover .column-drag-handle{background:#e9fbf5;color:#17a873;}
.column-drag-item label{min-width:0;}
.column-order-buttons{display:flex;align-items:center;gap:7px;}
.column-order-buttons button{width:34px;height:34px;border:1px solid #d7e0e7;border-radius:8px;background:#fff;color:#0f172a;font-weight:900;cursor:pointer;}
.column-order-buttons button:hover:not(:disabled){border-color:#49d2ae;background:#effdf8;color:#0a8f60;}
.column-order-buttons button:disabled{opacity:.35;cursor:not-allowed;}
.column-drag-item.dragging-column-row{opacity:.55;transform:scale(.99);}
.column-drag-item.drag-over-column-row{border-color:#49d2ae!important;background:#f2fff9!important;box-shadow:0 8px 20px rgba(73,210,174,.13)!important;}
.column-editor-card h3:after{content:"";display:block;width:46px;height:3px;background:#49d2ae;border-radius:999px;margin-top:8px;}
@media(max-width:640px){.column-drag-item{grid-template-columns:28px 1fr!important}.column-order-buttons{grid-column:1/-1;justify-content:flex-end}}

/* v28: member linked ID + simple column resize line */
.member-id-pill{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-width:92px;
  padding:6px 10px;
  border-radius:999px;
  background:#eefaf5;
  color:#087a4d;
  font-weight:800;
  border:1px solid rgba(67,204,146,.22);
  font-size:13px;
  letter-spacing:.02em;
}
.adjustable-table th[data-col]{
  position:relative;
  user-select:none;
}
.column-resize-handle{
  position:absolute;
  top:0;
  right:-1px;
  width:4px;
  height:100%;
  cursor:col-resize;
  z-index:5;
  opacity:0;
  background:transparent;
  border-radius:0;
  transition:opacity .12s ease, background .12s ease, box-shadow .12s ease;
}
.column-resize-handle::after{
  content:"";
  position:absolute;
  top:8px;
  bottom:8px;
  left:1px;
  width:2px;
  border-radius:4px;
  background:#43cc92;
  box-shadow:0 0 0 1px rgba(67,204,146,.08);
}
.adjustable-table th[data-col]:hover .column-resize-handle,
.adjustable-table th.resizing-column .column-resize-handle{
  opacity:1;
}
.adjustable-table th.resizing-column{
  background:#f2fff9!important;
  color:#087a4d!important;
}
.column-resizing-active,
.column-resizing-active *{
  cursor:col-resize!important;
}
.column-width-control input[type="number"].column-width-input{
  width:88px!important;
  min-width:88px!important;
  height:38px!important;
  text-align:center;
  border:1px solid #dbe5ee;
  border-radius:10px;
  font-weight:800;
  color:#1f2937;
  background:#fff;
}
.column-width-control input[type="range"]{
  accent-color:#43cc92;
}
.column-editor-card .column-item.resize-column-item{
  grid-template-columns:minmax(150px, 1fr) minmax(220px, 330px);
  gap:22px;
}
@media(max-width: 760px){
  .column-editor-card .column-item.resize-column-item{
    grid-template-columns:1fr;
  }
  .column-width-control{justify-content:flex-start;}
}
.linked-member-id{font-size:12px;color:#087a4d;font-weight:800;margin-left:8px;}

/* V29 role management polish */
.role-page-head{margin-bottom:18px;align-items:center}.shield-icon svg{width:24px;height:24px;fill:var(--accent,#48d0a6)}
.role-card{background:#fff;border:1px solid #e6edf3;border-radius:12px;padding:22px;margin-bottom:18px;box-shadow:0 8px 22px rgba(15,23,42,.05)}
.role-card-head{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:18px}.role-card-head h3{font-size:21px;line-height:1.2;margin:0;color:#182230}.role-card-head p{margin:5px 0 0;color:#7b8797}.help-dot{display:inline-flex;width:22px;height:22px;border-radius:50%;background:#d1d5db;color:#fff;align-items:center;justify-content:center;font-size:14px;vertical-align:middle}
.role-search-row{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin-bottom:16px}.role-search-row label{font-weight:500;color:#3d4652}.role-search-row input,.soft-grid-form input,.soft-grid-form select,.soft-inline input,.soft-inline select,.role-modal-grid input{border:1px solid #dce3ea;border-radius:6px;height:46px;padding:0 14px;background:#fff;color:#111827;font-size:15px}.role-search-row input{min-width:260px}.soft-btn{border:1px solid #dce3ea;background:#fff;border-radius:6px;height:46px;padding:0 22px;display:inline-flex;align-items:center;justify-content:center;gap:8px;font-weight:600;text-decoration:none;color:#1f2937;cursor:pointer}.soft-btn.primary,.soft-btn.create-role-btn{background:#00b89c;border-color:#00b89c;color:white}.soft-btn.secondary{background:#4bd1a4;border-color:#4bd1a4;color:white}.soft-btn.light{background:#e9faf6;border-color:#bcefe3;color:#008d79}.soft-btn.wide{min-width:220px}.soft-table{width:100%;border-collapse:collapse;background:white}.soft-table th{background:#f7f9fb;color:#344054;font-size:13px;text-transform:none;font-weight:700;padding:14px 16px;border-bottom:1px solid #e6edf3;text-align:left}.soft-table td{padding:14px 16px;border-bottom:1px solid #edf1f5}.empty-cell{text-align:center;color:#7b8797;padding:30px!important}.muted{color:#7b8797}.small{font-size:13px}.status-pill{display:inline-flex;padding:5px 12px;border-radius:999px;font-weight:700;font-size:12px}.status-pill.active{background:#e7faf3;color:#008b6f}.status-pill.off{background:#fff1f2;color:#be123c}.soft-grid-form{display:grid;grid-template-columns:repeat(4,minmax(180px,1fr));gap:16px}.soft-grid-form label{display:flex;flex-direction:column;gap:8px;font-weight:600;color:#182230}.soft-grid-form .full{grid-column:1/-1}.permission-chip-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(210px,1fr));gap:10px}.permission-chip-grid label{display:flex;align-items:center;gap:10px;flex-direction:row!important;background:#f8fafc;border:1px solid #edf2f7;border-radius:8px;padding:11px 12px}.compact-rights{grid-column:1/-1}.two-col-section{display:grid;grid-template-columns:1fr 1fr;gap:24px}.soft-inline{display:flex;gap:10px;flex-wrap:wrap}.soft-inline input,.soft-inline select{min-width:240px;flex:1}.compact-search{height:42px;border:1px solid #dce3ea;border-radius:6px;padding:0 12px;min-width:220px}
.role-modal-backdrop{position:fixed;inset:0;background:rgba(15,23,42,.38);z-index:2000;display:flex;align-items:flex-start;justify-content:center;overflow:auto;padding:42px 16px}.role-modal-backdrop[hidden]{display:none}.role-modal-card{width:min(980px,96vw);background:white;border-radius:12px;box-shadow:0 28px 90px rgba(15,23,42,.25);padding:26px 28px 22px;position:relative}.role-modal-card h2{margin:0 0 24px;font-size:24px;font-weight:500;color:#333}.modal-close{position:absolute;right:18px;top:18px;border:0;background:transparent;font-size:30px;color:#9aa3af;cursor:pointer}.role-modal-grid{display:grid;grid-template-columns:140px 1fr;gap:14px 18px;align-items:center}.role-modal-grid label{display:contents;color:#60656f}.role-modal-grid label input{width:100%;grid-column:2}.required{color:#f43f5e}.role-tabs{border-bottom:1px solid #dce3ea;margin-top:28px}.role-tabs button{height:52px;padding:0 26px;border:1px solid #dce3ea;border-bottom:0;background:#fff;color:#00a890;font-weight:500;font-size:16px}.permission-tree{padding:18px 0;max-height:430px;overflow:auto}.tree-group{margin-bottom:6px}.tree-parent{display:flex;align-items:center;gap:10px;height:34px;color:#60656f;font-weight:500}.tree-arrow{color:#a2abb6;cursor:pointer}.tree-children{margin-left:30px}.tree-children label{display:flex;align-items:center;gap:10px;height:32px;color:#60656f}.tree-group.collapsed .tree-children{display:none}.tree-group.collapsed .tree-arrow{transform:rotate(-90deg)}.permission-tree input[type="checkbox"],.permission-chip-grid input[type="checkbox"]{accent-color:#00b89c;width:16px;height:16px}.permission-tree label:hover{background:#f5f8fb}.modal-actions{display:flex;justify-content:flex-end;gap:12px;border-top:1px solid #edf1f5;padding-top:16px}@media(max-width:900px){.soft-grid-form,.two-col-section{grid-template-columns:1fr}.role-card-head{align-items:flex-start;flex-direction:column}.role-modal-grid{grid-template-columns:1fr}.role-modal-grid label{display:flex;flex-direction:column}.role-modal-grid label input{grid-column:auto}.role-search-row input{min-width:100%;}.soft-btn.wide{width:100%}}

/* V30 role action dropdown polish */
.role-row-actions{position:relative;text-align:center;overflow:visible!important;}
.role-row-actions .kebab-btn,.role-kebab{border:0;background:transparent;color:#64748b;font-size:24px;line-height:1;border-radius:999px;width:36px;height:36px;cursor:pointer;}
.role-row-actions .kebab-btn:hover,.role-kebab:hover{background:#f1f5f9;color:#0f172a;}
.role-action-menu{position:absolute;right:12px;top:36px;min-width:145px;background:#fff;border:1px solid #e5eaf0;border-radius:10px;box-shadow:0 18px 45px rgba(15,23,42,.18);padding:8px;z-index:50;display:none;}
.role-row-actions.open .role-action-menu{display:grid!important;gap:4px;}
.role-action-menu a,.role-action-menu button{display:block;width:100%;text-align:left;border:0;background:#fff;color:#273244;text-decoration:none;font-weight:650;font-size:14px;padding:9px 10px;border-radius:8px;cursor:pointer;font-family:inherit;}
.role-action-menu a:hover,.role-action-menu button:hover{background:#f0fdfa;color:#04966c;}
.role-action-menu a:last-child:hover{background:#fff1f2;color:#e11d48;}


/* V31 role rights modal alignment polish */
.role-modal-backdrop{
  background:rgba(15,23,42,.42)!important;
  padding:28px 16px!important;
  align-items:flex-start!important;
}
.role-modal-card{
  width:min(1040px,96vw)!important;
  max-height:calc(100vh - 56px)!important;
  display:flex!important;
  flex-direction:column!important;
  padding:28px 34px 24px!important;
  border-radius:12px!important;
  overflow:hidden!important;
}
.role-modal-card h2{
  font-size:25px!important;
  line-height:1.15!important;
  color:#26313f!important;
  margin:0 0 24px!important;
  font-weight:500!important;
}
.role-modal-card .modal-close{
  top:22px!important;
  right:24px!important;
  width:36px!important;
  height:36px!important;
  border-radius:50%!important;
  display:grid!important;
  place-items:center!important;
  font-size:30px!important;
  line-height:1!important;
  color:#9aa3af!important;
  background:#f5f7f9!important;
}
.role-modal-card .modal-close:hover{background:#eef2f6!important;color:#1f2937!important;}
.role-create-form{display:flex!important;flex-direction:column!important;min-height:0!important;}
.role-modal-fields,
.role-modal-grid.role-modal-fields{
  display:grid!important;
  grid-template-columns:160px minmax(0,1fr)!important;
  gap:14px 20px!important;
  align-items:center!important;
  width:100%!important;
}
.role-modal-fields .role-field-row{
  display:contents!important;
}
.role-field-label{
  grid-column:1!important;
  color:#626b78!important;
  font-weight:650!important;
  font-size:14px!important;
  line-height:1.2!important;
  white-space:nowrap!important;
  text-align:left!important;
}
.role-field-label .required{margin-right:6px!important;color:#e11d48!important;}
.role-modal-fields input{
  grid-column:2!important;
  width:100%!important;
  min-width:0!important;
  height:48px!important;
  padding:0 16px!important;
  border:1px solid #dbe3eb!important;
  border-radius:4px!important;
  font-size:15px!important;
  color:#111827!important;
  font-weight:650!important;
  background:#fff!important;
  outline:none!important;
}
.role-modal-fields input:focus{
  border-color:#48d0a6!important;
  box-shadow:0 0 0 3px rgba(72,208,166,.13)!important;
}
.role-tabs{
  margin-top:28px!important;
  border-bottom:1px solid #dbe3eb!important;
  display:flex!important;
  align-items:flex-end!important;
}
.role-tabs button{
  height:52px!important;
  min-width:260px!important;
  padding:0 28px!important;
  border:1px solid #dbe3eb!important;
  border-bottom:1px solid #fff!important;
  background:#fff!important;
  color:#00a890!important;
  font-size:16px!important;
  font-weight:500!important;
  text-align:center!important;
  margin-bottom:-1px!important;
}
.permission-tree{
  flex:1 1 auto!important;
  min-height:260px!important;
  max-height:430px!important;
  overflow:auto!important;
  padding:18px 20px!important;
  text-align:left!important;
  background:#fff!important;
  border-bottom:1px solid #edf1f5!important;
}
.permission-tree *{box-sizing:border-box!important;text-align:left!important;}
.tree-group{
  margin:0 0 8px!important;
  border-radius:8px!important;
  overflow:hidden!important;
}
.tree-parent{
  display:flex!important;
  align-items:center!important;
  justify-content:flex-start!important;
  gap:10px!important;
  min-height:38px!important;
  height:auto!important;
  width:100%!important;
  padding:8px 10px!important;
  color:#5f6875!important;
  font-weight:650!important;
  font-size:15px!important;
  line-height:1.25!important;
  background:#f7f9fb!important;
  cursor:pointer!important;
}
.tree-parent:hover{background:#eefbf7!important;color:#087a4d!important;}
.tree-arrow{
  flex:0 0 16px!important;
  width:16px!important;
  height:16px!important;
  display:grid!important;
  place-items:center!important;
  color:#a5afbb!important;
  font-size:13px!important;
  transform-origin:center!important;
}
.tree-parent input[type="checkbox"],
.tree-children input[type="checkbox"]{
  flex:0 0 16px!important;
  width:16px!important;
  height:16px!important;
  margin:0!important;
  accent-color:#00b89c!important;
}
.tree-children{
  margin:0!important;
  padding:6px 0 6px 44px!important;
  background:#fff!important;
}
.tree-children label{
  display:flex!important;
  align-items:center!important;
  justify-content:flex-start!important;
  gap:10px!important;
  width:100%!important;
  min-height:32px!important;
  height:auto!important;
  padding:6px 10px!important;
  margin:0!important;
  border-radius:6px!important;
  color:#606975!important;
  font-weight:500!important;
  font-size:14px!important;
  line-height:1.25!important;
  background:transparent!important;
}
.tree-children label:hover{background:#f5fbf9!important;color:#0f766e!important;}
.tree-group.collapsed .tree-children{display:none!important;}
.tree-group.collapsed .tree-arrow{transform:rotate(-90deg)!important;}
.modal-actions{
  flex:0 0 auto!important;
  padding-top:16px!important;
  margin-top:0!important;
  border-top:0!important;
  background:#fff!important;
}
.modal-actions .soft-btn{min-width:120px!important;}
@media(max-width:720px){
  .role-modal-card{padding:22px 18px 18px!important;}
  .role-modal-fields,.role-modal-grid.role-modal-fields{grid-template-columns:1fr!important;gap:8px!important;}
  .role-field-row{display:flex!important;flex-direction:column!important;gap:8px!important;}
  .role-field-label,.role-modal-fields input{grid-column:1!important;}
  .role-tabs button{min-width:100%!important;}
  .tree-children{padding-left:24px!important;}
}

/* V32 role modal narrow layout + rights alignment */
.role-page-head .head-icon.shield-icon svg{
  width:24px!important;
  height:24px!important;
  fill:#48d0a6!important;
}
.role-modal-card{
  width:min(820px,94vw)!important;
  padding:26px 28px 22px!important;
}
.role-modal-fields,
.role-modal-grid.role-modal-fields{
  grid-template-columns:150px minmax(0,1fr)!important;
}
.permission-tree{
  padding:14px 14px!important;
  max-height:390px!important;
}
.tree-group{
  border:1px solid #eef3f6!important;
  background:#fff!important;
}
.tree-parent{
  display:grid!important;
  grid-template-columns:18px minmax(0,1fr) 22px!important;
  align-items:center!important;
  gap:10px!important;
  min-height:42px!important;
  padding:10px 14px!important;
  background:#f7fafb!important;
  border-radius:8px 8px 0 0!important;
}
.tree-parent .tree-label{
  color:#475467!important;
  font-weight:750!important;
  text-align:left!important;
}
.tree-parent input[type="checkbox"]{
  justify-self:end!important;
}
.tree-children{
  padding:6px 14px 10px 42px!important;
}
.tree-children label{
  display:grid!important;
  grid-template-columns:minmax(0,1fr) 22px!important;
  align-items:center!important;
  gap:10px!important;
  min-height:34px!important;
  padding:7px 10px!important;
}
.tree-children .tree-label{
  text-align:left!important;
  color:#4b5563!important;
  font-weight:600!important;
}
.tree-children input[type="checkbox"]{
  justify-self:end!important;
}
.modal-actions{
  padding-top:14px!important;
}
@media(max-width:720px){
  .role-modal-card{width:min(680px,96vw)!important;padding:22px 18px!important;}
  .tree-parent{grid-template-columns:18px minmax(0,1fr) 22px!important;}
  .tree-children{padding-left:22px!important;}
}

/* v33 church finance/program/branch additions */
.realtime-notice{position:fixed;right:18px;bottom:18px;z-index:9999;background:#0f172a;color:#fff;border-radius:16px;padding:14px 16px;box-shadow:0 16px 40px rgba(15,23,42,.25);display:flex;gap:14px;align-items:center;font-size:13px}.realtime-notice button{border:0;border-radius:12px;background:#fff;color:#0f172a;padding:8px 12px;font-weight:700;cursor:pointer}
.receipt-page{max-width:920px;margin:0 auto}.receipt-panel{background:#f8fafc}.receipt-actions{display:flex;justify-content:space-between;gap:12px;margin-bottom:14px}.receipt-box{background:#fff;border:1px solid #e5e7eb;border-radius:18px;padding:28px;color:#111827}.receipt-head{display:flex;justify-content:space-between;gap:18px;border-bottom:2px solid #111827;padding-bottom:14px;margin-bottom:16px}.receipt-head h2{margin:0;font-size:24px}.receipt-head p{margin:6px 0 0;color:#64748b}.receipt-number{text-align:right}.receipt-number small,.receipt-meta small{display:block;color:#64748b;text-transform:uppercase;font-size:11px;letter-spacing:.08em}.receipt-number strong{font-size:20px}.receipt-meta{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin:14px 0}.receipt-meta>div,.receipt-customer{border:1px solid #e5e7eb;border-radius:14px;padding:12px}.receipt-customer h3{margin:0 0 8px}.receipt-customer p{margin:4px 0}.receipt-table{width:100%;border-collapse:collapse;margin:16px 0}.receipt-table th,.receipt-table td{border:1px solid #d1d5db;padding:12px;text-align:left}.receipt-table th{background:#f1f5f9}.receipt-total{display:flex;justify-content:flex-end;gap:28px;align-items:center;font-size:18px;border-top:2px solid #111827;padding-top:14px}.receipt-total strong{font-size:24px}.receipt-notes{background:#f8fafc;border-radius:12px;padding:12px;color:#475569}.receipt-sign{display:flex;justify-content:space-between;gap:18px;margin-top:34px}.linked-member-id{font-weight:500;color:#64748b;margin-left:8px}.range-notice{background:#f8fafc;border-radius:12px;padding:10px 12px}.status-pill.off{background:#fee2e2;color:#991b1b}.member-filter-panel.show{display:grid!important}
@media print{.sidebar,.topbar,.no-print,.receipt-actions,.realtime-notice{display:none!important}.softlock-main,.softlock-content,.content{margin:0!important;padding:0!important}.receipt-panel,.panel{box-shadow:none!important;border:0!important}.receipt-box{border:0!important}.app{display:block!important}body{background:#fff!important}}
@media(max-width:720px){.receipt-head,.receipt-sign{display:block}.receipt-meta{grid-template-columns:1fr}.receipt-number{text-align:left;margin-top:12px}.realtime-notice{left:12px;right:12px;bottom:12px}}

/* V34 requested refinements: clean role assignment and centered reports filters */
.role-assignment-note{
  background:#f7fffc;
  border:1px solid #c9f2e6;
  color:#176b58;
  border-radius:8px;
  padding:12px 14px;
  font-weight:700;
}
.report-filter-actions{
  grid-column:1/-1!important;
  justify-content:center!important;
  align-items:center!important;
  margin-top:6px!important;
}
.report-filter-actions .members-add-btn.small,
.report-filter-actions .outline-action{
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  text-align:center!important;
}
.profile-section button[disabled],
.profile-section select[disabled]{
  opacity:.55;
  cursor:not-allowed;
}


/* V35: unify module page headers with Members & Visitors style */
.page-header-style{
  justify-content:flex-start!important;
  gap:0!important;
  padding:2px 0 14px!important;
  margin-bottom:22px!important;
}
.page-header-style .members-title-left{
  align-items:center!important;
  gap:18px!important;
}
.page-header-style .members-title-icon{
  width:64px!important;
  height:64px!important;
  min-width:64px!important;
  border-radius:50%!important;
  border:1px solid #dbe3ec!important;
  background:linear-gradient(180deg,#ffffff 0%,#f8fbff 100%)!important;
  box-shadow:0 8px 20px rgba(15,23,42,.05)!important;
  display:grid!important;
  place-items:center!important;
}
.page-header-style .members-title-icon.header-emoji{
  font-size:31px!important;
  line-height:1!important;
}
.page-header-style .members-title-icon svg{
  width:24px!important;
  height:24px!important;
  fill:currentColor!important;
}
.page-header-style .members-title-icon.shield-icon{
  color:#4ecda8!important;
}
.page-header-style h2{
  margin:0!important;
  font-size:22px!important;
  line-height:1.15!important;
  font-weight:800!important;
  color:#101828!important;
  letter-spacing:-.03em!important;
}
.page-header-style p{
  margin:7px 0 0!important;
  color:#7e8898!important;
  font-size:14px!important;
  max-width:900px!important;
}
@media(max-width:680px){
  .page-header-style .members-title-icon{
    width:56px!important;
    height:56px!important;
    min-width:56px!important;
  }
  .page-header-style .members-title-icon.header-emoji{font-size:28px!important;}
  .page-header-style h2{font-size:18px!important;}
}


/* V36 forgot password alignment and reset-password pages */
.softlock-forgot{
  width:320px!important;
  margin:22px 0 38px 105px!important;
  text-align:center!important;
  align-self:flex-start!important;
}
.softlock-success{
  width:470px!important;
  max-width:100%!important;
  color:#087f5b!important;
  font-size:16px!important;
  line-height:1.35!important;
  margin:0 0 18px 0!important;
  background:#ecfdf5!important;
  border:1px solid #bbf7d0!important;
  border-radius:6px!important;
  padding:10px 12px!important;
}
.softlock-reset-link{
  width:320px!important;
  height:46px!important;
  margin:6px 0 18px 105px!important;
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  border-radius:4px!important;
  background:#eefbf7!important;
  border:1px solid #49d2ae!important;
  color:#0f766e!important;
  text-decoration:none!important;
  font-weight:700!important;
}
.softlock-back-link{
  margin-top:18px!important;
  margin-bottom:0!important;
}
.softlock-button-link{
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  text-decoration:none!important;
}
@media(max-width:1050px){
  .softlock-forgot,.softlock-reset-link{width:100%!important;margin-left:0!important;}
  .softlock-success{width:100%!important;}
}


/* V37 branch edit separation and status fix */
.branch-edit-panel{
  border-left:4px solid var(--church-green,#49d2ae)!important;
}
.branch-dedicated-form input[readonly]{
  background:#f3f4f6!important;
  color:#6b7280!important;
  cursor:not-allowed!important;
}
.editing-row td{
  background:#f7fffc!important;
}
.alert.warning{
  background:#fff7ed!important;
  border:1px solid #fed7aa!important;
  color:#9a3412!important;
  border-radius:8px!important;
  padding:12px 14px!important;
  margin-bottom:14px!important;
}


/* V38 attendance searchable check-in */
.attendance-form label{
  position:relative!important;
}
.attendance-form input[readonly]{
  background:#f8fafc!important;
  color:#667085!important;
}
.attendance-suggestions{
  display:none;
  position:absolute;
  left:0;
  right:0;
  top:calc(100% + 4px);
  z-index:50;
  background:#fff;
  border:1px solid #dbe3ec;
  box-shadow:0 14px 30px rgba(15,23,42,.12);
  border-radius:8px;
  overflow:hidden;
  max-height:260px;
  overflow-y:auto;
}
.attendance-suggestions.open{
  display:block;
}
.attendance-suggestion{
  width:100%;
  display:flex;
  flex-direction:column;
  gap:3px;
  text-align:left;
  border:0;
  border-bottom:1px solid #eef2f6;
  background:#fff;
  padding:11px 13px;
  cursor:pointer;
  color:#101828;
}
.attendance-suggestion:hover{
  background:#f7fffc;
}
.attendance-suggestion strong{
  font-size:13px;
  color:#111827;
}
.attendance-suggestion span{
  font-size:12px;
  color:#667085;
}
.attendance-method-help input{
  color:#0f766e!important;
  font-weight:700!important;
}


/* V40 attendance typing autosuggest polish */
.attendance-suggestions.open{
  display:block!important;
}
.attendance-checkin-panel .attendance-form label:first-of-type{
  overflow:visible!important;
}
.attendance-checkin-panel{
  overflow:visible!important;
}


/* V41 check-in method dynamic instruction panels */
.attendance-method-help{
  display:flex!important;
  flex-direction:column!important;
  gap:8px!important;
}
.attendance-method-help strong{
  font-weight:800!important;
  color:#111827!important;
}
.attendance-method-panel{
  min-height:56px;
  border:1px solid #d9dee7;
  background:#fff;
  border-radius:4px;
  padding:13px 14px;
  display:flex;
  flex-direction:column;
  justify-content:center;
  gap:4px;
  color:#101828;
}
.attendance-method-panel strong{
  font-size:14px!important;
}
.attendance-method-panel span{
  font-size:13px!important;
  color:#667085!important;
  line-height:1.35!important;
}
.attendance-method-panel.method-qr-code{
  border-color:#bfdbfe!important;
  background:#eff6ff!important;
}
.attendance-method-panel.method-mobile{
  border-color:#bbf7d0!important;
  background:#f0fdf4!important;
}
.attendance-method-panel.method-bulk-upload{
  border-color:#fed7aa!important;
  background:#fff7ed!important;
}
.attendance-method-extra{
  display:flex;
  align-items:center;
  gap:10px;
  flex-wrap:wrap;
}
.method-action-btn,
.bulk-upload-inline{
  min-height:38px;
  border:1px solid #49d2ae;
  background:#49d2ae;
  color:#fff;
  border-radius:6px;
  padding:9px 13px;
  font-weight:800;
  cursor:pointer;
  display:inline-flex;
  align-items:center;
  justify-content:center;
}
.bulk-upload-inline input{
  display:none;
}

.attendance-bulk-upload-tab{grid-column:1/-1;border:1px solid #d8e2ef;border-radius:12px;padding:14px 16px;background:#f8fbff;margin-top:4px}
.attendance-bulk-upload-tab strong{display:block;margin-bottom:6px;color:#0f172a}
.attendance-bulk-upload-tab span{display:block;color:#64748b;margin-bottom:12px}
.attendance-bulk-upload-tab input[type=file]{width:100%;padding:12px;border:1px dashed #94a3b8;border-radius:10px;background:#fff}

.bulk-upload-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:8px}
.outline-action.small{padding:8px 12px;font-size:13px;text-decoration:none}

/* V70 interface alignment and polish pass */
:root{
  --v70-sidebar-width:270px;
  --v70-green:#49d2ae;
  --v70-line:#e7e7e7;
  --v70-soft:#f6f8f7;
  --v70-ink:#111827;
}
html,body{min-height:100%;}
.app.softlock-app{align-items:stretch!important;min-height:100vh!important;background:#fafafa!important;}
.softlock-sidebar{
  width:var(--v70-sidebar-width)!important;
  min-width:var(--v70-sidebar-width)!important;
  height:100vh!important;
  max-height:100vh!important;
  position:fixed!important;
  left:0!important;
  top:0!important;
  bottom:auto!important;
  display:flex!important;
  flex-direction:column!important;
  overflow:hidden!important;
  background:#f5f5f4!important;
  border-right:1px solid #dedede!important;
}
.inside-brand{
  flex:0 0 auto!important;
  min-height:96px!important;
  padding:18px 16px 16px 20px!important;
  gap:12px!important;
  align-items:center!important;
  border-bottom:1px solid var(--v70-line)!important;
}
.inside-brand img{width:50px!important;height:50px!important;min-width:50px!important;}
.inside-brand-text{min-width:0!important;}
.inside-brand-text strong{font-size:21px!important;line-height:.98!important;letter-spacing:-1px!important;word-break:normal!important;}
.inside-brand-text small{font-size:11.5px!important;margin-top:5px!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;}
.inside-nav{
  flex:1 1 auto!important;
  display:flex!important;
  flex-direction:column!important;
  gap:2px!important;
  padding:10px 8px 14px 8px!important;
  overflow-y:auto!important;
  overflow-x:hidden!important;
  scrollbar-width:thin!important;
  scrollbar-color:#c9cfce transparent!important;
  background:#f5f5f4!important;
}
.inside-nav::-webkit-scrollbar{width:7px!important;}
.inside-nav::-webkit-scrollbar-thumb{background:#c9cfce!important;border-radius:999px!important;}
.inside-nav a{
  width:100%!important;
  min-height:46px!important;
  height:46px!important;
  padding:0 12px 0 16px!important;
  margin:0!important;
  display:flex!important;
  align-items:center!important;
  gap:12px!important;
  border-radius:8px!important;
  border:0!important;
  color:#1f2937!important;
  background:transparent!important;
  font-size:14px!important;
  line-height:1.1!important;
  font-weight:600!important;
  transform:none!important;
  white-space:nowrap!important;
}
.inside-nav a span:last-child{overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap!important;display:block!important;min-width:0!important;}
.inside-nav-icon{
  width:32px!important;
  height:32px!important;
  flex:0 0 32px!important;
  border-radius:8px!important;
  display:grid!important;
  place-items:center!important;
  background:#e7e7e7!important;
}
.inside-nav-icon svg{width:17px!important;height:17px!important;display:block!important;}
.inside-nav a:hover{background:#eef8f5!important;color:#050505!important;}
.inside-nav a.active{background:#e9fbf6!important;color:#050505!important;font-weight:800!important;}
.inside-nav a.active:before{left:0!important;top:9px!important;bottom:9px!important;width:4px!important;border-radius:0 999px 999px 0!important;background:var(--v70-green)!important;}
.inside-nav a.active .inside-nav-icon,.inside-nav a:hover .inside-nav-icon{background:var(--v70-green)!important;color:#fff!important;}
.softlock-main{margin-left:var(--v70-sidebar-width)!important;min-width:0!important;width:calc(100% - var(--v70-sidebar-width))!important;background:#fafafa!important;}
.softlock-topbar{
  min-height:68px!important;
  padding:12px 24px!important;
  display:flex!important;
  align-items:center!important;
  gap:16px!important;
  background:rgba(255,255,255,.96)!important;
}
.softlock-topbar .page-heading{min-width:0!important;}
.softlock-topbar h1{font-size:23px!important;line-height:1.15!important;margin:0!important;font-weight:600!important;color:var(--v70-ink)!important;}
.softlock-content{padding:22px 26px 34px!important;max-width:100%!important;overflow-x:hidden!important;}
.panel,.card,.table-card,.report-card,.module-hero,.hero-panel{max-width:100%!important;}
.panel-head{align-items:center!important;gap:12px!important;flex-wrap:wrap!important;}
.grid-form{align-items:end!important;}
.grid-form label{min-width:0!important;}
input,select,textarea{min-height:44px!important;}
.btn{min-height:42px!important;white-space:nowrap!important;}
.table-wrap{max-width:100%!important;overflow:auto!important;}
.table-wrap table{min-width:900px!important;}
.account-trigger{display:flex!important;align-items:center!important;gap:10px!important;min-width:0!important;}
.account-copy{min-width:0!important;text-align:right!important;}
.account-copy strong,.account-copy small{display:block!important;max-width:220px!important;overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap!important;}
@media(max-width:900px){
  .softlock-sidebar{transform:translateX(-105%)!important;transition:transform .22s ease!important;z-index:1000!important;width:270px!important;min-width:270px!important;}
  .softlock-sidebar.open{transform:translateX(0)!important;}
  .softlock-main{margin-left:0!important;width:100%!important;}
  .softlock-topbar{padding:12px 16px!important;}
  .softlock-content{padding:16px!important;}
  .inside-nav a{height:48px!important;min-height:48px!important;}
  .account-copy{display:none!important;}
}
@media(max-width:560px){
  .softlock-topbar h1{font-size:19px!important;}
  .panel,.card{padding:16px!important;}
  .grid-form{grid-template-columns:1fr!important;}
  .btn{width:100%!important;}
}

/* V71: Align admin create buttons with bottom of related form controls */
.soft-grid-form{
    align-items:end;
}
.soft-grid-form > .soft-btn,
.soft-grid-form > button.soft-btn{
    align-self:end;
    height:46px;
    margin-top:0;
    margin-bottom:0;
}
.soft-grid-form label{
    min-width:0;
}
.soft-grid-form input,
.soft-grid-form select{
    width:100%;
    box-sizing:border-box;
}
@media(max-width:900px){
    .soft-grid-form > .soft-btn,
    .soft-grid-form > button.soft-btn{
        width:100%;
    }
}

/* V76 service proceedings selected-service card */
.service-selected-card{display:flex;flex-direction:column;gap:4px;padding:12px 14px;border:1px solid rgba(15,23,42,.12);border-radius:10px;background:#f8fafc;min-height:58px}
.service-selected-card strong{font-size:15px;color:#0f172a}.service-selected-card span{font-size:13px;color:#475569}

/* V78: User management actions */
.user-row-actions{position:relative!important;text-align:center!important;overflow:visible!important;width:84px!important;min-width:84px!important;display:table-cell!important;}
.user-row-actions .user-action-menu{right:12px;top:36px;min-width:150px;}
.user-action-menu form{display:block;margin:0;}
.user-action-menu .danger-link{color:#d12945!important;}
.user-action-menu .danger-link:hover{background:#fff1f2!important;color:#e11d48!important;}
.user-menu-note{display:block;width:100%;text-align:left;color:#94a3b8;font-size:13px;font-weight:650;padding:9px 10px;white-space:nowrap;}
.soft-btn.tiny{height:34px;padding:0 12px;font-size:13px;border-radius:6px;}
.soft-link{font-weight:700;color:#008d79;text-decoration:none;}
.soft-link:hover{text-decoration:underline;}
.inline-delete-form{display:block;margin:0;}
.button-as-link{background:transparent;border:0;padding:0;font:inherit;cursor:pointer;}
.status-check-row{flex-direction:row!important;align-items:center;justify-content:space-between;gap:14px;min-height:46px;border:1px solid #dce3ea;border-radius:6px;padding:0 14px;background:#fff;}
.status-check-row input{height:auto!important;width:18px!important;accent-color:#00b89c;}
.user-edit-card{width:min(760px,96vw)!important;}
.user-edit-form{grid-template-columns:repeat(2,minmax(180px,1fr));}
.user-edit-form .modal-actions{border-top:1px solid #edf1f5;padding-top:16px;}
@media(max-width:760px){.user-edit-form{grid-template-columns:1fr}.user-row-actions{min-width:84px!important;width:84px!important}}

/* Security patch: POST action forms should visually match menu links */
.row-menu form{margin:0;display:block;width:100%;}
.row-menu button.button-as-link{display:block;width:100%;text-align:left;padding:8px 10px;border-radius:6px;color:#1f2937;text-decoration:none;font-size:13px;line-height:1.2;background:transparent;border:0;cursor:pointer;}
.row-menu button.button-as-link:hover{background:#f4f7fb;}
.row-menu button.danger-link{color:#d12945!important;}
.inline-action-form{display:inline-block;margin:0 2px;vertical-align:baseline;}
.inline-action-form .btn{font:inherit;}
.button-as-link{background:transparent;border:0;padding:0;font:inherit;cursor:pointer;color:inherit;}
.button-as-link:hover{text-decoration:underline;}

/* ======================================================================
   CMS TEAL ENTERPRISE THEME V1
   Applied for the XAMPP-ready dashboard package.
   ====================================================================== */
:root{
  --cms-primary:#12c7a3;
  --cms-primary-dark:#0b9f8b;
  --cms-primary-deep:#087d71;
  --cms-primary-soft:#e9faf6;
  --cms-primary-softer:#f4fcfa;
  --cms-bg:#f3f7f7;
  --cms-surface:#ffffff;
  --cms-sidebar:#f4f5f4;
  --cms-sidebar-line:#dfe5e3;
  --cms-line:#e2e9e7;
  --cms-text:#182321;
  --cms-muted:#71807d;
  --cms-danger:#dc4b5e;
  --cms-warning:#f4be3f;
  --cms-sidebar-expanded:276px;
  --cms-sidebar-collapsed:76px;
  --cms-banner-height:46px;
  --cms-topbar-height:64px;
  --cms-shadow:0 10px 28px rgba(19,64,57,.08);
}
*{box-sizing:border-box}
html{background:var(--cms-bg)}
body.cms-teal-theme{
  margin:0!important;
  min-height:100vh!important;
  color:var(--cms-text)!important;
  background:var(--cms-bg)!important;
  font-family:Inter,ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Arial,sans-serif!important;
}
body.cms-teal-theme a{transition:color .16s ease,background-color .16s ease,border-color .16s ease,transform .16s ease}
.app.softlock-app{display:block!important;min-height:100vh!important;background:var(--cms-bg)!important}

/* Sidebar and brand */
.softlock-sidebar{
  width:var(--cms-sidebar-expanded)!important;
  min-width:var(--cms-sidebar-expanded)!important;
  height:100vh!important;
  position:fixed!important;
  inset:0 auto 0 0!important;
  z-index:1000!important;
  display:flex!important;
  flex-direction:column!important;
  padding:0!important;
  overflow:visible!important;
  color:var(--cms-text)!important;
  background:var(--cms-sidebar)!important;
  border-right:1px solid var(--cms-sidebar-line)!important;
  box-shadow:8px 0 26px rgba(19,64,57,.05)!important;
  transition:width .18s ease,min-width .18s ease,transform .22s ease!important;
}
.softlock-sidebar:before{display:none!important}
.inside-brand{
  position:relative!important;
  min-height:110px!important;
  height:110px!important;
  flex:0 0 110px!important;
  display:flex!important;
  align-items:center!important;
  gap:13px!important;
  padding:18px 18px!important;
  color:#fff!important;
  background:linear-gradient(145deg,var(--cms-primary) 0%,var(--cms-primary-dark) 100%)!important;
  border:0!important;
  overflow:hidden!important;
}
.inside-brand:after{
  content:"";
  position:absolute;
  width:150px;
  height:150px;
  left:-78px;
  top:-85px;
  border-radius:999px;
  background:rgba(255,255,255,.11);
  pointer-events:none;
}
.inside-brand img{
  width:50px!important;
  height:50px!important;
  min-width:50px!important;
  padding:6px!important;
  object-fit:contain!important;
  border-radius:13px!important;
  background:#fff!important;
  box-shadow:0 6px 18px rgba(0,83,70,.18)!important;
  position:relative!important;
  z-index:1!important;
}
.inside-brand-text{min-width:0!important;position:relative!important;z-index:1!important}
.inside-brand-text strong{
  display:block!important;
  color:#fff!important;
  font-size:20px!important;
  line-height:1.05!important;
  letter-spacing:-.5px!important;
  font-weight:800!important;
  white-space:nowrap!important;
}
.inside-brand-text small{
  display:block!important;
  color:rgba(255,255,255,.78)!important;
  font-size:11px!important;
  letter-spacing:.05em!important;
  text-transform:uppercase!important;
  margin-top:6px!important;
  white-space:nowrap!important;
}
.inside-nav{
  flex:1 1 auto!important;
  min-height:0!important;
  display:block!important;
  padding:12px 10px 18px!important;
  overflow-y:auto!important;
  overflow-x:visible!important;
  scrollbar-width:thin!important;
  scrollbar-color:#bfcac7 transparent!important;
  background:var(--cms-sidebar)!important;
}
.inside-nav::-webkit-scrollbar{width:6px!important}
.inside-nav::-webkit-scrollbar-thumb{background:#c4cecb!important;border-radius:999px!important}
.inside-nav a,.nav-group-trigger{
  width:100%!important;
  min-height:46px!important;
  display:flex!important;
  align-items:center!important;
  gap:11px!important;
  margin:2px 0!important;
  padding:7px 12px!important;
  border:0!important;
  border-radius:7px!important;
  color:#33413e!important;
  background:transparent!important;
  font:inherit!important;
  font-size:13.5px!important;
  font-weight:650!important;
  text-align:left!important;
  text-decoration:none!important;
  cursor:pointer!important;
  position:relative!important;
  transform:none!important;
}
.inside-nav a:hover,.nav-group-trigger:hover{
  color:var(--cms-primary-deep)!important;
  background:#e8f5f2!important;
  transform:none!important;
}
.inside-nav a.active,.nav-group.active-group>.nav-group-trigger{
  color:var(--cms-primary-deep)!important;
  background:var(--cms-primary-soft)!important;
  font-weight:800!important;
}
.inside-nav a.active:before{
  content:""!important;
  position:absolute!important;
  left:-10px!important;
  top:8px!important;
  bottom:8px!important;
  width:4px!important;
  border-radius:0 5px 5px 0!important;
  background:var(--cms-primary)!important;
}
.inside-nav-icon{
  width:31px!important;
  height:31px!important;
  min-width:31px!important;
  flex:0 0 31px!important;
  display:grid!important;
  place-items:center!important;
  border-radius:7px!important;
  color:#53615e!important;
  background:#e1e6e4!important;
  transition:background-color .16s ease,color .16s ease!important;
}
.inside-nav-icon svg{width:17px!important;height:17px!important;display:block!important;fill:currentColor!important}
.inside-nav a:hover .inside-nav-icon,.inside-nav a.active .inside-nav-icon,.nav-group-trigger:hover .inside-nav-icon,.nav-group.active-group>.nav-group-trigger .inside-nav-icon{
  color:#fff!important;
  background:var(--cms-primary)!important;
}
.nav-label{
  display:block!important;
  min-width:0!important;
  flex:1 1 auto!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
  white-space:nowrap!important;
}
.nav-group{display:block!important;margin:3px 0!important;position:relative!important}
.nav-group-trigger{justify-content:flex-start!important}
.nav-chevron{
  width:18px!important;
  height:18px!important;
  flex:0 0 18px!important;
  color:#7d8b87!important;
  transition:transform .18s ease!important;
}
.nav-chevron svg{width:18px!important;height:18px!important;fill:currentColor!important;display:block!important}
.nav-group.open>.nav-group-trigger .nav-chevron{transform:rotate(180deg)!important}
.nav-children{
  max-height:0!important;
  opacity:0!important;
  overflow:hidden!important;
  transition:max-height .22s ease,opacity .15s ease!important;
}
.nav-group.open>.nav-children{max-height:520px!important;opacity:1!important}
.inside-nav a.nav-child{
  min-height:41px!important;
  margin:2px 0 2px 15px!important;
  width:calc(100% - 15px)!important;
  padding:5px 10px 5px 18px!important;
  font-size:13px!important;
  font-weight:590!important;
}
.inside-nav a.nav-child .inside-nav-icon{
  width:27px!important;
  min-width:27px!important;
  height:27px!important;
  flex-basis:27px!important;
  border-radius:6px!important;
  background:#e8eceb!important;
}
.inside-nav a.nav-child .inside-nav-icon svg{width:15px!important;height:15px!important}
.inside-nav a.nav-child:hover .inside-nav-icon,.inside-nav a.nav-child.active .inside-nav-icon{background:var(--cms-primary)!important;color:#fff!important}
.sidebar-status{
  flex:0 0 auto!important;
  display:flex!important;
  align-items:center!important;
  gap:10px!important;
  margin:0 10px 12px!important;
  padding:11px 12px!important;
  border:1px solid #dce5e2!important;
  border-radius:8px!important;
  background:#fff!important;
  overflow:hidden!important;
}
.status-dot{width:9px!important;height:9px!important;min-width:9px!important;border-radius:999px!important;background:#20ba75!important;box-shadow:0 0 0 4px rgba(32,186,117,.12)!important}
.sidebar-status-copy{min-width:0!important}
.sidebar-status-copy strong,.sidebar-status-copy small{display:block!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important}
.sidebar-status-copy strong{font-size:12px!important;color:#29413b!important}
.sidebar-status-copy small{font-size:10.5px!important;color:#82908d!important;margin-top:2px!important}

/* Main application shell */
.softlock-main{
  width:calc(100% - var(--cms-sidebar-expanded))!important;
  min-width:0!important;
  min-height:100vh!important;
  margin-left:var(--cms-sidebar-expanded)!important;
  background:var(--cms-bg)!important;
  transition:width .18s ease,margin-left .18s ease!important;
}
.portal-banner{
  min-height:var(--cms-banner-height)!important;
  height:var(--cms-banner-height)!important;
  display:flex!important;
  align-items:center!important;
  justify-content:space-between!important;
  gap:20px!important;
  padding:0 24px!important;
  color:#fff!important;
  background:var(--cms-primary)!important;
  position:sticky!important;
  top:0!important;
  z-index:80!important;
  box-shadow:0 2px 8px rgba(0,84,70,.08)!important;
}
.portal-banner-copy,.portal-banner-meta{display:flex!important;align-items:center!important;gap:18px!important;min-width:0!important}
.portal-banner-copy strong{font-size:14px!important;font-weight:800!important;white-space:nowrap!important}
.portal-banner-copy span,.portal-banner-meta span{font-size:12px!important;color:rgba(255,255,255,.86)!important;white-space:nowrap!important}
.portal-banner-meta span+span:before,.portal-banner-copy span:before{content:"•";margin-right:18px;color:rgba(255,255,255,.5)}
.softlock-topbar{
  min-height:var(--cms-topbar-height)!important;
  height:var(--cms-topbar-height)!important;
  display:flex!important;
  align-items:center!important;
  justify-content:space-between!important;
  gap:20px!important;
  padding:0 22px!important;
  color:#fff!important;
  background:var(--cms-primary-dark)!important;
  border:0!important;
  position:sticky!important;
  top:var(--cms-banner-height)!important;
  z-index:75!important;
  box-shadow:0 3px 14px rgba(7,81,70,.13)!important;
  backdrop-filter:none!important;
}
.topbar-left,.topbar-actions{display:flex!important;align-items:center!important;gap:10px!important;min-width:0!important}
.topbar-left{flex:1 1 auto!important}
.page-heading{min-width:0!important;display:flex!important;align-items:baseline!important;gap:7px!important}
.page-heading .breadcrumb{font-size:12px!important;color:rgba(255,255,255,.72)!important;white-space:nowrap!important}
.softlock-topbar h1{
  margin:0!important;
  color:#fff!important;
  font-size:18px!important;
  line-height:1.1!important;
  font-weight:750!important;
  letter-spacing:-.25px!important;
  white-space:nowrap!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
}
.softlock-topbar p{display:none!important}
.hamb{
  width:39px!important;
  height:39px!important;
  min-width:39px!important;
  display:grid!important;
  place-items:center!important;
  padding:0!important;
  color:#fff!important;
  background:rgba(0,79,68,.24)!important;
  border:1px solid rgba(255,255,255,.16)!important;
  border-radius:5px!important;
  cursor:pointer!important;
}
.hamb:hover{background:rgba(0,70,61,.38)!important}
.hamb svg{width:21px!important;height:21px!important;fill:currentColor!important}
.header-action,.header-icon-action{
  min-height:38px!important;
  height:38px!important;
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  gap:7px!important;
  padding:0 10px!important;
  color:#fff!important;
  background:transparent!important;
  border:1px solid transparent!important;
  border-radius:5px!important;
  font:inherit!important;
  font-size:12px!important;
  font-weight:700!important;
  cursor:pointer!important;
  white-space:nowrap!important;
}
.header-action:hover,.header-icon-action:hover{background:rgba(255,255,255,.1)!important;border-color:rgba(255,255,255,.13)!important}
.header-action svg,.header-icon-action svg{width:18px!important;height:18px!important;fill:currentColor!important}
.header-action-icon{width:18px!important;height:18px!important;display:grid!important;place-items:center!important;border:1px solid currentColor!important;border-radius:50%!important;font-size:11px!important}
.tour-action{color:#182321!important;background:#f0f416!important;border-color:#f0f416!important;box-shadow:0 2px 6px rgba(54,60,0,.14)!important}
.tour-action:hover{background:#fbff33!important;border-color:#fbff33!important}
.header-icon-action{width:38px!important;min-width:38px!important;padding:0!important;position:relative!important}
.notification-dot{position:absolute!important;right:7px!important;top:7px!important;width:6px!important;height:6px!important;border-radius:50%!important;background:#ffdc47!important;border:1px solid var(--cms-primary-dark)!important}
.softlock-account{position:relative!important;margin-left:2px!important}
.account-trigger{
  min-height:43px!important;
  display:flex!important;
  align-items:center!important;
  gap:9px!important;
  padding:3px 4px 3px 10px!important;
  color:#fff!important;
  background:rgba(0,79,68,.2)!important;
  border:1px solid rgba(255,255,255,.14)!important;
  border-radius:6px!important;
  cursor:pointer!important;
}
.account-trigger:hover{background:rgba(0,70,61,.32)!important}
.account-copy{min-width:0!important;text-align:right!important}
.account-copy strong,.account-copy small{display:block!important;max-width:190px!important;overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap!important}
.account-copy strong{font-size:11.5px!important;color:#fff!important;font-weight:750!important}
.account-copy small{font-size:10px!important;color:rgba(255,255,255,.72)!important;margin-top:2px!important}
.account-avatar{
  width:33px!important;
  height:33px!important;
  min-width:33px!important;
  display:grid!important;
  place-items:center!important;
  border-radius:50%!important;
  color:var(--cms-primary-deep)!important;
  background:#fff!important;
  font-size:13px!important;
  font-weight:850!important;
}
.account-caret{width:17px!important;height:17px!important;color:rgba(255,255,255,.8)!important}
.account-caret svg{width:17px!important;height:17px!important;fill:currentColor!important;display:block!important}
.account-menu{
  display:none!important;
  position:absolute!important;
  right:0!important;
  top:calc(100% + 8px)!important;
  min-width:180px!important;
  padding:6px!important;
  background:#fff!important;
  border:1px solid var(--cms-line)!important;
  border-radius:8px!important;
  box-shadow:0 18px 42px rgba(13,64,56,.18)!important;
  z-index:3000!important;
}
.softlock-account.open .account-menu{display:block!important}
.account-menu a{display:block!important;padding:10px 12px!important;border-radius:5px!important;color:#283431!important;font-size:13px!important;font-weight:600!important;text-decoration:none!important}
.account-menu a:hover{background:var(--cms-primary-soft)!important;color:var(--cms-primary-deep)!important}
.softlock-content{
  width:100%!important;
  max-width:none!important;
  padding:22px 24px 34px!important;
  background:var(--cms-bg)!important;
  overflow-x:hidden!important;
}

/* Collapsed desktop navigation */
body.sidebar-collapsed .softlock-sidebar{width:var(--cms-sidebar-collapsed)!important;min-width:var(--cms-sidebar-collapsed)!important}
body.sidebar-collapsed .softlock-main{width:calc(100% - var(--cms-sidebar-collapsed))!important;margin-left:var(--cms-sidebar-collapsed)!important}
body.sidebar-collapsed .inside-brand{padding:16px 12px!important;justify-content:center!important}
body.sidebar-collapsed .inside-brand img{width:46px!important;height:46px!important;min-width:46px!important}
body.sidebar-collapsed .inside-brand-text,body.sidebar-collapsed .nav-label,body.sidebar-collapsed .nav-chevron,body.sidebar-collapsed .sidebar-status-copy{display:none!important}
body.sidebar-collapsed .inside-nav{padding:12px 9px 18px!important;overflow:visible!important}
body.sidebar-collapsed .inside-nav a,body.sidebar-collapsed .nav-group-trigger{justify-content:center!important;padding:7px!important}
body.sidebar-collapsed .inside-nav a.nav-child{margin:2px 0!important;width:100%!important;padding:7px!important}
body.sidebar-collapsed .inside-nav-icon{margin:0!important}
body.sidebar-collapsed .sidebar-status{justify-content:center!important;margin:0 9px 12px!important;padding:13px 8px!important}
body.sidebar-collapsed .nav-children{max-height:0!important;opacity:0!important}
body.sidebar-collapsed [data-tooltip]{position:relative!important}
body.sidebar-collapsed [data-tooltip]:hover:after{
  content:attr(data-tooltip)!important;
  position:absolute!important;
  left:calc(100% + 12px)!important;
  top:50%!important;
  transform:translateY(-50%)!important;
  width:max-content!important;
  max-width:230px!important;
  padding:8px 10px!important;
  color:#fff!important;
  background:#23332f!important;
  border-radius:5px!important;
  box-shadow:0 9px 24px rgba(17,52,45,.25)!important;
  font-size:12px!important;
  font-weight:650!important;
  line-height:1.2!important;
  z-index:5000!important;
  pointer-events:none!important;
}

/* Content theme */
.hero-panel,.module-hero{
  min-height:136px!important;
  margin:0 0 18px!important;
  padding:24px 26px!important;
  display:flex!important;
  align-items:center!important;
  justify-content:space-between!important;
  gap:20px!important;
  color:var(--cms-text)!important;
  background:linear-gradient(120deg,#fff 0%,#f7fffc 100%)!important;
  border:1px solid var(--cms-line)!important;
  border-left:5px solid var(--cms-primary)!important;
  border-radius:9px!important;
  box-shadow:var(--cms-shadow)!important;
  overflow:hidden!important;
}
.hero-panel:after,.module-hero:after{
  width:180px!important;
  height:180px!important;
  right:-70px!important;
  top:-100px!important;
  background:rgba(18,199,163,.08)!important;
}
.hero-panel h2,.module-hero h2{margin:0 0 7px!important;color:#1b2926!important;font-size:25px!important;line-height:1.15!important;letter-spacing:-.45px!important}
.hero-panel p,.module-hero p{margin:0!important;color:var(--cms-muted)!important;opacity:1!important;font-size:13.5px!important;line-height:1.6!important}
.module-hero span{color:var(--cms-primary-dark)!important;font-size:34px!important}
.cards{
  display:grid!important;
  grid-template-columns:repeat(3,minmax(180px,1fr))!important;
  gap:16px!important;
  margin-bottom:18px!important;
}
.card,.panel,.table-card,.report-card,.profile-section,.passport-card{
  color:var(--cms-text)!important;
  background:var(--cms-surface)!important;
  border:1px solid var(--cms-line)!important;
  border-radius:8px!important;
  box-shadow:0 6px 18px rgba(27,64,58,.055)!important;
}
.card{min-height:126px!important;padding:20px!important;position:relative!important;overflow:hidden!important}
.card:before{content:""!important;position:absolute!important;left:0!important;top:0!important;bottom:0!important;width:4px!important;background:var(--cms-primary)!important}
.card span{display:block!important;color:#687874!important;font-size:12px!important;font-weight:700!important;text-transform:uppercase!important;letter-spacing:.035em!important}
.card strong{display:block!important;margin:9px 0 5px!important;color:#1b2926!important;font-size:28px!important;line-height:1!important;font-weight:800!important}
.card small{color:#87938f!important;font-size:12px!important}
.panel{margin:0 0 18px!important;padding:20px!important}
.panel-head{display:flex!important;align-items:center!important;justify-content:space-between!important;gap:14px!important;margin-bottom:15px!important;padding-bottom:12px!important;border-bottom:1px solid #edf1f0!important}
.panel-head h3{margin:0!important;color:#21302d!important;font-size:16px!important;font-weight:780!important}
.panel-head p{margin:4px 0 0!important;color:var(--cms-muted)!important;font-size:12.5px!important}
.panel-head a{color:var(--cms-primary-deep)!important;font-size:12.5px!important;font-weight:750!important}
.btn,.primary,.secondary,.light,.soft-btn,.members-add-btn,.method-action-btn,.bulk-upload-inline{
  min-height:40px!important;
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  gap:7px!important;
  padding:9px 15px!important;
  border-radius:5px!important;
  font-size:13px!important;
  font-weight:750!important;
  line-height:1.1!important;
  text-decoration:none!important;
  cursor:pointer!important;
  box-shadow:none!important;
  transform:none!important;
}
.btn.primary,.primary,.members-add-btn,.method-action-btn,.bulk-upload-inline,.soft-btn.primary,.softlock-save-btn,.softlock-add-device{
  color:#fff!important;
  background:var(--cms-primary)!important;
  border:1px solid var(--cms-primary)!important;
}
.btn.primary:hover,.primary:hover,.members-add-btn:hover,.method-action-btn:hover,.bulk-upload-inline:hover,.soft-btn.primary:hover,.softlock-save-btn:hover,.softlock-add-device:hover{
  color:#fff!important;
  background:var(--cms-primary-dark)!important;
  border-color:var(--cms-primary-dark)!important;
}
.btn.secondary,.secondary,.outline-action,.light,.soft-btn.secondary{
  color:var(--cms-primary-deep)!important;
  background:#fff!important;
  border:1px solid #bcded7!important;
}
.btn.secondary:hover,.secondary:hover,.outline-action:hover,.light:hover,.soft-btn.secondary:hover{background:var(--cms-primary-soft)!important;border-color:var(--cms-primary)!important}
input,select,textarea{
  min-height:42px!important;
  color:#26332f!important;
  background:#fff!important;
  border:1px solid #d5dfdc!important;
  border-radius:5px!important;
  font:inherit!important;
  font-size:13px!important;
  transition:border-color .15s ease,box-shadow .15s ease!important;
}
textarea{min-height:100px!important}
input:focus,select:focus,textarea:focus{
  outline:0!important;
  border-color:var(--cms-primary)!important;
  box-shadow:0 0 0 3px rgba(18,199,163,.12)!important;
}
label{color:#35433f!important;font-size:12.5px!important;font-weight:680!important}
.muted{color:var(--cms-muted)!important}
.table-wrap{max-width:100%!important;overflow:auto!important;border:1px solid #e5ecea!important;border-radius:7px!important;background:#fff!important}
table{border-collapse:collapse!important;background:#fff!important}
.table-wrap table{min-width:900px!important;width:100%!important}
thead th{
  color:#4d5d58!important;
  background:#f2f6f5!important;
  border-bottom:1px solid #dfe7e5!important;
  font-size:11.5px!important;
  font-weight:800!important;
  text-transform:uppercase!important;
  letter-spacing:.025em!important;
}
th,td{padding:12px 13px!important;border-color:#edf1f0!important;vertical-align:middle!important}
tbody td{color:#35413e!important;font-size:12.5px!important}
tbody tr:hover{background:#f7fcfa!important}
.status-pill{border-radius:999px!important;padding:5px 9px!important;font-size:10.5px!important;font-weight:800!important}
.timeline div{border-left-color:var(--cms-primary)!important}
.members-tabs a.active{color:var(--cms-primary-deep)!important;border-color:var(--cms-primary)!important}
.range-notice,.attendance-bulk-upload-tab,.service-selected-card{background:var(--cms-primary-softer)!important;border-color:#cfe9e3!important}

/* Toast and guided tour */
.portal-toast{
  position:fixed!important;
  right:22px!important;
  bottom:22px!important;
  max-width:min(380px,calc(100vw - 32px))!important;
  padding:12px 15px!important;
  color:#fff!important;
  background:#23332f!important;
  border-left:4px solid var(--cms-primary)!important;
  border-radius:6px!important;
  box-shadow:0 18px 44px rgba(11,52,44,.24)!important;
  font-size:13px!important;
  line-height:1.45!important;
  opacity:0!important;
  transform:translateY(12px)!important;
  pointer-events:none!important;
  z-index:6000!important;
  transition:opacity .2s ease,transform .2s ease!important;
}
.portal-toast.show{opacity:1!important;transform:translateY(0)!important}
.tour-layer{
  display:none!important;
  position:fixed!important;
  inset:0!important;
  z-index:7000!important;
  background:rgba(15,43,38,.18)!important;
  pointer-events:none!important;
}
.tour-layer.open{display:block!important}
.tour-popover{
  position:fixed!important;
  width:min(360px,calc(100vw - 28px))!important;
  padding:22px!important;
  color:var(--cms-text)!important;
  background:#fff!important;
  border:1px solid #dbe7e4!important;
  border-radius:9px!important;
  box-shadow:0 24px 70px rgba(9,57,48,.28)!important;
  pointer-events:auto!important;
  z-index:7002!important;
}
.tour-close{position:absolute!important;right:10px!important;top:8px!important;width:30px!important;height:30px!important;border:0!important;background:transparent!important;color:#6d7b77!important;font-size:24px!important;cursor:pointer!important}
.tour-counter{display:block!important;color:var(--cms-primary-dark)!important;font-size:11px!important;font-weight:850!important;text-transform:uppercase!important;letter-spacing:.04em!important;margin-bottom:7px!important}
.tour-popover h2{margin:0 30px 8px 0!important;font-size:19px!important;color:#1e2c29!important}
.tour-popover p{margin:0!important;color:#62716d!important;font-size:13px!important;line-height:1.55!important}
.tour-actions{display:flex!important;align-items:center!important;justify-content:flex-end!important;gap:8px!important;margin-top:18px!important}
.tour-highlight{
  position:relative!important;
  z-index:7001!important;
  box-shadow:0 0 0 5px rgba(240,244,22,.95),0 0 0 11px rgba(18,199,163,.5)!important;
  border-radius:7px!important;
}
.sidebar-backdrop{display:none!important}

/* Auth theme alignment */
.auth-body{background:#f4f8f7!important}
.softlock-form{background:#fff!important}
.softlock-title strong{color:#1a2825!important}
.softlock-subtitle{color:#75817e!important}
.softlock-field{border-bottom-color:#d9e2df!important}
.softlock-field:focus-within{border-bottom-color:var(--cms-primary)!important}
.softlock-field .softlock-icon svg{fill:var(--cms-primary-dark)!important}
.softlock-button{background:var(--cms-primary)!important;color:#fff!important;border-radius:5px!important;box-shadow:0 9px 22px rgba(18,199,163,.18)!important}
.softlock-button:hover{background:var(--cms-primary-dark)!important}
.softlock-forgot,.softlock-reset-link,.softlock-back-link{color:var(--cms-primary-dark)!important}
.softlock-photo-panel:after{content:"";position:absolute;inset:0;background:linear-gradient(145deg,rgba(7,91,77,.16),rgba(4,59,51,.36));pointer-events:none}

/* Responsive behavior */
@media(max-width:1180px){
  .header-action span:not(.header-action-icon){display:none!important}
  .header-action{width:38px!important;min-width:38px!important;padding:0!important}
  .account-copy{display:none!important}
  .cards{grid-template-columns:repeat(2,minmax(180px,1fr))!important}
}
@media(max-width:900px){
  body.sidebar-collapsed .softlock-main,.softlock-main{width:100%!important;margin-left:0!important}
  .softlock-sidebar,body.sidebar-collapsed .softlock-sidebar{
    width:min(286px,86vw)!important;
    min-width:min(286px,86vw)!important;
    transform:translateX(-105%)!important;
    box-shadow:18px 0 44px rgba(14,56,49,.2)!important;
  }
  .softlock-sidebar.open,body.sidebar-collapsed .softlock-sidebar.open{transform:translateX(0)!important}
  body.sidebar-collapsed .inside-brand-text,body.sidebar-collapsed .nav-label,body.sidebar-collapsed .nav-chevron,body.sidebar-collapsed .sidebar-status-copy{display:block!important}
  body.sidebar-collapsed .inside-brand{justify-content:flex-start!important;padding:18px!important}
  body.sidebar-collapsed .inside-nav a,body.sidebar-collapsed .nav-group-trigger{justify-content:flex-start!important;padding:7px 12px!important}
  body.sidebar-collapsed .nav-group.open>.nav-children{max-height:520px!important;opacity:1!important}
  body.sidebar-collapsed .inside-nav a.nav-child{margin-left:15px!important;width:calc(100% - 15px)!important;padding-left:18px!important}
  .sidebar-backdrop{
    position:fixed!important;
    inset:0!important;
    z-index:990!important;
    width:100%!important;
    height:100%!important;
    border:0!important;
    background:rgba(14,40,36,.36)!important;
    cursor:pointer!important;
  }
  .softlock-sidebar.open~.sidebar-backdrop{display:block!important}
  .portal-banner{padding:0 15px!important}
  .portal-banner-copy span,.portal-banner-meta span:first-child{display:none!important}
  .portal-banner-meta span+span:before{display:none!important}
  .softlock-topbar{padding:0 14px!important}
  .page-heading .breadcrumb{display:none!important}
  .topbar-actions{gap:4px!important}
  .header-action,.header-icon-action{border-color:transparent!important}
  .softlock-content{padding:16px!important}
  .cards{grid-template-columns:1fr 1fr!important}
  .hero-panel,.module-hero{padding:20px!important}
}
@media(max-width:620px){
  .portal-banner-copy strong{max-width:58vw!important;overflow:hidden!important;text-overflow:ellipsis!important}
  .portal-banner-meta{display:none!important}
  .softlock-topbar h1{font-size:16px!important}
  .tour-action,.header-action{display:none!important}
  .account-caret{display:none!important}
  .account-trigger{padding:3px!important;background:transparent!important;border-color:transparent!important}
  .cards{grid-template-columns:1fr!important}
  .panel{padding:15px!important}
  .panel-head{align-items:flex-start!important;flex-direction:column!important}
  .hero-panel,.module-hero{display:block!important;min-height:0!important}
  .hero-panel .btn,.module-hero .btn{margin-top:16px!important;width:100%!important}
  .softlock-content{padding:12px!important}
  .tour-popover{left:14px!important;right:14px!important;bottom:14px!important;top:auto!important;width:auto!important}
}
@media print{
  .portal-banner,.sidebar-backdrop,.portal-toast,.tour-layer{display:none!important}
  body.sidebar-collapsed .softlock-main,.softlock-main{margin:0!important;width:100%!important}
}
.tour-focus-ring{
  position:fixed!important;
  z-index:7001!important;
  border:4px solid #f0f416!important;
  border-radius:9px!important;
  box-shadow:0 0 0 5px rgba(18,199,163,.48),0 12px 34px rgba(8,63,53,.18)!important;
  pointer-events:none!important;
  transition:left .16s ease,top .16s ease,width .16s ease,height .16s ease!important;
}

/* ======================================================================
   FIXED TWO-LEVEL TEAL MAIN HEADER — V79
   Replaces the old white page header and keeps both teal rows fixed.
   ====================================================================== */
body.cms-teal-theme{
  --cms-fixed-header-total:calc(var(--cms-banner-height) + var(--cms-topbar-height));
}
.softlock-main{
  padding-top:var(--cms-fixed-header-total)!important;
}
.portal-banner{
  position:fixed!important;
  top:0!important;
  left:var(--cms-sidebar-expanded)!important;
  right:0!important;
  width:auto!important;
  z-index:920!important;
}
.softlock-topbar{
  position:fixed!important;
  top:var(--cms-banner-height)!important;
  left:var(--cms-sidebar-expanded)!important;
  right:0!important;
  width:auto!important;
  z-index:910!important;
}
body.sidebar-collapsed .portal-banner,
body.sidebar-collapsed .softlock-topbar{
  left:var(--cms-sidebar-collapsed)!important;
}

/* Prevent anchors and in-page targets from hiding behind the fixed header. */
.softlock-content [id]{scroll-margin-top:calc(var(--cms-fixed-header-total) + 18px)!important}

@media(max-width:900px){
  .portal-banner,
  .softlock-topbar,
  body.sidebar-collapsed .portal-banner,
  body.sidebar-collapsed .softlock-topbar{
    left:0!important;
    right:0!important;
    width:100%!important;
  }
  .softlock-main,
  body.sidebar-collapsed .softlock-main{
    padding-top:var(--cms-fixed-header-total)!important;
  }
}

@media print{
  .softlock-main,
  body.sidebar-collapsed .softlock-main{
    padding-top:0!important;
  }
  .softlock-topbar{display:none!important}
}

/* ======================================================================
   V80 - Reference-style collapsible profile sidebar
   Matches the supplied screen recording while preserving CMS functions.
   ====================================================================== */
:root{
  --ref-sidebar-width:350px;
  --ref-sidebar-bg:#f6f5f7;
  --ref-sidebar-border:#d7d6da;
  --ref-topbar:#071b3d;
  --ref-nav-text:#191c23;
  --ref-nav-muted:#62656c;
  --ref-active:#e2e2ea;
}

body.cms-teal-theme{
  background:#fff!important;
}

/* Reference sidebar shell */
.softlock-sidebar{
  width:var(--ref-sidebar-width)!important;
  min-width:var(--ref-sidebar-width)!important;
  background:var(--ref-sidebar-bg)!important;
  border-right:1px solid var(--ref-sidebar-border)!important;
  box-shadow:4px 0 12px rgba(5,18,42,.10)!important;
  transform:translateX(0)!important;
  transition:transform .24s ease,box-shadow .24s ease!important;
}

.inside-brand.sidebar-profile{
  min-height:124px!important;
  height:124px!important;
  flex:0 0 124px!important;
  padding:14px 18px 12px 17px!important;
  gap:14px!important;
  color:var(--ref-nav-text)!important;
  background:var(--ref-sidebar-bg)!important;
  border-bottom:0!important;
  overflow:visible!important;
}
.inside-brand.sidebar-profile:after{display:none!important}
.sidebar-profile-avatar{
  width:74px!important;
  height:74px!important;
  min-width:74px!important;
  display:grid!important;
  place-items:center!important;
  border-radius:0!important;
  color:#fff!important;
  background:#fff!important;
  border:1px solid #e1e0e4!important;
  padding:6px!important;
  font-size:25px!important;
  font-weight:400!important;
  line-height:1!important;
  box-shadow:none!important;
}
.sidebar-profile-logo-wrap{overflow:hidden!important}
.sidebar-profile-logo{display:block!important;width:100%!important;height:100%!important;object-fit:contain!important}
.sidebar-profile-copy{
  min-width:0!important;
  flex:1 1 auto!important;
}
.sidebar-profile-copy strong{
  display:-webkit-box!important;
  max-width:190px!important;
  color:#0f1218!important;
  font-size:23px!important;
  line-height:.95!important;
  font-weight:800!important;
  letter-spacing:-.02em!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
  white-space:normal!important;
  -webkit-line-clamp:2!important;
  -webkit-box-orient:vertical!important;
}
.sidebar-profile-copy small{
  display:block!important;
  max-width:190px!important;
  margin-top:6px!important;
  color:#7b879a!important;
  font-size:12px!important;
  line-height:1.2!important;
  font-weight:500!important;
  letter-spacing:0!important;
  text-transform:none!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
  white-space:nowrap!important;
}
.sidebar-close-btn{
  align-self:flex-start!important;
  margin-top:4px!important;
  width:35px!important;
  height:42px!important;
  min-width:35px!important;
  display:grid!important;
  place-items:center!important;
  padding:0!important;
  color:#17191e!important;
  background:transparent!important;
  border:0!important;
  border-radius:8px!important;
  cursor:pointer!important;
}
.sidebar-close-btn:hover{background:#e7e6e9!important}
.sidebar-close-btn svg{width:23px!important;height:23px!important;fill:currentColor!important}

.inside-nav{
  padding:18px 17px 28px!important;
  background:var(--ref-sidebar-bg)!important;
  scrollbar-color:#b9b8bd transparent!important;
}
.inside-nav a,.nav-group-trigger{
  min-height:58px!important;
  gap:16px!important;
  margin:2px 0!important;
  padding:9px 18px!important;
  border-radius:24px!important;
  color:var(--ref-nav-text)!important;
  font-size:16px!important;
  font-weight:500!important;
  letter-spacing:0!important;
}
.inside-nav a:hover,.nav-group-trigger:hover{
  color:#101217!important;
  background:#ecebef!important;
}
.inside-nav a.active{
  color:#111319!important;
  background:var(--ref-active)!important;
  font-weight:500!important;
}
.inside-nav a.active:before{display:none!important}
.nav-group.active-group>.nav-group-trigger{
  color:var(--ref-nav-text)!important;
  background:transparent!important;
  font-weight:500!important;
}
.nav-group.active-group>.nav-group-trigger:hover{background:#ecebef!important}
.inside-nav-icon{
  width:31px!important;
  height:31px!important;
  min-width:31px!important;
  flex:0 0 31px!important;
  color:#24262b!important;
  background:transparent!important;
  border-radius:0!important;
}
.inside-nav-icon svg{width:24px!important;height:24px!important}
.inside-nav a:hover .inside-nav-icon,
.inside-nav a.active .inside-nav-icon,
.nav-group-trigger:hover .inside-nav-icon,
.nav-group.active-group>.nav-group-trigger .inside-nav-icon{
  color:#1e2025!important;
  background:transparent!important;
}
.nav-chevron{
  width:22px!important;
  height:22px!important;
  flex:0 0 22px!important;
  margin-left:auto!important;
  color:#1f2228!important;
}
.nav-chevron svg{width:22px!important;height:22px!important}
.nav-group.open>.nav-group-trigger .nav-chevron{transform:rotate(180deg)!important}
.nav-group{margin:2px 0!important}
.nav-group.open>.nav-children{max-height:720px!important}
.inside-nav a.nav-child{
  width:100%!important;
  min-height:47px!important;
  margin:2px 0!important;
  padding:8px 18px 8px 76px!important;
  border-radius:24px!important;
  font-size:16px!important;
  font-weight:450!important;
}
.inside-nav a.nav-child .inside-nav-icon{display:none!important}
.inside-nav a.nav-child.active{
  color:#17191f!important;
  background:var(--ref-active)!important;
}
.sidebar-status{display:none!important}

/* Main area and dark reference header */
.softlock-main{
  width:calc(100% - var(--ref-sidebar-width))!important;
  margin-left:var(--ref-sidebar-width)!important;
  background:#fff!important;
  transition:width .24s ease,margin-left .24s ease!important;
}
.portal-banner{display:none!important}
.softlock-topbar{
  min-height:78px!important;
  height:78px!important;
  top:0!important;
  padding:0 22px!important;
  color:#fff!important;
  background:var(--ref-topbar)!important;
  box-shadow:0 3px 8px rgba(0,0,0,.22)!important;
}
.page-heading .breadcrumb{display:none!important}
.softlock-topbar h1{font-size:19px!important}
.hamb{
  display:none!important;
  color:#0b1322!important;
  background:transparent!important;
  border:0!important;
  border-radius:6px!important;
}
.hamb:hover{background:rgba(255,255,255,.12)!important;color:#fff!important}
body.sidebar-collapsed .hamb{display:grid!important;color:#0a111e!important}
body.sidebar-collapsed .softlock-topbar .hamb{color:#09111f!important}
/* The recording uses a dark header but a black menu glyph. */
body.sidebar-collapsed .hamb svg{fill:#050b14!important}
.softlock-content{
  padding:26px 28px 38px!important;
  background:#fff!important;
}

/* Desktop: hide the sidebar completely instead of leaving an icon rail. */
body.sidebar-collapsed .softlock-sidebar{
  width:var(--ref-sidebar-width)!important;
  min-width:var(--ref-sidebar-width)!important;
  transform:translateX(-105%)!important;
  box-shadow:none!important;
}
body.sidebar-collapsed .softlock-main{
  width:100%!important;
  margin-left:0!important;
}
body.sidebar-collapsed .inside-brand,
body.sidebar-collapsed .inside-nav{
  visibility:visible!important;
}
body.sidebar-collapsed .inside-brand-text,
body.sidebar-collapsed .nav-label,
body.sidebar-collapsed .nav-chevron,
body.sidebar-collapsed .sidebar-status-copy{
  display:block!important;
}
body.sidebar-collapsed .inside-nav a,
body.sidebar-collapsed .nav-group-trigger{
  justify-content:flex-start!important;
  padding:9px 18px!important;
}
body.sidebar-collapsed .inside-nav a.nav-child{
  width:100%!important;
  margin:2px 0!important;
  padding:8px 18px 8px 76px!important;
}
body.sidebar-collapsed .nav-group.open>.nav-children{
  max-height:720px!important;
  opacity:1!important;
}

@media (max-width:1100px){
  :root{--ref-sidebar-width:315px}
  .sidebar-profile-avatar{width:80px!important;height:80px!important;min-width:80px!important}
  .inside-brand.sidebar-profile{min-height:108px!important;height:108px!important;flex-basis:108px!important}
}

@media (max-width:900px){
  :root{--ref-sidebar-width:320px}
  .softlock-main,body.sidebar-collapsed .softlock-main{width:100%!important;margin-left:0!important}
  .softlock-sidebar,body.sidebar-collapsed .softlock-sidebar{
    width:min(var(--ref-sidebar-width),90vw)!important;
    min-width:min(var(--ref-sidebar-width),90vw)!important;
    transform:translateX(-105%)!important;
  }
  .softlock-sidebar.open,body.sidebar-collapsed .softlock-sidebar.open{transform:translateX(0)!important}
  .hamb,body.sidebar-collapsed .hamb{display:grid!important;color:#fff!important}
  .hamb svg,body.sidebar-collapsed .hamb svg{fill:currentColor!important}
  .inside-brand.sidebar-profile{padding-left:16px!important}
  .sidebar-close-btn{display:grid!important}
  .softlock-content{padding:16px!important}
}

@media (max-width:520px){
  :root{--ref-sidebar-width:300px}
  .sidebar-profile-avatar{width:70px!important;height:70px!important;min-width:70px!important;font-size:21px!important}
  .inside-brand.sidebar-profile{min-height:98px!important;height:98px!important;flex-basis:98px!important}
  .inside-nav a,.nav-group-trigger{min-height:52px!important;font-size:15px!important}
  .inside-nav a.nav-child{min-height:44px!important;font-size:15px!important;padding-left:70px!important}
}

/* ======================================================================
   V81 - TRUE ZERO-WIDTH SIDEBAR COLLAPSE
   Removes the legacy 76px collapsed rail from the sidebar, header and body.
   ====================================================================== */
@media (min-width:901px){
  body.sidebar-collapsed .softlock-sidebar{
    width:0!important;
    min-width:0!important;
    max-width:0!important;
    left:0!important;
    right:auto!important;
    transform:translateX(-100%)!important;
    border-right:0!important;
    box-shadow:none!important;
    overflow:hidden!important;
    visibility:hidden!important;
    pointer-events:none!important;
  }
  body.sidebar-collapsed .softlock-main{
    width:100%!important;
    max-width:100%!important;
    margin-left:0!important;
    padding-left:0!important;
  }
  body.sidebar-collapsed .portal-banner,
  body.sidebar-collapsed .softlock-topbar{
    left:0!important;
    right:0!important;
    width:100%!important;
    max-width:100%!important;
    margin-left:0!important;
  }
}

/* V82 - church icon branding */
@media (max-width:1100px){
  .sidebar-profile-avatar{width:68px!important;height:68px!important;min-width:68px!important}
  .sidebar-profile-copy strong{font-size:21px!important;max-width:170px!important}
  .sidebar-profile-copy small{max-width:170px!important}
}
@media (max-width:520px){
  .sidebar-profile-avatar{width:62px!important;height:62px!important;min-width:62px!important;padding:5px!important}
  .sidebar-profile-copy strong{font-size:19px!important;max-width:155px!important}
  .sidebar-profile-copy small{font-size:11px!important;max-width:155px!important}
}


/* ======================================================================
   V83 - SIDEBAR FIT & VISUAL ALIGNMENT TUNING
   Refines the church branding block and menu spacing to match the mockup.
   ====================================================================== */
:root{
  --ref-sidebar-width:338px;
}

.softlock-sidebar{
  background:#f6f6f7!important;
  border-right:1px solid #d9d9dc!important;
}

.inside-brand.sidebar-profile{
  min-height:120px!important;
  height:120px!important;
  flex:0 0 120px!important;
  padding:14px 16px 14px 22px!important;
  gap:14px!important;
  align-items:flex-start!important;
  border-bottom:1px solid #d9d9dc!important;
}

.sidebar-profile-avatar{
  width:58px!important;
  height:58px!important;
  min-width:58px!important;
  padding:4px!important;
  border-radius:0!important;
  border:0!important;
  background:#ffffff!important;
}

.sidebar-profile-copy{
  padding-top:1px!important;
}

.sidebar-profile-copy strong{
  max-width:172px!important;
  font-size:22px!important;
  line-height:.94!important;
  font-weight:800!important;
  letter-spacing:-.03em!important;
  color:#02060d!important;
}

.sidebar-profile-copy small{
  max-width:180px!important;
  margin-top:7px!important;
  font-size:12px!important;
  line-height:1.18!important;
  font-weight:500!important;
  color:#8c97aa!important;
}

.sidebar-close-btn{
  width:28px!important;
  height:28px!important;
  min-width:28px!important;
  margin-top:2px!important;
  border-radius:6px!important;
}
.sidebar-close-btn svg{width:19px!important;height:19px!important}

.inside-nav{
  padding:18px 14px 24px 16px!important;
}

.nav-dashboard,
.nav-group,
.inside-nav a.nav-child{
  margin:0!important;
}

.inside-nav a,
.nav-group-trigger{
  min-height:56px!important;
  padding:8px 10px 8px 14px!important;
  gap:14px!important;
  border-radius:14px!important;
  background:transparent!important;
  color:#0b1730!important;
  font-size:15px!important;
  line-height:1.2!important;
  font-weight:700!important;
}

.inside-nav a:hover,
.nav-group-trigger:hover,
.nav-group.active-group>.nav-group-trigger:hover,
.inside-nav a.active,
.nav-group.active-group>.nav-group-trigger{
  background:#efeff1!important;
  color:#071326!important;
}

.inside-nav-icon{
  width:42px!important;
  height:42px!important;
  min-width:42px!important;
  flex:0 0 42px!important;
  display:grid!important;
  place-items:center!important;
  border-radius:12px!important;
  background:#ececef!important;
  color:#7e838c!important;
}

.inside-nav-icon svg{
  width:18px!important;
  height:18px!important;
  fill:currentColor!important;
}

.inside-nav a:hover .inside-nav-icon,
.inside-nav a.active .inside-nav-icon,
.nav-group-trigger:hover .inside-nav-icon,
.nav-group.active-group>.nav-group-trigger .inside-nav-icon{
  background:#ececef!important;
  color:#7a7f88!important;
}

.nav-label{
  flex:1 1 auto!important;
  min-width:0!important;
  white-space:normal!important;
}

.nav-chevron{
  width:16px!important;
  height:16px!important;
  flex:0 0 16px!important;
  color:#7d8088!important;
  opacity:.9!important;
}
.nav-chevron svg{width:16px!important;height:16px!important}

.nav-children{
  padding:2px 0 4px 0!important;
}

.inside-nav a.nav-child{
  min-height:48px!important;
  padding:7px 10px 7px 62px!important;
  border-radius:12px!important;
  font-size:14px!important;
  font-weight:600!important;
  color:#263247!important;
}

.inside-nav a.nav-child.active,
.inside-nav a.nav-child:hover{
  background:#efeff1!important;
  color:#111827!important;
}

@media (max-width:1100px){
  :root{--ref-sidebar-width:320px}
  .sidebar-profile-copy strong{max-width:160px!important;font-size:20px!important}
  .sidebar-profile-copy small{max-width:165px!important}
}

@media (max-width:520px){
  :root{--ref-sidebar-width:290px}
  .inside-brand.sidebar-profile{padding-left:16px!important}
  .sidebar-profile-avatar{width:52px!important;height:52px!important;min-width:52px!important}
  .sidebar-profile-copy strong{max-width:145px!important;font-size:18px!important}
  .sidebar-profile-copy small{max-width:150px!important;font-size:11px!important}
  .inside-nav a,.nav-group-trigger{min-height:53px!important;font-size:14px!important}
}


/* ======================================================================
   V84 - FIXED MODULE HEADERS & SCROLLING DATA TABLES
   Keeps each selected main module visible while related records scroll.
   ====================================================================== */
:root{
  --cms-sticky-module-top:78px;
  --cms-data-scroll-height:calc(100vh - 270px);
}

/* Main title/action row stays beneath the fixed dark topbar. */
.cms-module-sticky-heading{
  position:sticky!important;
  top:var(--cms-sticky-module-top)!important;
  z-index:340!important;
  background:#fff!important;
  border-bottom:1px solid #e3e6eb!important;
  box-shadow:0 5px 12px rgba(15,23,42,.055)!important;
}

.members-modern-page>.members-titlebar.cms-module-sticky-heading,
.softlock-content>.members-titlebar.page-header-style.cms-module-sticky-heading{
  margin:-26px -28px 20px!important;
  padding:15px 28px 14px!important;
}

.module-hero.cms-module-sticky-heading,
.profile-topbar.cms-module-sticky-heading{
  margin-top:-26px!important;
  padding-top:15px!important;
  padding-bottom:14px!important;
}

/* The data card header stays visible while its records scroll internally. */
.cms-fixed-data-panel{
  display:flex!important;
  flex-direction:column!important;
  min-width:0!important;
  overflow:visible!important;
}
.cms-fixed-data-panel>.panel-head,
.cms-fixed-data-panel>.members-form-head{
  position:relative!important;
  z-index:12!important;
  flex:0 0 auto!important;
  background:#fff!important;
}

.cms-fixed-data-scroll{
  position:relative!important;
  width:100%!important;
  max-width:100%!important;
  max-height:max(340px,var(--cms-data-scroll-height))!important;
  overflow:auto!important;
  overscroll-behavior:contain!important;
  scrollbar-gutter:stable!important;
  background:#fff!important;
}

/* Fixed table column titles, matching the supplied recording. */
.cms-fixed-data-scroll table{
  border-collapse:separate!important;
  border-spacing:0!important;
}
.cms-fixed-data-scroll thead{
  position:relative!important;
  z-index:15!important;
}
.cms-fixed-data-scroll thead th{
  position:sticky!important;
  top:0!important;
  z-index:20!important;
  background:#f8f9fb!important;
  box-shadow:inset 0 -1px 0 #dfe3e8!important;
}
.cms-fixed-data-scroll thead th:first-child{left:0}

/* A subtle edge indicates that the record area has its own scrollbar. */
.cms-fixed-data-scroll:focus-within,
.cms-fixed-data-scroll:hover{
  border-color:#cfd6df!important;
}

/* Members table already has pagination outside the scrolling records. */
.members-table-panel.cms-fixed-data-panel{
  overflow:visible!important;
}
.members-table-panel.cms-fixed-data-panel .members-pagination{
  flex:0 0 auto!important;
  position:relative!important;
  z-index:10!important;
  background:#fff!important;
}

@media(max-width:1100px){
  :root{--cms-data-scroll-height:calc(100vh - 290px)}
}

@media(max-width:900px){
  :root{
    --cms-sticky-module-top:78px;
    --cms-data-scroll-height:calc(100vh - 255px);
  }
  .members-modern-page>.members-titlebar.cms-module-sticky-heading,
  .softlock-content>.members-titlebar.page-header-style.cms-module-sticky-heading{
    margin:-16px -16px 16px!important;
    padding:13px 16px!important;
  }
  .cms-module-sticky-heading{
    border-radius:0!important;
  }
}

@media(max-width:520px){
  :root{--cms-data-scroll-height:calc(100vh - 245px)}
  .cms-fixed-data-scroll{max-height:max(300px,var(--cms-data-scroll-height))!important}
}

@media print{
  .cms-module-sticky-heading,
  .cms-fixed-data-scroll thead th{
    position:static!important;
  }
  .cms-fixed-data-scroll{
    max-height:none!important;
    overflow:visible!important;
  }
}


/* ======================================================================
   V85 - MEMBERS/VISITORS FIXED CONTROL DESK
   Keeps heading, actions, search, filters and tabs fixed. Only records scroll.
   ====================================================================== */
body.members-data-fixed-mode{
  overflow:hidden!important;
}

#mainContent.members-data-fixed-mode{
  height:calc(100vh - var(--cms-fixed-header-total))!important;
  min-height:0!important;
  overflow:hidden!important;
  padding-top:14px!important;
  padding-bottom:12px!important;
}

#mainContent.members-data-fixed-mode .members-modern-page{
  position:relative!important;
  display:flex!important;
  flex-direction:column!important;
  gap:0!important;
  width:100%!important;
  height:100%!important;
  max-height:100%!important;
  min-height:0!important;
  overflow:hidden!important;
}

.members-fixed-shell{
  position:relative!important;
  z-index:80!important;
  flex:0 0 auto!important;
  min-width:0!important;
  background:#fff!important;
}

/* The page title is fixed by the viewport rather than window scrolling. */
.members-modern-page>.members-fixed-shell>.members-titlebar.cms-module-sticky-heading{
  position:relative!important;
  top:auto!important;
  z-index:1!important;
  margin:-14px -24px 0!important;
  padding:14px 24px 12px!important;
  min-height:88px!important;
  background:#fff!important;
  border-bottom:1px solid #e4e8ed!important;
  box-shadow:0 4px 10px rgba(15,23,42,.045)!important;
}

/* Compact the fixed search/action row to save vertical table space. */
.members-fixed-shell .members-toolbar-row.compact-toolbar{
  min-height:42px!important;
  margin:8px 0 5px!important;
  gap:10px!important;
}
.members-fixed-shell .members-toolbar-row.compact-toolbar .main-search{
  height:38px!important;
}
.members-fixed-shell .members-toolbar-row.compact-toolbar .outline-action,
.members-fixed-shell .members-toolbar-row.compact-toolbar .members-add-btn{
  height:38px!important;
}
.members-fixed-shell .members-actions{
  gap:8px!important;
}

/* Filters stay in the fixed area when opened, but use less vertical room. */
.members-fixed-shell .member-filter-panel{
  margin:4px 0 6px!important;
  padding:10px 12px!important;
  gap:8px!important;
  border-radius:7px!important;
}
.members-fixed-shell .member-filter-panel input,
.members-fixed-shell .member-filter-panel select{
  margin-top:4px!important;
  padding:7px 9px!important;
  min-height:34px!important;
}
.members-fixed-shell .filter-actions{
  gap:7px!important;
}

/* Members / Visitors selector remains permanently above the data table. */
.members-fixed-shell .members-tabs{
  position:relative!important;
  z-index:3!important;
  flex:0 0 auto!important;
  min-height:42px!important;
  margin:0!important;
  padding:0!important;
  gap:44px!important;
  background:#fff!important;
  border-bottom:1px solid #e0e5eb!important;
}
.members-fixed-shell .members-tabs a{
  margin:0!important;
  padding:10px 0 11px!important;
  font-size:14px!important;
  line-height:20px!important;
}

/* The record panel consumes every remaining pixel in the viewport. */
#mainContent.members-data-fixed-mode .members-table-panel{
  flex:1 1 auto!important;
  display:flex!important;
  flex-direction:column!important;
  min-height:0!important;
  max-height:none!important;
  margin-top:7px!important;
  overflow:hidden!important;
  border-top:0!important;
}

#mainContent.members-data-fixed-mode .members-table-wrap,
#mainContent.members-data-fixed-mode .members-table-wrap.cms-fixed-data-scroll{
  flex:1 1 auto!important;
  width:100%!important;
  min-height:0!important;
  max-height:none!important;
  overflow:auto!important;
  overscroll-behavior:contain!important;
  scrollbar-gutter:stable both-edges!important;
  border:1px solid #edf0f3!important;
  border-radius:4px 4px 0 0!important;
}

/* Column titles stay fixed while only tbody records move. */
#mainContent.members-data-fixed-mode .members-table-wrap thead th{
  position:sticky!important;
  top:0!important;
  z-index:25!important;
  padding-top:12px!important;
  padding-bottom:12px!important;
  background:#f8f9fb!important;
  box-shadow:inset 0 -1px 0 #dce2e8!important;
}
#mainContent.members-data-fixed-mode .members-clean-table tbody td{
  padding-top:12px!important;
  padding-bottom:12px!important;
}

/* Pagination remains fixed below the scrolling records. */
#mainContent.members-data-fixed-mode .members-pagination{
  flex:0 0 42px!important;
  height:42px!important;
  min-height:42px!important;
  padding:0 10px!important;
  border:1px solid #edf0f3!important;
  border-top:0!important;
  background:#fff!important;
}

/* Add/edit form opens as its own scrollable layer without moving the table desk. */
#mainContent.members-data-fixed-mode .members-form-card.show{
  position:absolute!important;
  inset:8px 0 8px!important;
  z-index:500!important;
  display:block!important;
  overflow:auto!important;
  max-height:none!important;
  margin:0!important;
  border-radius:10px!important;
  box-shadow:0 24px 70px rgba(15,23,42,.24)!important;
}

@media(max-width:1100px){
  #mainContent.members-data-fixed-mode{
    padding-top:10px!important;
  }
  .members-modern-page>.members-fixed-shell>.members-titlebar.cms-module-sticky-heading{
    margin:-10px -24px 0!important;
    min-height:auto!important;
  }
  .members-fixed-shell .members-titlebar,
  .members-fixed-shell .members-toolbar-row{
    flex-direction:row!important;
    align-items:center!important;
  }
  .members-fixed-shell .members-actions{
    width:auto!important;
    flex-wrap:wrap!important;
    margin-left:auto!important;
  }
  .members-fixed-shell .members-toolbar-row.compact-toolbar .main-search{
    width:min(360px,38vw)!important;
  }
}

@media(max-width:900px){
  body.members-data-fixed-mode{overflow:auto!important}
  #mainContent.members-data-fixed-mode{
    height:auto!important;
    min-height:calc(100vh - var(--cms-fixed-header-total))!important;
    overflow:visible!important;
    padding-top:10px!important;
  }
  #mainContent.members-data-fixed-mode .members-modern-page{
    height:auto!important;
    min-height:0!important;
    overflow:visible!important;
  }
  .members-modern-page>.members-fixed-shell>.members-titlebar.cms-module-sticky-heading{
    position:sticky!important;
    top:var(--cms-sticky-module-top)!important;
    margin:-10px -16px 0!important;
    padding:12px 16px!important;
  }
  .members-fixed-shell .members-toolbar-row.compact-toolbar{
    flex-direction:column!important;
    align-items:stretch!important;
  }
  .members-fixed-shell .members-toolbar-row.compact-toolbar .main-search{
    width:100%!important;
  }
  .members-fixed-shell .members-actions{
    width:100%!important;
    margin-left:0!important;
  }
  #mainContent.members-data-fixed-mode .members-table-wrap,
  #mainContent.members-data-fixed-mode .members-table-wrap.cms-fixed-data-scroll{
    max-height:calc(100vh - 310px)!important;
    min-height:320px!important;
  }
}

@media(max-width:680px){
  .members-fixed-shell .members-titlebar{
    flex-direction:column!important;
    align-items:stretch!important;
    gap:10px!important;
  }
  .members-fixed-shell .members-actions{
    display:grid!important;
    grid-template-columns:repeat(3,minmax(0,1fr))!important;
  }
  .members-fixed-shell .members-actions .outline-action{
    width:100%!important;
    padding:0 8px!important;
    justify-content:center!important;
  }
  .members-fixed-shell .members-tabs{
    gap:28px!important;
  }
}

@media print{
  body.members-data-fixed-mode{overflow:visible!important}
  #mainContent.members-data-fixed-mode,
  #mainContent.members-data-fixed-mode .members-modern-page{
    height:auto!important;
    overflow:visible!important;
  }
}


/* ======================================================================
   V85 - SINGLE MEMBERS HEADER + THREE-STROKE OPTIONS MENU
   Uses the dark topbar as the only page heading and consolidates actions.
   ====================================================================== */
#mainContent.members-data-fixed-mode{
  padding-top:8px!important;
}

#mainContent.members-data-fixed-mode .members-fixed-shell{
  padding-top:0!important;
}

/* The lower duplicate Members and Visitors titlebar is intentionally removed. */
#mainContent.members-data-fixed-mode .members-toolbar-row.compact-toolbar{
  position:relative!important;
  z-index:120!important;
  min-height:44px!important;
  margin:0 0 4px!important;
  padding:0!important;
  align-items:center!important;
}

#mainContent.members-data-fixed-mode .members-toolbar-row.compact-toolbar .main-search{
  flex:1 1 auto!important;
  width:auto!important;
  max-width:none!important;
  height:40px!important;
}

.members-options{
  position:relative!important;
  flex:0 0 auto!important;
  margin-left:auto!important;
}

.members-options-trigger{
  height:40px!important;
  min-width:112px!important;
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  gap:10px!important;
  padding:0 14px!important;
  border:1px solid #d7dde4!important;
  border-radius:8px!important;
  background:#fff!important;
  color:#152238!important;
  font-size:14px!important;
  font-weight:750!important;
  line-height:1!important;
  cursor:pointer!important;
  box-shadow:0 1px 2px rgba(15,23,42,.04)!important;
}
.members-options-trigger:hover,
.members-options.open .members-options-trigger{
  border-color:#45cdb0!important;
  background:#f3fffc!important;
  color:#007d68!important;
}

.three-stroke-icon{
  width:20px!important;
  height:16px!important;
  display:flex!important;
  flex-direction:column!important;
  justify-content:space-between!important;
}
.three-stroke-icon i{
  display:block!important;
  width:20px!important;
  height:2px!important;
  border-radius:4px!important;
  background:currentColor!important;
}

.members-options-menu{
  position:absolute!important;
  top:calc(100% + 7px)!important;
  right:0!important;
  z-index:900!important;
  width:218px!important;
  display:none!important;
  padding:7px!important;
  border:1px solid #dce2e8!important;
  border-radius:10px!important;
  background:#fff!important;
  box-shadow:0 16px 38px rgba(15,23,42,.18)!important;
}
.members-options.open .members-options-menu{display:block!important}

.members-option-form{display:block!important;margin:0!important;padding:0!important}
.members-option-item{
  width:100%!important;
  min-height:42px!important;
  display:flex!important;
  align-items:center!important;
  gap:11px!important;
  padding:9px 11px!important;
  border:0!important;
  border-radius:7px!important;
  background:transparent!important;
  color:#182338!important;
  font-size:14px!important;
  font-weight:650!important;
  line-height:1.25!important;
  text-align:left!important;
  text-decoration:none!important;
  cursor:pointer!important;
}
.members-option-item:hover,
.members-option-item:focus{
  outline:none!important;
  background:#eefbf8!important;
  color:#007c68!important;
}
.members-option-item svg{
  width:18px!important;
  height:18px!important;
  flex:0 0 18px!important;
  fill:currentColor!important;
}
.members-option-icon{
  width:18px!important;
  height:18px!important;
  display:grid!important;
  place-items:center!important;
  flex:0 0 18px!important;
  border-radius:50%!important;
  background:#43cdb0!important;
  color:#fff!important;
  font-size:17px!important;
  font-weight:700!important;
  line-height:18px!important;
}

/* Keep the selector close to the search row and maximize table height. */
#mainContent.members-data-fixed-mode .members-fixed-shell .members-tabs{
  min-height:38px!important;
  margin:0!important;
}
#mainContent.members-data-fixed-mode .members-fixed-shell .members-tabs a{
  padding:8px 0 9px!important;
}
#mainContent.members-data-fixed-mode .members-table-panel{
  margin-top:4px!important;
}

@media(max-width:680px){
  #mainContent.members-data-fixed-mode .members-toolbar-row.compact-toolbar{
    flex-direction:row!important;
    align-items:center!important;
    gap:8px!important;
  }
  #mainContent.members-data-fixed-mode .members-toolbar-row.compact-toolbar .main-search{
    min-width:0!important;
  }
  .members-options-trigger{
    min-width:44px!important;
    width:44px!important;
    padding:0!important;
  }
  .members-options-trigger>span:last-child{display:none!important}
  .members-options-menu{width:210px!important}
}


/* V86 - icon-only three-stroke action trigger */
.members-options-trigger{
  width:44px!important;
  min-width:44px!important;
  padding:0!important;
  gap:0!important;
}


/* ======================================================================
   V87 - apply three-stroke menu pattern broadly across module sections
   ====================================================================== */
.module-actions-shell{
  margin:0 0 12px!important;
}
.module-toolbar-row{
  margin-top:0!important;
  margin-bottom:14px!important;
}
.module-toolbar-row .module-main-search{
  width:min(430px,44vw)!important;
}
.module-toolbar-row .members-options{margin-left:auto!important}
.panel-head .toolbar{gap:10px!important}
@media(max-width:1100px){
  .module-toolbar-row .module-main-search{width:100%!important}
}


/* ======================================================================
   V88 - FIXED GENERIC MODULE DESK
   Applies the members/visitors fixed-control layout to the remaining
   sidebar modules handled by resource_index.php.
   ====================================================================== */
body.module-data-fixed-mode{
  overflow:hidden!important;
}
#mainContent.module-data-fixed-mode{
  height:calc(100vh - var(--cms-fixed-header-total))!important;
  min-height:0!important;
  overflow:hidden!important;
  padding-top:8px!important;
  padding-bottom:12px!important;
}
#mainContent.module-data-fixed-mode .module-fixed-page{
  position:relative!important;
  display:flex!important;
  flex-direction:column!important;
  gap:0!important;
  width:100%!important;
  height:100%!important;
  max-height:100%!important;
  min-height:0!important;
  overflow:hidden!important;
}
#mainContent.module-data-fixed-mode .module-fixed-shell{
  position:relative!important;
  z-index:90!important;
  flex:0 0 auto!important;
  min-width:0!important;
  background:#fff!important;
}
#mainContent.module-data-fixed-mode .module-actions-shell{
  margin:0 0 4px!important;
}
#mainContent.module-data-fixed-mode .module-toolbar-row{
  position:relative!important;
  z-index:120!important;
  min-height:44px!important;
  margin:0 0 4px!important;
  padding:0!important;
  align-items:center!important;
  gap:8px!important;
}
#mainContent.module-data-fixed-mode .module-toolbar-row .module-main-search{
  flex:1 1 auto!important;
  width:auto!important;
  max-width:none!important;
  height:40px!important;
}
#mainContent.module-data-fixed-mode .module-fixed-shell > .panel{
  margin:0 0 6px!important;
}
#mainContent.module-data-fixed-mode .module-fixed-shell > .panel .panel-head{
  padding-bottom:10px!important;
}
#mainContent.module-data-fixed-mode .module-fixed-shell > .panel .panel-head h3{
  margin-bottom:3px!important;
}
#mainContent.module-data-fixed-mode .module-fixed-shell > .panel .grid-form,
#mainContent.module-data-fixed-mode .module-fixed-shell > .panel .attendance-form,
#mainContent.module-data-fixed-mode .module-fixed-shell > .panel .branch-dedicated-form{
  margin-top:0!important;
}
#mainContent.module-data-fixed-mode .module-records-panel{
  flex:1 1 auto!important;
  display:flex!important;
  flex-direction:column!important;
  min-height:0!important;
  max-height:none!important;
  margin-top:4px!important;
  overflow:hidden!important;
}
#mainContent.module-data-fixed-mode .module-records-panel .panel-head{
  flex:0 0 auto!important;
  position:relative!important;
  z-index:10!important;
  margin-bottom:0!important;
  padding-bottom:10px!important;
  background:#fff!important;
}
#mainContent.module-data-fixed-mode .module-records-panel .table-wrap,
#mainContent.module-data-fixed-mode .module-records-panel .table-wrap.cms-fixed-data-scroll{
  flex:1 1 auto!important;
  width:100%!important;
  min-height:0!important;
  max-height:none!important;
  overflow:auto!important;
  overscroll-behavior:contain!important;
  scrollbar-gutter:stable both-edges!important;
  border:1px solid #edf0f3!important;
  border-radius:4px!important;
}
#mainContent.module-data-fixed-mode .module-records-panel thead th{
  position:sticky!important;
  top:0!important;
  z-index:25!important;
  background:#f8f9fb!important;
  box-shadow:inset 0 -1px 0 #dce2e8!important;
}
#mainContent.module-data-fixed-mode .module-records-panel tbody td{
  vertical-align:top!important;
}
@media(max-width:1100px){
  #mainContent.module-data-fixed-mode .module-toolbar-row .module-main-search{width:100%!important}
}
@media(max-width:900px){
  body.module-data-fixed-mode{overflow:auto!important}
  #mainContent.module-data-fixed-mode{
    height:auto!important;
    min-height:calc(100vh - var(--cms-fixed-header-total))!important;
    overflow:visible!important;
    padding-top:10px!important;
  }
  #mainContent.module-data-fixed-mode .module-fixed-page{
    height:auto!important;
    min-height:0!important;
    overflow:visible!important;
  }
  #mainContent.module-data-fixed-mode .module-toolbar-row{
    flex-direction:row!important;
    align-items:center!important;
  }
  #mainContent.module-data-fixed-mode .module-toolbar-row .module-main-search{
    width:100%!important;
  }
  #mainContent.module-data-fixed-mode .module-records-panel .table-wrap,
  #mainContent.module-data-fixed-mode .module-records-panel .table-wrap.cms-fixed-data-scroll{
    max-height:calc(100vh - 325px)!important;
    min-height:320px!important;
  }
}
@media print{
  body.module-data-fixed-mode{overflow:visible!important}
  #mainContent.module-data-fixed-mode,
  #mainContent.module-data-fixed-mode .module-fixed-page{
    height:auto!important;
    overflow:visible!important;
  }
}

/* ======================================================================
   V90 - PUSH TOP HEADING WITH THE MOBILE/TABLET SIDEBAR
   Keeps the dark page heading visible instead of allowing the drawer to
   cover the beginning of titles such as "Church Members".
   ====================================================================== */
@media (max-width:900px){
  .softlock-topbar{
    box-sizing:border-box!important;
    margin-left:0!important;
    width:100%!important;
    max-width:100%!important;
    transition:margin-left .25s ease,width .25s ease,max-width .25s ease!important;
  }

  body.mobile-nav-open .softlock-topbar{
    margin-left:min(var(--ref-sidebar-width),90vw)!important;
    width:calc(100% - min(var(--ref-sidebar-width),90vw))!important;
    max-width:calc(100% - min(var(--ref-sidebar-width),90vw))!important;
  }
}

/* ======================================================================
   V91 - EXACT HEADER/SIDEBAR ALIGNMENT
   The reference sidebar was widened after the fixed-header rules were
   created. The header was still using the old 276px offset, so the wider
   sidebar covered the beginning of page titles. Use the current reference
   sidebar width for the fixed header and animate the actual left edge.
   ====================================================================== */
.softlock-topbar{
  box-sizing:border-box!important;
  margin-left:0!important;
  transition:left .24s ease,right .24s ease,width .24s ease!important;
}

@media (min-width:901px){
  .softlock-topbar{
    left:var(--ref-sidebar-width)!important;
    right:0!important;
    width:auto!important;
    max-width:none!important;
  }

  body.sidebar-collapsed .softlock-topbar{
    left:0!important;
    right:0!important;
    width:auto!important;
    max-width:none!important;
    margin-left:0!important;
  }
}

@media (max-width:900px){
  .softlock-topbar,
  body.sidebar-collapsed .softlock-topbar{
    left:0!important;
    right:0!important;
    width:auto!important;
    max-width:none!important;
    margin-left:0!important;
  }

  body.mobile-nav-open .softlock-topbar,
  body:has(.softlock-sidebar.open) .softlock-topbar{
    left:min(var(--ref-sidebar-width),90vw)!important;
    right:0!important;
    width:auto!important;
    max-width:none!important;
    margin-left:0!important;
  }
}

/* V93 - branch records, menu-only add form and applicable filters */
#mainContent.module-data-fixed-mode .module-filter-panel{
  grid-template-columns:repeat(5,minmax(150px,1fr));
  margin:0 0 6px!important;
  padding:12px 14px!important;
}
#mainContent.module-data-fixed-mode .module-filter-panel .filter-actions{
  align-self:end;
  flex-wrap:wrap;
}
@media(max-width:1100px){
  #mainContent.module-data-fixed-mode .module-filter-panel{grid-template-columns:repeat(3,minmax(150px,1fr));}
}
@media(max-width:700px){
  #mainContent.module-data-fixed-mode .module-filter-panel{grid-template-columns:1fr;}
}


/* V94: Branch records use the same adjustable column headers as Members and Visitors. */
.branches-adjustable-table thead th[data-col]{cursor:context-menu;}


/* V95: Branch CSV export and three-dot row action menu. */
.branches-adjustable-table td.branch-row-actions{
  position:relative!important;
  overflow:visible!important;
  text-align:center!important;
  vertical-align:middle!important;
  min-width:78px;
}
.branches-adjustable-table .branch-row-menu{
  right:12px;
  top:38px;
  min-width:132px;
  z-index:80;
}
.branches-adjustable-table .branch-row-menu form{display:block;margin:0;}
.branches-adjustable-table .branch-row-menu a,
.branches-adjustable-table .branch-row-menu button{
  display:block;
  width:100%;
  padding:8px 10px;
  border:0;
  border-radius:6px;
  background:#fff;
  color:#1f2937;
  text-align:left;
  text-decoration:none;
  font:inherit;
  font-size:13px;
  cursor:pointer;
}
.branches-adjustable-table .branch-row-menu a:hover,
.branches-adjustable-table .branch-row-menu button:hover{background:#f4f7fb;}
.branches-adjustable-table .branch-row-menu .danger-link{color:#d12945!important;}
.branches-adjustable-table .branch-row-menu .danger-link:hover{background:#fff1f2!important;color:#e11d48!important;}

/* V96 - consistent contextual actions for members, visitors and branches */
.row-menu.action-menu-rich,
.branches-adjustable-table .branch-row-menu.action-menu-rich{
  min-width:245px;
  max-width:290px;
  max-height:min(70vh,520px);
  overflow-y:auto;
  padding:7px;
  gap:2px;
  scrollbar-width:thin;
}
.row-menu.action-menu-rich a,
.row-menu.action-menu-rich button.button-as-link,
.branches-adjustable-table .branch-row-menu.action-menu-rich a,
.branches-adjustable-table .branch-row-menu.action-menu-rich button{
  display:flex;
  align-items:center;
  gap:10px;
  width:100%;
  min-height:36px;
  padding:8px 10px;
  border-radius:7px;
  text-align:left;
  white-space:nowrap;
  color:#17233a;
  font-size:13px;
  font-weight:650;
  line-height:1.25;
  box-sizing:border-box;
}
.row-menu-icon{
  display:inline-grid;
  place-items:center;
  flex:0 0 20px;
  width:20px;
  height:20px;
  color:#526174;
  font-size:14px;
  font-weight:900;
}
.row-menu-divider{
  display:block;
  height:1px;
  margin:5px 4px;
  background:#e7ebf0;
}
.row-menu .warning-link,
.branches-adjustable-table .branch-row-menu .warning-link{color:#a65b00!important;}
.row-menu .warning-link:hover,
.branches-adjustable-table .branch-row-menu .warning-link:hover{background:#fff8e8!important;}
.row-menu.action-menu-rich .danger-link .row-menu-icon{color:#d12945;}
.row-actions{min-width:54px;}

.branch-detail-actions{display:flex;align-items:center;gap:9px;flex-wrap:wrap;margin-left:auto;}
.branch-action-grid{display:flex;gap:10px;align-items:center;flex-wrap:wrap;}
.branch-action-grid form{margin:0;}
.branch-action-grid button.outline-action{cursor:pointer;background:#fff;}
.branch-passport-card .passport-photo span{font-size:38px;}

@media (max-width:760px){
  .branch-detail-actions{width:100%;margin-left:0;}
  .row-menu.action-menu-rich,
  .branches-adjustable-table .branch-row-menu.action-menu-rich{min-width:220px;max-width:260px;}
}

@media print{
  body{background:#fff!important;}
  .sidebar,.app-sidebar,.topbar,.app-topbar,.profile-topbar .outline-action,.profile-topbar .branch-detail-actions,.floating-help,.chat-widget{display:none!important;}
  .app-shell,.main-shell,.main-content,#mainContent{display:block!important;margin:0!important;padding:0!important;width:100%!important;max-width:none!important;}
  .profile-page{padding:0!important;margin:0!important;}
  .profile-page .profile-section{display:none!important;}
  .profile-page .passport-card{box-shadow:none!important;border:1px solid #cbd5e1!important;break-inside:avoid;}
}
.row-actions.open .row-menu.open-up{top:auto!important;bottom:40px!important;}


/* V97 - viewport-safe, fully visible contextual action menus */
.row-menu.row-menu-floating{
  position:fixed!important;
  z-index:12050!important;
  display:grid!important;
  grid-auto-rows:max-content;
  overflow-x:hidden!important;
  overflow-y:auto!important;
  overscroll-behavior:contain;
  scrollbar-gutter:stable;
  border:1px solid #dfe5ec!important;
  border-radius:12px!important;
  background:#fff!important;
  box-shadow:0 22px 60px rgba(15,23,42,.24)!important;
  padding:0 7px 8px!important;
}
.row-menu.row-menu-floating .row-menu-heading{
  position:sticky;
  top:0;
  z-index:3;
  display:flex;
  align-items:center;
  min-height:42px;
  margin:0 -7px 5px;
  padding:0 14px;
  border-bottom:1px solid #e8edf3;
  background:#fff;
  color:#0b1f3f;
  font-size:13px;
  font-weight:850;
  letter-spacing:.01em;
}
.row-menu.row-menu-floating.is-scrollable{
  box-shadow:0 22px 60px rgba(15,23,42,.24), inset 0 -15px 14px -18px rgba(15,23,42,.55)!important;
}
.row-menu.row-menu-floating::-webkit-scrollbar{width:11px;}
.row-menu.row-menu-floating::-webkit-scrollbar-track{background:#f3f6f9;border-radius:999px;margin:44px 2px 6px;}
.row-menu.row-menu-floating::-webkit-scrollbar-thumb{background:#a9b5c4;border:3px solid #f3f6f9;border-radius:999px;}
.row-menu.row-menu-floating::-webkit-scrollbar-thumb:hover{background:#7e8da1;}
.row-menu.row-menu-floating a:focus-visible,
.row-menu.row-menu-floating button:focus-visible{
  outline:2px solid #16a085;
  outline-offset:-2px;
  background:#ecfdf7!important;
}
@media(max-width:720px){
  .row-menu.row-menu-floating{
    border-radius:16px!important;
    padding-bottom:12px!important;
  }
  .row-menu.row-menu-floating .row-menu-heading{
    min-height:48px;
    font-size:14px;
  }
  .row-menu.row-menu-floating a,
  .row-menu.row-menu-floating button.button-as-link,
  .branches-adjustable-table .row-menu.row-menu-floating a,
  .branches-adjustable-table .row-menu.row-menu-floating button{
    min-height:44px;
    font-size:14px;
  }
}


/* V98 - Church Programs: screenshot-aligned creation fields, adjustable member-style table and three-dot actions. */
.church-program-form-panel{
  border:1px solid #e5e9ef!important;
  border-radius:10px!important;
  background:#fff!important;
  box-shadow:0 10px 24px rgba(15,23,42,.035)!important;
}
.church-program-form{
  grid-template-columns:repeat(3,minmax(190px,1fr))!important;
  gap:18px 20px!important;
}
.church-program-form label{font-weight:750;color:#0d1728;}
.church-program-form input,
.church-program-form select,
.church-program-form textarea{min-height:54px!important;border-radius:4px!important;}
.church-program-form textarea{min-height:78px!important;resize:vertical;}
.church-program-form .program-description-field{grid-column:1 / span 2;grid-row:auto;}
.church-program-form>button[type="submit"]{grid-column:3;min-height:52px!important;align-self:end;}

.program-records-panel .panel-head{padding-bottom:12px!important;}
.program-table-wrap{border:1px solid #edf0f3!important;border-radius:4px!important;}
.programs-adjustable-table{
  width:100%!important;
  min-width:1720px!important;
  border-collapse:collapse!important;
  table-layout:fixed!important;
  font-size:13px!important;
  color:#2c3138!important;
}
.programs-adjustable-table thead th[data-col]{
  cursor:context-menu;
  background:#f8f9fb!important;
  color:#263244!important;
  font-size:12px!important;
  font-weight:800!important;
  text-transform:uppercase!important;
  letter-spacing:.025em!important;
  white-space:nowrap;
}
.programs-adjustable-table tbody td{
  background:#fff!important;
  color:#30343b!important;
  vertical-align:middle!important;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.programs-adjustable-table tbody tr:hover td{background:#fbfdfc!important;}
.programs-adjustable-table td[data-col="description"]{white-space:normal;line-height:1.4;}
.programs-adjustable-table td.program-row-actions{
  position:relative!important;
  overflow:visible!important;
  text-align:center!important;
  min-width:78px!important;
}
.programs-adjustable-table .program-row-menu form{display:block;margin:0;}
.programs-adjustable-table .program-row-menu a,
.programs-adjustable-table .program-row-menu button{
  display:flex;
  align-items:center;
  width:100%;
}

@media(max-width:1050px){
  .church-program-form{grid-template-columns:repeat(2,minmax(180px,1fr))!important;}
  .church-program-form .program-description-field{grid-column:1 / -1;grid-row:auto;}
  .church-program-form>button[type="submit"]{grid-column:1 / -1;}
}
@media(max-width:680px){
  .church-program-form{grid-template-columns:1fr!important;}
  .church-program-form .program-description-field,
  .church-program-form>button[type="submit"]{grid-column:auto;}
}

/* V100 - complete Church Program creation workflow and records fields. */
.status-pill.neutral{background:#eef2f7;color:#475569;}
.church-program-form{
  grid-template-columns:repeat(3,minmax(220px,1fr))!important;
  gap:18px 22px!important;
  align-items:start;
}
.church-program-form label{
  display:flex;
  flex-direction:column;
  gap:8px;
  min-width:0;
}
.church-program-form .conditional-program-field[hidden]{display:none!important;}
.church-program-form .conditional-program-field.is-visible{display:flex;}
.church-program-form .program-custom-type-field,
.church-program-form .program-recurring-day-field,
.church-program-form .program-custom-schedule-field,
.church-program-form .program-inactive-reason-field{grid-column:1 / -1;}
.church-program-form .program-description-field{grid-column:1 / -1!important;}
.church-program-form .program-description-field textarea{min-height:118px!important;}
.church-program-form .program-inactive-reason-field textarea{min-height:84px!important;}
.church-program-form .program-form-actions{
  grid-column:1 / -1;
  display:flex;
  justify-content:flex-end;
  align-items:center;
  gap:12px;
  padding-top:8px;
  margin-top:2px;
  border-top:1px solid #edf1f5;
}
.church-program-form .program-form-actions .btn{min-width:150px;min-height:48px;}
.church-program-form .program-form-actions .btn.primary{min-width:210px;}
.church-program-form .save-add-another{background:#f8fafc;color:#0b1f3f;border:1px solid #cbd5e1;}
.church-program-form .required-mark{color:#dc2626;font-weight:900;margin-left:2px;}
.church-program-form .field-help{font-size:12px;font-weight:500;color:#64748b;line-height:1.35;}
.church-program-form .field-error{display:block;min-height:0;color:#b42318;font-size:12px;font-weight:650;line-height:1.35;}
.church-program-form .field-error:empty{display:none;}
.church-program-form .field-invalid input,
.church-program-form .field-invalid select,
.church-program-form .field-invalid textarea,
.church-program-form [aria-invalid="true"]{border-color:#ef4444!important;box-shadow:0 0 0 3px rgba(239,68,68,.10)!important;}
.church-program-form .currency-input{position:relative;display:flex;align-items:center;width:100%;}
.church-program-form .currency-prefix{
  position:absolute;
  left:14px;
  z-index:1;
  color:#475569;
  font-weight:800;
  pointer-events:none;
}
.church-program-form .currency-input input{width:100%;padding-left:36px!important;}
.church-program-form .inline-check,
.church-program-form .switch-line{
  display:flex;
  flex-direction:row;
  align-items:center;
  gap:9px;
  font-size:13px;
  font-weight:650;
  color:#475569;
}
.church-program-form .inline-check input,
.church-program-form .switch-line input[type="checkbox"]{
  width:18px!important;
  min-width:18px!important;
  height:18px!important;
  min-height:18px!important;
  margin:0;
}
.church-program-form .program-switch-card{
  min-height:92px;
  justify-content:center;
  padding:14px 16px;
  border:1px solid #dbe3ea;
  border-radius:8px;
  background:#f8fafc;
}
.church-program-form.is-submitting{opacity:.82;pointer-events:none;}
.church-program-form.is-submitting [data-program-save]{position:relative;}
.programs-adjustable-table{min-width:2900px!important;}
.programs-adjustable-table td[data-col="inactive_reason"],
.programs-adjustable-table td[data-col="custom_schedule"]{white-space:normal;line-height:1.4;}

@media(max-width:1100px){
  .church-program-form{grid-template-columns:repeat(2,minmax(210px,1fr))!important;}
  .church-program-form .program-custom-type-field,
  .church-program-form .program-recurring-day-field,
  .church-program-form .program-custom-schedule-field,
  .church-program-form .program-inactive-reason-field,
  .church-program-form .program-description-field,
  .church-program-form .program-form-actions{grid-column:1 / -1!important;}
}
@media(max-width:700px){
  .church-program-form{grid-template-columns:1fr!important;}
  .church-program-form>*{grid-column:1!important;}
  .church-program-form .program-form-actions{flex-direction:column-reverse;align-items:stretch;}
  .church-program-form .program-form-actions .btn{width:100%;min-width:0;}
}


/* ======================================================================
   V101 - Smooth Church Program form flow and compact Program filters.
   Long program forms use normal page scrolling instead of being clipped
   inside the fixed records viewport. Filter actions stay together.
   ====================================================================== */
body.module-data-fixed-mode.program-form-expanded{
  overflow-y:auto!important;
  overflow-x:hidden!important;
}
#mainContent.module-data-fixed-mode.program-form-expanded{
  height:auto!important;
  min-height:calc(100vh - var(--cms-fixed-header-total))!important;
  overflow:visible!important;
  padding-top:4px!important;
  padding-bottom:24px!important;
}
#mainContent.module-data-fixed-mode.program-form-expanded .module-fixed-page{
  height:auto!important;
  max-height:none!important;
  min-height:0!important;
  overflow:visible!important;
}
#mainContent.module-data-fixed-mode.program-form-expanded .module-fixed-shell{
  flex:0 0 auto!important;
}
#mainContent.module-data-fixed-mode.program-form-expanded .module-actions-shell{
  margin-bottom:2px!important;
}
#mainContent.module-data-fixed-mode.program-form-expanded .module-toolbar-row{
  margin-bottom:2px!important;
}
#mainContent.module-data-fixed-mode.program-form-expanded .church-program-form-panel{
  margin:0 0 10px!important;
  padding:16px 20px 18px!important;
  overflow:visible!important;
  scroll-margin-top:10px;
}
#mainContent.module-data-fixed-mode.program-form-expanded .church-program-form-panel .panel-head{
  margin-bottom:12px!important;
  padding-bottom:10px!important;
}
#mainContent.module-data-fixed-mode.program-form-expanded .church-program-form{
  gap:14px 18px!important;
}
#mainContent.module-data-fixed-mode.program-form-expanded .church-program-form input,
#mainContent.module-data-fixed-mode.program-form-expanded .church-program-form select{
  min-height:48px!important;
}
#mainContent.module-data-fixed-mode.program-form-expanded .church-program-form .program-switch-card{
  min-height:82px!important;
}
#mainContent.module-data-fixed-mode.program-form-expanded .church-program-form .program-form-actions{
  position:relative;
  margin-top:4px!important;
  padding:14px 0 0!important;
  background:#fff;
}
#mainContent.module-data-fixed-mode.program-form-expanded .module-records-panel{
  flex:0 0 auto!important;
  min-height:420px!important;
  overflow:visible!important;
  margin-top:0!important;
}
#mainContent.module-data-fixed-mode.program-form-expanded .module-records-panel .table-wrap,
#mainContent.module-data-fixed-mode.program-form-expanded .module-records-panel .table-wrap.cms-fixed-data-scroll{
  height:auto!important;
  min-height:320px!important;
  max-height:520px!important;
  overflow:auto!important;
}

/* Compact program filter row: Status | Type | Branch | Reset + Apply. */
#mainContent.module-data-fixed-mode .program-module-filter{
  grid-template-columns:minmax(150px,.8fr) minmax(210px,1.25fr) minmax(200px,1fr) auto!important;
  gap:10px 12px!important;
  margin:0 0 4px!important;
  padding:10px 12px!important;
  align-items:end!important;
}
#mainContent.module-data-fixed-mode .module-filter-panel .program-filter-actions{
  display:flex!important;
  flex-wrap:nowrap!important;
  justify-content:flex-end!important;
  align-items:center!important;
  gap:8px!important;
  min-width:max-content;
}
#mainContent.module-data-fixed-mode .module-filter-panel .program-filter-actions .outline-action,
#mainContent.module-data-fixed-mode .module-filter-panel .program-filter-actions .members-add-btn.small{
  min-height:40px!important;
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  white-space:nowrap!important;
  margin:0!important;
}
@media(max-width:1050px){
  #mainContent.module-data-fixed-mode .program-module-filter{
    grid-template-columns:repeat(3,minmax(170px,1fr))!important;
  }
  #mainContent.module-data-fixed-mode .module-filter-panel .program-filter-actions{
    grid-column:1 / -1!important;
    justify-content:flex-end!important;
  }
}
@media(max-width:700px){
  #mainContent.module-data-fixed-mode .program-module-filter{
    grid-template-columns:1fr!important;
  }
  #mainContent.module-data-fixed-mode .module-filter-panel .program-filter-actions{
    grid-column:1!important;
    width:100%!important;
  }
  #mainContent.module-data-fixed-mode .module-filter-panel .program-filter-actions>*{
    flex:1 1 0!important;
  }
  #mainContent.module-data-fixed-mode.program-form-expanded .church-program-form-panel{
    padding:14px!important;
  }
  #mainContent.module-data-fixed-mode.program-form-expanded .module-records-panel .table-wrap,
  #mainContent.module-data-fixed-mode.program-form-expanded .module-records-panel .table-wrap.cms-fixed-data-scroll{
    max-height:460px!important;
  }
}


/* ======================================================================
   V102 - Straight Church Program columns and inline required indicators.
   Overrides the generic grid-form bottom alignment so every field starts
   at the top of its grid row. Required stars stay beside the field title.
   ====================================================================== */
.church-program-form{
  align-items:start!important;
  grid-auto-flow:row!important;
}
.church-program-form > label,
.church-program-form > .conditional-program-field{
  align-self:start!important;
  width:100%;
  margin:0!important;
}
.church-program-form .program-field-title{
  display:inline-flex!important;
  flex-direction:row!important;
  align-items:baseline!important;
  align-self:flex-start!important;
  gap:4px!important;
  min-height:20px;
  line-height:1.25;
  white-space:normal;
}
.church-program-form .program-field-title .required-mark{
  display:inline!important;
  flex:0 0 auto;
  margin:0!important;
  line-height:1;
}
.church-program-form .program-switch-card .program-field-title{
  margin-bottom:2px;
}

/* ======================================================================
   V104 - Manual Church Service planning form
   Straight three-column rows, inline required markers and normal page flow.
   ====================================================================== */
.church-service-form-panel{overflow:visible!important;}
.church-service-form{
  grid-template-columns:repeat(3,minmax(220px,1fr))!important;
  align-items:start!important;
  gap:16px 22px!important;
}
.church-service-form > label,
.church-service-form > .conditional-service-field{
  display:flex;
  flex-direction:column;
  align-self:start!important;
  min-width:0;
  gap:8px;
  font-weight:750;
  color:#0d1728;
}
.church-service-form .service-field-title{
  display:inline-flex;
  align-items:baseline;
  gap:3px;
  min-height:20px;
  line-height:1.25;
  white-space:normal;
}
.church-service-form .required-mark{display:inline!important;color:#dc2626;font-weight:900;margin-left:1px;}
.church-service-form input,
.church-service-form select,
.church-service-form textarea{width:100%;min-height:52px!important;border-radius:5px!important;}
.church-service-form textarea{min-height:94px!important;resize:vertical;}
.church-service-form .field-help{font-size:12px;font-weight:500;color:#64748b;line-height:1.35;}
.church-service-form .field-error{display:block;color:#b42318;font-size:12px;font-weight:650;line-height:1.35;}
.church-service-form .field-error:empty{display:none;}
.church-service-form .field-invalid input,
.church-service-form .field-invalid select,
.church-service-form .field-invalid textarea,
.church-service-form [aria-invalid="true"]{border-color:#ef4444!important;box-shadow:0 0 0 3px rgba(239,68,68,.10)!important;}
.church-service-form .service-theme-field{grid-column:span 2;}
.church-service-form .service-wide-field{grid-column:1 / -1;}
.church-service-form .conditional-service-field[hidden],
.church-service-form .service-host-member-field[hidden],
.church-service-form .service-host-name-field[hidden],
.church-service-form .service-pastor-member-field[hidden],
.church-service-form .service-pastor-name-field[hidden],
.church-service-form .service-guest-field[hidden]{display:none!important;}
.church-service-form .service-conflict-card{
  grid-column:1 / -1;
  display:grid;
  gap:8px;
  padding:14px 16px;
  border:1px solid #f59e0b;
  border-radius:10px;
  background:#fffbeb;
  color:#7c2d12;
}
.church-service-form .service-conflict-card .inline-check{display:flex;flex-direction:row;align-items:center;gap:9px;font-weight:700;}
.church-service-form .service-conflict-card input[type="checkbox"]{width:18px!important;min-height:18px!important;height:18px!important;}
.church-service-form .service-form-actions{
  grid-column:1 / -1;
  display:flex;
  justify-content:flex-end;
  align-items:center;
  gap:10px;
  flex-wrap:wrap;
  padding-top:14px;
  margin-top:2px;
  border-top:1px solid #e5e7eb;
}
.church-service-form .service-form-actions .btn{min-height:48px;min-width:145px;}
.church-service-form .service-open-proceedings{border-color:#0f766e;color:#0f766e;background:#ecfdf5;}
.church-service-form .service-next-sunday{border-color:#2563eb;color:#1d4ed8;background:#eff6ff;}
.church-service-form.is-submitting{opacity:.82;pointer-events:none;}

body.module-data-fixed-mode.service-form-expanded{overflow-y:auto!important;overflow-x:hidden!important;}
#mainContent.module-data-fixed-mode.service-form-expanded{
  height:auto!important;
  min-height:calc(100vh - var(--cms-fixed-header-total))!important;
  overflow:visible!important;
  padding-top:4px!important;
  padding-bottom:24px!important;
}
#mainContent.module-data-fixed-mode.service-form-expanded .module-fixed-page{height:auto!important;max-height:none!important;overflow:visible!important;}
#mainContent.module-data-fixed-mode.service-form-expanded .church-service-form-panel{margin:0 0 10px!important;padding:16px 20px 18px!important;overflow:visible!important;}
#mainContent.module-data-fixed-mode.service-form-expanded .module-records-panel{flex:0 0 auto!important;min-height:420px!important;overflow:visible!important;}
#mainContent.module-data-fixed-mode.service-form-expanded .module-records-panel .table-wrap,
#mainContent.module-data-fixed-mode.service-form-expanded .module-records-panel .table-wrap.cms-fixed-data-scroll{height:auto!important;min-height:320px!important;max-height:560px!important;overflow:auto!important;}

@media(max-width:1180px){
  .church-service-form{grid-template-columns:repeat(2,minmax(210px,1fr))!important;}
  .church-service-form .service-theme-field,
  .church-service-form .service-wide-field,
  .church-service-form .service-conflict-card,
  .church-service-form .service-form-actions{grid-column:1 / -1!important;}
}
@media(max-width:760px){
  .church-service-form{grid-template-columns:1fr!important;}
  .church-service-form>*{grid-column:1!important;}
  .church-service-form .service-form-actions{flex-direction:column-reverse;align-items:stretch;}
  .church-service-form .service-form-actions .btn{width:100%;min-width:0;}
}
.church-service-form .service-host-phone-field[hidden]{display:none!important;}
.church-service-form .required-mark[hidden]{display:none!important;}

/* ======================================================================
   V105 - Church Service records desk
   Mirrors Church Programs: compact filters, adjustable columns, horizontal
   records scrolling and viewport-safe three-dot row actions.
   ====================================================================== */
.service-records-panel .panel-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  padding-bottom:12px!important;
}
.service-table-wrap{border:1px solid #edf0f3!important;border-radius:4px!important;}
.services-adjustable-table{
  width:100%!important;
  min-width:3900px!important;
  border-collapse:collapse!important;
  table-layout:fixed!important;
  font-size:13px!important;
  color:#2c3138!important;
}
.services-adjustable-table thead th[data-col]{
  cursor:context-menu;
  background:#f8f9fb!important;
  color:#263244!important;
  font-size:12px!important;
  font-weight:800!important;
  text-transform:uppercase!important;
  letter-spacing:.025em!important;
  white-space:nowrap;
}
.services-adjustable-table tbody td{
  background:#fff!important;
  color:#30343b!important;
  vertical-align:middle!important;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.services-adjustable-table tbody tr:hover td{background:#fbfdfc!important;}
.services-adjustable-table td[data-col="special_instructions"],
.services-adjustable-table td[data-col="internal_notes"]{white-space:normal;line-height:1.4;}
.services-adjustable-table td.service-row-actions{
  position:relative!important;
  overflow:visible!important;
  text-align:center!important;
  min-width:78px!important;
}
.services-adjustable-table .service-row-menu form{display:block;margin:0;}
.services-adjustable-table .service-row-menu a,
.services-adjustable-table .service-row-menu button{
  display:flex;
  align-items:center;
  width:100%;
}

#mainContent.module-data-fixed-mode .service-module-filter{
  grid-template-columns:repeat(4,minmax(145px,1fr)) repeat(2,minmax(150px,.9fr)) auto!important;
  gap:10px 12px!important;
  margin:0 0 4px!important;
  padding:10px 12px!important;
  align-items:end!important;
}
#mainContent.module-data-fixed-mode .service-module-filter .service-filter-actions{
  display:flex!important;
  flex-wrap:nowrap!important;
  justify-content:flex-end!important;
  align-items:center!important;
  gap:8px!important;
  min-width:max-content;
}
#mainContent.module-data-fixed-mode .service-module-filter .service-filter-actions .outline-action,
#mainContent.module-data-fixed-mode .service-module-filter .service-filter-actions .members-add-btn.small{
  min-height:40px!important;
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  white-space:nowrap!important;
  margin:0!important;
}
@media(max-width:1350px){
  #mainContent.module-data-fixed-mode .service-module-filter{grid-template-columns:repeat(3,minmax(170px,1fr))!important;}
  #mainContent.module-data-fixed-mode .service-module-filter .service-filter-actions{grid-column:1 / -1!important;justify-content:flex-end!important;}
}
@media(max-width:800px){
  .service-records-panel .panel-head{align-items:flex-start;flex-direction:column;gap:4px;}
  #mainContent.module-data-fixed-mode .service-module-filter{grid-template-columns:1fr!important;}
  #mainContent.module-data-fixed-mode .service-module-filter .service-filter-actions{grid-column:1!important;width:100%!important;}
  #mainContent.module-data-fixed-mode .service-module-filter .service-filter-actions>*{flex:1 1 0!important;}
}

/* ======================================================================
   V106 - Complete Service Proceedings workflow
   Straight form columns, conditional speaker details, full-width minutes,
   compact filters and Church Program-style adjustable records table.
   ====================================================================== */
.church-proceeding-form-panel{
  overflow:visible!important;
  margin-top:0!important;
  padding:16px 20px 18px!important;
}
.church-proceeding-form-panel .proceeding-panel-head{
  align-items:flex-start!important;
  gap:18px!important;
  padding-bottom:12px!important;
  margin-bottom:14px!important;
}
.church-proceeding-form-panel .proceeding-panel-head h3{margin:0 0 4px!important;}
.church-proceeding-form-panel .proceeding-panel-head p{margin:0!important;line-height:1.45;}
.service-proceeding-form{
  display:grid!important;
  grid-template-columns:repeat(3,minmax(220px,1fr))!important;
  align-items:start!important;
  grid-auto-flow:row!important;
  gap:16px 22px!important;
}
.service-proceeding-form > label,
.service-proceeding-form .proceeding-speaker-grid > label{
  display:flex!important;
  flex-direction:column!important;
  align-self:start!important;
  min-width:0!important;
  width:100%!important;
  gap:8px!important;
  margin:0!important;
  font-weight:750!important;
  color:#0d1728!important;
  position:relative;
}
.service-proceeding-form .proceeding-field-title,
.service-proceeding-form .proceeding-subfield-title{
  display:inline-flex!important;
  flex-direction:row!important;
  align-items:baseline!important;
  align-self:flex-start!important;
  gap:3px!important;
  min-height:20px!important;
  line-height:1.25!important;
  white-space:normal!important;
}
.service-proceeding-form .proceeding-subfield-title{font-size:13px;margin-top:2px;}
.service-proceeding-form .required-mark{
  display:inline!important;
  color:#dc2626!important;
  font-weight:900!important;
  flex:0 0 auto!important;
  margin:0 0 0 1px!important;
  line-height:1!important;
}
.service-proceeding-form input,
.service-proceeding-form select,
.service-proceeding-form textarea{
  width:100%!important;
  min-width:0!important;
  border-radius:5px!important;
}
.service-proceeding-form input,
.service-proceeding-form select{min-height:52px!important;}
.service-proceeding-form textarea{min-height:104px!important;resize:vertical!important;}
.service-proceeding-form .field-help{
  display:block!important;
  margin:0!important;
  color:#64748b!important;
  font-size:12px!important;
  font-weight:500!important;
  line-height:1.35!important;
}
.service-proceeding-form .field-error{
  display:block!important;
  color:#b42318!important;
  font-size:12px!important;
  font-weight:650!important;
  line-height:1.35!important;
}
.service-proceeding-form .field-error:empty{display:none!important;}
.service-proceeding-form .field-invalid input,
.service-proceeding-form .field-invalid select,
.service-proceeding-form .field-invalid textarea,
.service-proceeding-form [aria-invalid="true"]{
  border-color:#ef4444!important;
  box-shadow:0 0 0 3px rgba(239,68,68,.10)!important;
}
.service-proceeding-form .proceeding-service-field{grid-column:1;}
.service-proceeding-form .proceeding-type-field{grid-column:2;}
.service-proceeding-form .proceeding-order-field{grid-column:3;}
.service-proceeding-form .proceeding-custom-type-wrap{
  display:flex;
  flex-direction:column;
  gap:7px;
  padding:10px 11px;
  border:1px solid #dbe4ea;
  border-radius:6px;
  background:#f8fafc;
}
.service-proceeding-form .proceeding-custom-type-wrap[hidden],
.service-proceeding-form .conditional-proceeding-field[hidden],
.service-proceeding-form .proceeding-guest-field[hidden],
.service-proceeding-form .proceeding-member-field[hidden],
.service-proceeding-form .proceeding-member-name-field[hidden]{display:none!important;}
.service-proceeding-form .proceeding-speaker-grid{
  grid-column:1 / -1!important;
  display:grid!important;
  grid-template-columns:repeat(3,minmax(220px,1fr))!important;
  align-items:start!important;
  gap:16px 22px!important;
  min-width:0!important;
  padding:14px!important;
  border:1px solid #e4e9ee!important;
  border-radius:8px!important;
  background:#fbfcfd!important;
}
.service-proceeding-form .proceeding-verses-field{grid-column:1 / span 2!important;}
.service-proceeding-form .proceeding-recorded-field{grid-column:3!important;}
.service-proceeding-form .proceeding-content-field{grid-column:1 / -1!important;}
.service-proceeding-form .proceeding-content-field textarea{min-height:220px!important;line-height:1.55!important;}
.service-proceeding-form .proceeding-current-time-check{
  display:flex!important;
  flex-direction:row!important;
  align-items:center!important;
  gap:9px!important;
  font-weight:650!important;
  color:#475569!important;
}
.service-proceeding-form .proceeding-current-time-check input[type="checkbox"]{
  width:18px!important;
  min-height:18px!important;
  height:18px!important;
  flex:0 0 18px!important;
}
.service-selected-card{
  display:grid!important;
  gap:4px!important;
  min-height:82px!important;
  padding:11px 12px!important;
  border:1px solid #bfe4df!important;
  border-radius:8px!important;
  background:#f0fdfa!important;
  color:#334155!important;
  font-size:12px!important;
  font-weight:500!important;
  line-height:1.35!important;
}
.service-selected-card strong{color:#0f172a!important;font-size:13px!important;}
.proceeding-service-suggestions,
#proceeding_speaker_suggestions{z-index:1300!important;max-height:280px!important;overflow:auto!important;}
.proceeding-editor-toolbar{
  display:flex!important;
  align-items:center!important;
  flex-wrap:wrap!important;
  gap:5px!important;
  padding:7px!important;
  margin-bottom:-8px!important;
  border:1px solid #d5dde5!important;
  border-bottom:0!important;
  border-radius:6px 6px 0 0!important;
  background:#f8fafc!important;
}
.proceeding-editor-toolbar button{
  min-width:34px!important;
  min-height:32px!important;
  padding:5px 9px!important;
  border:1px solid #d5dde5!important;
  border-radius:4px!important;
  background:#fff!important;
  color:#1e293b!important;
  font-size:13px!important;
  font-weight:700!important;
  cursor:pointer!important;
}
.proceeding-editor-toolbar button:hover,
.proceeding-editor-toolbar button:focus-visible{background:#ecfdf5!important;border-color:#2dd4bf!important;outline:none!important;}
.proceeding-editor-toolbar + textarea{border-radius:0 0 5px 5px!important;}
.service-proceeding-form .proceeding-form-actions{
  grid-column:1 / -1!important;
  display:flex!important;
  justify-content:flex-end!important;
  align-items:center!important;
  gap:10px!important;
  flex-wrap:wrap!important;
  padding-top:14px!important;
  margin-top:2px!important;
  border-top:1px solid #e5e7eb!important;
}
.service-proceeding-form .proceeding-form-actions .btn{min-height:48px!important;min-width:150px!important;}
.service-proceeding-form.is-submitting{opacity:.82!important;pointer-events:none!important;}

/* Let the complete proceeding form use normal page scrolling instead of being
   clipped by the fixed records desk. */
body.module-data-fixed-mode.proceeding-form-expanded{overflow-y:auto!important;overflow-x:hidden!important;}
#mainContent.module-data-fixed-mode.proceeding-form-expanded{
  height:auto!important;
  min-height:calc(100vh - var(--cms-fixed-header-total))!important;
  overflow:visible!important;
  padding-top:4px!important;
  padding-bottom:24px!important;
}
#mainContent.module-data-fixed-mode.proceeding-form-expanded .module-fixed-page{height:auto!important;max-height:none!important;overflow:visible!important;}
#mainContent.module-data-fixed-mode.proceeding-form-expanded .church-proceeding-form-panel{margin:0 0 10px!important;overflow:visible!important;}
#mainContent.module-data-fixed-mode.proceeding-form-expanded .module-records-panel{flex:0 0 auto!important;min-height:420px!important;overflow:visible!important;}
#mainContent.module-data-fixed-mode.proceeding-form-expanded .module-records-panel .table-wrap,
#mainContent.module-data-fixed-mode.proceeding-form-expanded .module-records-panel .table-wrap.cms-fixed-data-scroll{height:auto!important;min-height:320px!important;max-height:560px!important;overflow:auto!important;}

/* Compact filters: Reset and Apply remain together at the right. */
#mainContent.module-data-fixed-mode .proceeding-module-filter{
  grid-template-columns:repeat(4,minmax(145px,1fr))!important;
  gap:10px 12px!important;
  margin:0 0 4px!important;
  padding:10px 12px!important;
  align-items:end!important;
}
#mainContent.module-data-fixed-mode .proceeding-module-filter label{min-width:0!important;}
#mainContent.module-data-fixed-mode .proceeding-module-filter select,
#mainContent.module-data-fixed-mode .proceeding-module-filter input{min-height:40px!important;}
#mainContent.module-data-fixed-mode .proceeding-module-filter .proceeding-filter-actions{
  grid-column:1 / -1!important;
  display:flex!important;
  flex-wrap:nowrap!important;
  justify-content:flex-end!important;
  align-items:center!important;
  gap:8px!important;
  min-width:max-content!important;
}
#mainContent.module-data-fixed-mode .proceeding-module-filter .proceeding-filter-actions .outline-action,
#mainContent.module-data-fixed-mode .proceeding-module-filter .proceeding-filter-actions .members-add-btn.small{
  min-height:40px!important;
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  white-space:nowrap!important;
  margin:0!important;
}

/* Records table copied from the Church Programs / Church Services desk. */
.proceeding-records-panel .panel-head{
  display:flex!important;
  align-items:center!important;
  justify-content:space-between!important;
  gap:16px!important;
  padding-bottom:12px!important;
}
.proceeding-table-wrap{border:1px solid #edf0f3!important;border-radius:4px!important;}
.proceedings-adjustable-table{
  width:100%!important;
  min-width:2350px!important;
  border-collapse:collapse!important;
  table-layout:fixed!important;
  font-size:13px!important;
  color:#2c3138!important;
}
.proceedings-adjustable-table thead th[data-col]{
  cursor:context-menu!important;
  background:#f8f9fb!important;
  color:#263244!important;
  font-size:12px!important;
  font-weight:800!important;
  text-transform:uppercase!important;
  letter-spacing:.025em!important;
  white-space:nowrap!important;
}
.proceedings-adjustable-table tbody td{
  background:#fff!important;
  color:#30343b!important;
  vertical-align:middle!important;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.proceedings-adjustable-table tbody tr:hover td{background:#fbfdfc!important;}
.proceedings-adjustable-table td[data-col="content"],
.proceedings-adjustable-table td[data-col="verse_reference"]{white-space:normal!important;line-height:1.4!important;}
.proceedings-adjustable-table td.proceeding-row-actions{
  position:relative!important;
  overflow:visible!important;
  text-align:center!important;
  min-width:78px!important;
}
.proceedings-adjustable-table .proceeding-row-menu form{display:block!important;margin:0!important;}
.proceedings-adjustable-table .proceeding-row-menu a,
.proceedings-adjustable-table .proceeding-row-menu button{display:flex!important;align-items:center!important;width:100%!important;}

@media(max-width:1180px){
  .service-proceeding-form{grid-template-columns:repeat(2,minmax(210px,1fr))!important;}
  .service-proceeding-form .proceeding-service-field{grid-column:1!important;}
  .service-proceeding-form .proceeding-type-field{grid-column:2!important;}
  .service-proceeding-form .proceeding-order-field{grid-column:1!important;}
  .service-proceeding-form .proceeding-speaker-grid{grid-template-columns:repeat(2,minmax(210px,1fr))!important;}
  .service-proceeding-form .proceeding-verses-field{grid-column:1!important;}
  .service-proceeding-form .proceeding-recorded-field{grid-column:2!important;}
  .service-proceeding-form .proceeding-content-field,
  .service-proceeding-form .proceeding-form-actions,
  .service-proceeding-form .proceeding-speaker-grid{grid-column:1 / -1!important;}
  #mainContent.module-data-fixed-mode .proceeding-module-filter{grid-template-columns:repeat(3,minmax(170px,1fr))!important;}
}
@media(max-width:760px){
  .church-proceeding-form-panel{padding:14px!important;}
  .church-proceeding-form-panel .proceeding-panel-head{flex-direction:column!important;align-items:stretch!important;}
  .service-proceeding-form,
  .service-proceeding-form .proceeding-speaker-grid{grid-template-columns:1fr!important;gap:14px!important;}
  .service-proceeding-form > *,
  .service-proceeding-form .proceeding-speaker-grid,
  .service-proceeding-form .proceeding-service-field,
  .service-proceeding-form .proceeding-type-field,
  .service-proceeding-form .proceeding-order-field,
  .service-proceeding-form .proceeding-verses-field,
  .service-proceeding-form .proceeding-recorded-field,
  .service-proceeding-form .proceeding-content-field{grid-column:1!important;}
  .service-proceeding-form .proceeding-form-actions{flex-direction:column-reverse!important;align-items:stretch!important;}
  .service-proceeding-form .proceeding-form-actions .btn{width:100%!important;min-width:0!important;}
  #mainContent.module-data-fixed-mode .proceeding-module-filter{grid-template-columns:1fr!important;}
  #mainContent.module-data-fixed-mode .proceeding-module-filter .proceeding-filter-actions{grid-column:1!important;width:100%!important;}
  #mainContent.module-data-fixed-mode .proceeding-module-filter .proceeding-filter-actions>*{flex:1 1 0!important;}
  .proceeding-records-panel .panel-head{align-items:flex-start!important;flex-direction:column!important;gap:4px!important;}
}

/* V107: Service Proceeding Types administration */
.service-proceeding-type-panel{
  margin:0 0 10px!important;
  padding:20px 22px!important;
  border:1px solid #dde5eb!important;
  border-radius:10px!important;
  background:#fff!important;
  box-shadow:0 8px 24px rgba(15,23,42,.045)!important;
  overflow:visible!important;
}
.service-proceeding-type-panel .panel-head,
.proceeding-type-details-card .panel-head{
  display:flex!important;
  align-items:flex-start!important;
  justify-content:space-between!important;
  gap:18px!important;
  margin-bottom:18px!important;
  padding-bottom:14px!important;
  border-bottom:1px solid #e8edf1!important;
}
.service-proceeding-type-panel .panel-head h3,
.proceeding-type-details-card .panel-head h3,
.proceeding-type-records-panel .panel-head h3{margin:0!important;}
.service-proceeding-type-panel .panel-head p,
.proceeding-type-details-card .panel-head p{margin:5px 0 0!important;}
.service-proceeding-type-form{
  display:grid!important;
  grid-template-columns:repeat(3,minmax(220px,1fr))!important;
  gap:18px 20px!important;
  align-items:start!important;
}
.service-proceeding-type-form>label,
.service-proceeding-type-form>fieldset{
  display:flex!important;
  flex-direction:column!important;
  min-width:0!important;
  margin:0!important;
}
.service-proceeding-type-form label>input:not([type="checkbox"]),
.service-proceeding-type-form label>select,
.service-proceeding-type-form label>textarea{
  width:100%!important;
  min-height:48px!important;
  margin:7px 0 0!important;
  border:1px solid #cfd9df!important;
  border-radius:6px!important;
  background:#fff!important;
}
.service-proceeding-type-form label>textarea{min-height:112px!important;resize:vertical!important;}
.type-field-title{
  display:inline-flex!important;
  align-items:baseline!important;
  gap:4px!important;
  min-height:22px!important;
  color:#142238!important;
  font-weight:750!important;
  line-height:1.35!important;
}
.type-field-title .required-mark{display:inline!important;margin:0!important;color:#dc2626!important;line-height:1!important;}
.service-proceeding-type-form .field-help{display:block!important;margin:7px 0 0!important;color:#64748b!important;line-height:1.35!important;}
.service-proceeding-type-form .field-error{display:block!important;min-height:0!important;margin-top:5px!important;color:#b91c1c!important;font-size:12px!important;}
.service-proceeding-type-form .field-error:empty{display:none!important;}
.service-proceeding-type-form .field-invalid input,
.service-proceeding-type-form .field-invalid select,
.service-proceeding-type-form .field-invalid textarea{border-color:#ef4444!important;box-shadow:0 0 0 3px rgba(239,68,68,.08)!important;}
.type-switch-card{
  min-height:104px!important;
  padding:14px 15px!important;
  border:1px solid #dbe3e8!important;
  border-radius:7px!important;
  background:#f8fbfb!important;
}
.type-switch-card .switch-line{
  display:flex!important;
  align-items:flex-start!important;
  gap:10px!important;
  margin-top:11px!important;
  color:#334155!important;
  line-height:1.4!important;
}
.type-switch-card input[type="checkbox"]{width:19px!important;height:19px!important;min-width:19px!important;margin:1px 0 0!important;accent-color:#14b8a6!important;}
.type-service-types-field{
  grid-column:1 / -1!important;
  padding:15px 16px 14px!important;
  border:1px solid #dbe3e8!important;
  border-radius:7px!important;
  background:#fbfdfd!important;
}
.type-service-types-field legend{padding:0 7px!important;color:#142238!important;font-weight:750!important;}
.type-all-services{display:inline-flex!important;flex-direction:row!important;align-items:center!important;gap:9px!important;margin:0 0 12px!important;font-weight:700!important;}
.type-all-services input,
.type-service-checkbox-grid input{width:18px!important;height:18px!important;min-width:18px!important;margin:0!important;accent-color:#14b8a6!important;}
.type-service-checkbox-grid{
  display:grid!important;
  grid-template-columns:repeat(4,minmax(160px,1fr))!important;
  gap:9px 14px!important;
}
.type-service-checkbox-grid label{
  display:flex!important;
  flex-direction:row!important;
  align-items:center!important;
  gap:8px!important;
  min-height:36px!important;
  padding:7px 9px!important;
  border:1px solid #e2e8ec!important;
  border-radius:5px!important;
  background:#fff!important;
  color:#334155!important;
}
.type-service-checkbox-grid input:disabled+span{color:#94a3b8!important;}
.type-content-prompt-field{grid-column:1 / -1!important;}
.type-form-actions{
  grid-column:1 / -1!important;
  display:flex!important;
  justify-content:flex-end!important;
  align-items:center!important;
  gap:10px!important;
  padding-top:16px!important;
  border-top:1px solid #e8edf1!important;
}
.type-form-actions .btn{min-height:44px!important;min-width:130px!important;}
.proceeding-type-details-card{margin:0 0 10px!important;padding:20px 22px!important;overflow:visible!important;}
.type-details-actions{display:flex!important;gap:8px!important;flex-wrap:wrap!important;}
.proceeding-type-details-grid{
  display:grid!important;
  grid-template-columns:repeat(4,minmax(160px,1fr))!important;
  gap:12px!important;
}
.proceeding-type-details-grid>div{padding:12px 14px!important;border:1px solid #e3e9ed!important;border-radius:6px!important;background:#fafcfc!important;}
.proceeding-type-details-grid span{display:block!important;margin-bottom:5px!important;color:#64748b!important;font-size:12px!important;text-transform:uppercase!important;letter-spacing:.035em!important;font-weight:750!important;}
.proceeding-type-details-grid strong{color:#142238!important;line-height:1.4!important;}
.proceeding-type-details-grid p{margin:0!important;color:#334155!important;line-height:1.55!important;}
.proceeding-type-details-grid .type-details-wide{grid-column:span 2!important;}

/* Compact proceeding-type filters with Reset and Apply together. */
#mainContent.module-data-fixed-mode .proceeding-type-module-filter{
  grid-template-columns:repeat(6,minmax(145px,1fr))!important;
  gap:9px 11px!important;
  align-items:end!important;
  margin:0 0 5px!important;
  padding:10px 12px!important;
}
#mainContent.module-data-fixed-mode .proceeding-type-module-filter select,
#mainContent.module-data-fixed-mode .proceeding-type-module-filter input{min-height:40px!important;}
#mainContent.module-data-fixed-mode .proceeding-type-module-filter .proceeding-type-filter-actions{
  grid-column:1 / -1!important;
  display:flex!important;
  justify-content:flex-end!important;
  align-items:center!important;
  gap:8px!important;
  min-width:max-content!important;
}
#mainContent.module-data-fixed-mode .proceeding-type-module-filter .proceeding-type-filter-actions>*{margin:0!important;min-height:40px!important;}

.proceeding-type-records-panel .records-panel-head{
  display:flex!important;
  align-items:center!important;
  justify-content:space-between!important;
  gap:16px!important;
  padding-bottom:10px!important;
}
.records-inline-actions{display:flex!important;align-items:center!important;justify-content:flex-end!important;gap:8px!important;flex-wrap:wrap!important;}
.records-inline-actions form{display:flex!important;margin:0!important;}
.records-inline-actions input[type="file"]{max-width:195px!important;min-height:40px!important;padding:6px!important;border:1px solid #d5dde3!important;border-radius:5px!important;background:#fff!important;}
.records-inline-actions .btn{min-height:40px!important;white-space:nowrap!important;}
.proceeding-type-table-wrap{border:1px solid #e6ebef!important;border-radius:5px!important;background:#fff!important;}
.proceeding-types-adjustable-table{
  width:100%!important;
  min-width:1460px!important;
  border-collapse:collapse!important;
  table-layout:fixed!important;
  color:#2f3742!important;
  font-size:13px!important;
}
.proceeding-types-adjustable-table thead th[data-col]{
  cursor:context-menu!important;
  background:#f7f9fb!important;
  color:#243247!important;
  font-size:12px!important;
  font-weight:800!important;
  text-transform:uppercase!important;
  letter-spacing:.025em!important;
  white-space:nowrap!important;
}
.proceeding-types-adjustable-table tbody td{
  min-height:54px!important;
  background:#fff!important;
  vertical-align:middle!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
  white-space:nowrap!important;
}
.proceeding-types-adjustable-table tbody tr:hover td{background:#fbfdfc!important;}
.proceeding-types-adjustable-table td[data-col="default_content_prompt"],
.proceeding-types-adjustable-table td[data-col="applicable_service_types"]{white-space:normal!important;line-height:1.4!important;}
.proceeding-types-adjustable-table td.proceeding-type-row-actions{position:relative!important;overflow:visible!important;text-align:center!important;min-width:82px!important;}
.proceeding-types-adjustable-table .proceeding-type-row-menu form{display:block!important;margin:0!important;}
.proceeding-types-adjustable-table .proceeding-type-row-menu a,
.proceeding-types-adjustable-table .proceeding-type-row-menu button{display:flex!important;align-items:center!important;width:100%!important;}

/* Long type forms switch the fixed desk back to normal page flow. */
body.module-data-fixed-mode.proceeding-type-form-expanded{overflow-y:auto!important;overflow-x:hidden!important;}
#mainContent.module-data-fixed-mode.proceeding-type-form-expanded{
  height:auto!important;
  min-height:calc(100vh - var(--cms-fixed-header-total))!important;
  overflow:visible!important;
  padding-top:4px!important;
  padding-bottom:24px!important;
}
#mainContent.module-data-fixed-mode.proceeding-type-form-expanded .module-fixed-page{height:auto!important;max-height:none!important;overflow:visible!important;}
#mainContent.module-data-fixed-mode.proceeding-type-form-expanded .service-proceeding-type-panel{overflow:visible!important;}
#mainContent.module-data-fixed-mode.proceeding-type-form-expanded .module-records-panel{flex:0 0 auto!important;min-height:420px!important;overflow:visible!important;}
#mainContent.module-data-fixed-mode.proceeding-type-form-expanded .module-records-panel .table-wrap{height:auto!important;min-height:320px!important;max-height:560px!important;overflow:auto!important;}

@media(max-width:1220px){
  .service-proceeding-type-form{grid-template-columns:repeat(2,minmax(220px,1fr))!important;}
  .type-service-checkbox-grid{grid-template-columns:repeat(3,minmax(150px,1fr))!important;}
  .proceeding-type-details-grid{grid-template-columns:repeat(2,minmax(180px,1fr))!important;}
  #mainContent.module-data-fixed-mode .proceeding-type-module-filter{grid-template-columns:repeat(3,minmax(170px,1fr))!important;}
}
@media(max-width:820px){
  .service-proceeding-type-panel,.proceeding-type-details-card{padding:15px!important;}
  .service-proceeding-type-panel .panel-head,.proceeding-type-details-card .panel-head,.proceeding-type-records-panel .records-panel-head{flex-direction:column!important;align-items:stretch!important;}
  .service-proceeding-type-form{grid-template-columns:1fr!important;gap:14px!important;}
  .service-proceeding-type-form>*{grid-column:1!important;}
  .type-service-checkbox-grid{grid-template-columns:repeat(2,minmax(130px,1fr))!important;}
  .type-form-actions{flex-direction:column-reverse!important;align-items:stretch!important;}
  .type-form-actions .btn{width:100%!important;}
  .proceeding-type-details-grid{grid-template-columns:1fr!important;}
  .proceeding-type-details-grid .type-details-wide{grid-column:1!important;}
  #mainContent.module-data-fixed-mode .proceeding-type-module-filter{grid-template-columns:1fr!important;}
  #mainContent.module-data-fixed-mode .proceeding-type-module-filter .proceeding-type-filter-actions{grid-column:1!important;width:100%!important;}
  #mainContent.module-data-fixed-mode .proceeding-type-module-filter .proceeding-type-filter-actions>*{flex:1 1 0!important;}
  .records-inline-actions{justify-content:flex-start!important;}
}
@media(max-width:520px){
  .type-service-checkbox-grid{grid-template-columns:1fr!important;}
  .records-inline-actions{flex-direction:column!important;align-items:stretch!important;}
  .records-inline-actions form,.records-inline-actions input[type="file"],.records-inline-actions .btn{width:100%!important;max-width:none!important;}
}

.service-proceeding-form textarea:disabled,.service-proceeding-form select:disabled{background:#f1f5f9!important;color:#64748b!important;cursor:not-allowed!important;}
.proceeding-type-rule-help{color:#0f766e!important;font-weight:650!important;}

/* ======================================================================
   V110 - Remove outer records card boundary; keep border on table only.
   Mirrors Members/Visitors records presentation where the heading sits
   above the table and the table itself carries the visible border.
   ====================================================================== */
.module-records-panel{
  background:transparent!important;
  border:none!important;
  box-shadow:none!important;
  border-radius:0!important;
  padding:0!important;
}
.module-records-panel .records-panel-head,
#mainContent.module-data-fixed-mode .module-records-panel .panel-head{
  background:transparent!important;
  border-bottom:none!important;
  padding:0 0 12px!important;
  margin-bottom:0!important;
}
.module-records-panel .records-panel-head h3,
#mainContent.module-data-fixed-mode .module-records-panel .panel-head h3{
  margin:0!important;
}
.module-records-panel .table-wrap,
.module-records-panel .table-wrap.cms-fixed-data-scroll,
#mainContent.module-data-fixed-mode .module-records-panel .table-wrap,
#mainContent.module-data-fixed-mode .module-records-panel .table-wrap.cms-fixed-data-scroll{
  background:#fff!important;
  border:1px solid #edf0f3!important;
  border-radius:4px!important;
}

/* ======================================================================
   V111 - Attendance workflow and records table
   ====================================================================== */
.modern-attendance-form{
  align-items:start!important;
  grid-template-columns:repeat(3,minmax(0,1fr))!important;
}
.modern-attendance-form>label{align-self:start!important;min-width:0!important;}
.modern-attendance-form .attendance-field-title{display:inline-flex!important;align-items:center!important;gap:4px!important;margin-bottom:7px!important;font-weight:780!important;color:#13211f!important;}
.modern-attendance-form .required-mark{display:inline!important;margin:0!important;color:#dc2626!important;line-height:1!important;}
.attendance-service-card{grid-column:1/-1!important;min-height:72px!important;}
.attendance-notes-field{grid-column:1/-1!important;}
.attendance-notes-field textarea{min-height:105px!important;}
.attendance-member-status-card .attendance-readonly-card{
  min-height:58px!important;display:flex!important;align-items:center!important;padding:12px 14px!important;
  border:1px solid #d9e1e5!important;border-radius:4px!important;background:#f8fafc!important;color:#334155!important;font-weight:750!important;
}
.attendance-form-actions{grid-column:1/-1!important;display:flex!important;align-items:center!important;justify-content:flex-end!important;gap:10px!important;padding-top:4px!important;}
.attendance-form-actions .btn{width:auto!important;min-width:150px!important;}
.attendance-module-filter{grid-template-columns:repeat(4,minmax(0,1fr))!important;align-items:end!important;}
.attendance-filter-actions{grid-column:1/-1!important;justify-content:flex-end!important;}
.attendance-table-wrap{border:1px solid #edf0f3!important;border-radius:4px!important;}
.attendance-adjustable-table{width:100%!important;min-width:2450px!important;border-collapse:collapse!important;table-layout:fixed!important;font-size:13px!important;color:#2c3138!important;}
.attendance-adjustable-table th[data-col="id"]{width:68px!important;}
.attendance-adjustable-table th[data-col="member_code"]{width:145px!important;}
.attendance-adjustable-table th[data-col="member_name"]{width:210px!important;}
.attendance-adjustable-table th[data-col="service_name"]{width:280px!important;}
.attendance-adjustable-table th[data-col="service_date"]{width:130px!important;}
.attendance-adjustable-table th[data-col="branch_name"]{width:180px!important;}
.attendance-adjustable-table th[data-col="attendance_status"]{width:150px!important;}
.attendance-adjustable-table th[data-col="checkin_method"]{width:150px!important;}
.attendance-adjustable-table th[data-col="attended_at"]{width:175px!important;}
.attendance-adjustable-table th[data-col="actions"]{width:90px!important;}
.attendance-row-menu{min-width:245px!important;}
@media(max-width:1050px){
  .modern-attendance-form{grid-template-columns:repeat(2,minmax(0,1fr))!important;}
  .attendance-module-filter{grid-template-columns:repeat(2,minmax(0,1fr))!important;}
}
@media(max-width:720px){
  .modern-attendance-form,.attendance-module-filter{grid-template-columns:1fr!important;}
  .attendance-service-card,.attendance-notes-field,.attendance-form-actions,.attendance-filter-actions{grid-column:1!important;}
  .attendance-form-actions{align-items:stretch!important;flex-direction:column-reverse!important;}
  .attendance-form-actions .btn{width:100%!important;}
}

body.module-data-fixed-mode.attendance-form-expanded{overflow-y:auto!important;overflow-x:hidden!important;}
#mainContent.module-data-fixed-mode.attendance-form-expanded{height:auto!important;min-height:calc(100vh - var(--cms-fixed-header-total))!important;overflow:visible!important;padding-top:4px!important;padding-bottom:24px!important;}
#mainContent.module-data-fixed-mode.attendance-form-expanded .module-fixed-page{height:auto!important;max-height:none!important;overflow:visible!important;}
#mainContent.module-data-fixed-mode.attendance-form-expanded .attendance-checkin-panel{margin:0 0 10px!important;overflow:visible!important;}
#mainContent.module-data-fixed-mode.attendance-form-expanded .module-records-panel{flex:0 0 auto!important;min-height:420px!important;overflow:visible!important;}
#mainContent.module-data-fixed-mode.attendance-form-expanded .module-records-panel .table-wrap,
#mainContent.module-data-fixed-mode.attendance-form-expanded .module-records-panel .table-wrap.cms-fixed-data-scroll{height:auto!important;min-height:320px!important;max-height:560px!important;overflow:auto!important;}

/* ======================================================================
   V112 - Finance workflow and records desk
   ====================================================================== */
.finance-modern-form{
  display:grid!important;
  grid-template-columns:repeat(3,minmax(0,1fr))!important;
  gap:16px 22px!important;
  align-items:start!important;
}
.finance-modern-form>label{
  align-self:start!important;
  min-width:0!important;
  position:relative!important;
}
.finance-modern-form .finance-field-title{
  display:inline-flex!important;
  align-items:center!important;
  gap:4px!important;
  margin-bottom:7px!important;
  font-weight:780!important;
  color:#13211f!important;
}
.finance-modern-form .required-mark{
  display:inline!important;
  margin:0!important;
  color:#dc2626!important;
  line-height:1!important;
}
.finance-modern-form input,
.finance-modern-form select,
.finance-modern-form textarea{
  width:100%!important;
}
.finance-money-input{
  display:flex!important;
  align-items:stretch!important;
  width:100%!important;
  border:1px solid #d3dcdf!important;
  border-radius:4px!important;
  background:#fff!important;
  overflow:hidden!important;
}
.finance-money-input:focus-within{
  border-color:var(--cms-primary,#15c7aa)!important;
  box-shadow:0 0 0 3px rgba(20,199,170,.13)!important;
}
.finance-money-input .currency-prefix{
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  min-width:48px!important;
  padding:0 12px!important;
  background:#f5f8f8!important;
  border-right:1px solid #d3dcdf!important;
  color:#334155!important;
  font-weight:800!important;
}
.finance-money-input input{
  border:0!important;
  box-shadow:none!important;
  border-radius:0!important;
}
.finance-suggestions,
#finance_member_suggestions,
#finance_visitor_suggestions{
  position:absolute!important;
  left:0!important;
  right:0!important;
  top:calc(100% - 2px)!important;
  z-index:80!important;
  display:none;
  max-height:245px!important;
  overflow:auto!important;
  background:#fff!important;
  border:1px solid #cfd9dc!important;
  border-radius:0 0 6px 6px!important;
  box-shadow:0 12px 30px rgba(15,23,42,.14)!important;
}
.finance-suggestions.open,
#finance_member_suggestions.open,
#finance_visitor_suggestions.open{display:block!important;}
.finance-suggestions button,
#finance_member_suggestions button,
#finance_visitor_suggestions button{
  display:block!important;
  width:100%!important;
  padding:10px 12px!important;
  text-align:left!important;
  background:#fff!important;
  border:0!important;
  border-bottom:1px solid #eef2f3!important;
  cursor:pointer!important;
}
.finance-suggestions button:hover,
.finance-suggestions button:focus,
#finance_member_suggestions button:hover,
#finance_member_suggestions button:focus,
#finance_visitor_suggestions button:hover,
#finance_visitor_suggestions button:focus{background:#f1fbf8!important;}
.finance-suggestions small,
#finance_member_suggestions small,
#finance_visitor_suggestions small{display:block!important;color:#64748b!important;margin-top:2px!important;}
.finance-document-field small,
.finance-modern-form .field-help{display:block!important;margin-top:6px!important;color:#64748b!important;line-height:1.35!important;}
.finance-notes-field{grid-column:1/-1!important;}
.finance-notes-field textarea{min-height:110px!important;}
.finance-form-actions{
  grid-column:1/-1!important;
  display:flex!important;
  align-items:center!important;
  justify-content:flex-end!important;
  flex-wrap:wrap!important;
  gap:10px!important;
  padding-top:4px!important;
}
.finance-form-actions .btn{width:auto!important;min-width:145px!important;}
.finance-module-filter{
  display:grid!important;
  grid-template-columns:repeat(4,minmax(0,1fr))!important;
  align-items:end!important;
  gap:12px 16px!important;
}
.finance-filter-actions{
  grid-column:1/-1!important;
  display:flex!important;
  justify-content:flex-end!important;
  align-items:center!important;
  gap:10px!important;
}
.finance-table-wrap{border:1px solid #edf0f3!important;border-radius:4px!important;}
.finance-adjustable-table{
  width:100%!important;
  min-width:3300px!important;
  border-collapse:collapse!important;
  table-layout:fixed!important;
  font-size:13px!important;
  color:#2c3138!important;
}
.finance-adjustable-table th[data-col="id"]{width:68px!important;}
.finance-adjustable-table th[data-col="receipt_ref"]{width:170px!important;}
.finance-adjustable-table th[data-col="transaction_date"]{width:135px!important;}
.finance-adjustable-table th[data-col="type"]{width:120px!important;}
.finance-adjustable-table th[data-col="payer_name"]{width:220px!important;}
.finance-adjustable-table th[data-col="program_name"]{width:220px!important;}
.finance-adjustable-table th[data-col="branch_name"]{width:175px!important;}
.finance-adjustable-table th[data-col="category"]{width:190px!important;}
.finance-adjustable-table th[data-col="account_name"]{width:180px!important;}
.finance-adjustable-table th[data-col="amount"]{width:135px!important;}
.finance-adjustable-table th[data-col="transaction_status"]{width:155px!important;}
.finance-adjustable-table th[data-col="actions"]{width:90px!important;}
.finance-row-menu{min-width:255px!important;}
@media(max-width:1100px){
  .finance-modern-form{grid-template-columns:repeat(2,minmax(0,1fr))!important;}
  .finance-module-filter{grid-template-columns:repeat(2,minmax(0,1fr))!important;}
}
@media(max-width:720px){
  .finance-modern-form,.finance-module-filter{grid-template-columns:1fr!important;}
  .finance-notes-field,.finance-form-actions,.finance-filter-actions{grid-column:1!important;}
  .finance-form-actions{align-items:stretch!important;flex-direction:column-reverse!important;}
  .finance-form-actions .btn{width:100%!important;}
}
body.module-data-fixed-mode.finance-form-expanded{overflow-y:auto!important;overflow-x:hidden!important;}
#mainContent.module-data-fixed-mode.finance-form-expanded{height:auto!important;min-height:calc(100vh - var(--cms-fixed-header-total))!important;overflow:visible!important;padding-top:4px!important;padding-bottom:24px!important;}
#mainContent.module-data-fixed-mode.finance-form-expanded .module-fixed-page{height:auto!important;max-height:none!important;overflow:visible!important;}
#mainContent.module-data-fixed-mode.finance-form-expanded .finance-entry-panel{margin:0 0 10px!important;overflow:visible!important;}
#mainContent.module-data-fixed-mode.finance-form-expanded .module-records-panel{flex:0 0 auto!important;min-height:420px!important;overflow:visible!important;}
#mainContent.module-data-fixed-mode.finance-form-expanded .module-records-panel .table-wrap,
#mainContent.module-data-fixed-mode.finance-form-expanded .module-records-panel .table-wrap.cms-fixed-data-scroll{height:auto!important;min-height:320px!important;max-height:560px!important;overflow:auto!important;}

/* ======================================================================
   V113 - Finance filters as a foreground overlay
   Hidden by default so the Finance Records table receives the full desk.
   The Filter Finance menu action opens a scrollable, viewport-safe panel.
   ====================================================================== */
.finance-module-filter,
#mainContent.module-data-fixed-mode .finance-module-filter{
  display:none!important;
  position:fixed!important;
  z-index:10020!important;
  top:max(calc(var(--cms-fixed-header-total, 96px) + 14px), 92px)!important;
  left:50%!important;
  right:auto!important;
  transform:translateX(-50%)!important;
  width:min(1180px,calc(100vw - 40px))!important;
  max-height:calc(100vh - max(var(--cms-fixed-header-total, 96px),78px) - 30px)!important;
  overflow:auto!important;
  overscroll-behavior:contain!important;
  grid-template-columns:repeat(4,minmax(0,1fr))!important;
  align-items:end!important;
  gap:12px 16px!important;
  margin:0!important;
  padding:18px!important;
  background:#fff!important;
  border:1px solid #dce5e4!important;
  border-radius:14px!important;
  box-shadow:0 28px 80px rgba(15,23,42,.28)!important;
  scrollbar-gutter:stable!important;
}
.finance-module-filter.show,
#mainContent.module-data-fixed-mode .finance-module-filter.show{
  display:grid!important;
}
.finance-filter-head{
  grid-column:1/-1!important;
  display:flex!important;
  align-items:flex-start!important;
  justify-content:space-between!important;
  gap:18px!important;
  position:sticky!important;
  top:-18px!important;
  z-index:2!important;
  margin:-18px -18px 4px!important;
  padding:17px 18px 14px!important;
  background:#fff!important;
  border-bottom:1px solid #e7ecec!important;
}
.finance-filter-head h3{
  margin:0!important;
  font-size:19px!important;
  color:#10201e!important;
}
.finance-filter-head p{
  margin:4px 0 0!important;
  color:#64748b!important;
  font-size:13px!important;
  font-weight:500!important;
}
.finance-filter-close{
  flex:0 0 38px!important;
  width:38px!important;
  height:38px!important;
  display:grid!important;
  place-items:center!important;
  border:1px solid #d7e1df!important;
  border-radius:9px!important;
  background:#fff!important;
  color:#18312d!important;
  font-size:25px!important;
  line-height:1!important;
  cursor:pointer!important;
}
.finance-filter-close:hover,
.finance-filter-close:focus{
  border-color:#35b99a!important;
  background:#f1fbf8!important;
  outline:none!important;
}
.finance-filter-backdrop{
  display:none!important;
  position:fixed!important;
  inset:0!important;
  z-index:10010!important;
  width:100vw!important;
  height:100vh!important;
  padding:0!important;
  border:0!important;
  background:rgba(15,23,42,.34)!important;
  cursor:default!important;
}
.finance-filter-backdrop.show{display:block!important;}
body.finance-filter-open{overflow:hidden!important;}
.finance-filter-actions{
  grid-column:1/-1!important;
  position:sticky!important;
  bottom:-18px!important;
  z-index:2!important;
  justify-content:flex-end!important;
  margin:2px -18px -18px!important;
  padding:14px 18px 18px!important;
  background:#fff!important;
  border-top:1px solid #e7ecec!important;
}
.finance-filter-active-badge{
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  margin-left:auto!important;
  padding:3px 7px!important;
  border-radius:999px!important;
  background:#dff8ef!important;
  color:#087f68!important;
  font-size:10px!important;
  font-weight:800!important;
  letter-spacing:.02em!important;
}
/* With filters out of the document flow, maximise the records desk. */
#mainContent.module-data-fixed-mode .finance-records-panel{
  flex:1 1 auto!important;
  min-height:0!important;
  margin-top:2px!important;
}
#mainContent.module-data-fixed-mode .finance-records-panel .records-panel-head{
  padding-bottom:8px!important;
}
#mainContent.module-data-fixed-mode .finance-records-panel .finance-table-wrap,
#mainContent.module-data-fixed-mode .finance-records-panel .finance-table-wrap.cms-fixed-data-scroll{
  flex:1 1 auto!important;
  min-height:360px!important;
  max-height:none!important;
  overflow:auto!important;
  scrollbar-gutter:stable both-edges!important;
}
@media(max-width:1100px){
  .finance-module-filter,
  #mainContent.module-data-fixed-mode .finance-module-filter{
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
    width:min(850px,calc(100vw - 30px))!important;
  }
}
@media(max-width:700px){
  .finance-module-filter,
  #mainContent.module-data-fixed-mode .finance-module-filter{
    top:70px!important;
    width:calc(100vw - 20px)!important;
    max-height:calc(100vh - 82px)!important;
    grid-template-columns:1fr!important;
    padding:15px!important;
  }
  .finance-filter-head{
    top:-15px!important;
    margin:-15px -15px 4px!important;
    padding:15px!important;
  }
  .finance-filter-actions{
    grid-column:1!important;
    bottom:-15px!important;
    margin:2px -15px -15px!important;
    padding:12px 15px 15px!important;
  }
  .finance-filter-actions>*{flex:1 1 auto!important;text-align:center!important;}
}

/* ======================================================================
   V114 - Finance filter portal and sidebar-safe positioning
   The filter is portalled to <body> while open so the fixed sidebar cannot
   create a stacking context above it. On desktop it is centred inside the
   usable content area; when the sidebar is collapsed it recentres to the
   full viewport. On mobile the navigation closes before the filter opens.
   ====================================================================== */
body > .finance-filter-backdrop{
  z-index:12000!important;
}
body > .finance-module-filter{
  z-index:12010!important;
}
@media (min-width:901px){
  body:not(.sidebar-collapsed) > .finance-module-filter{
    left:var(--ref-sidebar-width)!important;
    right:0!important;
    transform:none!important;
    margin-left:auto!important;
    margin-right:auto!important;
    width:min(1180px,calc(100vw - var(--ref-sidebar-width) - 40px))!important;
  }
  body.sidebar-collapsed > .finance-module-filter{
    left:0!important;
    right:0!important;
    transform:none!important;
    margin-left:auto!important;
    margin-right:auto!important;
    width:min(1180px,calc(100vw - 40px))!important;
  }
}
@media (max-width:900px){
  body > .finance-module-filter{
    left:50%!important;
    width:calc(100vw - 20px)!important;
  }
}

/* ======================================================================
   V115 - System-wide smart filter overlays
   Applies the Finance foreground filter pattern to every advanced filter.
   Filters stay out of page flow until selected, preserve maximum records
   space, portal above the sidebar, and scroll independently on small screens.
   ====================================================================== */
.cms-filter-overlay,
.member-filter-panel.cms-filter-overlay,
#mainContent.module-data-fixed-mode .module-filter-panel.cms-filter-overlay{
  display:none!important;
  position:fixed!important;
  z-index:12010!important;
  top:max(calc(var(--cms-fixed-header-total, 96px) + 14px),92px)!important;
  left:50%!important;
  right:auto!important;
  transform:translateX(-50%)!important;
  width:min(1180px,calc(100vw - 40px))!important;
  max-height:calc(100vh - max(var(--cms-fixed-header-total,96px),78px) - 30px)!important;
  overflow:auto!important;
  overscroll-behavior:contain!important;
  grid-template-columns:repeat(4,minmax(0,1fr))!important;
  align-items:end!important;
  gap:12px 16px!important;
  margin:0!important;
  padding:18px!important;
  background:#fff!important;
  border:1px solid #dce5e4!important;
  border-radius:14px!important;
  box-shadow:0 28px 80px rgba(15,23,42,.28)!important;
  scrollbar-gutter:stable!important;
}
.cms-filter-overlay.show,
.member-filter-panel.cms-filter-overlay.show,
#mainContent.module-data-fixed-mode .module-filter-panel.cms-filter-overlay.show{
  display:grid!important;
}
.cms-filter-overlay-head{
  grid-column:1/-1!important;
  display:flex!important;
  align-items:flex-start!important;
  justify-content:space-between!important;
  gap:18px!important;
  position:sticky!important;
  top:-18px!important;
  z-index:3!important;
  margin:-18px -18px 4px!important;
  padding:17px 18px 14px!important;
  background:#fff!important;
  border-bottom:1px solid #e7ecec!important;
}
.cms-filter-overlay-head h3{
  margin:0!important;
  color:#10201e!important;
  font-size:19px!important;
  font-weight:800!important;
  letter-spacing:-.02em!important;
}
.cms-filter-overlay-head p{
  margin:4px 0 0!important;
  color:#64748b!important;
  font-size:13px!important;
  font-weight:500!important;
  line-height:1.4!important;
}
.cms-filter-overlay-close{
  flex:0 0 38px!important;
  width:38px!important;
  height:38px!important;
  display:grid!important;
  place-items:center!important;
  padding:0!important;
  border:1px solid #d7e1df!important;
  border-radius:9px!important;
  background:#fff!important;
  color:#18312d!important;
  font-size:25px!important;
  line-height:1!important;
  cursor:pointer!important;
}
.cms-filter-overlay-close:hover,
.cms-filter-overlay-close:focus{
  border-color:#35b99a!important;
  background:#f1fbf8!important;
  outline:none!important;
}
.cms-filter-overlay-actions,
.cms-filter-overlay .cms-filter-overlay-actions{
  grid-column:1/-1!important;
  position:sticky!important;
  bottom:-18px!important;
  z-index:3!important;
  display:flex!important;
  justify-content:flex-end!important;
  gap:10px!important;
  margin:2px -18px -18px!important;
  padding:14px 18px 18px!important;
  background:#fff!important;
  border-top:1px solid #e7ecec!important;
}
.cms-filter-overlay-backdrop{
  display:none!important;
  position:fixed!important;
  inset:0!important;
  z-index:12000!important;
  width:100vw!important;
  height:100vh!important;
  padding:0!important;
  border:0!important;
  background:rgba(15,23,42,.34)!important;
  cursor:default!important;
}
.cms-filter-overlay-backdrop.show{display:block!important;}
body.cms-filter-open{overflow:hidden!important;}
.cms-filter-active-badge{
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  margin-left:auto!important;
  padding:3px 7px!important;
  border-radius:999px!important;
  background:#dff8ef!important;
  color:#087f68!important;
  font-size:10px!important;
  font-weight:800!important;
  letter-spacing:.02em!important;
}
.cms-filter-overlay label{
  min-width:0!important;
}
.cms-filter-overlay input,
.cms-filter-overlay select,
.cms-filter-overlay textarea{
  width:100%!important;
}
/* Filter-only containers no longer reserve vertical space in the page. */
.notes-filter-panel:has(.cms-filter-overlay),
.filter-overlay-host:has(.cms-filter-overlay){
  margin:0!important;
  padding:0!important;
  border:0!important;
  box-shadow:none!important;
  background:transparent!important;
}
@media (min-width:901px){
  body:not(.sidebar-collapsed) > .cms-filter-overlay{
    left:var(--ref-sidebar-width)!important;
    right:0!important;
    transform:none!important;
    margin-left:auto!important;
    margin-right:auto!important;
    width:min(1180px,calc(100vw - var(--ref-sidebar-width) - 40px))!important;
  }
  body.sidebar-collapsed > .cms-filter-overlay{
    left:0!important;
    right:0!important;
    transform:none!important;
    margin-left:auto!important;
    margin-right:auto!important;
    width:min(1180px,calc(100vw - 40px))!important;
  }
}
@media(max-width:1100px){
  .cms-filter-overlay,
  .member-filter-panel.cms-filter-overlay,
  #mainContent.module-data-fixed-mode .module-filter-panel.cms-filter-overlay{
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
    width:min(850px,calc(100vw - 30px))!important;
  }
}
@media(max-width:900px){
  body > .cms-filter-overlay{
    left:50%!important;
    right:auto!important;
    transform:translateX(-50%)!important;
  }
}
@media(max-width:700px){
  .cms-filter-overlay,
  .member-filter-panel.cms-filter-overlay,
  #mainContent.module-data-fixed-mode .module-filter-panel.cms-filter-overlay{
    top:70px!important;
    width:calc(100vw - 20px)!important;
    max-height:calc(100vh - 82px)!important;
    grid-template-columns:1fr!important;
    padding:15px!important;
  }
  .cms-filter-overlay-head{
    top:-15px!important;
    margin:-15px -15px 4px!important;
    padding:15px!important;
  }
  .cms-filter-overlay-actions,
  .cms-filter-overlay .cms-filter-overlay-actions{
    grid-column:1!important;
    bottom:-15px!important;
    margin:2px -15px -15px!important;
    padding:12px 15px 15px!important;
    flex-wrap:wrap!important;
  }
  .cms-filter-overlay-actions>*{
    flex:1 1 auto!important;
    text-align:center!important;
  }
}

/* ================================================================
   V116 BULK SMS CAMPAIGN BUILDER
   Clear audience review, message metrics, scheduling and confirmation.
   ================================================================ */
.sms-campaign-form-panel{padding:26px 32px!important;}
.sms-campaign-form-panel>.panel-head{align-items:flex-start!important;margin-bottom:22px!important;}
.sms-campaign-form-panel>.panel-head h3{font-size:27px!important;font-weight:500!important;letter-spacing:-.035em!important;}
.sms-campaign-form-panel>.panel-head p{margin:7px 0 0!important;max-width:760px!important;}
.grid-form.sms-campaign-form{
  display:grid!important;
  grid-template-columns:minmax(0,1fr) minmax(0,1fr)!important;
  gap:20px!important;
  align-items:start!important;
}
.sms-builder-card{
  min-width:0;
  height:100%;
  padding:20px;
  border:1px solid #e2e8f0;
  border-radius:16px;
  background:#fff;
  box-shadow:0 6px 22px rgba(15,23,42,.045);
}
.sms-audience-card,.sms-message-card{grid-column:auto;}
.sms-delivery-card,.sms-form-actions{grid-column:1/-1;}
.sms-builder-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;margin-bottom:17px;}
.sms-builder-heading>div{display:flex;align-items:flex-start;gap:11px;min-width:0;}
.sms-builder-heading h4{margin:0;color:#0f172a;font-size:17px;letter-spacing:-.02em;}
.sms-builder-heading p{margin:4px 0 0;color:#64748b;font-size:13px;line-height:1.45;}
.sms-step-number{display:inline-flex;align-items:center;justify-content:center;flex:0 0 27px;width:27px;height:27px;border-radius:50%;background:#e8eefc;color:#2756d8;font-size:13px;font-weight:800;}
.sms-compact-btn{min-height:42px!important;height:42px!important;padding:0 15px!important;white-space:nowrap;}
.sms-field{display:flex!important;flex-direction:column!important;gap:7px!important;align-items:stretch!important;color:#0f172a!important;font-weight:700!important;}
.sms-field>span:first-child{font-size:13px;}
.sms-field input,.sms-field select,.sms-field textarea,.sms-template-row select,
.sms-advanced-filter-tab input,.sms-advanced-filter-tab select{
  width:100%!important;
  border:1px solid #d6dde8!important;
  border-radius:8px!important;
  background:#fff!important;
  color:#111827!important;
  font-size:15px!important;
  box-shadow:none!important;
}
.sms-field input,.sms-field select,.sms-template-row select,.sms-advanced-filter-tab input,.sms-advanced-filter-tab select{height:48px!important;padding:0 13px!important;}
.sms-field textarea{min-height:164px!important;padding:13px!important;line-height:1.55!important;resize:vertical!important;}
.sms-field input:focus,.sms-field select:focus,.sms-field textarea:focus,.sms-template-row select:focus,
.sms-advanced-filter-tab input:focus,.sms-advanced-filter-tab select:focus{border-color:#2d5ae0!important;box-shadow:0 0 0 3px rgba(45,90,224,.12)!important;outline:0!important;}
.sms-field.field-invalid input,.sms-field.field-invalid select,.sms-field.field-invalid textarea{border-color:#dc2626!important;}
.sms-audience-summary{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;margin-top:15px;}
.sms-audience-summary>div{padding:12px 13px;border:1px solid #e5eaf2;border-radius:10px;background:#f8fafc;}
.sms-audience-summary strong{display:block;color:#0f172a;font-size:20px;line-height:1.1;}
.sms-audience-summary span{display:block;margin-top:3px;color:#64748b;font-size:12px;}
.sms-preview-recipients-btn{grid-column:1/-1;justify-self:start;margin-top:2px;}
.sms-advanced-filter-tab{margin-top:18px;padding:17px;border:1px solid #dbe4f4;border-radius:12px;background:#f8fbff;}
.sms-advanced-filter-tab[hidden]{display:none!important;}
.sms-filter-head{display:flex;justify-content:space-between;gap:14px;align-items:baseline;margin-bottom:14px;}
.sms-filter-head strong{color:#1e293b;font-size:14px;}
.sms-filter-head span{color:#64748b;font-size:12px;}
.sms-filter-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:13px;}
.sms-filter-grid label{display:flex!important;flex-direction:column!important;gap:7px!important;align-items:stretch!important;font-size:12px!important;font-weight:700!important;color:#334155!important;}
.sms-filter-chips{display:flex;flex-wrap:wrap;gap:7px;margin-top:14px;}
.sms-filter-chip{display:inline-flex;align-items:center;padding:6px 9px;border-radius:999px;background:#e8eefc;color:#2449ad;font-size:11px;font-weight:750;}
.sms-filter-empty{color:#64748b;font-size:12px;}
.sms-template-row{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:10px;align-items:end;margin-bottom:13px;}
.sms-template-row label{display:flex!important;flex-direction:column!important;gap:7px!important;align-items:stretch!important;font-size:13px!important;color:#0f172a!important;font-weight:700!important;}
.sms-message-tools{display:flex;align-items:flex-start;justify-content:space-between;gap:15px;flex-wrap:wrap;margin-top:10px;}
.sms-token-list{display:flex;align-items:center;gap:6px;flex-wrap:wrap;color:#64748b;font-size:12px;}
.sms-token-list button{border:1px solid #d8e0ed;border-radius:999px;background:#fff;color:#3155ba;padding:5px 9px;font-size:11px;font-weight:700;cursor:pointer;}
.sms-token-list button:hover{background:#f4f7ff;border-color:#b9c8ed;}
.sms-message-metrics{color:#475569;font-size:12px;}
.sms-message-estimate{margin-top:10px;padding:10px 12px;border-radius:8px;background:#f1f5f9;color:#475569;font-size:12px;}
.sms-message-estimate strong{color:#0f172a;}
.sms-preview-message-btn{margin-top:12px;}
.sms-delivery-card{height:auto;}
.sms-delivery-options{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;}
.sms-delivery-choice{display:flex!important;align-items:flex-start!important;flex-direction:row!important;gap:10px!important;padding:14px!important;border:1px solid #dbe3ef!important;border-radius:11px!important;background:#fff!important;cursor:pointer!important;}
.sms-delivery-choice:has(input:checked){border-color:#2d5ae0!important;background:#f4f7ff!important;box-shadow:0 0 0 2px rgba(45,90,224,.08)!important;}
.sms-delivery-choice input{width:17px!important;height:17px!important;margin-top:2px!important;accent-color:#2d5ae0!important;}
.sms-delivery-choice span{display:flex;flex-direction:column;gap:3px;}
.sms-delivery-choice strong{color:#111827;font-size:14px;}
.sms-delivery-choice small{color:#64748b;font-size:12px;line-height:1.4;}
.sms-schedule-field{max-width:470px;margin-top:15px;}
.sms-schedule-field[hidden]{display:none!important;}
.sms-delivery-note{margin:14px 0 0;padding:10px 12px;border-left:3px solid #f59e0b;background:#fffbeb;color:#7c5a10;font-size:12px;line-height:1.5;}
.sms-form-actions{display:flex;align-items:center;justify-content:flex-end;gap:10px;padding-top:2px;}
.sms-form-actions .btn{min-width:130px;}
.sms-records-panel .table-wrap{border-radius:11px!important;}
.sms-records-panel table{min-width:960px!important;}
.sms-records-panel th[data-col="message"],.sms-records-panel td[data-col="message"]{min-width:280px;max-width:430px;}
.sms-records-panel th[data-col="recipient_group"],.sms-records-panel td[data-col="recipient_group"]{min-width:190px;}
.sms-table-subtext{display:block;margin-top:2px;color:#64748b;font-size:11px;font-weight:500;}
.sms-modal[hidden]{display:none!important;}
.sms-modal{position:fixed;inset:0;z-index:15000;display:flex;align-items:center;justify-content:center;padding:22px;}
.sms-modal-backdrop{position:absolute;inset:0;background:rgba(15,23,42,.48);backdrop-filter:blur(2px);}
.sms-modal-card{position:relative;z-index:1;width:min(700px,calc(100vw - 34px));max-height:calc(100vh - 44px);overflow:auto;padding:25px;border-radius:15px;background:#fff;box-shadow:0 28px 90px rgba(15,23,42,.28);}
.sms-modal-card h3{margin:0 38px 8px 0;font-size:22px;}
.sms-modal-close{position:absolute;right:15px;top:12px;border:0;background:transparent;color:#64748b;font-size:29px;line-height:1;cursor:pointer;}
.sms-modal-actions{display:flex;justify-content:flex-end;gap:10px;margin-top:20px;padding-top:15px;border-top:1px solid #edf1f6;}
body.sms-modal-open{overflow:hidden!important;}
.sms-recipient-list{display:grid;gap:7px;margin-top:15px;max-height:430px;overflow:auto;}
.sms-recipient-row{display:flex;justify-content:space-between;align-items:center;gap:18px;padding:10px 12px;border:1px solid #e6ebf2;border-radius:9px;background:#fafcff;}
.sms-recipient-row span{display:flex;min-width:0;flex-direction:column;gap:2px;}
.sms-recipient-row strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#1e293b;font-size:13px;}
.sms-recipient-row small{color:#64748b;font-size:11px;}
.sms-recipient-row code{white-space:nowrap;color:#2449ad;font-size:12px;}
.sms-phone-preview{display:flex;justify-content:center;padding:15px 0 4px;}
.sms-phone-screen{width:min(360px,100%);min-height:260px;padding:24px 18px;border:9px solid #1f2937;border-radius:28px;background:#eef2f7;box-shadow:0 15px 35px rgba(15,23,42,.16);}
.sms-phone-screen>span{display:block;margin-bottom:16px;color:#64748b;font-size:11px;text-align:center;}
.sms-phone-screen p{margin:0 0 0 auto;max-width:88%;padding:12px 14px;border-radius:15px 15px 3px 15px;background:#dbeafe;color:#1e293b;white-space:pre-wrap;font-size:14px;line-height:1.48;}
.sms-confirmation-grid{display:grid;grid-template-columns:minmax(150px,.8fr) minmax(0,1.2fr);gap:0;border:1px solid #e3e9f1;border-radius:10px;overflow:hidden;margin-top:16px;}
.sms-confirmation-grid span,.sms-confirmation-grid strong{padding:11px 13px;border-bottom:1px solid #e9edf3;}
.sms-confirmation-grid span{background:#f8fafc;color:#64748b;font-size:12px;}
.sms-confirmation-grid strong{color:#1e293b;font-size:13px;}
.sms-confirmation-grid span:nth-last-child(-n+2),.sms-confirmation-grid strong:nth-last-child(-n+2){border-bottom:0;}
.sms-confirm-warning{margin:14px 0 0;color:#7c5a10;background:#fffbeb;border-radius:8px;padding:10px 12px;font-size:12px;}
@media(max-width:1050px){
  .grid-form.sms-campaign-form{grid-template-columns:1fr!important;}
  .sms-audience-card,.sms-message-card,.sms-delivery-card,.sms-form-actions{grid-column:1!important;}
}
@media(max-width:700px){
  .sms-campaign-form-panel{padding:19px!important;}
  .sms-builder-heading,.sms-filter-head{flex-direction:column;align-items:flex-start;}
  .sms-compact-btn{width:100%;}
  .sms-audience-summary,.sms-filter-grid,.sms-delivery-options{grid-template-columns:1fr;}
  .sms-template-row{grid-template-columns:1fr;}
  .sms-template-row .btn{width:100%;}
  .sms-form-actions{align-items:stretch;flex-direction:column-reverse;}
  .sms-form-actions .btn{width:100%;}
  .sms-confirmation-grid{grid-template-columns:1fr;}
  .sms-confirmation-grid span{border-bottom:0;padding-bottom:3px;}
  .sms-confirmation-grid strong{padding-top:3px;}
  .sms-recipient-row{align-items:flex-start;flex-direction:column;gap:7px;}
}

/* V117 Advanced Bulk SMS operations centre */
.sms-campaign-details-card{grid-column:1/-1;}
.sms-campaign-details-grid{display:grid;grid-template-columns:minmax(0,1.5fr) minmax(220px,.8fr) minmax(170px,.55fr);gap:14px;align-items:start;}
.sms-campaign-details-grid .sms-field small{color:#64748b;font-size:11px;font-weight:500;line-height:1.4;}
.sms-inline-error{margin:14px 0 0;padding:10px 12px;border-radius:8px;background:#fef2f2;color:#b91c1c;font-size:12px;font-weight:700;}
.sms-audience-summary{grid-template-columns:repeat(5,minmax(0,1fr))!important;}
.sms-audience-summary>div{min-width:0;}
.sms-audience-summary>div strong{overflow:hidden;text-overflow:ellipsis;}
.sms-preview-recipients-btn{grid-column:1/-1!important;}
.sms-custom-source-panel{margin-top:14px;padding:15px;border:1px solid #dbe4f4;border-radius:10px;background:#fff;}
.sms-custom-source-panel[hidden]{display:none!important;}
.sms-custom-source-panel textarea{width:100%;min-height:135px;padding:12px;border:1px solid #d6dde8;border-radius:8px;background:#fff;color:#111827;font:inherit;line-height:1.5;resize:vertical;}
.sms-custom-source-panel input[type="file"]{height:auto!important;min-height:48px;padding:10px!important;}
.sms-manual-recipient-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;max-height:330px;margin-top:12px;padding:4px;overflow:auto;}
.sms-manual-recipient-row{display:flex!important;align-items:flex-start!important;flex-direction:row!important;gap:9px!important;padding:10px 11px!important;border:1px solid #e3e9f1!important;border-radius:9px!important;background:#fafcff!important;cursor:pointer!important;}
.sms-manual-recipient-row:has(input:checked){border-color:#2d5ae0!important;background:#f4f7ff!important;}
.sms-manual-recipient-row input{flex:0 0 auto;width:16px!important;height:16px!important;margin-top:2px!important;accent-color:#2d5ae0;}
.sms-manual-recipient-row span{display:flex;min-width:0;flex-direction:column;gap:2px;}
.sms-manual-recipient-row strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#1e293b;font-size:12px;}
.sms-manual-recipient-row small{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#64748b;font-size:10px;}
.sms-consent-note{margin:13px 0 0;padding:10px 12px;border-left:3px solid #0f766e;background:#f0fdfa;color:#115e59;font-size:12px;line-height:1.5;}
.sms-message-footer-tools{display:flex;align-items:center;gap:13px;flex-wrap:wrap;margin-top:12px;}
.sms-message-footer-tools .sms-preview-message-btn{margin-top:0;}
.sms-save-template-check{display:flex!important;align-items:center!important;flex-direction:row!important;gap:7px!important;color:#334155!important;font-size:12px!important;font-weight:650!important;}
.sms-save-template-check input{width:16px!important;height:16px!important;accent-color:#2d5ae0;}
.sms-template-name-field{flex:1 1 240px;max-width:390px;}
.sms-template-name-field[hidden]{display:none!important;}
.sms-records-summary{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:10px;margin:0 0 16px;}
.sms-records-summary>div{padding:13px 14px;border:1px solid #e4e9f0;border-radius:10px;background:#fff;}
.sms-records-summary strong{display:block;color:#0f172a;font-size:21px;line-height:1.1;}
.sms-records-summary span{display:block;margin-top:4px;color:#64748b;font-size:11px;}
.sms-delivery-progress{min-width:170px;}
.sms-delivery-progress-head{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:6px;color:#334155;font-size:11px;}
.sms-delivery-progress-track{height:7px;border-radius:999px;background:#e8edf4;overflow:hidden;}
.sms-delivery-progress-bar{height:100%;border-radius:inherit;background:currentColor;color:#2d5ae0;}
.sms-delivery-progress small{display:block;margin-top:5px;color:#64748b;font-size:10px;}
@media(max-width:1100px){
  .sms-campaign-details-grid{grid-template-columns:1fr 1fr;}
  .sms-campaign-details-grid .sms-field:first-child{grid-column:1/-1;}
  .sms-audience-summary{grid-template-columns:repeat(3,minmax(0,1fr))!important;}
  .sms-records-summary{grid-template-columns:repeat(3,minmax(0,1fr));}
}
@media(max-width:700px){
  .sms-campaign-details-grid,.sms-audience-summary,.sms-records-summary,.sms-manual-recipient-list{grid-template-columns:1fr!important;}
  .sms-campaign-details-grid .sms-field:first-child{grid-column:auto;}
  .sms-message-footer-tools{align-items:stretch;flex-direction:column;}
  .sms-template-name-field{max-width:none;width:100%;}
}
.sms-heading-actions{display:flex;align-items:center;justify-content:flex-end;gap:8px;flex-wrap:wrap;}
.sms-opt-out-form{display:grid;grid-template-columns:minmax(180px,.8fr) minmax(220px,1.2fr) auto;gap:10px;align-items:end;margin:18px 0;padding:14px;border:1px solid #e2e8f0;border-radius:10px;background:#f8fafc;}
.sms-opt-out-list{display:grid;gap:7px;max-height:310px;overflow:auto;}
.sms-opt-out-row{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:10px 12px;border:1px solid #e5eaf1;border-radius:9px;background:#fff;}
.sms-opt-out-row>span{display:flex;min-width:0;flex-direction:column;gap:3px;}
.sms-opt-out-row strong{color:#1e293b;font-size:13px;}
.sms-opt-out-row small{color:#64748b;font-size:10px;}
@media(max-width:700px){.sms-heading-actions{width:100%;align-items:stretch;flex-direction:column;}.sms-heading-actions .btn{width:100%;}.sms-opt-out-form{grid-template-columns:1fr;}.sms-opt-out-row{align-items:flex-start;flex-direction:column;}}
.sms-records-panel table{min-width:1480px!important;}
.sms-records-panel th[data-col="campaign_name"],.sms-records-panel td[data-col="campaign_name"]{min-width:190px;max-width:260px;}
.sms-records-panel th[data-col="delivery_progress"],.sms-records-panel td[data-col="delivery_progress"]{min-width:210px;}
.sms-records-panel th[data-col="created_by_name"],.sms-records-panel td[data-col="created_by_name"]{min-width:150px;}

/* V117 test-message workflow */
.sms-test-form{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;margin-top:16px}
.sms-test-form>.sms-field:first-of-type,.sms-test-preview,.sms-test-form>.sms-modal-actions{grid-column:1/-1}
.sms-test-preview{border:1px solid #d9e2ef;background:#f8fafc;border-radius:12px;padding:14px 16px}
.sms-test-preview strong{display:block;margin-bottom:7px;color:#26364d}
.sms-test-preview p{margin:0;white-space:pre-wrap;line-height:1.55;color:#334155}
@media (max-width:720px){.sms-test-form{grid-template-columns:1fr}.sms-test-form>*{grid-column:1!important}}

/* V120: advanced Reports & Analytics alignment, tables, filters and USD reporting */
.reports-v120-titlebar{margin-bottom:0!important;position:relative!important;z-index:2!important;background:#fff!important;}
.reports-v120-actions{position:relative!important;z-index:3!important;margin-top:0!important;padding-top:14px!important;background:#fff!important;}
.reports-v120-stats{position:relative!important;z-index:1!important;margin-top:4px!important;grid-template-columns:repeat(5,minmax(160px,1fr))!important;}
.reports-v120-stats .stat-card{min-height:118px!important;display:flex!important;flex-direction:column!important;justify-content:center!important;gap:4px!important;overflow:visible!important;}
.reports-v120-stats .stat-card span{font-size:11px!important;text-transform:uppercase!important;letter-spacing:.045em!important;}
.reports-v120-stats .stat-card strong{line-height:1.12!important;word-break:break-word!important;}
.reports-v120-stats .stat-card small{display:block;color:#7b8794;font-size:11px;line-height:1.35;}
.reports-v120-stats .stat-card.positive{border-top:3px solid #13a980!important;}
.reports-v120-stats .stat-card.negative{border-top:3px solid #d94b5c!important;}
.reports-tabs{display:flex;align-items:center;gap:4px;overflow-x:auto;background:#fff;border:1px solid #e2e9e6;border-radius:12px;padding:6px;margin:4px 0 18px;box-shadow:0 8px 24px rgba(15,23,42,.04);}
.reports-tabs a{display:inline-flex;align-items:center;justify-content:center;min-height:40px;padding:9px 15px;border-radius:8px;color:#65736f;text-decoration:none;font-size:12.5px;font-weight:750;white-space:nowrap;}
.reports-tabs a:hover{background:#f2faf7;color:#087c68;}
.reports-tabs a.active{background:#e5f9f3;color:#087c68;box-shadow:inset 0 0 0 1px #bfeadd;}
.reports-filter-chips{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin:-4px 0 16px;}
.reports-filter-chip{display:inline-flex;align-items:center;gap:7px;min-height:31px;padding:6px 10px;border-radius:999px;background:#ecfaf6;border:1px solid #c8eee3;color:#087c68;text-decoration:none;font-size:11.5px;font-weight:750;}
.reports-filter-chip span{font-size:17px;line-height:1;}
.reports-filter-chip.locked{background:#f3f5f7;border-color:#e0e5e8;color:#5c676d;}
.reports-filter-chip small{font-size:9px;text-transform:uppercase;letter-spacing:.05em;color:#84908d;}
.reports-clear-filters{font-size:11.5px;font-weight:750;color:#b4233c;text-decoration:none;margin-left:3px;}
.reports-v120-filter{grid-template-columns:repeat(2,minmax(0,1fr))!important;}
.reports-v120-filter .cms-filter-overlay-head,.reports-v120-filter .reports-filter-full,.reports-v120-filter .cms-filter-overlay-actions{grid-column:1/-1!important;}
.reports-v120-filter label small{display:block;color:#7b8794;font-size:10.5px;margin-top:5px;}
.reports-v120-filter .currency-input{margin-top:6px;}
.reports-overview-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px;margin-bottom:20px;}
.reports-chart-card{margin:0!important;min-height:310px;}
.reports-chart-card .panel-head strong{font-size:12px;color:#63716d;}
.report-bars{display:grid;gap:12px;}
.report-bars.compact{gap:10px;}
.report-bar-row{display:grid;grid-template-columns:minmax(90px,135px) minmax(120px,1fr) minmax(82px,auto);gap:11px;align-items:center;font-size:11.5px;}
.report-bar-row>span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#53605d;font-weight:700;}
.report-bar-row>strong{text-align:right;font-size:11.5px;color:#17211f;}
.report-bar-track{height:11px;background:#edf3f1;border-radius:999px;overflow:hidden;}
.report-bar-track i{height:100%;display:block;border-radius:999px;background:linear-gradient(90deg,#20bea0,#55d8b7);min-width:0;}
.report-status-summary{display:grid;gap:10px;}
.report-status-summary>div{display:flex;align-items:center;justify-content:space-between;gap:12px;border:1px solid #edf1f0;border-radius:10px;padding:11px 12px;}
.report-status-summary strong{font-size:20px;font-weight:600;}
.reports-empty-state{display:flex;min-height:170px;align-items:center;justify-content:center;text-align:center;color:#7c8784;background:#fafcfb;border:1px dashed #dce6e2;border-radius:12px;padding:20px;}
.reports-scope-panel{margin-bottom:20px!important;}
.reports-scope-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;}
.reports-scope-grid>div{background:#f8fbfa;border:1px solid #e5ece9;border-radius:10px;padding:13px;}
.reports-scope-grid small{display:block;color:#7c8884;font-size:10px;text-transform:uppercase;letter-spacing:.05em;margin-bottom:5px;}
.reports-scope-grid strong{font-size:12.5px;color:#24312e;}
.reports-records-panel{overflow:visible!important;}
.reports-records-panel .records-panel-head{align-items:center!important;}
.reports-records-panel .records-panel-head p{max-width:720px;}
.reports-adjustable-table{min-width:1180px!important;}
.reports-adjustable-table td small{display:block;color:#7b8794;font-size:10.5px;margin-top:3px;line-height:1.3;}
.reports-adjustable-table td.row-actions{min-width:74px!important;width:74px!important;overflow:visible!important;}
.reports-adjustable-table .row-menu{min-width:205px!important;}
.status-pill.info{background:#e8f3ff;color:#2461a7;}
.status-pill.muted-status{background:#f0f2f4;color:#66717a;}
.reports-share-cell{display:grid;gap:6px;min-width:130px;}
.reports-share-cell>span{font-size:11px;font-weight:750;}
.reports-share-cell>i{display:block;height:7px;background:#edf3f1;border-radius:999px;overflow:hidden;}
.reports-share-cell>i>b{display:block;height:100%;background:#20bea0;border-radius:999px;}
@media(max-width:1200px){.reports-v120-stats{grid-template-columns:repeat(3,minmax(160px,1fr))!important;}.reports-overview-grid{grid-template-columns:1fr;}.reports-scope-grid{grid-template-columns:repeat(2,minmax(0,1fr));}}
@media(max-width:700px){.reports-v120-stats{grid-template-columns:1fr!important;}.reports-v120-filter{grid-template-columns:1fr!important;}.reports-v120-filter>*{grid-column:1!important;}.reports-scope-grid{grid-template-columns:1fr;}.report-bar-row{grid-template-columns:88px minmax(90px,1fr);}.report-bar-row>strong{grid-column:2;text-align:left;margin-top:-7px;}.reports-tabs{justify-content:flex-start;}}
@media print{.reports-v120-actions,.reports-tabs,.reports-filter-chips,.cms-filter-overlay,.cms-filter-overlay-backdrop,.members-options,.reports-records-panel .search{display:none!important;}.reports-overview-grid{grid-template-columns:1fr 1fr!important;}.panel,.stat-card{box-shadow:none!important;break-inside:avoid;}.reports-v120-stats{grid-template-columns:repeat(5,1fr)!important;}}


/* V120.3: Reports header aligned with standard module pages.
   The duplicate in-content Reports & Analytics banner was removed so the
   page begins with the standard search/options toolbar, like Members,
   Visitors, Branches, Finance and other record pages. */
body.reports-page-mode .softlock-main{
  padding-top:78px!important;
}
body.reports-page-mode #mainContent.softlock-content{
  padding-top:8px!important;
}
body.reports-page-mode .reports-v120-actions{
  margin:0 0 12px!important;
  padding:0!important;
  background:transparent!important;
  border:0!important;
  box-shadow:none!important;
}
body.reports-page-mode .reports-v120-actions .members-toolbar-row.compact-toolbar{
  margin:0!important;
}
body.reports-page-mode .reports-v120-stats{
  margin-top:0!important;
  margin-bottom:20px!important;
}
@media(max-width:900px){
  body.reports-page-mode .softlock-main{padding-top:78px!important;}
  body.reports-page-mode #mainContent.softlock-content{padding-top:10px!important;}
}

/* ======================================================================
   V120.4 - UNIFIED 12PX CONTENT-TO-TOOLBAR GAP
   Members, Visitors, Branches, Ministry and Operations pages now use the
   same 12px vertical gap between the content container's top edge and the
   primary search/options toolbar, on desktop and responsive layouts.
   ====================================================================== */
:root{
  --cms-content-toolbar-top-gap:12px;
}

#mainContent.members-data-fixed-mode,
#mainContent.module-data-fixed-mode,
#mainContent.module-data-fixed-mode.program-form-expanded,
#mainContent.module-data-fixed-mode.service-form-expanded,
#mainContent.module-data-fixed-mode.proceeding-form-expanded,
#mainContent.module-data-fixed-mode.proceeding-type-form-expanded,
#mainContent.module-data-fixed-mode.attendance-form-expanded,
#mainContent.module-data-fixed-mode.finance-form-expanded{
  padding-top:var(--cms-content-toolbar-top-gap)!important;
}

/* ======================================================================
   V120.5 - STANDARD NOTES SEARCH WORKSPACE
   Notes Search now follows the same 12px toolbar-first layout, filtering,
   table controls and three-dot row actions as the other system modules.
   ====================================================================== */
body.notes-search-page-mode #mainContent.softlock-content{
  padding-top:var(--cms-content-toolbar-top-gap,12px)!important;
}
body.notes-search-page-mode .notes-search-actions{
  margin:0 0 12px!important;
  padding:0!important;
  border:0!important;
  background:transparent!important;
  box-shadow:none!important;
}
body.notes-search-page-mode .notes-toolbar-row{
  min-height:50px!important;
  margin:0!important;
  padding:0!important;
  align-items:center!important;
  gap:10px!important;
}
body.notes-search-page-mode .notes-main-search{
  flex:1 1 auto!important;
  width:auto!important;
  max-width:none!important;
  min-width:0!important;
  height:50px!important;
}
body.notes-search-page-mode .notes-main-search input{
  height:50px!important;
  font-size:13.5px!important;
}
body.notes-search-page-mode .notes-main-search>span{
  height:50px!important;
}
body.notes-search-page-mode .notes-toolbar-row .members-options{
  margin-left:auto!important;
}
body.notes-search-page-mode .notes-toolbar-row .members-options-trigger{
  width:50px!important;
  min-width:50px!important;
  height:50px!important;
  border-radius:9px!important;
}
.notes-filter-chips{
  display:flex!important;
  align-items:center!important;
  gap:8px!important;
  flex-wrap:wrap!important;
  margin:0 0 12px!important;
}
.notes-filter-chip{
  display:inline-flex!important;
  align-items:center!important;
  gap:7px!important;
  min-height:31px!important;
  padding:6px 10px!important;
  border:1px solid #c8eee3!important;
  border-radius:999px!important;
  background:#ecfaf6!important;
  color:#087c68!important;
  font-size:11.5px!important;
  font-weight:750!important;
  text-decoration:none!important;
}
.notes-filter-chip span{font-size:17px!important;line-height:1!important;}
.notes-filter-chip.locked{background:#f3f5f7!important;border-color:#e0e5e8!important;color:#5c676d!important;}
.notes-filter-chip small{font-size:9px!important;text-transform:uppercase!important;letter-spacing:.05em!important;color:#84908d!important;}
.notes-clear-filters{font-size:11.5px!important;font-weight:750!important;color:#b4233c!important;text-decoration:none!important;margin-left:3px!important;}
.notes-stats-grid{
  grid-template-columns:repeat(4,minmax(160px,1fr))!important;
  gap:14px!important;
  margin:0 0 16px!important;
}
.notes-stats-grid .note-stat{
  min-height:104px!important;
  display:flex!important;
  flex-direction:column!important;
  justify-content:center!important;
  gap:4px!important;
  overflow:visible!important;
}
.notes-stats-grid .note-stat span{
  font-size:11px!important;
  text-transform:uppercase!important;
  letter-spacing:.045em!important;
}
.notes-stats-grid .note-stat strong{
  font-size:28px!important;
  line-height:1.12!important;
  word-break:break-word!important;
}
.notes-stats-grid .note-stat small{display:block!important;color:#7b8794!important;font-size:11px!important;line-height:1.35!important;}
.notes-stats-grid .note-date-stat strong{font-size:17px!important;}
.notes-filter-overlay{grid-template-columns:repeat(4,minmax(0,1fr))!important;}
.notes-filter-overlay label small{display:block!important;margin-top:5px!important;color:#7b8794!important;font-size:10.5px!important;}
.notes-filter-actions{grid-column:1/-1!important;}
.notes-results-panel{
  margin:0!important;
  overflow:visible!important;
}
.notes-results-head{
  align-items:center!important;
  padding-bottom:12px!important;
}
.notes-results-head h3{margin:0 0 4px!important;}
.notes-results-head p{margin:0!important;font-size:11.5px!important;}
.notes-table-wrap{
  border:1px solid #e5ecea!important;
  border-radius:7px!important;
  background:#fff!important;
  overflow:auto!important;
}
.notes-adjustable-table{
  min-width:1180px!important;
  width:100%!important;
}
.notes-adjustable-table th[data-col="module"]{min-width:125px!important;}
.notes-adjustable-table th[data-col="record"]{min-width:150px!important;}
.notes-adjustable-table th[data-col="person"]{min-width:175px!important;}
.notes-adjustable-table th[data-col="note"]{min-width:340px!important;}
.notes-adjustable-table th[data-col="date"]{min-width:105px!important;}
.notes-adjustable-table th[data-col="created_by"]{min-width:135px!important;}
.notes-adjustable-table th[data-col="branch"]{min-width:145px!important;}
.notes-adjustable-table th[data-col="actions"]{min-width:76px!important;width:76px!important;}
.notes-adjustable-table td{vertical-align:top!important;}
.notes-adjustable-table td small{display:block!important;margin-top:4px!important;color:#7b8794!important;font-size:10.5px!important;line-height:1.3!important;}
.notes-adjustable-table .note-badge{
  display:inline-flex!important;
  align-items:center!important;
  min-height:26px!important;
  padding:5px 9px!important;
  border-radius:999px!important;
  background:#e9f8f3!important;
  color:#087c68!important;
  font-size:10.5px!important;
  font-weight:800!important;
  white-space:nowrap!important;
}
.notes-adjustable-table .note-visitors{background:#eef4ff!important;color:#315ea8!important;}
.notes-adjustable-table .note-programmes{background:#f6efff!important;color:#7251a7!important;}
.notes-adjustable-table .note-services{background:#fff3e6!important;color:#9c5b0c!important;}
.notes-adjustable-table .note-attendance{background:#eaf8ff!important;color:#16708f!important;}
.notes-adjustable-table .note-finance{background:#eff9ed!important;color:#397a2f!important;}
.notes-adjustable-table .note-equipment{background:#f2f3f5!important;color:#59636e!important;}
.notes-adjustable-table .note-bulk-sms{background:#fff0f5!important;color:#a23c65!important;}
.notes-record-link{color:#0b6f60!important;font-weight:750!important;text-decoration:none!important;}
.notes-record-link:hover{text-decoration:underline!important;}
.notes-preview-cell{
  max-width:470px!important;
  color:#334155!important;
  line-height:1.52!important;
  white-space:normal!important;
  overflow-wrap:anywhere!important;
}
.notes-preview-cell mark{padding:1px 2px!important;border-radius:3px!important;background:#fff1a8!important;color:inherit!important;}
.notes-branch-badge{
  display:inline-flex!important;
  align-items:center!important;
  min-height:25px!important;
  padding:4px 8px!important;
  border-radius:999px!important;
  background:#f3f6f5!important;
  color:#52605c!important;
  font-size:10.5px!important;
  font-weight:750!important;
  white-space:nowrap!important;
}
.notes-row-actions{min-width:76px!important;width:76px!important;overflow:visible!important;}
.notes-row-menu{min-width:225px!important;}
.notes-empty-cell{padding:0!important;}
.notes-empty-state{
  display:flex!important;
  min-height:235px!important;
  flex-direction:column!important;
  align-items:center!important;
  justify-content:center!important;
  gap:8px!important;
  padding:28px!important;
  text-align:center!important;
  background:#fbfcfc!important;
}
.notes-empty-state>span{display:grid!important;place-items:center!important;width:54px!important;height:54px!important;border-radius:50%!important;background:#edf8f5!important;color:#0b8b75!important;font-size:30px!important;}
.notes-empty-state h4{margin:4px 0 0!important;font-size:17px!important;color:#1d2a27!important;}
.notes-empty-state p{max-width:520px!important;margin:0 0 7px!important;color:#72807c!important;font-size:12.5px!important;line-height:1.5!important;}
.notes-help-panel{
  margin:16px 0 0!important;
  padding:0!important;
  overflow:hidden!important;
}
.notes-help-panel summary{
  display:flex!important;
  align-items:center!important;
  justify-content:space-between!important;
  min-height:50px!important;
  padding:14px 18px!important;
  color:#1d2a27!important;
  font-size:14px!important;
  font-weight:800!important;
  cursor:pointer!important;
  list-style:none!important;
}
.notes-help-panel summary::-webkit-details-marker{display:none!important;}
.notes-help-panel summary:after{content:"+"!important;font-size:20px!important;color:#60706b!important;}
.notes-help-panel[open] summary:after{content:"−"!important;}
.notes-help-content{padding:0 18px 16px!important;border-top:1px solid #edf1f0!important;}
.notes-help-content p{margin:13px 0 0!important;color:#6e7c78!important;font-size:12.5px!important;line-height:1.55!important;}
.cms-modal.notes-detail-modal{
  display:none!important;
  position:fixed!important;
  inset:0!important;
  z-index:13000!important;
  align-items:center!important;
  justify-content:center!important;
  padding:20px!important;
  background:rgba(15,23,42,.42)!important;
}
.cms-modal.notes-detail-modal.show{display:flex!important;}
.notes-detail-card{
  width:min(720px,calc(100vw - 30px))!important;
  max-height:calc(100vh - 40px)!important;
  display:flex!important;
  flex-direction:column!important;
  overflow:hidden!important;
  border:1px solid #dce5e4!important;
  border-radius:14px!important;
  background:#fff!important;
  box-shadow:0 28px 80px rgba(15,23,42,.28)!important;
}
.notes-detail-card .cms-modal-head{
  display:flex!important;
  align-items:flex-start!important;
  justify-content:space-between!important;
  gap:18px!important;
  padding:18px 20px 15px!important;
  border-bottom:1px solid #e7ecec!important;
}
.notes-detail-card .cms-modal-head h3{margin:0!important;font-size:19px!important;color:#10201e!important;}
.notes-detail-card .cms-modal-head p{margin:4px 0 0!important;font-size:11.5px!important;}
.notes-detail-card .cms-modal-close{
  width:38px!important;
  height:38px!important;
  display:grid!important;
  place-items:center!important;
  flex:0 0 38px!important;
  padding:0!important;
  border:1px solid #d7e1df!important;
  border-radius:9px!important;
  background:#fff!important;
  color:#18312d!important;
  font-size:25px!important;
  cursor:pointer!important;
}
.notes-detail-body{
  flex:1 1 auto!important;
  min-height:180px!important;
  overflow:auto!important;
  padding:20px!important;
  color:#334155!important;
  font-size:13px!important;
  line-height:1.65!important;
  white-space:pre-wrap!important;
  overflow-wrap:anywhere!important;
}
.notes-detail-card .cms-modal-actions{
  display:flex!important;
  justify-content:flex-end!important;
  gap:10px!important;
  padding:14px 20px 18px!important;
  border-top:1px solid #e7ecec!important;
}
body.cms-modal-open{overflow:hidden!important;}
@media(max-width:1050px){
  .notes-stats-grid{grid-template-columns:repeat(2,minmax(160px,1fr))!important;}
  .notes-filter-overlay{grid-template-columns:repeat(2,minmax(0,1fr))!important;}
}
@media(max-width:700px){
  body.notes-search-page-mode #mainContent.softlock-content{padding-top:12px!important;}
  .notes-stats-grid{grid-template-columns:1fr!important;}
  .notes-filter-overlay{grid-template-columns:1fr!important;}
  .notes-filter-overlay>*{grid-column:1!important;}
  .notes-results-head{align-items:flex-start!important;}
  .notes-detail-card .cms-modal-actions{flex-direction:column-reverse!important;}
  .notes-detail-card .cms-modal-actions>*{width:100%!important;}
}
@media print{
  body.notes-search-page-mode .notes-search-actions,
  body.notes-search-page-mode .notes-filter-chips,
  body.notes-search-page-mode .notes-stats-grid,
  body.notes-search-page-mode .notes-help-panel,
  body.notes-search-page-mode .row-actions,
  body.notes-search-page-mode .cms-filter-overlay,
  body.notes-search-page-mode .cms-filter-overlay-backdrop,
  body.notes-search-page-mode .notes-detail-modal{display:none!important;}
  body.notes-search-page-mode .notes-results-panel{box-shadow:none!important;border:0!important;}
  body.notes-search-page-mode .notes-table-wrap{overflow:visible!important;border:0!important;}
  body.notes-search-page-mode .notes-adjustable-table{min-width:0!important;}
}

/* ======================================================================
   V120.6 - NOTES SEARCH ICON ALIGNMENT
   Keep the magnifying-glass glyph centred both vertically and horizontally
   inside the shared 50px Notes Search field.
   ====================================================================== */
body.notes-search-page-mode .notes-main-search > span{
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  align-self:stretch!important;
  flex:0 0 20px!important;
  width:20px!important;
  height:100%!important;
  min-height:0!important;
  margin:0!important;
  padding:0!important;
  line-height:0!important;
}
body.notes-search-page-mode .notes-main-search > span > svg{
  display:block!important;
  width:17px!important;
  height:17px!important;
  margin:0!important;
  padding:0!important;
  flex:0 0 17px!important;
  transform:none!important;
  vertical-align:middle!important;
}


/* V121 Advanced Users, Roles & Settings administration hub */
body.users-page-mode #mainContent.softlock-content{padding-top:12px!important;}
.admin-hub{display:block;min-width:0;}
.admin-flash{margin:0 0 12px!important;}
.admin-toolbar{display:grid;grid-template-columns:minmax(260px,1fr) 58px;gap:10px;align-items:center;margin:0 0 12px;position:relative;z-index:12;}
.admin-search-shell{height:52px;border:1px solid #d7e0e8;background:#fff;border-radius:10px;display:flex;align-items:center;position:relative;overflow:hidden;}
.admin-search-shell svg{width:21px;height:21px;fill:#64748b;position:absolute;left:18px;top:50%;transform:translateY(-50%);pointer-events:none;}
.admin-search-shell input{width:100%;height:100%;border:0!important;outline:0;background:transparent;padding:0 18px 0 52px;font-size:16px;color:#17211f;box-shadow:none!important;}
.admin-toolbar-menu-wrap{position:relative!important;display:block!important;width:58px!important;min-width:58px!important;overflow:visible!important;}
.admin-toolbar-menu-wrap .records-menu-button{width:58px;height:52px;border:1px solid #d7e0e8;border-radius:10px;background:#fff;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px;cursor:pointer;}
.admin-toolbar-menu-wrap .records-menu-button span{width:25px;height:2px;background:#10213a;border-radius:999px;display:block;}
.admin-toolbar-menu{right:0!important;top:58px!important;min-width:230px!important;}
.admin-toolbar-menu button{white-space:nowrap;}
.admin-tabs{display:flex;gap:6px;align-items:center;overflow-x:auto;background:#fff;border:1px solid #dfe7ee;border-radius:12px;padding:7px;margin:0 0 12px;scrollbar-width:thin;}
.admin-tabs button{height:42px;border:0;background:transparent;color:#526070;border-radius:8px;padding:0 17px;font-weight:700;white-space:nowrap;cursor:pointer;}
.admin-tabs button.active{background:#e8faf6;color:#007d6b;box-shadow:inset 0 0 0 1px #b9eade;}
.admin-tab-panel{display:none;}
.admin-tab-panel.active{display:block;}
.admin-form-panel[hidden]{display:none!important;}
.admin-form-panel{scroll-margin-top:100px;border-color:#bce9df;}
.admin-summary-grid{display:grid;grid-template-columns:repeat(5,minmax(150px,1fr));gap:12px;margin-bottom:12px;}
.admin-summary-grid article{background:#fff;border:1px solid #dfe7ee;border-radius:10px;padding:17px 18px;min-height:92px;display:flex;flex-direction:column;justify-content:center;}
.admin-summary-grid span{color:#687588;font-size:13px;text-transform:uppercase;font-weight:700;letter-spacing:.025em;}
.admin-summary-grid strong{font-size:30px;line-height:1.2;margin-top:6px;color:#0f1d33;}
.admin-table-heading{align-items:center!important;}
.admin-filter-row{display:flex;gap:10px;flex-wrap:wrap;margin:-2px 0 16px;}
.admin-filter-row select{height:44px;border:1px solid #dce3ea;border-radius:7px;background:#fff;padding:0 34px 0 13px;min-width:170px;color:#1f2937;}
.admin-count-badge{display:inline-flex;align-items:center;border-radius:999px;background:#eef4f8;color:#526070;padding:5px 10px;font-size:12px;font-weight:700;white-space:nowrap;}
.admin-current-label,.admin-warning-text{display:block;margin-top:5px;font-size:11px;font-weight:700;color:#008f79;}
.admin-warning-text{color:#b45309;}
.admin-data-table td{vertical-align:middle;}
.admin-data-table .row-menu form{margin:0;}
.admin-data-table .row-menu a,.admin-data-table .row-menu button,.admin-toolbar-menu button{display:block;width:100%;text-align:left;border:0;background:transparent;padding:10px 13px;color:#263244;text-decoration:none;font:inherit;cursor:pointer;border-radius:6px;}
.admin-data-table .row-menu a:hover,.admin-data-table .row-menu button:hover,.admin-toolbar-menu button:hover{background:#f1f6f8;}
.admin-data-table .row-menu .danger-link,.admin-toolbar-menu .danger-link{color:#b42318;}
.admin-check-card{display:flex!important;flex-direction:row!important;align-items:flex-start!important;gap:11px!important;padding:13px 14px;border:1px solid #dfe7ee;border-radius:8px;background:#f8fbfc;font-weight:400!important;}
.admin-check-card input{width:18px!important;height:18px!important;min-width:18px;margin-top:2px;padding:0!important;}
.admin-check-card span{display:flex;flex-direction:column;gap:2px;}
.admin-check-card strong{font-size:14px;color:#17211f;}
.admin-check-card small{font-size:12px;color:#6b7788;line-height:1.35;}
.password-field-wrap{display:grid;grid-template-columns:1fr auto;border:1px solid #dce3ea;border-radius:6px;overflow:hidden;background:#fff;}
.password-field-wrap input{border:0!important;border-radius:0!important;min-width:0;}
.password-field-wrap button{border:0;border-left:1px solid #e5ebf0;background:#f7fafb;padding:0 14px;font-weight:700;color:#526070;cursor:pointer;}
.password-tools{display:flex;align-items:center;gap:14px;flex-wrap:wrap;color:#687588;font-size:13px;}
.admin-security-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px;}
.security-form{display:grid;gap:13px;}
.security-form label{display:flex;flex-direction:column;gap:7px;font-weight:700;color:#182230;}
.security-form input,.security-form select,.security-form textarea,.soft-grid-form textarea{width:100%;border:1px solid #dce3ea;border-radius:6px;background:#fff;color:#111827;font-size:15px;padding:12px 14px;min-height:46px;}
.admin-small-modal{width:min(560px,96vw)!important;}
.permission-toolbar{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin:22px 0 0;}
.permission-toolbar input{height:44px;border:1px solid #dce3ea;border-radius:7px;padding:0 13px;flex:1;min-width:220px;}
.admin-settings-form .role-card{margin-bottom:12px;}
.admin-sticky-actions{position:sticky;bottom:12px;z-index:20;display:flex;justify-content:flex-end;background:rgba(255,255,255,.92);backdrop-filter:blur(8px);border:1px solid #dfe7ee;border-radius:10px;padding:10px;box-shadow:0 10px 28px rgba(15,23,42,.12);margin-bottom:12px;}
.admin-audit-details{max-width:460px;white-space:normal;line-height:1.4;}
.role-card{margin-bottom:12px;}
.user-menu-note{display:block;padding:9px 13px;color:#7c8795;font-size:12px;}
@media(max-width:1180px){.admin-summary-grid{grid-template-columns:repeat(3,minmax(150px,1fr));}.soft-grid-form{grid-template-columns:repeat(2,minmax(180px,1fr));}}
@media(max-width:820px){body.users-page-mode #mainContent.softlock-content{padding-top:12px!important;}.admin-toolbar{grid-template-columns:minmax(0,1fr) 54px;}.admin-toolbar-menu-wrap,.admin-toolbar-menu-wrap .records-menu-button{width:54px!important;min-width:54px!important;}.admin-summary-grid{grid-template-columns:1fr 1fr;}.admin-security-grid{grid-template-columns:1fr;}.admin-filter-row select,.admin-filter-row .soft-btn{width:100%;}.admin-tabs button{padding:0 13px;}.admin-table-heading{align-items:flex-start!important;}.role-card{padding:16px;}}
@media(max-width:560px){.admin-summary-grid{grid-template-columns:1fr;}.soft-grid-form{grid-template-columns:1fr;}.admin-search-shell input{font-size:14px;padding-left:46px;}.admin-search-shell svg{left:15px;}.admin-tabs{border-radius:9px;}.admin-toolbar{gap:7px;}}
.admin-system-role-note{margin:8px 0 0;padding:11px 13px;border:1px solid #b9eade;border-radius:8px;background:#effcf8;color:#087c68;font-size:13px;font-weight:700;line-height:1.45;}
.admin-logo-field{display:grid;grid-template-columns:88px minmax(240px,1fr) minmax(250px,1fr);gap:14px;align-items:center;padding:14px;border:1px solid #dfe7ee;border-radius:10px;background:#f8fbfc;}
.admin-logo-preview{width:76px;height:76px;border:1px solid #d9e3e8;border-radius:12px;background:#fff;display:grid;place-items:center;overflow:hidden;}
.admin-logo-preview img{display:block;max-width:64px;max-height:64px;object-fit:contain;}
.admin-logo-field>label:not(.admin-check-card){display:flex;flex-direction:column;gap:7px;font-weight:700;}
.admin-logo-field input[type=file]{width:100%;min-height:46px;padding:9px;border:1px solid #dce3ea;border-radius:7px;background:#fff;}
.admin-logo-field small{font-size:12px;color:#6b7788;font-weight:400;}
.admin-logo-remove{margin:0!important;}
@media(max-width:760px){.admin-logo-field{grid-template-columns:76px 1fr}.admin-logo-remove{grid-column:1/-1;}}

/* V122 searchable Security & Audit log management */
.admin-audit-card{overflow:visible;}
.admin-audit-filter-form{display:grid;grid-template-columns:minmax(210px,1.2fr) minmax(150px,.7fr) minmax(150px,.7fr) minmax(190px,.9fr) minmax(260px,1.4fr) auto;gap:10px;align-items:end;padding:14px;border:1px solid #dfe7ee;border-radius:10px;background:#f8fbfc;margin:0 0 12px;}
.admin-audit-filter-form label{display:flex;flex-direction:column;gap:7px;font-size:13px;font-weight:700;color:#263244;min-width:0;}
.admin-audit-filter-form input,.admin-audit-filter-form select{width:100%;height:44px;border:1px solid #d7e0e8;border-radius:7px;background:#fff;color:#17211f;padding:0 12px;font:inherit;font-weight:400;outline:0;}
.admin-audit-filter-form input:focus,.admin-audit-filter-form select:focus{border-color:#16bfa3;box-shadow:0 0 0 3px rgba(22,191,163,.12);}
.admin-audit-filter-actions{display:flex;align-items:center;gap:8px;white-space:nowrap;}
.admin-audit-filter-actions .soft-btn{height:44px;display:inline-flex;align-items:center;justify-content:center;text-decoration:none;margin:0;}
.admin-filter-chips{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin:0 0 12px;}
.admin-filter-chips button{display:inline-flex;align-items:center;gap:7px;border:1px solid #b9eade;border-radius:999px;background:#effcf8;color:#087c68;padding:7px 11px;font-size:12px;font-weight:700;cursor:pointer;}
.admin-filter-chips button:hover{background:#dff8f1;}
.admin-filter-chips button span{font-size:16px;line-height:1;}
.admin-audit-results-meta{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:0 1px 10px;color:#667385;font-size:13px;}
.admin-audit-results-meta strong{font-size:16px;color:#182230;}
.admin-audit-table-wrap{overflow:auto;max-height:620px;}
.admin-audit-table{min-width:1240px;}
.admin-audit-table th{position:sticky;top:0;z-index:2;background:#f4f6f8;}
.admin-audit-date{white-space:nowrap;font-variant-numeric:tabular-nums;}
.admin-audit-operator{display:flex;flex-direction:column;gap:3px;min-width:190px;}
.admin-audit-operator strong{font-size:14px;color:#17211f;}
.admin-audit-operator small{font-size:12px;color:#778395;font-weight:400;}
.admin-audit-details{min-width:260px;max-width:420px;}
.admin-audit-details>span{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;line-height:1.4;word-break:break-word;}
.audit-log-modal-card{width:min(680px,96vw)!important;}
.audit-log-detail-grid{display:grid;grid-template-columns:130px minmax(0,1fr);gap:0;margin:0 0 20px;border:1px solid #dfe7ee;border-radius:10px;overflow:hidden;}
.audit-log-detail-grid dt,.audit-log-detail-grid dd{margin:0;padding:11px 13px;border-bottom:1px solid #e7edf2;}
.audit-log-detail-grid dt{background:#f7fafb;color:#526070;font-size:13px;font-weight:700;}
.audit-log-detail-grid dd{background:#fff;color:#17211f;word-break:break-word;}
.audit-log-detail-grid dt:nth-last-of-type(1),.audit-log-detail-grid dd:last-child{border-bottom:0;}
.audit-log-modal-details{white-space:pre-wrap;line-height:1.5;max-height:240px;overflow:auto;}
@media(max-width:1320px){.admin-audit-filter-form{grid-template-columns:repeat(3,minmax(180px,1fr));}.admin-audit-keyword{grid-column:span 2;}.admin-audit-filter-actions{justify-content:flex-end;}}
@media(max-width:820px){.admin-audit-filter-form{grid-template-columns:1fr 1fr;}.admin-audit-keyword{grid-column:1/-1;}.admin-audit-filter-actions{grid-column:1/-1;justify-content:stretch;}.admin-audit-filter-actions .soft-btn{flex:1;}.admin-audit-results-meta{align-items:flex-start;flex-direction:column;gap:4px;}.admin-audit-table-wrap{max-height:none;}}
@media(max-width:560px){.admin-audit-filter-form{grid-template-columns:1fr;}.admin-audit-keyword,.admin-audit-filter-actions{grid-column:auto;}.admin-audit-filter-actions{flex-direction:column;}.admin-audit-filter-actions .soft-btn{width:100%;}.audit-log-detail-grid{grid-template-columns:1fr;}.audit-log-detail-grid dt{border-bottom:0;padding-bottom:3px;}.audit-log-detail-grid dd{padding-top:4px;}}

/* ======================================================================
   V122.1 - REPORTS TOOLBAR HORIZONTAL ALIGNMENT
   Keep the Reports search/options toolbar on the same 28px desktop guide
   used by Members, Visitors, Branches, Ministry and Operations pages.
   ====================================================================== */
body.reports-page-mode #mainContent.softlock-content{
  padding-left:28px!important;
  padding-right:28px!important;
}
body.reports-page-mode .reports-v120-actions,
body.reports-page-mode .reports-v120-actions .module-toolbar-row{
  width:100%!important;
  max-width:none!important;
  margin-left:0!important;
  margin-right:0!important;
  box-sizing:border-box!important;
}
@media(max-width:900px){
  body.reports-page-mode #mainContent.softlock-content{
    padding-left:16px!important;
    padding-right:16px!important;
  }
}

/* ======================================================================
   V122.2 - REPORTS TOOLBAR VERTICAL ALIGNMENT
   Match the Reports toolbar's top spacing to Members and Visitors by using
   the shared 12px content-to-toolbar gap on desktop and responsive layouts.
   ====================================================================== */
body.reports-page-mode #mainContent.softlock-content{
  padding-top:var(--cms-content-toolbar-top-gap,12px)!important;
}
@media(max-width:900px){
  body.reports-page-mode #mainContent.softlock-content{
    padding-top:var(--cms-content-toolbar-top-gap,12px)!important;
  }
}

/* ======================================================================
   V122.3 - REPORTS SIDEBAR-DIVIDER CONTENT GUIDE
   The Reports toolbar now uses the sidebar's right-hand divider as its
   horizontal reference. The toolbar, summary cards, tabs and report panels
   all inherit one shared content gutter, with no nested Reports-only offset.
   ====================================================================== */
body.reports-page-mode #mainContent.softlock-content{
  box-sizing:border-box!important;
  width:100%!important;
  max-width:none!important;
  padding-top:var(--cms-content-toolbar-top-gap,12px)!important;
  padding-right:28px!important;
  padding-bottom:34px!important;
  padding-left:28px!important;
}
body.reports-page-mode .reports-v120-actions,
body.reports-page-mode .reports-v120-actions .module-toolbar-row,
body.reports-page-mode .reports-v120-actions .members-toolbar-row.compact-toolbar{
  width:100%!important;
  max-width:none!important;
  margin-left:0!important;
  margin-right:0!important;
  padding-left:0!important;
  padding-right:0!important;
  box-sizing:border-box!important;
}
body.reports-page-mode .reports-v120-actions .module-main-search{
  margin-left:0!important;
}
@media(max-width:900px){
  body.reports-page-mode #mainContent.softlock-content{
    padding-top:var(--cms-content-toolbar-top-gap,12px)!important;
    padding-right:16px!important;
    padding-left:16px!important;
  }
}

/* V123 Advanced operational dashboard */
body.dashboard-page-mode #mainContent.softlock-content{
  padding:12px 28px 28px!important;
  background:#f7f9fb!important;
}
.dashboard-command-bar{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:18px;
  min-height:72px;
  padding:14px 18px;
  margin:0 0 16px;
  background:#fff;
  border:1px solid #dce4e8;
  border-left:4px solid var(--cms-primary,#16c7a6);
  border-radius:12px;
  box-shadow:0 8px 22px rgba(19,42,37,.045);
}
.dashboard-greeting{display:grid;gap:4px;min-width:220px}
.dashboard-greeting strong{font-size:21px;line-height:1.2;color:#102421;letter-spacing:-.025em}
.dashboard-greeting span{font-size:13px;color:#71817d}
.dashboard-filter-form{display:flex;align-items:flex-end;justify-content:flex-end;gap:10px;flex-wrap:wrap}
.dashboard-control-field{display:grid;gap:5px;min-width:160px;font-size:11px;text-transform:uppercase;letter-spacing:.04em;color:#657570}
.dashboard-control-field select{height:42px;padding:8px 34px 8px 12px;border-radius:8px;background:#fff;color:#17312b;font-size:14px;font-weight:700}
.dashboard-plan-btn{height:42px;padding:0 18px;border:1px solid #9fded0;border-radius:8px;background:#fff;color:#007f69;font-weight:800;display:inline-flex;align-items:center;justify-content:center;white-space:nowrap}
.dashboard-plan-btn:hover{background:#effcf8;border-color:#58cdb4}
.dashboard-stats-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;margin:0 0 16px}
.dashboard-stat-card{min-height:154px;padding:19px 20px 17px;background:#fff;border:1px solid #dce4e8;border-radius:10px;box-shadow:0 8px 24px rgba(19,42,37,.04);position:relative;overflow:hidden;display:flex;flex-direction:column;transition:transform .16s,box-shadow .16s,border-color .16s}
.dashboard-stat-card:before{content:"";position:absolute;left:0;top:0;width:100%;height:3px;background:#16c7a6}
.dashboard-stat-card:hover{transform:translateY(-2px);border-color:#9edfd1;box-shadow:0 14px 30px rgba(19,42,37,.09)}
.dashboard-stat-card.dashboard-stat-attention:before{background:#f59e0b}
.dashboard-stat-label{font-size:12px;font-weight:800;letter-spacing:.04em;text-transform:uppercase;color:#667773}
.dashboard-stat-card strong{margin:10px 0 5px;font-size:32px;line-height:1;color:#102421;letter-spacing:-.04em}
.dashboard-stat-card small{font-size:12.5px;color:#80908c;min-height:20px}
.dashboard-trend{margin-top:auto;padding-top:10px;font-size:12px;font-style:normal;font-weight:750;color:#657570}
.dashboard-trend.up{color:#07875f}.dashboard-trend.down{color:#c64a4a}.dashboard-trend.neutral{color:#71817d}
.dashboard-insights-grid,.dashboard-operations-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;margin:0 0 16px}
.dashboard-chart-card,.dashboard-panel{background:#fff;border:1px solid #dce4e8;border-radius:10px;box-shadow:0 8px 24px rgba(19,42,37,.04);padding:20px}
.dashboard-section-head{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;padding-bottom:14px;border-bottom:1px solid #e8edee}
.dashboard-section-head h2{margin:0;color:#102421;font-size:18px;letter-spacing:-.025em}
.dashboard-section-head p{margin:4px 0 0;color:#7c8c88;font-size:12.5px}
.dashboard-section-head>a{color:#00836d;font-size:12.5px;font-weight:800;white-space:nowrap}
.dashboard-bar-chart{height:190px;display:grid;grid-template-columns:repeat(6,minmax(34px,1fr));align-items:end;gap:12px;padding:24px 4px 0}
.dashboard-bar-item{height:100%;display:grid;grid-template-rows:22px 1fr 22px;align-items:end;text-align:center;min-width:0}
.dashboard-bar-item>span{font-size:11px;color:#667773;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.dashboard-bar-item>i{height:130px;display:flex;align-items:flex-end;justify-content:center;border-bottom:1px solid #dbe5e2;background:linear-gradient(to top,rgba(22,199,166,.035),transparent);border-radius:6px 6px 0 0;overflow:hidden}
.dashboard-bar-item>i>b{display:block;width:min(34px,70%);min-height:3px;border-radius:6px 6px 0 0;background:linear-gradient(180deg,#27d8b6,#079b7f)}
.dashboard-income-chart .dashboard-bar-item>i>b{background:linear-gradient(180deg,#30b7ef,#2476d5)}
.dashboard-bar-item>small{padding-top:7px;color:#73827e;font-size:11px;font-weight:800}
.dashboard-alert-list{display:grid;margin-top:8px}
.dashboard-alert-list>a{display:grid;grid-template-columns:42px 1fr 18px;align-items:center;gap:12px;padding:13px 3px;border-bottom:1px solid #edf1f2}
.dashboard-alert-list>a:last-child{border-bottom:0}
.dashboard-alert-list>a:hover strong{color:#00836d}
.dashboard-alert-icon{width:38px;height:38px;border-radius:10px;background:#e9faf5;color:#00836d;display:grid;place-items:center;font-size:10px;font-weight:900}
.dashboard-alert-list strong,.dashboard-activity-item strong{display:block;color:#18302a;font-size:13px}
.dashboard-alert-list small,.dashboard-activity-item small{display:block;margin-top:3px;color:#7c8c88;font-size:11.5px}
.dashboard-alert-list>a>b{color:#8ca09a;font-size:20px}
.dashboard-activity-list{display:grid;margin-top:8px}
.dashboard-activity-item{display:grid;grid-template-columns:38px 1fr auto;align-items:center;gap:11px;padding:12px 2px;border-bottom:1px solid #edf1f2}
.dashboard-activity-item:last-child{border-bottom:0}
.dashboard-activity-item>span{width:34px;height:34px;border-radius:50%;display:grid;place-items:center;background:#f1f5f4;color:#54706a;font-size:10px;font-weight:900}
.dashboard-activity-item time{font-size:10.5px;color:#84938f;white-space:nowrap}
.dashboard-upcoming-panel{margin-bottom:0}
.dashboard-table-wrap{margin-top:14px;border:1px solid #dfe7e9;border-radius:9px;overflow:visible}
.dashboard-services-table{min-width:850px}
.dashboard-services-table th{font-size:11px;padding:12px 14px}
.dashboard-services-table td{padding:13px 14px;font-size:12.5px;vertical-align:middle}
.dashboard-services-table td strong{display:block;color:#142a25;font-size:13px}
.dashboard-services-table td small{display:block;margin-top:3px;color:#81908d}
.dashboard-services-table .row-menu{z-index:120}
.dashboard-empty-state{min-height:220px;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;padding:28px;color:#71817d}
.dashboard-empty-state>span{width:46px;height:46px;border-radius:50%;display:grid;place-items:center;background:#e9faf5;color:#00836d;font-size:27px;margin-bottom:11px}
.dashboard-empty-state strong{color:#17312b;font-size:17px}.dashboard-empty-state p{margin:6px 0 16px;max-width:480px;font-size:13px;line-height:1.5}
.dashboard-empty-compact{padding:25px 8px;text-align:center}.dashboard-empty-compact strong{display:block;color:#17312b}.dashboard-empty-compact span{display:block;margin-top:4px;color:#80908c;font-size:12px}
@media(max-width:1180px){.dashboard-stats-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.dashboard-command-bar{align-items:flex-start}.dashboard-filter-form{justify-content:flex-start}}
@media(max-width:900px){body.dashboard-page-mode #mainContent.softlock-content{padding:12px 16px 24px!important}.dashboard-command-bar{display:block}.dashboard-filter-form{margin-top:14px}.dashboard-insights-grid,.dashboard-operations-grid{grid-template-columns:1fr}.dashboard-bar-chart{gap:7px}.dashboard-activity-item{grid-template-columns:38px 1fr}.dashboard-activity-item time{grid-column:2}}
@media(max-width:620px){.dashboard-stats-grid{grid-template-columns:1fr}.dashboard-filter-form{display:grid;grid-template-columns:1fr}.dashboard-control-field{min-width:0}.dashboard-plan-btn{width:100%}.dashboard-chart-card,.dashboard-panel{padding:16px}.dashboard-bar-chart{height:170px;gap:4px;padding-left:0;padding-right:0}.dashboard-bar-item>i{height:112px}.dashboard-bar-item>span{font-size:9px}.dashboard-section-head{display:block}.dashboard-section-head>a{display:inline-block;margin-top:8px}}

.dashboard-grid-full{grid-column:1/-1}

/* V124 / V125.4 - Advanced member and visitor profile.
   The oversized sticky "Member Details" strip was removed so it can no
   longer cover the identity area. Profile controls now use a compact row. */
body.member-detail-page-mode{
  --cms-fixed-header-total:78px;
}
body.member-detail-page-mode #mainContent.softlock-content{
  padding-top:10px!important;
}
.member-detail-page{
  padding:0 28px 32px!important;
  margin:0!important;
}
.member-passport-controls{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  min-height:44px;
  margin:0 0 8px;
}
.member-profile-back{
  min-height:40px!important;
  height:40px!important;
  padding:0 15px!important;
}
.profile-kebab-actions{margin-left:auto;min-width:44px;width:44px;display:flex;justify-content:flex-end;}
.profile-kebab-actions .kebab{border:1px solid #d8e2eb;background:#fff;width:44px;height:44px;font-size:27px;color:#10253f;}
.profile-kebab-actions .kebab:hover{border-color:#18b98f;background:#f4fffb;color:#058a68;}
.profile-kebab-actions .row-menu form{display:block;margin:0;}
.profile-kebab-actions .button-as-link{border:0;background:transparent;font-family:inherit;cursor:pointer;}
.member-passport-card{
  grid-template-columns:168px minmax(0,1fr)!important;
  gap:26px!important;
  padding:24px!important;
  border-radius:14px!important;
  box-shadow:0 8px 26px rgba(15,31,53,.055)!important;
}
.member-passport-photo{height:198px!important;background:linear-gradient(145deg,#effbf8,#edf3fa)!important;}
.member-passport-photo span{width:104px!important;height:104px!important;font-size:38px!important;letter-spacing:.04em;}
.member-passport-main{min-width:0;display:flex;flex-direction:column;justify-content:center;}
.member-identity-row{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;margin-bottom:20px;}
.member-eyebrow{margin:0 0 5px;color:#718096;font-size:13px;font-weight:800;letter-spacing:.045em;text-transform:uppercase;}
.member-passport-main h1{font-size:31px!important;line-height:1.15;color:#071b3d;overflow-wrap:anywhere;}
.member-profile-badges{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin-top:11px;}
.member-status-badge,.member-info-badge,.member-current-label{
  display:inline-flex;align-items:center;justify-content:center;
  min-height:28px;padding:5px 11px;border-radius:999px;
  font-size:12px;font-weight:800;line-height:1.2;
}
.member-status-badge{background:#e7faf3;color:#057a58;border:1px solid #c9f1e3;}
.member-status-badge.status-inactive,.member-status-badge.status-absent{background:#fff1f2;color:#c62542;border-color:#ffd4dc;}
.member-status-badge.status-new-member,.member-status-badge.status-pending,.member-status-badge.status-excused{background:#fff8e8;color:#9a5a00;border-color:#ffe6ad;}
.member-status-badge.status-late,.member-status-badge.status-left-early{background:#fff4e8;color:#a44d00;border-color:#ffd9b0;}
.member-info-badge{background:#f4f7fb;color:#41536b;border:1px solid #e1e7ef;}
.member-current-label{background:#e7faf3;color:#057a58;padding:4px 9px;min-height:24px;}
.member-profile-stats{display:grid;grid-template-columns:repeat(4,minmax(140px,1fr));gap:12px;}
.member-profile-stats>div{min-width:0;background:#f8fafc;border:1px solid #e8edf3;border-radius:11px;padding:13px 14px;}
.member-profile-stats small{display:block;color:#748296;font-size:12px;margin-bottom:5px;}
.member-profile-stats strong{display:block;color:#0c203d;font-size:18px;line-height:1.2;overflow-wrap:anywhere;}
.member-profile-stats span{display:block;color:#7c8999;font-size:11px;margin-top:5px;overflow-wrap:anywhere;}
.member-profile-tabs{
  display:flex;align-items:center;gap:6px;overflow-x:auto;
  margin:14px 0 0;padding:7px;background:#fff;border:1px solid #e1e7ee;border-radius:12px;
  scrollbar-width:thin;
}
.member-profile-tabs a{
  display:inline-flex;align-items:center;gap:7px;white-space:nowrap;
  min-height:40px;padding:9px 14px;border-radius:8px;
  color:#526174;text-decoration:none;font-size:13px;font-weight:800;
}
.member-profile-tabs a:hover{background:#f3faf7;color:#078463;}
.member-profile-tabs a.active{background:#e7faf3;color:#057a58;box-shadow:inset 0 0 0 1px #bdebdc;}
.member-profile-tabs a span{display:inline-grid;place-items:center;min-width:22px;height:22px;padding:0 6px;background:#fff;border:1px solid #dce6e2;border-radius:999px;font-size:11px;}
.member-profile-panel{display:none;}
.member-profile-panel.active{display:block;}
.member-detail-section-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;margin-top:14px;}
.member-detail-section-card{
  background:#fff;border:1px solid #e2e8ef;border-radius:13px;padding:19px 20px;
  box-shadow:0 5px 18px rgba(15,31,53,.035);
}
.member-detail-section-card h3{margin:0 0 14px;color:#0c203d;font-size:18px;}
.member-detail-list{margin:0;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 18px;}
.member-detail-list>div{min-width:0;padding:11px 0;border-bottom:1px solid #eef2f5;}
.member-detail-list>div:nth-last-child(-n+2){border-bottom:0;}
.member-detail-list dt{margin:0 0 4px;color:#7b8899;font-size:12px;line-height:1.35;}
.member-detail-list dd{margin:0;color:#12233c;font-size:14px;font-weight:700;line-height:1.45;overflow-wrap:anywhere;}
.member-detail-list .member-note-row{grid-column:1/-1;}
.member-notes-card .member-detail-list{grid-template-columns:1fr 1fr;}
.member-tab-section{margin-top:14px!important;padding:20px!important;}
.member-tab-section-head{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;margin-bottom:16px;padding-bottom:14px;border-bottom:1px solid #e8edf2;}
.member-tab-section-head h3{margin:0;color:#0b1d36;font-size:19px;}
.member-tab-section-head p{margin:5px 0 0;color:#7b8899;font-size:13px;}
.member-tab-section-head>strong{color:#087f60;font-size:20px;white-space:nowrap;}
.member-profile-table{width:100%;min-width:860px;border-collapse:collapse;background:#fff;font-size:13px;}
.member-profile-table th{padding:13px 14px;background:#f7f9fb;color:#42526a;text-align:left;font-size:11px;font-weight:850;text-transform:uppercase;letter-spacing:.035em;border-bottom:1px solid #dfe6ed;}
.member-profile-table td{padding:13px 14px;color:#28374c;border-bottom:1px solid #e8edf2;vertical-align:middle;}
.member-profile-table tbody tr:hover td{background:#fbfefc;}
.member-empty-state{text-align:center!important;padding:28px!important;color:#718096!important;}
.member-empty-state strong,.member-empty-state span{display:block;}
.member-empty-state strong{font-size:15px;color:#34445a;margin-bottom:5px;}
.member-empty-state span{font-size:13px;font-weight:400;}
.member-inline-action{display:inline-flex;align-items:center;min-height:31px;padding:6px 10px;border:1px solid #cae9df;border-radius:7px;color:#087f60;text-decoration:none;font-weight:750;}
.member-inline-action:hover{background:#effcf7;}
.member-finance-summary{display:grid;grid-template-columns:repeat(4,minmax(150px,1fr));gap:12px;margin-bottom:18px;}
.member-finance-summary.compact{grid-template-columns:repeat(3,minmax(150px,1fr));}
.member-finance-summary>div{background:#f8fafc;border:1px solid #e5ebf1;border-radius:10px;padding:14px;}
.member-finance-summary small,.member-finance-summary strong,.member-finance-summary span{display:block;}
.member-finance-summary small{color:#748296;font-size:12px;}
.member-finance-summary strong{margin:5px 0;color:#0c203d;font-size:20px;}
.member-finance-summary span{color:#7d8998;font-size:11px;}
.member-summary-empty{grid-column:1/-1;color:#748296!important;text-align:center;}
.member-subheading{margin:4px 0 10px;color:#26384f;font-size:15px;}
.member-transfer-form{display:grid;grid-template-columns:minmax(220px,1fr) minmax(220px,1fr) auto;gap:12px;align-items:end;margin-bottom:16px;}
.member-transfer-form label{color:#26384f;font-size:13px;font-weight:750;}
.member-transfer-form input,.member-transfer-form select{width:100%;height:46px;margin-top:6px;border:1px solid #d7e0e8;border-radius:8px;background:#fff;padding:0 12px;font:inherit;box-sizing:border-box;}
.member-transfer-form button{height:46px;white-space:nowrap;}
.member-transfer-form input:focus,.member-transfer-form select:focus{outline:0;border-color:#18b98f;box-shadow:0 0 0 3px rgba(24,185,143,.12);}
.member-permission-note{margin:12px 0;padding:12px 14px;border:1px solid #dbe7ee;border-radius:9px;background:#f7fafc;color:#657489;font-size:13px;}
.member-history-timeline{display:grid;gap:0;}
.member-history-timeline article{position:relative;display:grid;grid-template-columns:18px 1fr;gap:11px;padding:0 0 18px;}
.member-history-timeline article:not(:last-child)::before{content:"";position:absolute;left:6px;top:13px;bottom:0;width:2px;background:#dce9e4;}
.member-history-timeline .history-dot{position:relative;z-index:1;width:13px;height:13px;margin-top:3px;border-radius:50%;background:#22bd91;box-shadow:0 0 0 4px #e7faf3;}
.member-history-timeline .history-dot.audit{background:#426fa8;box-shadow:0 0 0 4px #edf4fb;}
.member-history-timeline strong,.member-history-timeline small,.member-history-timeline p{display:block;}
.member-history-timeline strong{color:#12233c;font-size:14px;}
.member-history-timeline small{margin:3px 0 5px;color:#7b8899;font-size:11px;}
.member-history-timeline p{margin:0;color:#526174;font-size:13px;line-height:1.45;}

@media(max-width:1120px){
  .member-profile-stats{grid-template-columns:repeat(2,minmax(140px,1fr));}
  .member-finance-summary{grid-template-columns:repeat(2,minmax(150px,1fr));}
  .member-transfer-form{grid-template-columns:1fr 1fr;}
  .member-transfer-form button{grid-column:1/-1;width:max-content;min-width:180px;}
}
@media(max-width:820px){
  .member-detail-page{padding:12px 16px 28px!important;}
  .member-passport-controls{align-items:center;}
  .profile-kebab-actions{margin-left:auto;}
  .member-passport-controls>.outline-action{width:auto!important;}
  .member-passport-card{grid-template-columns:1fr!important;}
  .member-passport-photo{height:180px!important;max-width:240px;width:100%;}
  .member-detail-section-grid{grid-template-columns:1fr;}
  .member-detail-list{grid-template-columns:1fr 1fr;}
}
@media(max-width:560px){
  .member-passport-card{padding:18px!important;}
  .member-passport-main h1{font-size:25px!important;}
  .member-profile-stats,.member-detail-list,.member-notes-card .member-detail-list,.member-finance-summary,.member-finance-summary.compact{grid-template-columns:1fr;}
  .member-detail-list>div{border-bottom:1px solid #eef2f5!important;}
  .member-detail-list>div:last-child{border-bottom:0!important;}
  .member-transfer-form{grid-template-columns:1fr;}
  .member-transfer-form button{grid-column:auto;width:100%;}
  .member-tab-section{padding:15px!important;}
  .member-tab-section-head{display:block;}
  .member-tab-section-head>strong{display:block;margin-top:9px;}
}
@media print{
  .member-detail-page{padding:0!important;}
  .member-passport-controls,.member-profile-tabs,.profile-kebab-actions,.floating-help,.chat-widget{display:none!important;}
  .member-profile-panel{display:none!important;}
  .member-profile-panel[data-profile-panel="overview"]{display:block!important;}
  .member-passport-card,.member-detail-section-card{box-shadow:none!important;break-inside:avoid;}
  .member-detail-section-grid{grid-template-columns:1fr 1fr!important;}
}

/* ======================================================================
   V125 - COMPACT BULK SMS CAMPAIGN WORKSPACE
   Toolbar-first records view, full-width builder steps, recipient review,
   and a sticky review/action bar for long campaign forms.
   ====================================================================== */
#mainContent.module-data-fixed-mode .module-sms-page{
  width:100%!important;
  min-width:0!important;
}
#mainContent.module-data-fixed-mode .module-sms-page .module-actions-shell{
  margin:0 0 8px!important;
}
#mainContent.module-data-fixed-mode .module-sms-page .module-toolbar-row{
  min-height:50px!important;
  margin:0 0 8px!important;
  gap:10px!important;
}
#mainContent.module-data-fixed-mode .module-sms-page .module-toolbar-row .module-main-search{
  flex:1 1 auto!important;
  width:auto!important;
  max-width:none!important;
  min-width:0!important;
  height:50px!important;
}
#mainContent.module-data-fixed-mode .module-sms-page .module-toolbar-row .module-main-search input{
  height:50px!important;
  min-width:0!important;
  font-size:13.5px!important;
}
#mainContent.module-data-fixed-mode .module-sms-page .members-options-trigger{
  width:50px!important;
  min-width:50px!important;
  height:50px!important;
}

body.module-data-fixed-mode.sms-form-expanded{
  overflow-y:auto!important;
  overflow-x:hidden!important;
}
#mainContent.module-data-fixed-mode.sms-form-expanded{
  height:auto!important;
  min-height:calc(100vh - var(--cms-fixed-header-total))!important;
  overflow:visible!important;
  padding-top:var(--cms-content-toolbar-top-gap,12px)!important;
  padding-bottom:28px!important;
}
#mainContent.module-data-fixed-mode.sms-form-expanded .module-fixed-page{
  height:auto!important;
  max-height:none!important;
  overflow:visible!important;
}
#mainContent.module-data-fixed-mode.sms-form-expanded .module-fixed-shell{
  overflow:visible!important;
}
#mainContent.module-data-fixed-mode.sms-form-expanded .sms-campaign-form-panel{
  margin:0 0 12px!important;
  overflow:visible!important;
}
#mainContent.module-data-fixed-mode.sms-form-expanded .module-records-panel{
  flex:0 0 auto!important;
  min-height:430px!important;
  overflow:visible!important;
}
#mainContent.module-data-fixed-mode.sms-form-expanded .module-records-panel .table-wrap,
#mainContent.module-data-fixed-mode.sms-form-expanded .module-records-panel .table-wrap.cms-fixed-data-scroll{
  height:auto!important;
  min-height:320px!important;
  max-height:600px!important;
  overflow:auto!important;
}

.sms-campaign-form-panel{
  padding:20px 24px!important;
}
.sms-campaign-form-panel>.panel-head{
  align-items:flex-start!important;
  margin-bottom:14px!important;
  padding-bottom:14px!important;
}
.sms-campaign-form-panel>.panel-head h3{
  font-size:23px!important;
  font-weight:650!important;
  letter-spacing:-.025em!important;
}
.sms-campaign-form-panel>.panel-head p{
  margin:5px 0 0!important;
  max-width:900px!important;
  font-size:12.5px!important;
}
.grid-form.sms-campaign-form{
  display:grid!important;
  grid-template-columns:minmax(0,1fr)!important;
  gap:14px!important;
  align-items:start!important;
}
.grid-form.sms-campaign-form>.sms-builder-card,
.sms-campaign-details-card,
.sms-audience-card,
.sms-message-card,
.sms-delivery-card,
.sms-form-actions{
  grid-column:1!important;
  width:100%!important;
  min-width:0!important;
}
.sms-builder-card{
  height:auto!important;
  padding:18px!important;
  border-radius:12px!important;
  box-shadow:0 3px 14px rgba(15,23,42,.035)!important;
}
.sms-builder-heading{
  margin-bottom:14px!important;
}
.sms-builder-heading h4{
  font-size:16px!important;
}
.sms-builder-heading p{
  margin-top:3px!important;
  font-size:12px!important;
}
.sms-campaign-details-grid{
  grid-template-columns:minmax(0,1.45fr) minmax(210px,.8fr) minmax(150px,.45fr)!important;
  gap:12px!important;
}
.sms-message-field textarea{
  min-height:150px!important;
}
.sms-audience-summary{
  margin-top:12px!important;
}
.sms-preview-recipients-btn{
  justify-self:start!important;
  width:auto!important;
  min-width:170px!important;
}
.sms-delivery-options{
  max-width:920px!important;
}
.sms-schedule-field{
  max-width:520px!important;
}
.sms-form-actions{
  position:sticky!important;
  bottom:0!important;
  z-index:120!important;
  display:flex!important;
  align-items:center!important;
  justify-content:flex-end!important;
  gap:10px!important;
  margin:0 -24px -20px!important;
  padding:13px 24px 15px!important;
  border-top:1px solid #dfe6ef!important;
  border-radius:0 0 10px 10px!important;
  background:rgba(255,255,255,.96)!important;
  box-shadow:0 -12px 28px rgba(15,23,42,.08)!important;
  backdrop-filter:blur(10px)!important;
}
.sms-form-actions .btn{
  min-width:132px!important;
}
.sms-records-panel .records-panel-head{
  padding-bottom:8px!important;
}
.sms-records-summary{
  margin:0 0 12px!important;
}
.sms-records-summary>div{
  min-height:76px!important;
  padding:12px 14px!important;
}
.sms-records-summary strong{
  font-size:20px!important;
}
.sms-records-summary span{
  font-size:10.5px!important;
}

@media(max-width:1050px){
  .sms-campaign-details-grid{
    grid-template-columns:1fr 1fr!important;
  }
  .sms-campaign-details-grid .sms-field:first-child{
    grid-column:1/-1!important;
  }
}
@media(max-width:700px){
  .sms-campaign-form-panel{
    padding:16px!important;
  }
  .sms-campaign-details-grid{
    grid-template-columns:1fr!important;
  }
  .sms-campaign-details-grid .sms-field:first-child{
    grid-column:1!important;
  }
  .sms-builder-card{
    padding:15px!important;
  }
  .sms-form-actions{
    position:static!important;
    margin:0!important;
    padding:12px 0 0!important;
    border-top:1px solid #e5eaf1!important;
    border-radius:0!important;
    box-shadow:none!important;
    background:#fff!important;
  }
  .sms-preview-recipients-btn{
    width:100%!important;
  }
}

/* ======================================================================
   V125.1 - BULK SMS RECORDS VISIBILITY HOTFIX
   Guarantees the records workspace occupies the area below the toolbar
   whenever the campaign builder is collapsed.
   ====================================================================== */
#mainContent.module-data-fixed-mode .module-sms-page.sms-form-collapsed{
  display:grid!important;
  grid-template-rows:auto minmax(0,1fr)!important;
  grid-template-columns:minmax(0,1fr)!important;
  height:100%!important;
  min-height:0!important;
  overflow:hidden!important;
}
#mainContent.module-data-fixed-mode .module-sms-page.sms-form-collapsed>.module-fixed-shell{
  grid-row:1!important;
  grid-column:1!important;
  min-height:0!important;
}
#mainContent.module-data-fixed-mode .module-sms-page.sms-form-collapsed>.sms-records-panel{
  grid-row:2!important;
  grid-column:1!important;
  display:flex!important;
  visibility:visible!important;
  opacity:1!important;
  flex-direction:column!important;
  width:100%!important;
  height:auto!important;
  min-height:0!important;
  margin:4px 0 0!important;
  overflow:hidden!important;
}
#mainContent.module-data-fixed-mode .module-sms-page.sms-form-collapsed>.sms-records-panel .records-panel-head,
#mainContent.module-data-fixed-mode .module-sms-page.sms-form-collapsed>.sms-records-panel .sms-records-summary{
  flex:0 0 auto!important;
  display:flex!important;
  visibility:visible!important;
}
#mainContent.module-data-fixed-mode .module-sms-page.sms-form-collapsed>.sms-records-panel .sms-records-summary{
  display:grid!important;
}
#mainContent.module-data-fixed-mode .module-sms-page.sms-form-collapsed>.sms-records-panel .table-wrap{
  display:block!important;
  visibility:visible!important;
  flex:1 1 auto!important;
  width:100%!important;
  min-height:220px!important;
  max-height:none!important;
  overflow:auto!important;
}
.sms-adjustable-table{
  width:100%!important;
  min-width:1480px!important;
  border-collapse:collapse!important;
  table-layout:auto!important;
}
@media(max-width:900px){
  #mainContent.module-data-fixed-mode .module-sms-page.sms-form-collapsed{
    display:flex!important;
    height:auto!important;
    min-height:calc(100vh - var(--cms-fixed-header-total))!important;
    overflow:visible!important;
  }
  #mainContent.module-data-fixed-mode .module-sms-page.sms-form-collapsed>.sms-records-panel{
    min-height:430px!important;
    overflow:visible!important;
  }
  #mainContent.module-data-fixed-mode .module-sms-page.sms-form-collapsed>.sms-records-panel .table-wrap{
    min-height:320px!important;
    max-height:calc(100vh - 330px)!important;
  }
}

/* ======================================================================
   V125.3 - PEOPLE MANAGEMENT ICON REFRESH
   Uses the exact three-person silhouette extracted from the supplied
   reference while preserving the sidebar's current hover/active colours.
   ====================================================================== */
.people-management-image-icon{
  display:block;
  width:23px;
  height:20px;
  flex:0 0 auto;
  background-color:currentColor;
  -webkit-mask-image:url("people-management-icon.png?v=1253");
  mask-image:url("people-management-icon.png?v=1253");
  -webkit-mask-repeat:no-repeat;
  mask-repeat:no-repeat;
  -webkit-mask-position:center;
  mask-position:center;
  -webkit-mask-size:contain;
  mask-size:contain;
}


/* ======================================================================
   V125.4 - A4 PRINT DEFAULTS
   Standardises browser/PDF printing across reports and printable records.
   ====================================================================== */
@page{
  size:A4 portrait;
  margin:12mm;
}
@page cms-report{
  size:A4 landscape;
  margin:10mm;
}
@media print{
  html,body{background:#fff!important;}
  body.reports-page-mode{page:cms-report;}
  body.member-detail-page-mode #mainContent.softlock-content{padding:0!important;}
}

/* V125.5: enlarge only the church artwork inside the existing sidebar logo frame. */
.sidebar-profile-logo-wrap .sidebar-profile-logo{
  transform:scale(1.20)!important;
  transform-origin:center center!important;
}


/* ======================================================================
   V125.6 - MINIMAL WHITE APPLICATION HEADER
   Uses the active page name, keeps the account menu, and removes inactive
   tour/help/notification controls until those features are implemented.
   ====================================================================== */
body.cms-teal-theme{
  --cms-banner-height:0px;
  --cms-topbar-height:74px;
  --cms-fixed-header-total:74px;
}
.portal-banner{display:none!important;}
.softlock-topbar{
  min-height:74px!important;
  height:74px!important;
  top:0!important;
  padding:0 28px!important;
  color:#111827!important;
  background:#ffffff!important;
  border:0!important;
  border-bottom:1px solid #e5e7eb!important;
  box-shadow:0 3px 12px rgba(15,23,42,.055)!important;
  backdrop-filter:none!important;
}
.topbar-left{gap:12px!important;}
.page-heading{display:block!important;min-width:0!important;}
.page-heading .breadcrumb{display:none!important;}
.softlock-topbar h1{
  color:#111827!important;
  font-size:27px!important;
  line-height:1.15!important;
  font-weight:700!important;
  letter-spacing:-.035em!important;
}
.topbar-actions{margin-left:auto!important;gap:0!important;}
.softlock-account{margin-left:0!important;}
.account-trigger{
  min-height:54px!important;
  height:54px!important;
  gap:12px!important;
  padding:5px 0 5px 14px!important;
  color:#111827!important;
  background:transparent!important;
  border:0!important;
  border-radius:10px!important;
  box-shadow:none!important;
}
.account-trigger:hover,
.softlock-account.open .account-trigger{
  background:#f8fafc!important;
}
.account-copy{text-align:right!important;}
.account-copy strong,
.account-copy small{
  max-width:280px!important;
}
.account-copy strong{
  color:#111111!important;
  font-size:15px!important;
  line-height:1.15!important;
  font-weight:700!important;
}
.account-copy small{
  color:#1769c2!important;
  font-size:13px!important;
  line-height:1.15!important;
  font-weight:500!important;
  margin-top:4px!important;
}
.account-avatar{
  width:43px!important;
  height:43px!important;
  min-width:43px!important;
  color:#7b818b!important;
  background:#f1f2f4!important;
  border:1px solid #e1e4e8!important;
  font-size:15px!important;
  font-weight:800!important;
}
.account-caret{
  width:16px!important;
  height:16px!important;
  color:#64748b!important;
  margin-right:2px!important;
}
.account-caret svg{width:16px!important;height:16px!important;}
.account-menu{
  top:calc(100% + 6px)!important;
  min-width:190px!important;
  border-color:#e1e6eb!important;
  border-radius:10px!important;
  box-shadow:0 16px 38px rgba(15,23,42,.14)!important;
}
body.sidebar-collapsed .softlock-topbar .hamb,
.softlock-topbar .hamb{
  color:#111827!important;
}
body.sidebar-collapsed .hamb svg{fill:currentColor!important;}
@media(max-width:900px){
  body.cms-teal-theme{
    --cms-topbar-height:68px;
    --cms-fixed-header-total:68px;
  }
  .softlock-topbar{
    min-height:68px!important;
    height:68px!important;
    padding:0 16px!important;
  }
  .hamb{
    display:grid!important;
    width:38px!important;
    height:38px!important;
    min-width:38px!important;
    color:#111827!important;
    background:#f4f6f8!important;
    border:1px solid #e4e8ec!important;
  }
  .hamb:hover{background:#eceff3!important;color:#111827!important;}
  .softlock-topbar h1{font-size:21px!important;}
  .account-trigger{height:50px!important;min-height:50px!important;padding-left:8px!important;gap:8px!important;}
  .account-copy strong,.account-copy small{max-width:180px!important;}
  .account-copy strong{font-size:12.5px!important;}
  .account-copy small{font-size:11.5px!important;margin-top:2px!important;}
  .account-avatar{width:39px!important;height:39px!important;min-width:39px!important;}
  .account-caret{display:none!important;}
}
@media(max-width:620px){
  .softlock-topbar{padding:0 12px!important;}
  .topbar-left{gap:8px!important;}
  .softlock-topbar h1{font-size:18px!important;}
  .account-copy{display:none!important;}
  .account-trigger{padding:4px!important;}
}

/* ======================================================================
   V125.7 - CONSISTENT SIDEBAR HOVER & SELECTED STATES
   Applies the Dashboard navigation feedback to every main navigation icon.
   Hovering previews the accent colour; the current section keeps a solid
   accent icon and a soft highlighted row so selection remains obvious.
   ====================================================================== */
body.cms-teal-theme{
  --cms-nav-accent:var(--cms-brand-accent,#16c7a6);
  --cms-nav-accent-soft:#e5f8f3;
  --cms-nav-accent-border:#bfeadf;
}

/* Smooth, consistent feedback for links, accordion headings and icons. */
.inside-nav a,
.nav-group-trigger,
.inside-nav-icon,
.nav-chevron{
  transition:background-color .18s ease,color .18s ease,border-color .18s ease,box-shadow .18s ease,transform .18s ease!important;
}

/* Hover/focus preview: change the icon colour before navigation. */
.inside-nav a:hover,
.inside-nav a:focus-visible,
.nav-group-trigger:hover,
.nav-group-trigger:focus-visible{
  background:var(--cms-nav-accent-soft)!important;
  color:#071326!important;
  outline:none!important;
}
.inside-nav a:hover .inside-nav-icon,
.inside-nav a:focus-visible .inside-nav-icon,
.nav-group-trigger:hover .inside-nav-icon,
.nav-group-trigger:focus-visible .inside-nav-icon{
  background:#ffffff!important;
  color:var(--cms-nav-accent)!important;
  box-shadow:inset 0 0 0 1px var(--cms-nav-accent-border),0 4px 12px rgba(15,23,42,.06)!important;
  transform:translateY(-1px)!important;
}
.inside-nav a:hover .nav-chevron,
.inside-nav a:focus-visible .nav-chevron,
.nav-group-trigger:hover .nav-chevron,
.nav-group-trigger:focus-visible .nav-chevron{
  color:var(--cms-nav-accent)!important;
}

/* Persistent current-section state, including the parent group icon. */
.inside-nav a.active,
.nav-group.active-group>.nav-group-trigger,
.inside-nav a.active:hover,
.nav-group.active-group>.nav-group-trigger:hover{
  background:var(--cms-nav-accent-soft)!important;
  color:#071326!important;
  box-shadow:inset 0 0 0 1px var(--cms-nav-accent-border)!important;
}
.inside-nav a.active .inside-nav-icon,
.nav-group.active-group>.nav-group-trigger .inside-nav-icon,
.inside-nav a.active:hover .inside-nav-icon,
.nav-group.active-group>.nav-group-trigger:hover .inside-nav-icon{
  background:var(--cms-nav-accent)!important;
  color:#ffffff!important;
  box-shadow:0 6px 14px rgba(15,23,42,.12)!important;
  transform:none!important;
}
.nav-group.active-group>.nav-group-trigger .nav-chevron{
  color:var(--cms-nav-accent)!important;
}

/* Child routes retain the uncluttered layout while clearly showing selection. */
.inside-nav a.nav-child:hover,
.inside-nav a.nav-child:focus-visible{
  background:var(--cms-nav-accent-soft)!important;
  color:#075f53!important;
}
.inside-nav a.nav-child.active,
.inside-nav a.nav-child.active:hover{
  position:relative!important;
  background:var(--cms-nav-accent-soft)!important;
  color:#075f53!important;
  font-weight:750!important;
  box-shadow:inset 0 0 0 1px var(--cms-nav-accent-border)!important;
}
.inside-nav a.nav-child.active:before{
  content:""!important;
  display:block!important;
  position:absolute!important;
  left:42px!important;
  top:50%!important;
  width:7px!important;
  height:7px!important;
  border-radius:999px!important;
  background:var(--cms-nav-accent)!important;
  transform:translateY(-50%)!important;
}

/* Keep the selected state equally visible on touch-sized screens. */
@media(max-width:520px){
  .inside-nav a.nav-child.active:before{left:40px!important;}
}

/* ======================================================================
   V125.8 - DASHBOARD ICON HOVER COLOUR CONSISTENCY
   The Dashboard entry is an anchor, so a legacy rule forced its SVG fill
   to white on hover. Override that legacy fill only for the non-selected
   Dashboard hover/focus state so it matches the green icon treatment used
   by every other main navigation item. The selected Dashboard state keeps
   the standard white icon on the solid accent tile.
   ====================================================================== */
.nav-dashboard:not(.active):hover .inside-nav-icon svg,
.nav-dashboard:not(.active):focus-visible .inside-nav-icon svg{
  fill:currentColor!important;
}
.nav-dashboard.active .inside-nav-icon svg,
.nav-dashboard.active:hover .inside-nav-icon svg,
.nav-dashboard.active:focus-visible .inside-nav-icon svg{
  fill:#ffffff!important;
}

/* ======================================================================
   V125.9 - DASHBOARD ICON GREEN ON POINTER HOVER
   Dashboard now uses the same green hover treatment as the remaining
   navigation entries, even while Dashboard is the current active page.
   Its normal selected state remains unchanged when the pointer leaves.
   ====================================================================== */
.nav-dashboard:hover .inside-nav-icon,
.nav-dashboard:focus-visible .inside-nav-icon,
.nav-dashboard.active:hover .inside-nav-icon,
.nav-dashboard.active:focus-visible .inside-nav-icon{
  background:#ffffff!important;
  color:var(--cms-nav-accent)!important;
  box-shadow:inset 0 0 0 1px var(--cms-nav-accent-border),0 4px 12px rgba(15,23,42,.06)!important;
  transform:translateY(-1px)!important;
}
.nav-dashboard:hover .inside-nav-icon svg,
.nav-dashboard:focus-visible .inside-nav-icon svg,
.nav-dashboard.active:hover .inside-nav-icon svg,
.nav-dashboard.active:focus-visible .inside-nav-icon svg{
  fill:currentColor!important;
}


/* ======================================================================
   V125.10 - DASHBOARD SELECTION MATCHES PEOPLE MANAGEMENT
   Dashboard keeps the same persistent selected treatment as an active
   management group: soft accent row, solid accent icon tile and white icon.
   Only an unselected Dashboard uses the green hover-preview treatment.
   ====================================================================== */
.nav-dashboard.active,
.nav-dashboard.active:hover,
.nav-dashboard.active:focus-visible{
  background:var(--cms-nav-accent-soft)!important;
  color:#071326!important;
  box-shadow:inset 0 0 0 1px var(--cms-nav-accent-border)!important;
}
.nav-dashboard.active .inside-nav-icon,
.nav-dashboard.active:hover .inside-nav-icon,
.nav-dashboard.active:focus-visible .inside-nav-icon{
  background:var(--cms-nav-accent)!important;
  color:#ffffff!important;
  box-shadow:0 6px 14px rgba(15,23,42,.12)!important;
  transform:none!important;
}
.nav-dashboard.active .inside-nav-icon svg,
.nav-dashboard.active:hover .inside-nav-icon svg,
.nav-dashboard.active:focus-visible .inside-nav-icon svg{
  fill:currentColor!important;
}

/* ======================================================================
   V125.11 - TRANSPARENT HOUSE DASHBOARD ICON
   Uses the supplied house silhouette as a clean transparent mask. The icon
   inherits the existing Dashboard hover and selected-state colours.
   ====================================================================== */
.dashboard-image-icon{
  display:block;
  width:23px;
  height:22px;
  flex:0 0 auto;
  background-color:currentColor;
  -webkit-mask-image:url("dashboard-icon.png?v=12511");
  mask-image:url("dashboard-icon.png?v=12511");
  -webkit-mask-repeat:no-repeat;
  mask-repeat:no-repeat;
  -webkit-mask-position:center;
  mask-position:center;
  -webkit-mask-size:contain;
  mask-size:contain;
}


/* ======================================================================
   V125.12 - SUPER ADMIN SIDEBAR BRAND FIT CONTROLS
   The Super Admin can resize the sidebar church logo and church-name text.
   Values are stored in settings and applied through safe CSS variables.
   ====================================================================== */
.sidebar-profile-avatar{
  width:var(--cms-sidebar-logo-size,58px)!important;
  height:var(--cms-sidebar-logo-size,58px)!important;
  min-width:var(--cms-sidebar-logo-size,58px)!important;
}
.sidebar-profile-copy strong{
  max-width:calc(var(--ref-sidebar-width,338px) - var(--cms-sidebar-logo-size,58px) - 108px)!important;
  font-size:var(--cms-sidebar-name-size,22px)!important;
  line-height:.98!important;
}
.sidebar-profile-copy small{
  max-width:calc(var(--ref-sidebar-width,338px) - var(--cms-sidebar-logo-size,58px) - 100px)!important;
}
.inside-brand.sidebar-profile{
  min-height:120px!important;
  height:120px!important;
  flex-basis:120px!important;
}
.sidebar-brand-fit-control{
  border:1px solid #dfe7ee;
  border-radius:12px;
  background:#f8fbfc;
  padding:16px;
}
.sidebar-brand-fit-head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:16px;
  margin-bottom:14px;
}
.sidebar-brand-fit-head>div{display:flex;flex-direction:column;gap:4px;}
.sidebar-brand-fit-head strong{font-size:16px;color:#172033;}
.sidebar-brand-fit-head small{font-size:12px;line-height:1.45;color:#6b7788;font-weight:400;}
.admin-rights-badge{
  display:inline-flex;
  align-items:center;
  min-height:27px;
  padding:4px 10px;
  border:1px solid #bcefe3;
  border-radius:999px;
  background:#e9faf6;
  color:#008d79;
  font-size:11px;
  font-weight:800;
  white-space:nowrap;
}
.sidebar-brand-fit-grid{
  display:grid;
  grid-template-columns:minmax(300px,1.15fr) minmax(280px,.85fr);
  gap:18px;
  align-items:stretch;
}
.sidebar-brand-fit-preview{
  width:100%;
  min-height:132px;
  display:flex;
  align-items:flex-start;
  gap:14px;
  padding:16px 15px 16px 18px;
  border:1px solid #d9d9dc;
  border-radius:10px;
  background:#f6f6f7;
  box-shadow:0 5px 16px rgba(15,23,42,.06);
  overflow:hidden;
}
.sidebar-brand-fit-avatar{
  width:var(--preview-logo-size,58px);
  height:var(--preview-logo-size,58px);
  min-width:var(--preview-logo-size,58px);
  display:grid;
  place-items:center;
  padding:4px;
  background:#fff;
  overflow:hidden;
}
.sidebar-brand-fit-avatar img{display:block;width:100%;height:100%;object-fit:contain;transform:scale(1.20);transform-origin:center center;}
.sidebar-brand-fit-copy{min-width:0;flex:1 1 auto;padding-top:1px;}
.sidebar-brand-fit-copy strong{
  display:-webkit-box;
  max-width:calc(100% - 2px);
  color:#02060d;
  font-size:var(--preview-name-size,22px);
  line-height:.98;
  font-weight:800;
  letter-spacing:-.03em;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:normal;
  -webkit-line-clamp:2;
  -webkit-box-orient:vertical;
  word-break:normal;
}
.sidebar-brand-fit-copy small{
  display:block;
  margin-top:7px;
  color:#8c97aa;
  font-size:12px;
  line-height:1.18;
  font-weight:500;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.sidebar-brand-fit-chevron{font-size:34px;line-height:.8;color:#17191e;margin:7px 1px 0 4px;}
.sidebar-brand-fit-sliders{display:flex;flex-direction:column;gap:14px;}
.soft-grid-form label.sidebar-brand-fit-slider{gap:7px;}
.sidebar-brand-fit-slider>span{display:flex;align-items:center;justify-content:space-between;gap:12px;font-weight:700;}
.sidebar-brand-fit-slider output{color:#008d79;font-size:13px;font-weight:800;}
.sidebar-brand-fit-slider input[type="range"]{width:100%;height:auto;padding:0;border:0;border-radius:0;background:transparent;accent-color:#00b89c;cursor:pointer;}
.sidebar-brand-fit-slider small{font-size:11px;color:#7b8797;font-weight:500;}
.sidebar-brand-fit-reset{align-self:flex-start;min-height:40px;height:40px;}
@media(max-width:900px){
  .sidebar-brand-fit-grid{grid-template-columns:1fr;}
}
@media(max-width:560px){
  .sidebar-brand-fit-head{flex-direction:column;}
  .sidebar-brand-fit-preview{min-height:118px;padding:14px;}
  .sidebar-brand-fit-chevron{display:none;}
}

/* V125.13 Super Admin SMS platform integration and Bulk SMS gateway visibility */
.sms-integration-heading{align-items:flex-start;gap:16px}
.sms-integration-mode{display:inline-flex;align-items:center;justify-content:center;min-height:30px;padding:6px 11px;border-radius:999px;font-size:11px;font-weight:800;white-space:nowrap}
.sms-integration-mode.live{background:#dcfce7;color:#166534;border:1px solid #86efac}
.sms-integration-mode.test{background:#fef3c7;color:#92400e;border:1px solid #fcd34d}
.sms-integration-mode.disabled{background:#f1f5f9;color:#64748b;border:1px solid #cbd5e1}
.sms-integration-health-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin:0 0 16px}
.sms-integration-health-grid>div{min-width:0;padding:12px 13px;border:1px solid #e2e8f0;border-radius:10px;background:#f8fafc}
.sms-integration-health-grid span,.sms-integration-health-grid small{display:block;color:#64748b;font-size:10px;font-weight:650}
.sms-integration-health-grid strong{display:block;margin:4px 0 2px;overflow:hidden;text-overflow:ellipsis;color:#0f172a;font-size:12px}
.sms-integration-error{margin:0 0 14px;padding:10px 12px;border:1px solid #fecaca;border-radius:9px;background:#fef2f2;color:#b91c1c;font-size:12px;font-weight:700}
.sms-integration-form-grid label small{display:block;margin-top:5px;color:#64748b;font-size:10px;line-height:1.45}
.sms-integration-checks{grid-column:1/-1;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.sms-integration-security-note{margin:15px 0 0;padding:10px 12px;border-left:3px solid #0f766e;background:#f0fdfa;color:#115e59;font-size:11px;line-height:1.5}
.sms-integration-tools-card{margin-top:16px}
.sms-integration-tools-grid{display:grid;grid-template-columns:minmax(220px,.75fr) minmax(320px,1.25fr);gap:14px}
.sms-integration-test-box{display:flex;min-width:0;flex-direction:column;gap:10px;padding:15px;border:1px solid #e2e8f0;border-radius:11px;background:#f8fafc}
.sms-integration-test-box>strong{color:#0f172a;font-size:14px}
.sms-integration-test-box>p{margin:0;color:#64748b;font-size:11px;line-height:1.5}
.sms-integration-test-box label{display:flex;flex-direction:column;gap:5px;color:#334155;font-size:11px;font-weight:700}
.sms-integration-test-box input,.sms-integration-test-box textarea{width:100%;border:1px solid #d6dde8;border-radius:8px;background:#fff;padding:10px;font:inherit;color:#111827}
.sms-integration-test-box textarea{resize:vertical}
.sms-integration-test-box .soft-btn{align-self:flex-start}
.sms-gateway-toolbar-badge{display:inline-flex;align-items:center;gap:8px;min-width:145px;max-width:220px;height:38px;padding:6px 10px;border:1px solid #dbe3ec;border-radius:9px;background:#fff;text-decoration:none;color:#334155}
.sms-gateway-toolbar-badge:hover{border-color:#b8c5d6;background:#f8fafc}
.sms-gateway-toolbar-badge .sms-gateway-dot{width:9px;height:9px;flex:0 0 auto;border-radius:50%;background:#94a3b8;box-shadow:0 0 0 3px rgba(148,163,184,.14)}
.sms-gateway-toolbar-badge.live .sms-gateway-dot{background:#16a34a;box-shadow:0 0 0 3px rgba(22,163,74,.14)}
.sms-gateway-toolbar-badge.test .sms-gateway-dot{background:#d97706;box-shadow:0 0 0 3px rgba(217,119,6,.14)}
.sms-gateway-toolbar-badge>span:last-child{display:flex;min-width:0;flex-direction:column}
.sms-gateway-toolbar-badge strong,.sms-gateway-toolbar-badge small{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.sms-gateway-toolbar-badge strong{font-size:10px;line-height:1.2}
.sms-gateway-toolbar-badge small{color:#64748b;font-size:9px;line-height:1.2}
.sms-gateway-workspace-status{display:flex;align-items:center;justify-content:space-between;gap:14px;margin:0 0 12px;padding:11px 13px;border:1px solid #dbe4ee;border-radius:10px;background:#f8fafc}
.sms-gateway-workspace-status>div{display:flex;min-width:0;flex-direction:column;gap:2px}
.sms-gateway-workspace-status strong{color:#0f172a;font-size:12px}
.sms-gateway-workspace-status span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#64748b;font-size:10px}
.sms-gateway-workspace-status a{flex:0 0 auto;color:#0f766e;font-size:11px;font-weight:800;text-decoration:none}
.sms-gateway-workspace-status.configured{border-color:#bbf7d0;background:#f0fdf4}
.sms-gateway-workspace-status.not-configured{border-color:#fed7aa;background:#fff7ed}
.sms-gateway-workspace-status.not-configured strong{color:#9a3412}
.sms-audience-search-field{margin-bottom:9px}
.sms-schedule-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin-top:7px}
.sms-schedule-grid label{display:flex;min-width:0;flex-direction:column;gap:5px;color:#475569;font-size:10px;font-weight:750}
.sms-schedule-grid input{width:100%}
#sms_daily_limit_note{color:#64748b;font-weight:600}
@media(max-width:980px){.sms-integration-health-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.sms-integration-tools-grid{grid-template-columns:1fr}}
@media(max-width:700px){.sms-integration-health-grid,.sms-integration-checks,.sms-schedule-grid{grid-template-columns:1fr}.sms-gateway-toolbar-badge{min-width:0;max-width:165px}.sms-gateway-workspace-status{align-items:flex-start;flex-direction:column}.sms-integration-test-box .soft-btn{width:100%}}

/* V125.13 one-time SMS callback secret */
.sms-generated-secret{margin:14px 0;padding:14px 16px;border:1px solid rgba(217,119,6,.32);border-radius:14px;background:#fff8e8;color:#7c4a03}.sms-generated-secret strong{display:block;font-size:14px}.sms-generated-secret p{margin:5px 0 10px;font-size:12px;line-height:1.45}.sms-generated-secret input{width:100%;font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;font-size:12px;background:#fff;border:1px solid rgba(217,119,6,.35)}

/* V125.14 - keep SMS integration controls aligned from the top of each grid row */
.sms-integration-form-grid{
  align-items:start!important;
}
.sms-integration-form-grid > label{
  align-self:start!important;
  justify-content:flex-start;
  margin:0;
}
.sms-integration-form-grid > label > input,
.sms-integration-form-grid > label > select{
  flex:0 0 auto;
}


/* V125.15 - resilient Bulk SMS collapsed records workspace */
#mainContent.module-data-fixed-mode .module-sms-page.sms-form-collapsed{display:flex!important;flex-direction:column!important;height:100%!important;min-height:0!important;overflow:hidden!important}
#mainContent.module-data-fixed-mode .module-sms-page.sms-form-collapsed>.module-fixed-shell{flex:0 0 auto!important;width:100%!important;min-height:0!important}
#mainContent.module-data-fixed-mode .module-sms-page.sms-form-collapsed>.sms-records-panel{display:flex!important;visibility:visible!important;opacity:1!important;flex:1 1 auto!important;flex-direction:column!important;width:100%!important;min-height:320px!important;margin:4px 0 0!important;overflow:hidden!important}
#mainContent.module-data-fixed-mode .module-sms-page.sms-form-collapsed>.sms-records-panel>.records-panel-head{display:flex!important;visibility:visible!important;flex:0 0 auto!important}
#mainContent.module-data-fixed-mode .module-sms-page.sms-form-collapsed>.sms-records-panel>.sms-records-summary{display:grid!important;visibility:visible!important;flex:0 0 auto!important}
#mainContent.module-data-fixed-mode .module-sms-page.sms-form-collapsed>.sms-records-panel>.table-wrap{display:block!important;visibility:visible!important;flex:1 1 auto!important;width:100%!important;min-height:220px!important;overflow:auto!important}
@media(max-width:900px){#mainContent.module-data-fixed-mode .module-sms-page.sms-form-collapsed{height:auto!important;min-height:calc(100vh - var(--cms-fixed-header-total))!important;overflow:visible!important}#mainContent.module-data-fixed-mode .module-sms-page.sms-form-collapsed>.sms-records-panel{min-height:430px!important;overflow:visible!important}}

/* V125.16 - Bulk SMS action functionality and record filter panel */
.sms-module-filter .sms-filter-purpose-note{
  grid-column:1/-1!important;
  margin:0!important;
  padding:10px 12px!important;
  border:1px solid #dcebe7!important;
  border-radius:9px!important;
  background:#f5fbf9!important;
  color:#49635e!important;
  font-size:12px!important;
  line-height:1.45!important;
}
.sms-module-filter .sms-record-filter-actions{justify-content:flex-end!important;}
@media(max-width:700px){
  .sms-module-filter .sms-filter-purpose-note{grid-column:1!important;}
}

/* V128.5 real authenticator (TOTP) workflow */
.mfa-card-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;margin-bottom:18px}.mfa-card-heading h2{margin:8px 0 6px}.mfa-card-heading p{margin:0;color:#64748b}.mfa-status-badge{display:inline-flex;align-items:center;border-radius:999px;padding:5px 10px;font-size:12px;font-weight:800;letter-spacing:.03em;text-transform:uppercase}.mfa-status-badge.enabled{background:#dcfce7;color:#166534}.mfa-status-badge.disabled{background:#f1f5f9;color:#475569}.mfa-account-card{grid-column:1 / -1}.mfa-start-form,.mfa-confirm-form{max-width:620px}.mfa-setup-panel{border:1px solid #cbd5e1;border-radius:16px;padding:20px;background:#f8fafc}.mfa-setup-panel h3{margin-top:0}.mfa-setup-steps{padding-left:22px;line-height:1.65}.mfa-secret-box{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:15px 16px;border:1px dashed #16a085;border-radius:12px;background:#fff;margin:14px 0}.mfa-secret-box code{font-size:18px;font-weight:800;letter-spacing:.09em;word-break:break-all}.mfa-open-app{display:inline-flex;margin-bottom:10px}.mfa-inline-form{margin-top:12px}.mfa-action-panel{border:1px solid #dbe3ea;border-radius:12px;padding:0 16px;margin-top:12px;background:#fff}.mfa-action-panel summary{cursor:pointer;font-weight:800;padding:15px 0}.mfa-action-panel[open]{padding-bottom:16px}.mfa-action-panel p{color:#64748b}.mfa-action-panel.danger-panel{border-color:#fecaca}.mfa-enabled-copy{font-weight:700;color:#166534}.mfa-recovery-card{margin:0 0 22px}.mfa-recovery-grid{display:grid;grid-template-columns:repeat(5,minmax(110px,1fr));gap:10px}.mfa-recovery-grid code{display:block;text-align:center;padding:12px;border-radius:10px;background:#0f172a;color:#fff;font-size:16px;letter-spacing:.08em}.admin-mfa-state{display:block;margin-top:5px;font-size:11px;font-weight:700}.admin-mfa-state.enabled{color:#047857}.admin-mfa-state.disabled{color:#64748b}.mfa-admin-reset-card{border-top:4px solid #ef4444}.softlock-mfa-form .softlock-subtitle strong{display:inline}.softlock-code-field input{text-transform:uppercase;letter-spacing:.05em}.softlock-mfa-help{font-size:13px;line-height:1.5;color:#64748b;text-align:center;margin:16px 0 4px}.soft-btn.danger{background:#dc2626;color:#fff;border-color:#dc2626}.soft-btn.danger:hover{background:#b91c1c;border-color:#b91c1c}
@media(max-width:900px){.mfa-recovery-grid{grid-template-columns:repeat(2,minmax(120px,1fr))}.mfa-secret-box{align-items:flex-start;flex-direction:column}.mfa-card-heading{flex-direction:column}}
@media(max-width:560px){.mfa-recovery-grid{grid-template-columns:1fr}.mfa-secret-box code{font-size:15px}.mfa-account-card{grid-column:auto}}
/* ======================================================================
   V128.6 - RESTORE CHURCH GREEN ACCENT
   Restores the mint-green navigation and action treatment shown in the
   approved reference recording. This deliberately overrides a blue saved
   accent while preserving all application functionality and MFA styling.
   ====================================================================== */
:root{
  --cms-primary:#16c7a6!important;
  --cms-primary-dark:#0fa58c!important;
  --cms-primary-deep:#087d71!important;
  --cms-primary-soft:#e5f8f3!important;
  --cms-primary-softer:#f4fcfa!important;
  --church-green:#16c7a6!important;
  --church-green-dark:#0fa58c!important;
}

body.cms-teal-theme{
  --cms-brand-accent:#16c7a6!important;
  --cms-nav-accent:#16c7a6!important;
  --cms-nav-accent-soft:#e5f8f3!important;
  --cms-nav-accent-border:#bfeadf!important;
}

/* Main navigation: green hover and selected states. */
.inside-nav a:hover,
.inside-nav a:focus-visible,
.nav-group-trigger:hover,
.nav-group-trigger:focus-visible,
.inside-nav a.active,
.nav-group.active-group>.nav-group-trigger,
.inside-nav a.active:hover,
.nav-group.active-group>.nav-group-trigger:hover{
  background:var(--cms-nav-accent-soft)!important;
  color:#071326!important;
  border-color:var(--cms-nav-accent-border)!important;
}

.inside-nav a.active .inside-nav-icon,
.nav-group.active-group>.nav-group-trigger .inside-nav-icon,
.nav-dashboard.active .inside-nav-icon{
  background:var(--cms-nav-accent)!important;
  color:#fff!important;
}

.inside-nav a:hover .inside-nav-icon,
.inside-nav a:focus-visible .inside-nav-icon,
.nav-group-trigger:hover .inside-nav-icon,
.nav-group-trigger:focus-visible .inside-nav-icon{
  color:var(--cms-nav-accent)!important;
  border-color:var(--cms-nav-accent-border)!important;
}

.inside-nav a.nav-child.active,
.inside-nav a.nav-child:hover{
  background:var(--cms-nav-accent-soft)!important;
  color:#075f53!important;
}
.inside-nav a.nav-child.active:before{
  background:var(--cms-nav-accent)!important;
}

/* Primary actions and form focus use the same approved green. */
.btn.primary,
.primary,
.members-add-btn,
.method-action-btn,
.bulk-upload-inline,
.soft-btn.primary,
.soft-btn.create-role-btn,
.softlock-save-btn,
.softlock-add-device,
.softlock-button{
  background:var(--cms-primary)!important;
  border-color:var(--cms-primary)!important;
  color:#fff!important;
}

.btn.primary:hover,
.primary:hover,
.members-add-btn:hover,
.method-action-btn:hover,
.bulk-upload-inline:hover,
.soft-btn.primary:hover,
.soft-btn.create-role-btn:hover,
.softlock-save-btn:hover,
.softlock-add-device:hover,
.softlock-button:hover{
  background:var(--cms-primary-dark)!important;
  border-color:var(--cms-primary-dark)!important;
  color:#fff!important;
}

input:focus,
select:focus,
textarea:focus,
.input-icon:focus-within,
.softlock-field:focus-within{
  border-color:var(--cms-primary)!important;
  box-shadow:0 0 0 3px rgba(22,199,166,.14)!important;
}

.softlock-forgot,
.softlock-reset-link,
.softlock-back-link,
.panel-head a{
  color:var(--cms-primary-deep)!important;
}

.mfa-secret-box{
  border-color:var(--cms-primary)!important;
}
