/* -------------------------------------------------------
   Project: CREST Portal
   File: Crest.css
   Description: Component styles & typography overrides
   Relies on: bootstrap-extended.css
   Author: Serverys
   ------------------------------------------------------- */

/* Font faces */
@font-face {
  font-family: "Helvetica Neue LT 45 Light";
  src:
    url("https://db.onlinewebfonts.com/t/0c17d7781ac0e7e07c504531aa429ee9.woff2") format("woff2"),
    url("https://db.onlinewebfonts.com/t/0c17d7781ac0e7e07c504531aa429ee9.woff") format("woff"),
    url("https://db.onlinewebfonts.com/t/0c17d7781ac0e7e07c504531aa429ee9.ttf") format("truetype");
  font-weight: 300;
  font-style: normal;
}

@font-face {
  font-family: "Helvetica Neue 65 Medium";
  src:
    url("https://db.onlinewebfonts.com/t/6c6db39a56fe8e8f19ba47c6a0770a18.woff2") format("woff2"),
    url("https://db.onlinewebfonts.com/t/6c6db39a56fe8e8f19ba47c6a0770a18.woff") format("woff"),
    url("https://db.onlinewebfonts.com/t/6c6db39a56fe8e8f19ba47c6a0770a18.ttf") format("truetype");
  font-weight: 500;
  font-style: normal;
}

@font-face {
  font-family: "HelveticaNeueLT Pro 35 Th";
  src:
    url("https://db.onlinewebfonts.com/t/203fd9dd245238aada9fa9c4d88abf78.woff2") format("woff2"),
    url("https://db.onlinewebfonts.com/t/203fd9dd245238aada9fa9c4d88abf78.woff") format("woff"),
    url("https://db.onlinewebfonts.com/t/203fd9dd245238aada9fa9c4d88abf78.ttf") format("truetype");
  font-weight: 200;
  font-style: normal;
}

