/* SJCS Admission Admin Module — isolated styles */
.sjad-page{width:100%;padding:4px;box-sizing:border-box}
.sjad-card{background:#fff;border:1px solid #e5ebe8;border-radius:20px;padding:26px;box-shadow:0 10px 30px rgba(0,50,40,.06)}
.sjad-hero{position:relative;overflow:hidden;min-height:150px;height:150px;margin:0 0 20px;padding:30px 34px;border-radius:22px;display:flex;align-items:center;justify-content:space-between;gap:24px;background:linear-gradient(135deg,#063d2e,#07513d);color:#fff;box-shadow:0 18px 40px rgba(6,61,46,.16)}
.sjad-hero::before{content:"";position:absolute;width:300px;height:300px;right:-145px;bottom:-180px;border:1px solid rgba(255,255,255,.16);border-radius:50%;box-shadow:0 0 0 28px rgba(255,255,255,.025),0 0 0 58px rgba(255,255,255,.018);pointer-events:none}
.sjad-hero > div:first-child{position:relative;z-index:2;max-width:900px}
.sjad-eyebrow{display:block;color:#f4ce78;font-size:11px;line-height:1.4;font-weight:800;letter-spacing:.16em;margin-bottom:8px}
.sjad-hero h1{margin:0 0 6px;color:#fff;font-family:inherit;font-size:30px;line-height:1.15;font-weight:800}
.sjad-hero p{margin:0;color:rgba(255,255,255,.78);font-size:13px;line-height:1.55;max-width:900px}
.sjad-icon{width:70px;height:70px;min-width:70px;border:1px solid rgba(255,255,255,.2);border-radius:20px;display:grid;place-items:center;font-size:28px;color:#f0bd43;flex:none;position:relative;z-index:2;background:transparent}
.sjad-heading{margin-bottom:20px}.sjad-heading h2{margin:0 0 6px;font-size:20px;color:#075844}.sjad-heading p{margin:0;color:#66746f}
.sjad-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}.sjad-field{display:flex;flex-direction:column;gap:7px}.sjad-field.full{grid-column:1/-1}
.sjad-field label{font-size:13px;font-weight:800;color:#23433a}.sjad-field input,.sjad-field textarea{width:100%;box-sizing:border-box;border:1px solid #d8e2de;border-radius:11px;padding:12px 13px;font:inherit;background:#fbfdfc;outline:none}.sjad-field textarea{min-height:90px;resize:vertical}.sjad-field input:focus,.sjad-field textarea:focus{border-color:#087057;box-shadow:0 0 0 3px rgba(8,112,87,.09)}
.sjad-status-box{
  border:1px solid #d8e2de;
  border-radius:13px;
  padding:13px 15px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  min-height:56px;
  box-sizing:border-box;
}
.sjad-status-copy{
  font-size:13px;
  color:#66746f;
  line-height:1.4;
}
.sjad-status-box .sjad-switch{
  position:relative !important;
  display:block !important;
  width:52px !important;
  min-width:52px !important;
  max-width:52px !important;
  height:28px !important;
  min-height:28px !important;
  margin:0 !important;
  padding:0 !important;
  flex:0 0 52px !important;
  overflow:visible !important;
  box-sizing:border-box !important;
}
.sjad-status-box .sjad-switch input{
  position:absolute !important;
  left:0 !important;
  top:0 !important;
  width:52px !important;
  height:28px !important;
  margin:0 !important;
  padding:0 !important;
  opacity:0 !important;
  cursor:pointer !important;
  z-index:2 !important;
  appearance:none !important;
  -webkit-appearance:none !important;
}
.sjad-status-box .sjad-switch .sjad-track{
  position:absolute !important;
  inset:0 !important;
  display:block !important;
  width:52px !important;
  height:28px !important;
  margin:0 !important;
  padding:0 !important;
  border-radius:30px !important;
  background:#cbd6d2 !important;
  cursor:pointer !important;
  transition:background .2s ease !important;
  box-sizing:border-box !important;
}
.sjad-status-box .sjad-switch .sjad-track::before{
  content:"" !important;
  position:absolute !important;
  display:block !important;
  width:22px !important;
  height:22px !important;
  left:3px !important;
  top:3px !important;
  margin:0 !important;
  padding:0 !important;
  border-radius:50% !important;
  background:#fff !important;
  box-shadow:0 2px 5px rgba(0,0,0,.18) !important;
  transform:none !important;
  transition:transform .2s ease !important;
}
.sjad-status-box .sjad-switch input:checked + .sjad-track{
  background:#087057 !important;
}
.sjad-status-box .sjad-switch input:checked + .sjad-track::before{
  transform:translateX(24px) !important;
}
.sjad-preview{margin-top:22px;border-radius:15px;padding:20px;background:#f6f8f6;border:1px solid #e4ebe8}.sjad-preview-title{font-family:Georgia,serif;font-size:27px;color:#075844}.sjad-preview-status{font-size:27px;font-weight:800;color:#075844}.sjad-preview-session{font-size:19px;font-weight:800;margin-top:3px}.sjad-preview-message{font-family:Georgia,serif;font-style:italic;color:#49655d;margin-top:10px}.sjad-preview-classes{margin-top:13px;color:#31564b}.sjad-preview-link{display:inline-block;margin-top:15px;background:#dba523;color:#fff;padding:10px 17px;border-radius:20px;font-weight:800;text-decoration:none;font-size:13px}.sjad-actions{display:flex;justify-content:flex-end;gap:10px;margin-top:22px}.sjad-note{font-size:12px;color:#687872;margin-top:10px}.sjad-toast{position:fixed;right:24px;bottom:24px;background:#075844;color:#fff;padding:12px 18px;border-radius:10px;box-shadow:0 12px 30px rgba(0,0,0,.18);z-index:9999}.sjad-toast.error{background:#9d3027}
@media(max-width:760px){.sjad-grid{grid-template-columns:1fr}.sjad-field.full{grid-column:auto}.sjad-hero{padding:23px}.sjad-icon{display:none}.sjad-actions{justify-content:stretch}.sjad-actions button{flex:1}}

@media(max-width:820px){
  .sjad-page{padding:0}
  .sjad-hero{
    height:auto;
    min-height:150px;
    padding:28px 24px;
  }
}


/* Final isolation: render the Admission status control without any
   absolute positioning, so global admin switch/slider rules cannot move it. */
#sjcsAdmissionPage .sjad-status-box{
  display:flex !important;
  position:relative !important;
  align-items:center !important;
  justify-content:space-between !important;
  width:100% !important;
  min-height:56px !important;
  box-sizing:border-box !important;
  overflow:visible !important;
}

#sjcsAdmissionPage .sjad-status-box .sjad-switch{
  position:relative !important;
  display:flex !important;
  align-items:center !important;
  width:52px !important;
  min-width:52px !important;
  max-width:52px !important;
  height:28px !important;
  min-height:28px !important;
  max-height:28px !important;
  flex:0 0 52px !important;
  margin:0 !important;
  padding:0 !important;
  inset:auto !important;
  transform:none !important;
  overflow:visible !important;
}

#sjcsAdmissionPage .sjad-status-box .sjad-switch > input{
  display:none !important;
  position:absolute !important;
  width:1px !important;
  height:1px !important;
  opacity:0 !important;
}

#sjcsAdmissionPage .sjad-status-box .sjad-switch > .sjad-track{
  position:relative !important;
  inset:auto !important;
  display:block !important;
  flex:0 0 52px !important;
  width:52px !important;
  min-width:52px !important;
  max-width:52px !important;
  height:28px !important;
  min-height:28px !important;
  max-height:28px !important;
  margin:0 !important;
  padding:0 !important;
  border:0 !important;
  border-radius:999px !important;
  background:#cbd6d2 !important;
  transform:none !important;
  box-sizing:border-box !important;
  cursor:pointer !important;
}

#sjcsAdmissionPage .sjad-status-box .sjad-switch > .sjad-track::before{
  content:"" !important;
  position:absolute !important;
  display:block !important;
  left:3px !important;
  top:3px !important;
  width:22px !important;
  height:22px !important;
  margin:0 !important;
  padding:0 !important;
  border:0 !important;
  border-radius:50% !important;
  background:#fff !important;
  box-shadow:0 2px 5px rgba(0,0,0,.18) !important;
  transform:none !important;
  transition:transform .2s ease !important;
}

#sjcsAdmissionPage .sjad-status-box .sjad-switch > input:checked + .sjad-track{
  background:#087057 !important;
}

#sjcsAdmissionPage .sjad-status-box .sjad-switch > input:checked + .sjad-track::before{
  transform:translateX(24px) !important;
}


/* FINAL FIX: the toast must not render as an empty green pill.
   It is shown only while the JS adds the .show class. */
#sjcsAdmissionPage .sjad-toast{
  display:none !important;
}
#sjcsAdmissionPage .sjad-toast.show{
  display:block !important;
}


