:root {
    /* Override default bootstrap colours */
    --bs-danger: #EA2238;
    --bs-warning: #FFA600;
    --bs-success: #12A88A;
    --bs-info: #0055A8;
    /* "background" feedback colours defined by AON */
    --danger-bg: #FCDCDC;
    --warning-bg: #FFF6B7;
    --success-bg: #C1F2E9;
    --info-bg: #CCEAF5;
    /* Other definitions */
    --gray-100: #030303;
    --gray-200: #5D6D78;
    --gray-300: #82939A;
    --gray-400: #ACC0C4;
    --gray-500: #CDDBDE;
    --gray-600: #E5EFF0;
    --gray-700: #EEF6F7;
    --gray-800: #F9FCFC;
    --aon-navy: #262836;
    --aon-red: #EB0017;
    --teal-light: #29B0C3;
    --teal-dark: #007585;
    --navbar-height: 64px;
    --gray-hover: var(--gray-700);
    --gray-active: var(--gray-500);
    --background-color: #f1f1f1;
    --background-color-light: white;
    --background-highlight: var(--gray-600);
    /* Random, highly-specific variables */
    --schedule-nav-width: 15rem
}

body {
    /* So navigation bar doesn't overlap header */
    padding-top: calc(var(--navbar-height) - 4px);
    display: flex;
    flex-direction: column;
    height: 100vh;
    background-color: var(--background-color);
    color: var(--gray-100);
}

body footer {
    margin-top: auto;
}

.page-header {
    padding-bottom: 0.5rem;
    margin-bottom: 1.5rem;
    margin-top: 1.5rem;
}

.navbar {
    padding-top: 0;
    padding-bottom: 0;
    height: var(--navbar-height);
    background-color: white;
    box-shadow: 0 2px 4px 0 rgba(0,0,0,0.25);
}

/* Modify brand and text color */

.navbar,
.navbar .navbar-text,
.navbar .nav-link {
    font-weight: 400;
    font-size: 16px;
    line-height: 24px;
    color: var(--gray-100);
    text-decoration: none;
    border-top: 4px solid var(--gray-800);
    padding-top: 20px;
    padding-bottom: 20px;
    padding-right: 20px !important;
    padding-left: 20px !important;
    margin-top: 0px;
}

.nav-link:hover {
    font-weight: 400;
    font-size: 16px;
    line-height: 24px;
    color: #B80012;
    border-top: 4px solid #B80012 !important;
    padding-top: 20px;
    padding-bottom: 16px;
    margin-top: 0px;
    background-color: var(--gray-700);
}

.nav-active {
    font-weight: 400;
    font-size: 16px;
    line-height: 24px;
    color: #EB0017 !important;
    border-top: 4px solid #EB0017 !important;
    padding-top: 20px;
    padding-bottom: 20px;
    margin-top: 0px;
}

.aon-logo {
    align-content: flex-start;
    height: 30px;
    width: 79px;
    margin-left: 20px;
    margin-top: 30px;
    margin-bottom: 30px;
    padding-top: 0px;
    padding-bottom: 0px;
}

.cast-brand {
    font-weight: 700;
    font-size: 24px;
    line-height: 24px;
    color: var(--gray-100);
    text-decoration: none;
    margin-left: 20px;
    margin-top: 20px;
    margin-bottom: 20px;
}

.footer-custom {
    background-color: var(--gray-800);
    height: 90px;
    border: 1px;
    border-color: var(--gray-500);
}

.footer-text {
    float: right;
    color: var(--gray-200);
    align-content: flex-end;
    margin-right: 20px;
    margin-top: 40px;
    margin-bottom: 24px;
    display: inline;
}

/* Headings */

h1 {
    font-weight: 700;
    font-size: 40px;
    line-height: 52px;
}

h2 {
    font-weight: 700;
    font-size: 28px;
    line-height: 36px;
}

h3 {
    font-weight: 700;
    font-size: 24px;
    line-height: 32px;
}

h4 {
    font-weight: 300;
    font-size: 24px;
    line-height: 28px;
}

h5 {
    font-weight: 700;
    font-size: 20px;
    line-height: 24px;
}

h6 {
    font-weight: 700;
    font-size: 16px;
    line-height: 20px;
    text-transform: uppercase;
}

.colored-heading {
    color: #007585;
}