@font-face {
  font-family: "Helvetica Neue LT W01 55 Roman";
  src:
    url("https://db.onlinewebfonts.com/t/2afedaab5a5177410b408023384af22d.woff2") format("woff2"),
    url("https://db.onlinewebfonts.com/t/2afedaab5a5177410b408023384af22d.woff") format("woff"),
    url("https://db.onlinewebfonts.com/t/2afedaab5a5177410b408023384af22d.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
}

/* Navbar */
.navbar-light .navbar-nav .nav-link {
  position: relative;
  cursor: pointer;
  color: #0c1545;
  font-weight: 700;
  font-size: 1.2rem;
  line-height: 1.2;
}

.navbar-light .navbar-nav .dropdown-item {
  padding: 0.25rem 1.5rem !important;
  color: #231f20 !important;
}

@media (min-width: 768px) {
  .navbar-light .navbar-nav .nav-link:hover::before,
  .navbar-light .navbar-nav .nav-link:focus::before,
  .navbar-light .navbar-nav .nav-link.active::before,
  .navbar-light .navbar-nav .show > .nav-link::before {
    content: "";
    position: absolute;
    bottom: 1px;
    left: 50%;
    transform: translateX(-50%);
    height: 4px;
    width: calc(100% + 0.5rem);
    background-color: #111d5e;
    border-radius: 2px;
  }

  .navbar-light .navbar-nav .nav-link.active,
  .navbar-light .navbar-nav .show > .nav-link {
    color: #396678;
    background-color: transparent;
  }
}

@media (max-width: 768px) {
  .navbar-light .navbar-nav .nav-link {
    margin: 0.125rem 0 0.125rem 0.125rem;
    padding: 0 1rem;
    border-radius: 0.25rem;
  }

  .navbar-light .navbar-nav .dropdown-item:hover,
  .navbar-light .navbar-nav .dropdown-item:focus,
  .navbar-light .navbar-nav .nav-link:hover,
  .navbar-light .navbar-nav .nav-link:focus {
    background-color: #e5eef3;
  }

  .navbar-light .navbar-nav .dropdown-item.active,
  .navbar-light .navbar-nav .nav-link.active,
  .navbar-light .navbar-nav .show > .nav-link {
    background-color: #d1dfe7;
  }

  .navbar-light .navbar-nav .dropdown-item.active:hover,
  .navbar-light .navbar-nav .nav-link.active:hover,
  .navbar-light .navbar-nav .show > .nav-link:hover {
    background-color: #b8cad5;
  }
}

/* Footer */
.footer-links a {
  color: #fff;
}
.footer-links a:hover {
  opacity: 0.9;
}

/* Breadcrumb */
.breadcrumb {
  background-color: #f3f7f9;
}
.breadcrumb-item,
.breadcrumb-item a {
  color: #111d5e;
  text-decoration: none;
}
.breadcrumb-item a:hover {
  color: #2eaee4;
}
.breadcrumb-item.active {
  color: #231f20;
}

/* Cards */
a.card {
  display: block;
  transition: all 0.2s ease;
  color: inherit;
  text-decoration: none !important;
}

a.card *,
a.card:hover,
a.card:hover * {
  text-decoration: none !important;
}

a.card:hover {
  box-shadow: 0 0 12px 2px rgba(209, 223, 231, 0.9);
}

.card.card-tile {
  border-radius: 0.5rem;
}

.card.card-tile .card-header {
  border-top-left-radius: calc(0.5rem - 1px);
  border-top-right-radius: calc(0.5rem - 1px);
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
  border-bottom: none;
}
.page-banner {
  background-image: url("/education-sub-3-banner.png");
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  height: 200px;
}
.page-banner .container{
  position: relative;
  height: 100%;
  padding: 0
}
.page-banner .container .header-content{
  padding: 2rem;
  position: absolute;
  top: 50%;
  left: 0;
  transform: translateY(-50%);
  width: 100%;
  background-color: rgba(209, 223, 231, 1);
  border-radius: .5rem;
}


.avatar {
  transform: translateY(1px);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: inline-block;
    position: relative;
    font-size: 1.75em;
    line-height: .5;
    font-family: "Raleway",sans-serif;
}
    .avatar.avatar-sm {
        width: 30px;
        height: 30px;
        font-size: 1em;
        font-weight: 600;
    }

    .avatar.avatar-lg {
        width: 80px;
        height: 80px;
        font-size: 2.5em;
    }

    .avatar.avatar-xl {
        width: 100px;
        height: 100px;
        font-size: 3.5em;
        font-weight: 600;
    }

    .avatar span {
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translateX(-50%) translateY(-50%);
    }

    .avatar.avatar-image {
        background-position: center;
        background-repeat: no-repeat;
        background-size: cover;
    }

.lh-1{
  line-height: 1!important;
}

.table-info [style*="visibility:hidden"] {
  display: none !important;
}

.visually-hidden.sort-hint{
  display: none;
}
    a.list-group-item{
        color: #231f20;
    }
    /* =========================================
    CRM Entity Form View (layout & actions)
    ========================================= */
    .crmEntityFormView .tab {
        margin-bottom: 1.25rem;
    }
    .crmEntityFormView .tab:last-child {
        margin-bottom: 0;
        margin-top: -1px;
    }
    .crmEntityFormView .tab-title{
        display: none;
    }
    .crmEntityFormView .cell:not(.zero-cell),
    .crmEntityFormView .form-control-cell:not(.zero-cell){
        padding: 0 1rem .5rem;
    }
    .crmEntityFormView .field-label{
        margin: .625rem 0 0;
    }

    .crmEntityFormView .actions {
        margin: 0;
        padding: 1.25rem;
        background-color: #fff;
        border-top: 1px solid #ccc;
    }
    .crmEntityFormView .form-custom-actions {
        margin: 0;
        padding: 0;
        background-color: #fff;
        position: relative;
        border-top: 1px solid #ccc;
    }
    .crmEntityFormView .form-custom-actions > div {
        padding: .75rem 1.25rem;
    }

    /* Radios laid out horizontally (classic picklist style) */
    .crmEntityFormView .cell .picklist.horizontal {
        margin-left: 2rem;
        margin-top: 7px;
        display: inline-block;
    }
    .crmEntityFormView .cell .picklist.horizontal input[type=radio] {
        margin-bottom: 0;
        margin-top: 5px;
    }

    /* Compact fieldset spacing inside crmEntityFormView */
    .crmEntityFormView fieldset {
        margin-bottom: 0;
    }

    /* =========================================
    Entity Form – fieldsets, sections, legends
    ========================================= */
    .entity-form .tab fieldset legend {
        border-radius: 0;
        padding: 8px 1.25rem;
        border-top: 1px solid #ccc;
        margin: 0 0 1rem;
        width: calc(100% + 2.5rem);
        border-bottom: none;
        position: relative;
        font-size: 1.2em;
        background-color: #2eaee4;
    }
    .entity-form .tab fieldset legend label{
        margin-bottom: 0;;
    }
    .entity-form h2.tab-title + .tab fieldset > legend.section-title {
        border-radius: 5px 5px 0 0;
        margin-top: 0;
        border-top: none;
    }
    .entity-form .tab fieldset> table {
        margin-bottom: 0.5rem;
    }


    /* First section top margin (later override = 0) */
    .entity-form .tab fieldset > .section:first-child,
    .entity-form .tab fieldset > div > .section:first-child {
        margin-top: 1.25rem;
    }
    .entity-form .tab fieldset legend + table {
        margin-top: 0;
    }
    /* Later override in original: ensure no extra top gap */
    .entity-form .tab fieldset > .section:first-child,
    .entity-form .tab fieldset > div > .section:first-child {
        margin-top: 0;
    }

    /* Legend heading */
    .entity-form fieldset > legend > h3 {
        margin: 0;
        color: #fff;
        line-height: 1;
    }

    /* Label tweak inside info blocks */
    .entity-form fieldset div.info label {
        margin-top: 7px;
    }

    /* =========================================
    Subgrids / SharePoint docs inside tabs
    ========================================= */
    .entity-form .tab .sharepoint-documents,
    .entity-form .tab .subgrid-cell {
        padding-bottom: 0;
    }
    .entity-form .tab .sharepoint-documents .table,
    .entity-form .tab .subgrid-cell .table {
        margin: 0;
        background-color: rgba(255,255,255, 0.75);
        border: 1px solid rgba(0, 0, 0, .125);
        border-radius: .25rem;
    }

    /* Subgrid spacing when nested in fieldsets (scoped via crmEntityFormView) */
    .crmEntityFormView .entity-form .tab fieldset .subgrid {
        margin-bottom: 1.25rem;
    }
    .crmEntityFormView .entity-form .tab fieldset:nth-last-of-type(1) .subgrid {
        margin-bottom: 0;
    }

    /* =========================================
    Notes / Files blocks inside tabs
    ========================================= */
    .crmEntityFormView .entity-form .tab .notes-cell {
        margin: 0 -1.25rem;
        padding: 0 15px;
    }
    .crmEntityFormView .entity-form .tab .notes-cell .control {
        margin: 0 !important;
    }
    .crmEntityFormView .entity-form .tab .notes-cell .entity-notes {
        width: 100%;
        padding: 0;
    }

    .crmEntityFormView .file-cell {
        margin: 0 -1.25rem;
        padding: 0 15px 15px;
    }
    .crmEntityFormView .file-cell .info {
        margin: 0 -15px;
        padding: 0 1.25rem;
    }
    .crmEntityFormView .file-cell .info label {
        width: 100%;
        font-weight: 400;
    }

    /* Required asterisk suppression in info.required */
    .crmEntityFormView .cell div.info.required label:after {
        content: '';
    }

    /* =========================================
    Readonly / link-as-control visuals
    ========================================= */
    .entity-form .tab .form-control.readonly,
    .entity-form .tab .form-control:read-only {
        background-color: #f5f5f5;
        padding: 6px 12px;
        border: 1px solid #ccc;
        -webkit-box-shadow: inset 0 1px 1px rgb(0 0 0 / 8%);
        box-shadow: inset 0 1px 1px rgb(0 0 0 / 8%);
        -webkit-transition: border-color ease-in-out .15s, -webkit-box-shadow ease-in-out .15s;
        -o-transition: border-color ease-in-out .15s, box-shadow ease-in-out .15s;
    }
    .entity-form .tab .control .status,
    .entity-form .tab .control > a {
        background-color: #f5f5f5;
        padding: 6px 12px;
        border: 1px solid #ccc;
        -webkit-box-shadow: inset 0 1px 1px rgb(0 0 0 / 8%);
        box-shadow: inset 0 1px 1px rgb(0 0 0 / 8%);
        -webkit-transition: border-color ease-in-out .15s, -webkit-box-shadow ease-in-out .15s;
        -o-transition: border-color ease-in-out .15s, box-shadow ease-in-out .15s;
        display: block;
    }

    /* =========================================
    Classic table layout alignment (responsive)
    ========================================= */
    @media (min-width: 500px) and (max-width: 768px) {
        fieldset > table td:not(.subgrid-cell):not(.textarea):not(.sharepoint-documents) > div.control {
            margin-left: 140px;
        }
        fieldset > table td:not(.subgrid-cell) div.control {
            clear: none !important;
        }
    }

    @media (min-width: 992px) {
        fieldset > table td:not(.subgrid-cell):not(.textarea):not(.sharepoint-documents) > div.control {
            margin-left: 140px;
        }
        fieldset > table td:not(.subgrid-cell) div.control {
            clear: none !important;
        }
    }

.subgrid{
  margin: -1.5rem -8px 0;
}
.subgrid td {
  vertical-align: middle;
}
.subgrid .table-striped tbody tr:nth-of-type(odd) {
    background-color: #eef3f6  !important;
}
.subgrid .table-striped tbody tr:nth-of-type(even) {
    background-color: rgba(255,255,255,0.25);
}
.subgrid .btn{
  white-space: nowrap;
}
.visually-hidden{
  display: none;
}

.entity-form .tab .form-control {
    color: #231f20!important;
}
/* .entity-form .tab .input-group .form-control.readonly, .entity-form .tab .input-group .form-control:read-only {
    background-color: #fff!important;
} */

/* === BS3 Input Group Compatibility for BS4/5 === */
.input-group {
  display: flex;
  align-items: stretch;
  width: 100%;
}

.input-group .form-control {
  flex: 1 1 auto;
  width: 1%;
  margin-bottom: 0;
  position: relative;
  z-index: 2;
}

.input-group .btn {
  position: relative;
  z-index: 1;
}

/* Ensure adjacent buttons hug the input */
.input-group .form-control + .btn,
.input-group .btn + .form-control {
  margin-left: -1px;
}

/* Remove double borders between buttons and inputs */
.input-group > .form-control:not(:last-child),
.input-group > .btn:not(:last-child) {
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
}
.input-group > .btn:not(:first-child),
.input-group > .form-control:not(:first-child) {
  border-top-left-radius: 0;
  border-bottom-left-radius: 0;
}

/* Style .input-group-btn buttons if present */
.input-group-btn {
  display: flex;
  align-items: center;
}
.input-group-btn .btn {
  position: relative;
  z-index: 1;
  border-radius: 0;
}
.input-group-btn:first-child .btn {
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
}
.input-group-btn:last-child .btn {
  border-top-left-radius: 0;
  border-bottom-left-radius: 0;
}

/* Optional visual tweaks to match Bootstrap 3 look */
.btn-default {
  background-color: #f8f9fa;
  border: 1px solid #ccc;
  color: #212529;
}
.btn-default:hover {
  background-color: #e9ecef;
  color: #212529;
}

/* Adjust spacing for icons inside buttons */
.btn i {
  pointer-events: none;
  vertical-align: middle;
}
.sectionBlockLayout{
  display: none;
}

/* ----- UNIVERSAL Subgrid responsive cards ----- */
@media (max-width: 767.98px) {

    /* Hide header row for all subgrids */
    .subgrid table thead,
    .subgrid th {
        display: none !important;
    }

    /* Subgrid row becomes a card */
    .subgrid table tbody tr {
        display: flex !important;
        flex-direction: column !important;
        background: #fff;
        padding: 0.5rem;
        border-radius: 8px;
        box-shadow: 0 2px 6px rgba(0,0,0,0.08);
    }

    /* Form-control style cells (ALL TDs except action menu) */
    .subgrid table tbody td:not([aria-label="action menu"]) {
        position: relative;
        display: block !important;
        width: 100% !important;
        border: none !important;

        /* Minimum Bootstrap form-control height */
        min-height: calc(1.5em + .75rem + 2px);

        /* Bootstrap padding */
        padding: 6px 12px;

        /* Space between rows */
        margin-top: 1.5rem;
        margin-bottom: 0.75rem;

        /* Readonly form-control background */
        background: #f5f5f5 !important;
        border: 1px solid #ced4da !important;
        border-radius: 4px;

        /* Allow wrapping */
        white-space: normal !important;
        overflow-wrap: break-word;
    }

    /* Floating label using data-th attribute */
    .subgrid table tbody td:not([aria-label="action menu"])::before {
        content: attr(data-th);
        position: absolute;
        top: -1.25rem;
        left: 0;
        font-size: 1rem;
        font-weight: 600;
        line-height: 1;
    }

    /* Action button cell stays separate */
    .subgrid table tbody td[aria-label="action menu"] {
        background: none !important;
        border: none !important;
        padding: 0 !important;
        margin-top: 0.5rem !important;
        margin-bottom: 0 !important;
        min-height: auto !important;
        order: 99 !important;
    }

    /* Hide label for action button cell */
    .subgrid table tbody td[aria-label="action menu"]::before {
        display: none !important;
    }

    /* Full-width button for mobile */
    .subgrid table tbody td[aria-label="action menu"] a {
        width: 100% !important;
        display: block !important;
        text-align: center !important;
    }

    /* Fix default Power Pages margins */
    .subgrid {
        margin: -1.5rem 0 0 !important;
    }

    .subgrid-cell {
        margin-bottom: 0 !important;
    }
    
}

.div-for-image-input{
  margin-top: 5px;
  margin-bottom: .25rem;
}

.grid-actions {
    margin-bottom: 0;
    margin-top: 1rem;
}

.entity-grid .message {
    margin: .5rem;
}
.subgrid,
.entity-grid .message .alert {
    margin-bottom: 0!important;
}
html[dir=ltr] .iconBorder{
  padding: 0;
}
/* ----------------------------------------------
   Custom Switch (Bootstrap-style, hex colours)
   ----------------------------------------------*/

/* Wrapper */
.custom-switch {
    padding-left: 0!important;
}
.custom-switch .custom-control {
    position: relative;
    display: block;
    min-height: 1.5rem;
    padding-left: 2.25rem; /* space for switch */
}
/* Checkbox (hidden) */
.custom-switch .custom-control-input {
    position: absolute;
    left: 0;
    top: 0;
    width: 1.75rem;
    height: 1.25rem;
    opacity: 0;
    z-index: -1;
}

/* Label */
.custom-switch .custom-control-label {
    margin-bottom: 0;
    cursor: pointer;
    vertical-align: top;
}

/* Track (background bar) */
.custom-switch .custom-control-label::before {
    content: "";
    position: absolute;
    top: 0.25rem;
    left: 0;
    width: 1.75rem;
    height: 1rem;
    background-color: #D1DFE7; /* OFF track */
    border-radius: 0.5rem;
    transition: background-color .2s ease-in-out, border-color .2s ease-in-out;
}

/* Knob */
.custom-switch .custom-control-label::after {
    content: "";
    position: absolute;
    top: calc(0.25rem + 2px);
    left: 2px;
    width: calc(1rem - 4px);
    height: calc(1rem - 4px);
    background-color: #ffffff; /* knob */
    border-radius: 0.5rem;
    transition: transform .2s ease-in-out;
}

/* Checked state (ON) */
.custom-switch .custom-control-input:checked ~ .custom-control-label::before {
    background-color: #2EAEE4; /* ON track */
}

.custom-switch .custom-control-input:checked ~ .custom-control-label::after {
    transform: translateX(0.75rem);
}

/* Disabled */
.custom-switch .custom-control-input:disabled ~ .custom-control-label {
    color: #648998;
    cursor: not-allowed;
}

.custom-switch .custom-control-input:disabled ~ .custom-control-label::before {
    background-color: #D1DFE7;
}

/* HTML: <div class="loader"></div> */
/* HTML: <div class="loader"></div> */
.loader {
  height: 80px;
  width: 80px;
  margin: 0 auto;
  aspect-ratio: 1;
  padding: 10px;
  border-radius: 50%;
  box-sizing: border-box;
  position: relative;
  mask: conic-gradient(#000 0 0) content-box exclude,conic-gradient(#000 0 0);
  filter: blur(12px);
}
.loader:before {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-conic-gradient(#0000 0 5%,#2EAEE4 ,#0000 20% 50%);
  animation: l2 3s linear infinite;
}
.loader:after {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-conic-gradient(#0000 0 5%,#111D5E  ,#0000 20% 50%);
  animation: l2 2s linear infinite;
}
@keyframes l2 {
  to {rotate: 1turn}
}
#savingOverlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.45);
    z-index: 9999;
    display: none; /* initially hidden */
}
.card .card-body .subgrid .pagination{
  margin: .5rem!important;
  justify-content: center;
}
.crmEntityFormView td.textarea.form-control-cell .description.below {
  clear: both !important;
}