/* SJCS UNIFIED ADMIN HERO THEME — Leadership & Management reference */
.sjcs-leadership-hero, .sjad-hero, .sjac-hero, .sjfs-hero, .sjcb-hero, .ca-hero, .sj-ach-hero, .sjce-hero, .sj-gallery-hero, .sj-video-hero, .sjnb-hero, .sa-hero, .sjdb-hero, .sj-event-hero {
  min-height:140px !important;
  height:140px !important;
  box-sizing:border-box !important;
  padding:28px 30px !important;
  margin:0 0 18px !important;
  border-radius:18px !important;
  background:linear-gradient(135deg,#0f5132,#176b43) !important;
  color:#fff !important;
  box-shadow:0 12px 30px rgba(15,81,50,.14) !important;
  display:flex !important;
  align-items:center !important;
  justify-content:space-between !important;
  gap:20px !important;
  overflow:hidden !important;
}
.sjcs-leadership-hero h1, .sjad-hero h1, .sjac-hero h1, .sjfs-hero h1, .sjcb-hero h1, .ca-hero h1, .sj-ach-hero h1, .sjce-hero h1, .sj-gallery-hero h1, .sj-video-hero h1, .sjnb-hero h1, .sa-hero h1, .sjdb-hero h1, .sj-event-hero h1 {
  margin:0 0 6px !important;
  color:#fff !important;
  font-family:inherit !important;
  font-size:27px !important;
  line-height:1.15 !important;
  font-weight:800 !important;
  letter-spacing:-.4px !important;
  max-width:calc(100vw - 260px) !important;
}
.sjcs-eyebrow, .sjad-eyebrow, .sjac-kicker, .sjcb-eyebrow, .sjcb-kicker, .ca-eyebrow, .sj-ach-kicker, .sjce-eyebrow, .sj-gallery-eyebrow, .sjg-kicker, .sj-video-eyebrow, .sjnb-eyebrow, .sa-eyebrow, .sjdb-eyebrow {
  color:rgba(255,255,255,.78) !important;
  font-size:11px !important;
  line-height:1.4 !important;
  font-weight:800 !important;
  letter-spacing:1.5px !important;
  margin:0 0 7px !important;
}
.sjcs-leadership-hero p, .sjad-hero p, .sjac-hero p, .sjfs-hero p, .sjcb-hero p, .ca-hero p, .sj-ach-hero p, .sjce-hero p, .sj-gallery-hero p, .sj-video-hero p, .sjnb-hero p, .sa-hero p, .sjdb-hero p, .sj-event-hero p {
  margin:0 !important;
  color:rgba(255,255,255,.86) !important;
  font-family:inherit !important;
  font-size:14px !important;
  line-height:1.35 !important;
  max-width:900px !important;
}
.sjcs-leadership-hero > div:first-child, .sjad-hero > div:first-child, .sjac-hero > div:first-child, .sjfs-hero > div:first-child, .sjcb-hero-copy, .ca-hero > div:first-child, .sj-ach-hero > div:first-child, .sjce-hero-copy, .sj-gallery-hero > div:first-child, .sj-video-hero > div:first-child, .sjnb-hero-content, .sa-hero-content, .sjdb-hero-content, .sj-event-hero > div:first-child {
  min-width:0 !important;
  max-width:calc(100% - 100px) !important;
}
.sjcs-leadership-hero .sjcs-primary-btn, .sjad-hero button, .sjac-hero button, .sjfs-hero button, .sjcb-hero button, .ca-hero button, .sj-ach-hero .sj-ach-btn, .sjce-hero button, .sj-gallery-hero .sjg-btn-primary, .sj-video-hero .svg-btn-gold, .sjnb-hero button, .sa-hero button, .sjdb-hero .sjdb-hero-btn.primary, .sj-event-hero button {
  flex:0 0 auto !important;
}
@media(max-width:760px){
  .sjcs-leadership-hero, .sjad-hero, .sjac-hero, .sjfs-hero, .sjcb-hero, .ca-hero, .sj-ach-hero, .sjce-hero, .sj-gallery-hero, .sj-video-hero, .sjnb-hero, .sa-hero, .sjdb-hero, .sj-event-hero {height:140px !important;min-height:140px !important;padding:22px !important;}
  .sjcs-leadership-hero h1, .sjad-hero h1, .sjac-hero h1, .sjfs-hero h1, .sjcb-hero h1, .ca-hero h1, .sj-ach-hero h1, .sjce-hero h1, .sj-gallery-hero h1, .sj-video-hero h1, .sjnb-hero h1, .sa-hero h1, .sjdb-hero h1, .sj-event-hero h1 {font-size:23px !important;max-width:calc(100% - 20px) !important;}
}

/* ================================================================
   SJCS ADMISSION — LEADERSHIP & MANAGEMENT MASTER THEME
   CSS ONLY. Existing Admission functionality remains unchanged.
   ================================================================ */

body:has(#sjcsAdmissionPage) .main .content{
  width:100% !important;
  max-width:none !important;
  margin:0 !important;
  padding:19px 20px 28px !important;
  box-sizing:border-box !important;
}

body:has(#sjcsAdmissionPage) #sjcsAdmissionPage{
  width:100% !important;
  max-width:none !important;
  margin:0 !important;
  padding:0 0 30px !important;
  box-sizing:border-box !important;
}

body:has(#sjcsAdmissionPage) #sjcsAdmissionPage .sjad-page{
  width:100% !important;
  max-width:none !important;
  margin:0 !important;
  padding:0 !important;
  box-sizing:border-box !important;
}

body:has(#sjcsAdmissionPage) #sjcsAdmissionPage .sjad-hero{
  width:100% !important;
  min-height:140px !important;
  height:140px !important;
  box-sizing:border-box !important;
  padding:28px 30px !important;
  margin:0 0 18px !important;
  border-radius:18px !important;
  background:linear-gradient(135deg,#0f5132,#176b43) !important;
  color:#fff !important;
  box-shadow:0 12px 30px rgba(15,81,50,.14) !important;
  display:flex !important;
  align-items:center !important;
  justify-content:space-between !important;
  gap:20px !important;
  overflow:hidden !important;
}

body:has(#sjcsAdmissionPage) #sjcsAdmissionPage .sjad-hero > div:first-child{
  min-width:0 !important;
  max-width:calc(100% - 100px) !important;
  position:relative !important;
  z-index:2 !important;
}

body:has(#sjcsAdmissionPage) #sjcsAdmissionPage .sjad-eyebrow{
  display:block !important;
  color:rgba(255,255,255,.78) !important;
  font-size:11px !important;
  line-height:1.4 !important;
  font-weight:800 !important;
  letter-spacing:1.5px !important;
  margin:0 0 7px !important;
}

body:has(#sjcsAdmissionPage) #sjcsAdmissionPage .sjad-hero h1{
  margin:0 0 6px !important;
  color:#fff !important;
  font-family:inherit !important;
  font-size:27px !important;
  line-height:1.15 !important;
  font-weight:800 !important;
  letter-spacing:-.4px !important;
}

body:has(#sjcsAdmissionPage) #sjcsAdmissionPage .sjad-hero p{
  margin:0 !important;
  color:rgba(255,255,255,.86) !important;
  font-family:inherit !important;
  font-size:14px !important;
  line-height:1.35 !important;
  max-width:900px !important;
}

body:has(#sjcsAdmissionPage) #sjcsAdmissionPage .sjad-icon{
  width:52px !important;
  height:52px !important;
  min-width:52px !important;
  border:1px solid rgba(255,255,255,.20) !important;
  border-radius:12px !important;
  display:grid !important;
  place-items:center !important;
  color:#f0bd43 !important;
  font-size:23px !important;
  flex:none !important;
  position:relative !important;
  z-index:2 !important;
  background:rgba(255,255,255,.04) !important;
}

body:has(#sjcsAdmissionPage) #sjcsAdmissionPage .sjad-hero::before{
  display:none !important;
}

@media(max-width:760px){
  body:has(#sjcsAdmissionPage) .main .content{
    padding:19px 20px 28px !important;
  }
  body:has(#sjcsAdmissionPage) #sjcsAdmissionPage .sjad-hero{
    height:140px !important;
    min-height:140px !important;
    padding:22px !important;
  }
  body:has(#sjcsAdmissionPage) #sjcsAdmissionPage .sjad-hero h1{
    font-size:23px !important;
  }
}
