
/* Final student-facing layout */

.es-final-pdf-row{
 display:grid!important;
 grid-template-columns:repeat(2,minmax(0,1fr))!important;
 width:100%!important;
 max-width:none!important;
 gap:16px!important;
 margin:20px 0!important;
 align-items:stretch!important;
 box-sizing:border-box!important;
}

.es-final-pdf-row>*{
 width:100%!important;
 max-width:none!important;
 min-width:0!important;
 margin:0!important;
 padding:24px!important;
 box-sizing:border-box!important;
}

.es-final-pdf-row a{
 max-width:100%!important;
 box-sizing:border-box!important;
}

.hero a{
 color:#fff!important;
 background:#2563eb!important;
 border:1px solid #93c5fd!important;
}

.breadcrumb a{
 color:var(--blue,#087da5)!important;
}

.site-footer,
.site-footer a,
.site-footer p,
.site-footer li,
.site-footer h2,
.site-footer h3,
.site-footer h4{
 color:var(--text)!important;
 opacity:1!important;
}

.es-dashboard{
 margin:24px 0!important;
}

.es-dash-card{
 padding:20px!important;
}

.es-dash-chart{
 height:300px!important;
}

.es-dash-label{
 line-height:1.5;
}

.es-dash-table td{
 vertical-align:middle;
}

.es-dash-table td:first-child{
 min-width:180px;
}

.es-final-hidden{
 display:none!important;
}

.es-final-catalogue{
 background:var(--card);
 color:var(--text);
 border:1px solid var(--border);
 border-radius:12px;
 margin:20px 0;
 padding:16px;
}

.es-final-catalogue>summary{
 cursor:pointer;
 font-size:17px;
 font-weight:600;
 padding:8px;
}

.es-final-more{
 background:#2563eb;
 color:white;
 border:0;
 border-radius:8px;
 padding:10px 18px;
 cursor:pointer;
 margin:14px 0;
}

html[data-es-theme="dark"] .es-dash-table th{
 background:#26364d!important;
 color:#e2e8f0!important;
}

html[data-es-theme="dark"] .es-dash-note{
 color:#b8c5d8!important;
}

html[data-es-theme="dark"] .es-dash-kpi{
 background:var(--card)!important;
}

@media(max-width:760px){
 .es-final-pdf-row{
  grid-template-columns:1fr!important;
 }
 .es-dash-card{
  padding:14px!important;
 }
 .es-dash-chart{
  height:260px!important;
 }
}

/* Batch 12O: full-width PDF containers */

.es-pdf-full-width-parent{
 width:100%!important;
 max-width:100%!important;
 min-width:0!important;
 grid-column:1/-1!important;
 flex-basis:100%!important;
 align-self:stretch!important;
 justify-self:stretch!important;
 box-sizing:border-box!important;
}

.es-final-pdf-row{
 display:grid!important;
 width:100%!important;
 max-width:100%!important;
 grid-column:1/-1!important;
 grid-template-columns:repeat(2,minmax(0,1fr))!important;
 flex-basis:100%!important;
 justify-self:stretch!important;
 align-self:stretch!important;
 margin-left:0!important;
 margin-right:0!important;
}

.es-final-pdf-row>*{
 width:100%!important;
 max-width:100%!important;
 min-width:0!important;
}

@media(max-width:760px){
 .es-final-pdf-row{
  grid-template-columns:1fr!important;
 }
}

.es-bulk-question-catalogue li{
 padding:12px;
 margin:8px 0;
 line-height:1.65;
 border-bottom:1px solid var(--border);
 overflow-wrap:anywhere;
}
.es-bulk-question-catalogue input{
 width:100%;
 padding:12px;
 box-sizing:border-box;
 margin:12px 0;
}
.es-bulk-question-catalogue [hidden]{
 display:none!important;
}

/* ES_FINAL_LEGACY_CLEANUP_V1 */
.es-retired-legacy-chart{
 display:none!important;
}

/* ES_LEGACY_POLICY_V2 */
.es-retired-legacy-chart{
 display:none!important;
}

/* ES_GO_TO_TOP_V1 */
#es-scroll-top-final{
 position:fixed!important;
 right:18px!important;
 bottom:calc(18px + env(safe-area-inset-bottom,0px))!important;
 left:auto!important;
 top:auto!important;
 width:48px!important;
 height:48px!important;
 padding:0!important;
 border:2px solid rgba(255,255,255,.85)!important;
 border-radius:50%!important;
 background:#1d4ed8!important;
 color:#fff!important;
 box-shadow:0 4px 16px rgba(0,0,0,.22);
 z-index:1000;
 display:none!important;
 align-items:center;
 justify-content:center;
 cursor:pointer;
}

