/* Consistent workspace spacing across the existing Bootstrap versions. */
@media screen {
 .skrau-aligned{--skrau-space:24px}
 .skrau-aligned .content-wrap,.skrau-aligned .app-layout-content,.skrau-aligned .page-wrapper,.skrau-aligned .card,.skrau-aligned .card-body,.skrau-aligned .card-block{min-width:0;box-sizing:border-box}
 .skrau-aligned .content-wrap>.container-fluid,.skrau-aligned .app-layout-content>.container-fluid{padding-left:var(--skrau-space);padding-right:var(--skrau-space)}
 .skrau-aligned .content-wrap .row,.skrau-aligned .app-layout-content .row{--bs-gutter-x:24px}
 .skrau-aligned .content-wrap [class*="col-"],.skrau-aligned .app-layout-content [class*="col-"]{min-width:0}
 .skrau-aligned .card{margin-bottom:24px}
 .skrau-aligned .card-body,.skrau-aligned .card-block{padding:var(--skrau-space)}
 .skrau-aligned .card-header{padding:16px var(--skrau-space)}
 .skrau-aligned .card-header h3,.skrau-aligned .card-header h4,.skrau-aligned .card-header h5{margin:0;line-height:1.4}
 .skrau-aligned .page-header{margin-bottom:24px}
 .skrau-aligned .page-sub-header{display:flex;align-items:flex-start;justify-content:space-between;flex-wrap:wrap;gap:16px}
 .skrau-aligned .page-title{overflow-wrap:anywhere}
 .skrau-aligned .form-group{margin-bottom:20px;min-width:0}
 .skrau-aligned .form-control,.skrau-aligned .form-select{box-sizing:border-box;max-width:100%;min-height:42px}
 .skrau-aligned textarea.form-control{min-height:100px;resize:vertical}
 .skrau-aligned input[type="file"]{max-width:100%}
 .skrau-aligned .btn{max-width:100%;white-space:normal}
 .skrau-aligned .table-responsive,.skrau-aligned .crm-table-scroll{width:100%;max-width:100%;overflow-x:auto}
 .skrau-aligned table.table{width:100%}
 .skrau-aligned .table th,.skrau-aligned .table td{vertical-align:middle}
 .skrau-aligned .breadcrumb{flex-wrap:wrap}
 .skrau-aligned .crm-form-actions{display:flex;flex-wrap:wrap;align-items:center;gap:10px}
 @media(max-width:767.98px){
  .skrau-aligned{--skrau-space:16px}
  .skrau-aligned .page-sub-header{flex-direction:column;gap:10px}
  .skrau-aligned .form-horizontal .form-group>.col-xs-6{width:100%;max-width:100%;flex-basis:100%}
  .skrau-aligned .content-wrap .card-header{flex-wrap:wrap;gap:10px}
 }
}

/* Keep the footer after content and at the viewport bottom on short pages. */
@media screen {
 body.skrau-aligned:has(> footer),
 body.skrau-aligned > form:has(> footer),
 body.skrau-panel > form {
   display:flex; flex-direction:column; min-height:100vh; min-height:100dvh;
   margin-bottom:0; padding-bottom:0;
 }
 body.skrau-aligned:has(> footer) > *,
 body.skrau-aligned > form:has(> footer) > * { flex-shrink:0; }
 body.skrau-aligned > footer,
 body.skrau-aligned > form > footer {
   position:static !important; margin-top:auto !important; margin-bottom:0 !important;
 }
 body.skrau-panel > form > .card { flex:1; margin-bottom:0; }
 body.skrau-panel > form > .card > .card-body { flex:1; }
 body.skrau-panel > form > .card > footer { position:static !important; margin-top:auto !important; margin-bottom:0 !important; }
 .skrau-aligned .page-wrapper:has(> footer) { display:flex; flex-direction:column; min-height:calc(100vh - 60px); min-height:calc(100dvh - 60px); }
 .skrau-aligned .page-wrapper > footer { position:static !important; margin-top:auto !important; margin-bottom:0 !important; flex-shrink:0; }
}

@media screen {
 body.skrau-aligned > footer,
 body.skrau-aligned > form > footer {
   box-sizing:border-box; width:100%; padding:16px 20px !important;
   text-align:center; line-height:1.6; overflow-wrap:anywhere;
 }
 body.skrau-aligned > footer .row,
 body.skrau-aligned > form > footer .row { justify-content:center; margin:0; }
 body.skrau-aligned > footer .col-lg-12,
 body.skrau-aligned > form > footer .col-lg-12 { padding:0; }
 .skrau-aligned footer .helpdesk-mobile { margin:10px 0 0; text-align:center; }
 .skrau-aligned .content-wrap { min-width:0; }
 .skrau-aligned .helpdesk { overflow-wrap:anywhere; }
 /* Use the selected public palette consistently on login forms. */
 .skrau-portal .content-wrap .card-header,
 .skrau-portal .table h2,
 .skrau-portal .content-wrap .btn-primary {
   background:linear-gradient(110deg,#468066,#3d755c) !important;
   border-color:#3d755c !important; color:#fff !important;
 }
 .skrau-portal .content-wrap .btn-primary:hover,
 .skrau-portal .content-wrap .btn-primary:focus { background:#35694f !important; }
 @media(max-width:767px) {
   body.skrau-aligned > footer, body.skrau-aligned > form > footer { padding:16px !important; font-size:13px; }
 }
}

/* Consistent public content width and balanced student sign-in panels. */
@media screen {
 .skrau-portal .content-wrap > .container-fluid { max-width:1280px; margin-inline:auto; }
 .skrau-student-login.row { display:grid; grid-template-columns:minmax(320px,420px) minmax(0,1fr); gap:24px; margin:0; align-items:start; }
 .skrau-student-login.row > .card { width:100%; max-width:none; padding:0 !important; margin:0; }
 .skrau-student-login .card-header { display:flex; align-items:center; justify-content:space-between; gap:12px; flex-wrap:wrap; min-height:76px; }
 .skrau-student-login .card-header .btn { font-size:13px; padding:8px 10px; border:1px solid rgba(255,255,255,.55) !important; }
 .skrau-student-login .card-body { padding:24px; }
 .skrau-student-login .text-center { display:flex; flex-wrap:wrap; justify-content:flex-start; gap:12px; }
 .skrau-student-login .text-left { margin-top:20px; padding-top:20px; border-top:1px solid #e1e8e4; }
 .skrau-student-login .ratio { padding:20px; }
 .skrau-student-login video { width:100%; height:auto; aspect-ratio:16/9; object-fit:contain; max-height:330px; background:#132f24; border-radius:6px; }
 @media(max-width:991px) { .skrau-student-login.row { grid-template-columns:minmax(0,1fr); max-width:660px; margin-inline:auto; } }
}
