@import url("https://fonts.googleapis.com/css2?family=Abel&display=swap");
.sj-portal{--sj-border:#d9dee7;--sj-bg:#f6f7f9;--sj-text:#17202a;--sj-muted:#667085;--sj-dark:#17202a;font-family:system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:var(--sj-text);margin:24px auto;padding:0 16px;box-sizing:border-box}.sj-portal *{box-sizing:border-box}.sj-header{display:flex;justify-content:space-between;align-items:center;gap:16px;padding:20px 22px;background:#fff;border:1px solid var(--sj-border);border-radius:14px;margin-bottom:14px}.sj-brand{font-size:13px;font-weight:700;text-transform:uppercase;letter-spacing:.08em}.sj-header h1{font-size:26px;line-height:1.2;margin:4px 0}.sj-header small{color:var(--sj-muted)}.sj-logout,.sj-button{display:inline-flex;align-items:center;justify-content:center;border:0;border-radius:9px;padding:10px 15px;background:var(--sj-dark);color:#fff!important;text-decoration:none!important;font-weight:650;cursor:pointer}.sj-nav{display:flex;gap:6px;overflow-x:auto;padding:6px 0 14px;white-space:nowrap}.sj-nav a{padding:9px 12px;border-radius:8px;text-decoration:none;color:var(--sj-text);background:#fff;border:1px solid var(--sj-border)}.sj-nav a.active{background:var(--sj-dark);color:#fff;border-color:var(--sj-dark)}.sj-cards{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin:0 0 14px}.sj-card,.sj-panel,.sj-login-card{background:#fff;border:1px solid var(--sj-border);border-radius:14px;padding:18px}.sj-card span{display:block;color:var(--sj-muted);font-size:13px;margin-bottom:7px}.sj-card strong{font-size:22px}.sj-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.sj-panel{margin-bottom:14px}.sj-panel h2{margin:0 0 14px;font-size:20px}.sj-table-wrap{overflow:auto}.sj-panel table{width:100%;border-collapse:collapse;min-width:690px}.sj-panel th,.sj-panel td{text-align:left;padding:10px;border-bottom:1px solid #eceff3;vertical-align:top}.sj-panel th{font-size:12px;text-transform:uppercase;color:var(--sj-muted)}.sj-details{display:grid;grid-template-columns:minmax(130px,190px) 1fr;gap:9px 15px}.sj-details dt{font-weight:650}.sj-details dd{margin:0}.sj-form{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:13px}.sj-form label{display:flex;flex-direction:column;gap:6px;font-weight:600}.sj-form label.full{grid-column:1/-1}.sj-form input,.sj-form select,.sj-form textarea,.sj-student-switch select{width:100%;padding:10px;border:1px solid #cbd2dc;border-radius:8px;background:#fff;color:var(--sj-text);font:inherit}.sj-form button{width:max-content}.sj-muted{color:var(--sj-muted)}.sj-badge{display:inline-block;padding:4px 8px;border-radius:999px;background:#eceff3;font-size:12px;font-weight:700}.sj-paid,.sj-confirmed,.sj-frozen,.sj-closed,.sj-resolved{background:#e6f6ed}.sj-overdue,.sj-rejected,.sj-urgent,.sj-safety_habitability{background:#fdecec}.sj-reported,.sj-under_review,.sj-received,.sj-reviewing{background:#fff3d9}.sj-notice{padding:12px 14px;border-radius:9px;margin-bottom:14px}.sj-notice.success{background:#e6f6ed}.sj-notice.error{background:#fdecec}.sj-login-card{max-width:440px;margin:60px auto}.sj-login-card input[type=text],.sj-login-card input[type=password]{width:100%;padding:10px;border:1px solid #cbd2dc;border-radius:8px}.sj-login-card .login-submit input{background:var(--sj-dark);color:#fff;border:0;border-radius:8px;padding:10px 15px}.sj-student-switch{background:#fff;border:1px solid var(--sj-border);border-radius:10px;padding:12px;margin-bottom:10px}.sj-student-switch label{display:flex;align-items:center;gap:12px}.sj-student-switch select{max-width:420px}@media(max-width:800px){.sj-cards{grid-template-columns:repeat(2,minmax(0,1fr))}.sj-grid{grid-template-columns:1fr}.sj-form{grid-template-columns:1fr}.sj-form label.full{grid-column:auto}.sj-header{align-items:flex-start}.sj-header h1{font-size:22px}.sj-details{grid-template-columns:1fr}.sj-details dt{margin-top:8px}}@media(max-width:480px){.sj-portal{margin:10px auto;padding:0 10px}.sj-cards{grid-template-columns:1fr}.sj-header{padding:16px}.sj-logout{padding:8px 10px;font-size:13px}.sj-card strong{font-size:20px}.sj-panel{padding:14px}}

/* Abel on editable form controls; 5px padding. */
.sj-portal input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]):not([type="submit"]):not([type="button"]):not([type="reset"]):not([type="file"]),
.sj-portal select,
.sj-portal textarea{font-family:"Abel",sans-serif!important;padding:5px!important}