/* Links */
a {
    color: var(--teal-dark);
    text-decoration: underline;
}

.dropdown-menu > a {
    text-decoration: none;
}

a:hover {
    color: #003C55;
    text-decoration: none;
}

a:active {
    color: #003C55;
    text-decoration: none;
}

/* Buttons */
.btn-fw {
    /* Make button fixed-with */
    min-width: 130px;
}

.btn-primary {
    color: var(--gray-600);
    background-color: var(--aon-navy);
    border-color: var(--aon-navy);
    text-decoration: none;
    border-radius: 4px;
}

.btn-primary:hover {
    color: var(--gray-600);
    background-color: var(--gray-100) !important;
    border-color: var(--gray-100) !important;
    text-decoration: underline;
    border-radius: 4px;
}

.btn-primary:active,
.btn-primary:focus {
    color: var(--gray-600);
    background-color: var(--gray-300) !important;
    border-color: var(--gray-300) !important;
    text-decoration: underline;
    border-radius: 4px;
    outline: none !important;
    box-shadow: none !important;
}

.btn-secondary {
    color: var(--gray-600);
    background-color: var(--teal-dark);
    border-color: var(--teal-dark);
    text-decoration: none;
    border-radius: 4px;
}

.btn-secondary:hover {
    color: var(--gray-600);
    background-color: #003C55;
    border-color: #003C55;
    text-decoration: underline;
    border-radius: 4px;
}

.btn-secondary:active,
.btn-secondary:focus {
    color: var(--gray-600);
    background-color: #003C55 !important;
    border-color: #003C55 !important;
    text-decoration: underline;
    border-radius: 4px;
    outline: none !important;
    box-shadow: none !important;
}

.btn-outline-secondary {
    border-color: var(--teal-dark);
    text-decoration: none;
    border-radius: 4px;
}

.btn-outline-secondary:hover {
    background-color: var(--teal-dark);
    text-decoration: underline;
}

.btn-info {
    color: var(--aon-navy);
    background-color: #fff;
    border: 1px solid var(--aon-navy);
    border-radius: 4px;
}

.btn-info:hover {
    color: var(--aon-navy);
    background-color: var(--gray-800);
    border: 1px solid var(--aon-navy);
    text-decoration: underline;
    border-radius: 4px;
}

.btn-info:active,
.btn-info:focus {
    color: var(--aon-navy);
    background-color: var(--gray-700) !important;
    border: 1px solid var(--aon-navy) !important;
    text-decoration: underline;
    border-radius: 4px;
    outline: none !important;
    box-shadow: none !important;
}

.btn-danger {
    color: var(--gray-600);
    background-color: var(--bs-danger);
    border-color: var(--bs-danger);
    text-decoration: none;
    border-radius: 4px;
}

.btn-danger:hover {
    color: var(--gray-600);
    background-color: ‍#CA110F !important;
    border-color: ‍#CA110F !important;
    text-decoration: underline;
    border-radius: 4px;
}

.btn-danger:active,
.btn-danger:focus {
    color: var(--gray-600);
    background-color: ‍var(--danger-bg) !important;
    border-color: ‍var(--danger-bg) !important;
    text-decoration: underline;
    border-radius: 4px;
    outline: none !important;
    box-shadow: none !important;
}

.btn .fa {
    margin-right: 8px;
}

/* Badges */
.badge-danger {
    color: var(--bs-danger);
    background-color: var(--danger-bg);
    border-color: var(--bs-danger);
}

.badge-warning {
    color: var(--bs-warning);
    background-color: var(--warning-bg) !important;
    /* background-color: #FFF6B7; */
    border-color: var(--bs-warning);
}

.badge-success {
    color: var(--bs-success);
    background-color: var(--success-bg);
    border-color: var(--bs-success);
}

.badge-info {
    color: var(--bs-info);
    background-color: var(--success-bg);
    border-color: var(--bs-info);
}

/* List groups */
.list-group-item-danger,
.list-group-item-danger:active {
    color: var(--aon-navy);
    background-color: ‍var(--danger-bg);
    border-top: 6px solid #CA110F;
}

.list-group-item-warning,
.list-group-item-warning:active {
    color: var(--aon-navy);
    background-color: ‍‍var(--warning-bg);
    border-top: 6px solid #B37400;
}