#es-scroll-top-final.es-scroll-top-visible{
 display:flex!important;
 visibility:visible!important;
 opacity:1!important;
 pointer-events:auto!important;
}

#es-scroll-top-final:hover{
 background:#1e40af!important;
}

#es-scroll-top-final:focus-visible{
 outline:3px solid #60a5fa;
 outline-offset:3px;
}

html[data-es-theme="dark"] #es-scroll-top-final{
 background:#2563eb!important;
}

@media(max-width:600px){
 #es-scroll-top-final{
  right:12px!important;
  bottom:calc(14px + env(safe-area-inset-bottom,0px))!important;
 }
}

/* ES_FINAL_LAYOUT_V3 */

html {
 --es-footer-bg:#f1f5f9;
 --es-footer-text:#334155;
 --es-footer-heading:#0f172a;
 --es-footer-link:#1d4ed8;
 --es-footer-border:#cbd5e1;
}

html[data-es-theme="dark"] {
 --es-footer-bg:#0f172a;
 --es-footer-text:#cbd5e1;
 --es-footer-heading:#f8fafc;
 --es-footer-link:#93c5fd;
 --es-footer-border:#334155;
}

body footer,
body .site-footer {
 background:var(--es-footer-bg)!important;
 color:var(--es-footer-text)!important;
 border-top:1px solid var(--es-footer-border)!important;
}

body footer *,
body .site-footer * {
 color:var(--es-footer-text)!important;
}

body footer h2,
body footer h3,
body footer h4,
body footer strong,
body .site-footer h2,
body .site-footer h3,
body .site-footer h4,
body .site-footer strong {
 color:var(--es-footer-heading)!important;
}

body footer a,
body .site-footer a {
 color:var(--es-footer-link)!important;
}

body footer a:hover,
body .site-footer a:hover {
 text-decoration:underline!important;
}

body footer hr,
body .site-footer hr {
 border-color:var(--es-footer-border)!important;
}

body footer div,
body footer section,
body .site-footer div,
body .site-footer section {
 background-color:transparent!important;
}

.es-final-revision-bottom {
 width:100%!important;
 max-width:100%!important;
 box-sizing:border-box;
 margin-top:24px!important;
 margin-bottom:24px!important;
 grid-column:1/-1!important;
}

.es-final-navigation {
 margin-top:12px!important;
 margin-bottom:16px!important;
 display:flex;
 flex-wrap:wrap;
 gap:8px;
}

.es-final-question-hidden {
 display:none!important;
}

.es-final-show-more {
 display:block;
 margin:16px auto;
 padding:10px 20px;
 border:0;
 border-radius:8px;
 background:#1d4ed8;
 color:#fff!important;
 font-weight:600;
 cursor:pointer;
}

@media print {
 #es-scroll-top-final,
 .es-final-show-more {
  display:none!important;
 }

 .es-final-question-hidden {
  display:block!important;
 }
}

/* ES_SEARCH_POSITION_V4 */
.es-final-search-position {
 display:block!important;
 width:100%!important;
 max-width:100%!important;
 min-width:0!important;
 box-sizing:border-box!important;
 grid-column:1/-1!important;
 flex-basis:100%!important;
 clear:both!important;
 position:relative!important;
 top:auto!important;
 bottom:auto!important;
 transform:none!important;
 margin:20px 0!important;
}

.es-final-dashboard-position {
 grid-column:1/-1!important;
 width:100%!important;
 min-width:0!important;
 box-sizing:border-box!important;
}