.sj-header .spp-portal-logo{width:70px;max-height:76px;object-fit:contain;display:block;margin-bottom:4px}

/* SPP 1.3.40 — Institutional form typography */
.hop-portal input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]):not([type="submit"]):not([type="button"]), .hop-portal select, .hop-portal textarea { font-family: "Abel", sans-serif !important; font-size: 17px !important; padding: 5px !important; }

/* SPP 1.3.41: editable portal controls */
.sj-portal input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]):not([type="submit"]):not([type="button"]):not([type="file"]),.sj-portal select,.sj-portal textarea{font-family:"Abel",sans-serif!important;font-size:17px!important;padding:5px!important}

/* SPP 1.3.43: clearly visible authenticated identity for student and guardian portals. */
.sj-portal .spp-identity-header{display:flex;align-items:center;justify-content:space-between;gap:18px}
.sj-portal .spp-identity-content{display:flex;align-items:center;gap:16px;min-width:0;flex:1}
.sj-portal .spp-identity-content .sj-brand{display:block;flex:0 0 auto}
.sj-portal .spp-identity-content .spp-portal-logo{display:block;width:76px;height:auto;max-height:90px;object-fit:contain;margin:0}
.sj-portal .spp-identity-text{min-width:0;overflow-wrap:anywhere}
.sj-portal .spp-identity-label{display:block!important;color:#596779!important;font-size:13px!important;font-weight:500!important;line-height:1.4!important}
.sj-portal .spp-identity-name{display:block!important;visibility:visible!important;opacity:1!important;color:#183a60!important;font-size:clamp(23px,2.6vw,31px)!important;font-weight:700!important;line-height:1.2!important;margin:3px 0!important;text-transform:none!important;letter-spacing:normal!important}
.sj-portal .spp-identity-subtitle{display:block!important;color:#42536a!important;font-size:15px!important;line-height:1.4!important}
.sj-portal .spp-identity-email{display:block!important;color:#596779!important;font-size:14px!important;line-height:1.5!important}
@media(max-width:600px){.sj-portal .spp-identity-header{align-items:flex-start;flex-wrap:wrap}.sj-portal .spp-identity-content{width:100%}.sj-portal .spp-identity-content .spp-portal-logo{width:60px}.sj-portal .sj-logout{margin-left:auto}}

/* 1.3.44: privileges beside verified account identity */
.spp-identity-privileges{font-size:15px;line-height:1.45;color:#20364f;margin-top:3px;overflow-wrap:anywhere}

/* 1.3.47: Student and guardian private portal use the same uncluttered canvas.
   The body class is added only to the logged-in portal shortcode page. */
body.spp-private-portal-fullwidth .entry-header,
body.spp-private-portal-fullwidth .entry-title,
body.spp-private-portal-fullwidth .page-title,
body.spp-private-portal-fullwidth .page-header,
body.spp-private-portal-fullwidth .wp-block-post-title,
body.spp-private-portal-fullwidth .fl-post-header,
body.spp-private-portal-fullwidth .fl-post-title,
body.spp-private-portal-fullwidth .uabb-page-title-wrap,
body.spp-private-portal-fullwidth .widget-area,
body.spp-private-portal-fullwidth #secondary,
body.spp-private-portal-fullwidth #sidebar,
body.spp-private-portal-fullwidth .sidebar,
body.spp-private-portal-fullwidth .sidebar-wrap,
body.spp-private-portal-fullwidth .fl-sidebar {display:none!important;}
body.spp-private-portal-fullwidth #primary,
body.spp-private-portal-fullwidth .content-area,
body.spp-private-portal-fullwidth .site-main,
body.spp-private-portal-fullwidth .fl-content,
body.spp-private-portal-fullwidth .content-column {width:100%!important;max-width:100%!important;float:none!important;flex:1 1 100%!important;}








/* 1.3.88 · Navegación e indicadores visuales en portal estudiantil */
.sj-nav{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;overflow:visible;padding:6px 0 14px;white-space:normal}
.sj-nav .sj-nav-item{display:flex;align-items:center;gap:12px;padding:8px 12px 8px 8px;min-height:74px;border-radius:16px;text-decoration:none;background:#fff;border:1px solid var(--sj-border);box-shadow:0 10px 22px rgba(17,43,67,.06);transition:transform .18s ease,box-shadow .18s ease,border-color .18s ease}
.sj-nav .sj-nav-item:hover,.sj-nav .sj-nav-item:focus-visible{transform:translateY(-2px);box-shadow:0 14px 28px rgba(17,43,67,.1);border-color:#b48a40}
.sj-nav .sj-nav-item.active{background:#17314a;color:#fff;border-color:#17314a}
.sj-nav-media{flex:0 0 58px;width:58px;height:58px;border-radius:14px;overflow:hidden;display:block;background:#eef2f0;box-shadow:inset 0 0 0 1px rgba(255,255,255,.25)}
.sj-nav-media img{display:block;width:100%;height:100%;object-fit:cover}
.sj-nav-label{display:block;font-weight:700;line-height:1.3}
.sj-nav .sj-nav-item.active .sj-nav-label{color:#fff}
.sj-cards .sj-card.sj-card-visual{padding:0;overflow:hidden;display:flex;flex-direction:column;gap:0}
.sj-card.sj-card-visual .sj-card-media{display:block;aspect-ratio:16/7;overflow:hidden;background:#eef2f0;border-bottom:1px solid #e6eaee}
.sj-card.sj-card-visual .sj-card-media img{display:block;width:100%;height:100%;object-fit:cover}
.sj-card.sj-card-visual .sj-card-body{display:flex;flex-direction:column;gap:6px;padding:14px 16px 16px;min-height:110px}
.sj-card.sj-card-visual .sj-card-body .sj-card-label{display:block;color:var(--sj-muted);font-size:13px;line-height:1.4}
.sj-card.sj-card-visual .sj-card-body small{display:block;color:#627587;font-size:12px;line-height:1.4;min-height:32px}
.sj-card.sj-card-visual .sj-card-body strong{display:block;margin-top:auto;font-size:22px;color:#17314a;line-height:1.2;word-break:break-word}
@media(max-width:1000px){.sj-nav{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:800px){.sj-nav{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.sj-nav .sj-nav-item{min-height:70px}.sj-nav-media{width:52px;height:52px;flex-basis:52px}}
@media(max-width:560px){.sj-nav{grid-template-columns:1fr}.sj-nav .sj-nav-item{min-height:66px}.sj-nav-media{width:48px;height:48px;flex-basis:48px}.sj-card.sj-card-visual .sj-card-body{padding:12px 14px 14px}.sj-card.sj-card-visual .sj-card-body strong{font-size:20px}}

/* 1.3.90 — Autogestión del perfil, estilos aislados al portal privado. */
.sj-portal .spp-student-profile{--spp-navy:#102C45;--spp-gold:#B48A40;--spp-sage:#537D69;--spp-ivory:#FBFAF7;padding:22px;border-top:4px solid var(--spp-gold);background:linear-gradient(135deg,#fff 45%,#fbfaf7)}
.sj-portal .spp-profile-header{display:flex;align-items:start;justify-content:space-between;gap:18px;margin-bottom:18px}
.sj-portal .spp-profile-eyebrow{font-size:12px;letter-spacing:.12em;font-weight:800;color:var(--spp-sage)}
.sj-portal .spp-profile-header h2{margin:4px 0 7px;color:var(--spp-navy);font-size:clamp(25px,3.1vw,34px)}
.sj-portal .spp-profile-header p{margin:0;max-width:680px;color:#5b6f79;line-height:1.6}
.sj-portal .spp-profile-card,.sj-portal .spp-profile-edit{background:#fff;border:1px solid #dce5e1;border-radius:16px;padding:20px 22px;margin:15px 0;box-shadow:0 6px 18px rgba(16,44,69,.05)}
.sj-portal .spp-profile-card h3,.sj-portal .spp-profile-edit h3{margin:0 0 12px;color:var(--spp-navy);font-size:20px}
.sj-portal .spp-profile-card>p,.sj-portal .spp-profile-edit>p{line-height:1.6;color:#516777}
.sj-portal .spp-profile-card .sj-details dt{color:#526675}
.sj-portal .spp-profile-card .sj-details dd{overflow-wrap:anywhere;color:#17314a}
.sj-portal .spp-profile-form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;margin-bottom:20px}
.sj-portal .spp-profile-form-grid label,.sj-portal .spp-profile-inline label{display:flex;flex-direction:column;gap:7px;font-size:15px;font-weight:700;color:#17314a;min-width:0}
.sj-portal .spp-profile-form-grid input,.sj-portal .spp-profile-form-grid select,.sj-portal .spp-profile-inline input,.sj-portal .spp-profile-inline textarea,.sj-portal .spp-profile-inline select{display:block;width:100%;max-width:100%;min-height:46px;border:1px solid #bbcfc6;border-radius:9px;background:#fff;color:#17314a;padding:8px 12px!important;font-size:16px!important;font-family:inherit!important;box-sizing:border-box}
.sj-portal .spp-profile-inline{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:14px;align-items:end;margin-top:15px}
.sj-portal .spp-profile-inline .sj-button{min-height:46px;align-self:end}
.sj-portal .spp-profile-inline:has(textarea){grid-template-columns:1fr}
.sj-portal .spp-profile-card .sj-button,.sj-portal .spp-profile-edit .sj-button{background:#102C45!important;border-color:#102C45!important;color:#fff!important;min-height:46px}
.sj-portal .spp-profile-card .sj-button:hover,.sj-portal .spp-profile-edit .sj-button:hover{background:#1d4968!important;color:#fff!important}
.sj-portal .spp-profile-form-grid :focus-visible,.sj-portal .spp-profile-inline :focus-visible{outline:3px solid #b48a40;outline-offset:2px}
.sj-portal .spp-profile-requests{margin:0;padding:0 0 0 20px;line-height:1.85;color:#29475a}
.sj-portal .spp-profile-requests small{color:#657986}
@media(max-width:700px){.sj-portal .spp-student-profile{padding:16px}.sj-portal .spp-profile-header{flex-direction:column;align-items:stretch}.sj-portal .spp-profile-card,.sj-portal .spp-profile-edit{padding:16px}.sj-portal .spp-profile-form-grid,.sj-portal .spp-profile-inline{grid-template-columns:1fr}.sj-portal .spp-profile-inline .sj-button,.sj-portal .spp-profile-header .sj-button{width:100%}}

/* Smart Property Platform 1.3.91 — Focused, accessible student profile editor. */
.sj-portal .spp-profile-focus {
  --spp-navy:#102C45;--spp-gold:#B48A40;--spp-sage:#537D69;
  width:min(100%,860px);max-width:860px;margin:6px auto 28px;
  padding:clamp(16px,3vw,32px);border:1px solid #dde6e1;
  border-top:4px solid var(--spp-gold);border-radius:20px;
  background:linear-gradient(135deg,#ffffff 20%,#FBFAF7 100%);
  box-shadow:0 14px 38px rgba(16,44,69,.08);
}
.sj-portal .spp-profile-focus-top {display:flex;flex-direction:column;align-items:flex-start;gap:6px;margin:0 0 20px}
.sj-portal .spp-profile-back {display:inline-flex;align-items:center;gap:7px;min-height:44px;padding:8px 13px;margin:0 0 9px;
  border:1px solid #dce5e1;background:#fff;border-radius:10px;color:#102C45!important;text-decoration:none!important;font-weight:750}
.sj-portal .spp-profile-back:hover,.sj-portal .spp-profile-back:focus-visible{border-color:var(--spp-gold);background:#fbf7ed;color:#102C45!important}
.sj-portal .spp-profile-focus-top h2{margin:0!important;font-size:clamp(26px,3.2vw,34px);line-height:1.18;letter-spacing:-.03em;color:#102C45!important}
.sj-portal .spp-profile-focus-top p{margin:4px 0 0!important;color:#52697a;line-height:1.55;font-size:15px}
.sj-portal .spp-profile-notice {margin:12px 0 18px;line-height:1.5;font-weight:650}
.sj-portal .spp-profile-focus .spp-profile-edit{border:0;background:transparent;padding:0;margin:0;box-shadow:none}
.sj-portal .spp-profile-edit-group{border:1px solid #dbe5df;border-radius:14px;margin:0 0 12px;background:#fff;overflow:hidden}
.sj-portal .spp-profile-edit-group>summary{display:flex;align-items:center;gap:12px;padding:16px 18px;min-height:65px;
  cursor:pointer;list-style:none;color:#102C45;background:#fff;transition:background .2s ease}
.sj-portal .spp-profile-edit-group>summary::-webkit-details-marker{display:none}
.sj-portal .spp-profile-edit-group>summary::after{content:'⌄';font-size:23px;margin-left:auto;line-height:1;color:#537D69;transition:transform .2s}
.sj-portal .spp-profile-edit-group[open]>summary::after{transform:rotate(180deg)}
.sj-portal .spp-profile-edit-group>summary:hover{background:#f7f9f5}
.sj-portal .spp-profile-edit-group>summary span{display:grid;place-items:center;min-width:36px;height:36px;
  border-radius:11px;background:#f5eddb;color:#80612b;font-size:12px;font-weight:800}
.sj-portal .spp-profile-edit-group>summary strong{font-size:17px;line-height:1.3}
.sj-portal .spp-profile-edit-group>summary small{font-size:12px;color:#52697a;line-height:1.35}
.sj-portal .spp-profile-edit-group[open]>summary{border-bottom:1px solid #e8edea;background:#fafbf8}
.sj-portal .spp-profile-edit-group .spp-profile-form-grid{padding:18px;gap:14px;margin:0}
.sj-portal .spp-profile-edit-group input,.sj-portal .spp-profile-edit-group select{min-height:48px!important;font-size:16px!important}
.sj-portal .spp-profile-edit-group label{font-size:14px;line-height:1.4}
.sj-portal .spp-profile-form-actions{position:sticky;bottom:0;z-index:10;display:flex;gap:12px;
  align-items:center;justify-content:flex-end;margin-top:20px;padding:14px 16px;
  border:1px solid #dfe7e3;border-radius:14px;background:rgba(255,255,255,.97);box-shadow:0 -5px 20px rgba(16,44,69,.08)}
.sj-portal .spp-profile-form-actions .sj-button{display:inline-flex;min-height:48px;padding:10px 24px;align-items:center;justify-content:center;
  background:#102C45!important;color:#fff!important;border:1px solid #102C45!important;border-radius:10px;font-size:15px;font-weight:750}
.sj-portal .spp-profile-form-actions .sj-button:hover{background:#1d4968!important}
.sj-portal .spp-profile-cancel,.sj-portal .spp-profile-secondary{display:inline-flex;align-items:center;justify-content:center;min-height:44px;
  border:1px solid #c8d9d2;border-radius:10px;padding:9px 15px;background:#fff;color:#102C45!important;text-decoration:none!important;font-weight:700;line-height:1.4}
.sj-portal .spp-profile-cancel:hover,.sj-portal .spp-profile-secondary:hover{background:#f5f6ef;border-color:#B48A40;color:#102C45!important}
.sj-portal .spp-profile-links{display:flex;flex-wrap:wrap;gap:10px;margin-top:12px}
.sj-portal .spp-profile-action-card p{margin:0 0 12px;color:#52697a}
.sj-portal .spp-profile-focus .spp-profile-card{margin:0;padding:20px}
.sj-portal .spp-profile-focus .spp-profile-inline{grid-template-columns:1fr;gap:14px}
.sj-portal .spp-profile-focus .spp-profile-inline .sj-button{width:fit-content}
.sj-portal .spp-profile-focus input:focus-visible,.sj-portal .spp-profile-focus select:focus-visible,.sj-portal .spp-profile-focus textarea:focus-visible,
.sj-portal .spp-profile-focus a:focus-visible,.sj-portal .spp-profile-focus button:focus-visible,.sj-portal .spp-profile-edit-group>summary:focus-visible{outline:3px solid #B48A40;outline-offset:2px}
@media(max-width:700px){
 .sj-portal .spp-profile-focus{padding:14px;margin:0 auto 16px;border-radius:14px}
 .sj-portal .spp-profile-edit-group>summary{padding:13px 12px;flex-wrap:wrap;gap:8px}
 .sj-portal .spp-profile-edit-group>summary small{flex-basis:100%;margin-left:44px}
 .sj-portal .spp-profile-edit-group .spp-profile-form-grid{padding:13px;grid-template-columns:1fr}
 .sj-portal .spp-profile-form-actions{padding:12px;bottom:0;flex-direction:row}
 .sj-portal .spp-profile-form-actions .sj-button,.sj-portal .spp-profile-form-actions .spp-profile-cancel{flex:1;padding:10px 12px;text-align:center}
 .sj-portal .spp-profile-focus .spp-profile-card{padding:14px}
 .sj-portal .spp-profile-focus .spp-profile-inline .sj-button{width:100%}
 .sj-portal .spp-profile-links{flex-direction:column}
}
@media(prefers-reduced-motion:reduce){.sj-portal .spp-profile-edit-group>summary::after{transition:none}}
.sj-portal .spp-profile-editor-hint{margin:0 0 16px;color:#506979;line-height:1.55;font-size:14px}
/* Avoid covering the last accordion on short phone screens. With only three
   compact sections, the action row remains easy to reach without an overlay. */
@media(max-width:700px){.sj-portal .spp-profile-form-actions{position:static}}


/* 1.4.2 — balanced vertical rhythm on existing student/guardian pages only. */
body .sj-portal .sj-nav{padding-bottom:10px}
body .sj-portal .sj-cards{margin-bottom:12px}
body .sj-portal .sj-grid{gap:12px}
body .sj-portal .sj-panel{margin-bottom:12px;padding:16px}
body .sj-portal .sj-panel h2{margin-bottom:10px}
body .sj-portal .sj-form{gap:11px}
body .sj-portal .sj-card:not(.sj-card-visual){padding:15px 16px}
body .sj-portal .sj-details{row-gap:7px}
@media(max-width:767px){body .sj-portal .sj-panel{padding:13px}body .sj-portal .sj-card:not(.sj-card-visual){padding:13px}body .sj-portal .sj-nav{padding-bottom:8px}}