.list-group-item-information,
.list-group-item-information:active {
    color: var(--aon-navy);
    background-color: var(--info-bg);
    border-top: 6px solid ‍#003B75;
}

.alert {
    border-radius: 4px;
    border: none;
    border-top: 6px solid;
}

.alert-danger {
    background-color: var(--danger-bg);
    border-color: var(--bs-danger);
}

.alert-title {
    color: var(--aon-navy);
    font-weight: 700;
    font-size: 16px;
    line-height: 20px;
}

.fa-exclamation-circle {
    color: ‍#B37400;
    font-size: 20px;
    line-height: 24px;
}

.fa-bell {
    color: ‍‍#003B75;
    font-size: 20px;
    line-height: 24px;
}

.text-danger {
    color: #EB0017;
}

/* Breadcrumbs */
.breadcrumb {
    background-color: transparent;
}

.breadcrumb-text {
    color: var(--teal-dark);
    display: inline;
    font-weight: 400;
    font-size: 14px;
    line-height: 18px;
    text-decoration: underline;
}

.breadcrumb-text:hover {
    color: #003C55;
    display: inline;
    font-weight: 400;
    font-size: 14px;
    line-height: 18px;
    text-decoration: none;
}

.breadcrumb-text-final {
    color: var(--aon-navy);
    display: inline;
    font-weight: 400;
    font-size: 14px;
    line-height: 18px;
    text-decoration: none;
}

/* Table Navigation */
.page-item.active .page-link {
    z-index: 1;
    color: var(--gray-600);
    background-color: #003C55;
    border-color: #003C55;
    outline: none !important;
    box-shadow: none !important;
}

.page-item:hover .page-link {
    z-index: 1;
    color: var(--gray-600);
    background-color: #003C55;
    border-color: #003C55;
}

.page-link {
    position: relative;
    display: block;
    padding: 0.5rem 0.75rem;
    margin-left: -1px;
    line-height: 1.25;
    color: var(--teal-dark);
    background-color: var(--gray-600);
    border: 1px solid var(--gray-600);
}


.card-title {
    color: var(--teal-dark);
}

.card {
    border-radius: 8px;
    flex-basis: fit-content !important;
    border: 1px solid #ACC0C4;
}

/* Styling override class for large cards which are actually used as
   page sections just to piggyback off of existing styling. */
.section-card {
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075) !important;
    flex-basis: fit-content !important;
    border: none;
}

.section-card > .table th[scope="col"] {
    border: none;
}
.section-card > .table th[scope="col"]:first-child {
    border-top-left-radius: 8px;
}
.section-card > .table th[scope="col"]:last-child {
    border-top-right-radius: 8px;
}

.page-card-shadow {
    /* Add a shadow as if this were a standard page card */
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15) !important;
}
.page-card {
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15) !important;
    border-radius: 8px;
    background-color: var(--background-color-light);
    padding: 1.5rem 3rem 3rem 3rem;
}


/* Border styling */

.border {
    border: 1px solid var(--gray-400) !important;
}

.border-muted {
    border: 1px solid var(--gray-500) !important;
}

/* Overridden style utilities */

.text-primary {
    color: var(--teal-dark) !important;
}

.text-success {
    color: var(--bs-success) !important;
}

.text-danger {
    color: var(--bs-danger) !important;
}

.text-warning {
    color: var(--bs-warning) !important;
}

.text-info {
    color: var(--bs-info) !important;
}

.table td, .table tr th {
    vertical-align: middle;
}

.table th[scope="col"] {
    background-color: var(--gray-600);
    font-variant: small-caps;
    color: var(--gray-200);
}

.table th[scope="col"]:first-child {
    border-top-left-radius: 8px;
}
.table th[scope="col"]:last-child {
    border-top-right-radius: 8px;
}

.table-hover tbody tr {
    border-left: solid white;
}

.table-hover tbody tr:hover {
    background-color: var(--gray-hover);
    border-left: solid var(--teal-dark);
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075) !important;;
}

.table-clickable tbody tr {
    cursor: pointer;
    user-select: none;
}

.table-clickable tbody tr:active {
    background-color: var(--gray-active);
}

/* Custom style utilities */

.bg-gray-100 {
    background-color: var(--gray-100) !important;
  }

.bg-gray-200 {
    background-color: var(--gray-200) !important;
}

.bg-gray-300 {
    background-color: var(--gray-300) !important;
}

.bg-gray-400 {
    background-color: var(--gray-400) !important;
}

.bg-gray-500 {
    background-color: var(--gray-500) !important;
}

.bg-gray-600 {
    background-color: var(--gray-600) !important;
}

.bg-gray-700 {
    background-color: var(--gray-700) !important;
}

.bg-gray-800 {
    background-color: var(--gray-800) !important;
}

.hstack {
    display: flex;
    column-gap: 0.5rem;
    align-items: baseline;
    flex-direction: row;
}

.vstack {
    display: flex;
    flex-direction: column;
    row-gap: 0.5rem;
    align-items: stretch;
}


.schedule-nav {
    width: var(--schedule-nav-width);
}

@media (max-width: 1650px) {
    .schedule-nav {
        display: none;
    }
}

.schedule-nav {
    position: sticky;
    float: left;
    margin-left: calc(-1rem - var(--schedule-nav-width));
    top: calc(2rem + var(--navbar-height));
    /* height: 0 to remove from flexbox calculations */
    height: 0;
}

.schedule-nav-item {
    display: flex;
    align-items: center;
    height: 2rem;
    padding-left: 0.5rem;
    cursor: pointer;
    user-select: none;
    border-radius: 0.25rem;
    text-decoration: none;
    color: var(--gray-100);
}

.schedule-nav-item:hover {
    background-color: var(--gray-hover) !important;
}
.schedule-nav-item:active {
    background-color: var(--gray-active) !important;
}

.schedule-nav-item .fa {
    color: var(--teal-dark);
    width: 1rem;
    margin-right: 1rem;
}
.schedule-nav-item > button {
    background-color: transparent;
    border: none;
    padding-left: 0;
    width: 100%;
    text-align: left;
}
.schedule-nav-item > button:focus {
    outline: none;
}

/* Wrapper class put an icon inside of a circle */
.icon-circle {
    width: 4rem;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-shrink: 0;
}

.icon-circle.circle-bordered {
    border-style: solid;
    border-width: 1px;
}

.icon-circle::after {
    content: "";
    padding-bottom: 100%;
    display: block;
}

.icon-circle > .fa {
    position: absolute;
    font-size: 32px;
}

.icon-sm {
    width: 2rem;
}
.icon-sm > .fa {
    position: absolute;
    font-size: 16px;
}


.icon-xs {
    width: 1rem;
}
.icon-xs > .fa {
    position: absolute;
    font-size: 8px;
}


.icon-md {
    width: 3rem;
}
.icon-md > .fa {
    position: absolute;
    font-size: 24px;
}


/* Drag-and-drop box */
.dropzone {
    height: 12rem;
    width: 100%;
    min-width: 250px;
    border: 2px dashed var(--gray-500);
    border-radius: 1rem;
    color: var(--gray-300);
    padding: 1rem;
    cursor: pointer;
    user-select: none;
    /* centre text */
    display: flex;
    flex-direction: column;
    row-gap: 0.5rem;
    justify-content: center;
    align-items: center;
}

.dropzone > .fa {
    color: var(--gray-500);
    font-size: 2rem;
}

.dropzone a {
    text-decoration: none;
}

.dropzone.highlight {
    border-color: var(--gray-200);
    border-color: var(--teal-dark);
    background-color: var(--background-highlight);
    border-style: solid;
}

/* Collapse button */

button.btn-collapse {
    background-color: var(--gray-800);
}

button.btn-collapse:focus {
    box-shadow:none;
}

button.btn-collapse.collapsed .arrow-icon {
    transform: rotate(90deg); /* v to match Bootstrap for closed accordions */
}

button.btn-collapse:not(.collapsed) .arrow-icon {
    transform: rotate(-90deg); /* ^ to match Bootstrap for open accordions */
}

/* Random utilities */

.toggleable {
    cursor: pointer;
    user-select: none;
    /* Stop <a> tags being underlined for toggleable links */
    text-decoration: none;
}

.toggleable:hover {
    background-color: var(--gray-hover);
}

.toggleable:active {
    background-color: var(--gray-active);
}

.toggleable[active] {
    background-color: var(--gray-hover);
    /* Use outline instead of border to prevent this from affecting size
    calculations and causing element jiggling on toggle */
    outline: 2px solid var(--teal-dark);
}

.toggleable[active]:active {
    background-color: var(--gray-active);
}
