/* =============================================================================================================== 
General Styling (Changes pushed live on 30-mar-2021)
=============================================================================================================== */

button.search-icon {
    position: absolute;
    width: 30px;
    height: 30px;
    top: 4px;
    left: 4px;
    fill: var(--primary);
    border: none;
    background-color: transparent;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s;
    border-radius: 50%;
    outline: 0;
}

.search-icon:hover {
    background-color: #eeebf1;
}

input.form-control {
    border: none;
    border-radius: 0;
    padding: 5px 15px 5px 40px;
    transition: background-color 0.2s;
    border-bottom: 1px solid rgba(94,32,125, 0.3);
}

input.form-control:focus {
    outline: 0;
    box-shadow: none;
    background-color: rgba(94,32,125, 0.2);
    border-color: rgba(94,32,125, 0.5);
}

#main-content-body {
    width: 90%;
    margin: 0 5%;
    min-height: calc(100vh - 74px - 58px - 4rem);
    margin-top: calc(56px * 2 + 2rem);
    margin-bottom: 2rem;
}

#documentation-body article * {
/*  Sets the default position of documentation content in preperation of the below offset */
    position: relative;
    z-index: 1;
}

#documentation-body h3.h5 {
    z-index: 0;
}

#documentation-body h3.h5::before {     
/*  Creates an offset for the h3s so that they are no longer hidden by the banner when
    clicking the page links.
    
    The padding overlaps text above the h3 so we need to ensure that it is the element
    furthest back in the DOM so text can be clicked/highlighted. */
    content: "";
    position: relative;
    display: block;
    padding-top: 150px;
    margin-top: -150px;
    z-index: -10000;
}

.list-link::before {
/*  This will offset the above offset so that if titles are given a link, they can still be
    clicked at the correct position. */
    content: "";
    position: relative;
    display: block;
    padding-top: 1px;
    margin-top: -1px;
}

#mobile-search-form {
    display: none;
}

.document-embedded {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
}

.document-embedded-main {
    width: calc(100% - 2rem) !important;
    margin: 1rem !important;
}

.document-embedded-main #documentation-body {
    margin-top: 0 !important;
}

.document-embedded-col {
    padding-left: 0 !important;
    padding-right: 0 !important;
    margin-bottom: 0 !important;
}

/* ---------------------------------------------------
Request Documentation Button & Form
--------------------------------------------------- */

.request-help {
    background-color: var(--primary);
    width: fit-content;
    border-radius: 26px;
    position: fixed;
    bottom: 10px;
    right: 10px;
    vertical-align: middle;
    box-shadow: 1px 2px 5px -1px #424242;
    padding: 5px 10px;
    color: #fff;
    cursor: pointer;
    transition: all 300ms ease-in-out;
}

.request-help::after {
    content: "Missing content?";
    vertical-align: middle;
}

.request-help-form-container {
    display: none;
    position: fixed;
    z-index: 100;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background-color: rgba(0, 0, 0, 0.5);
}

.request-help-form {
    position: absolute;
    margin: auto;
    display: block;
    width: 50%;
    height: calc(58% + 4rem);
    padding: 2rem;
    background-color: #fff;
    box-shadow: 0 1px 15px 3px rgb(32 33 36 / 50%);
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    border-radius: 12px;
    z-index: 0;
}

.close-button {
    position: absolute;
    color: #0076be;
    margin: auto;
    cursor: pointer;
    transition: all 300ms ease-in-out;
    top: 0;
    right: 0;
    bottom: calc(58% + 1.25rem);
    left: 48%;
    z-index: 1;
    display: block;
    width: fit-content;
    height: fit-content;
}

.close-buttom > i.material-icons {
    font-size: 1.5rem;
    display: block;
    font-weight: bold;
    text-align: center;
}

.close-button-text {
    opacity: 0;
    display: block;
    transition: all 300ms ease-in-out;
    text-align: center;
    margin-top: -5px;
}

.show-form {
    display: block;
}

.doc-hide {
    overflow: hidden;
}

/* =============================================================================================================== 
Module Content Navigation
=============================================================================================================== */

#module-content {
    background-color: #fff;
    height: calc(100% - 56px *2);
    overflow-x: hidden;
    overflow-y: scroll;
    top: calc(56px * 2);
    left: 0px;
    width: 15rem;
    box-shadow: 1px 0px 2px 0px #dfdfdf;
    padding: 1rem !important;
    z-index: 99;
    z-index: 1;
}

#module-content .module-nav-content .nav {
    margin: 0.5rem 1rem;
}

#module-content .module-nav-content .nav .nav-item {
    margin: 0.3rem 0;
    width: 100%;
}

#module-content .module-nav-content .nav .nav-item a {
    text-decoration: none;
    color: #757575;
}

#module-content .module-nav-content .nav .nav-item .link-active {
    color: var(--primary);
}

#module-content .module-nav-content .nav .nav-item a:hover {
    color: #424242;
}

#module-content .module-nav-content .nav .nav-item.active a,
#module-content .module-nav-content .nav .nav-item.active a:hover {
    font-weight: 600;
    color: var(--primary);
}

.child-container {
    margin-left: 1rem;
    border-left: 1px solid var(--primary);
}

.child-item {
    padding: 0.2rem 0;
    padding-left: 0.5rem;
    font-size: 0.8rem;
}

/* =============================================================================================================== 
Document Structure & Content
=============================================================================================================== */

/* ---------------------------------------------------
Document Structure
--------------------------------------------------- */

.document-container-column {
    padding-left: 16rem;
    padding-right: 16rem;
    margin-bottom: 2rem;
}

.document-body {
    width: 100%;
    padding: 3rem;
    min-height: calc(100vh - 74px - 58px - 4rem);
    margin-bottom: 1rem;
    overflow-wrap: anywhere;
    background-color: #fff;
    box-shadow: 0 2px 4px 2px #dfdfdf;
}

.update-date {
    font-size: 10pt;
    padding-bottom: 1rem;
}

.download-btn {
    display: flex;
    position: relative;
    float: right;
    border-color: var(--primary);
    color: var(--primary);
    text-transform: capitalize;
    cursor: pointer;
    z-index: 1;
    align-items: center;
    min-width: 80px;
    gap: 0.6rem;
    padding: 0.4rem 0.6rem;
    border-radius: 0.2rem;
    font-weight: 500;
}
.download-btn.btn:hover {
    background-color: var(--primary);
    color: #fff;
}
.download-icon {
    width: 18px;
    fill: var(--primary);
}
.download-btn:hover .download-icon {
    fill: #fff;
}

.btn-outline-secondary:not(:disabled):not(.disabled).active,
.btn-outline-secondary:not(:disabled):not(.disabled):active,
.show > .btn-outline-secondary.dropdown-toggle,
.btn-outline-secondary:hover {
    background-color: var(--primary);
    color: #fff !important;
}

.btn-outline-secondary.focus,
.btn-outline-secondary:focus {
    box-shadow: 0 0 0 0.2rem rgba(94,32,125, 0.5);
}

/* ---------------------------------------------------
CMS Grid
--------------------------------------------------- */

.grid-row.row {
    padding: 0.5rem 0;
}

.document-body .table tbody tr:last-child td {
    border-bottom: 1px solid #dee2e6;
}

.document-body .grid-container.container-fluid .grid-row .grid-column article a:not([href]) { 
    position: relative;
    top: -135px;
    z-index: -100;
}

article {
    width: 100%;
    height: fit-content;
    border-radius: 2px;
    position: relative;
}

/* ---------------------------------------------------
Document Content Styling
--------------------------------------------------- */

article img {
    max-width: 100%;
    height: auto;
}

.video-wrapper {
    text-align: center;
    margin: 2rem 0;
}

article > ul > li {
    margin: 0.7rem 0;
}

pre {
    display: block;
    font-size: 87.5%;
    color: #212529;
    background-color: #F5F5F5;
    padding: 1rem;
    border-radius: 5px;
    width: 100%;
}

/* ---------------------------------------------------
Accordion form styling
--------------------------------------------------- */

.accordion-form-headline > h1 {
    text-align: center;
    font-weight: lighter;
    margin: 2rem 0 1.5rem;
}

.accordion-form {
    width: 98%;
    margin: 1rem auto;
}

.accordion-header-a {
    color: #424242;
    text-decoration: none;
}

.accordion-header-a:hover {
    color: #424242;
    text-decoration: none;
}

a[aria-expanded="true"] .accordion-header {
    border-width: 1px 0px;
}

a[aria-expanded="true"] .accordion-header .accordion-header-container .material-icons {
    transform: rotate(90deg);
}

.accordion-header {
    background-color: #fff;
    border-width: 1px 0px 0px 0px;
    border-color: #E0E0E0;
    border-style: solid;
}

.accordion-form a:last-of-type .accordion-header {
    border-width: 1px 0px 1px 0px;
}

.accordion-header-container {
    vertical-align: middle;
    padding: 0.75rem;
    display: flex;
    align-items: center;
    flex: 1 1 auto;
}

.accordion-header-title {
    vertical-align: middle;
    margin-right: auto;
    margin-bottom: 0;
    font-size: 1.25rem;
}

.accordion-header-container > .material-icons {
    vertical-align: middle;
    font-size: 2rem;
    margin-right: 2rem;
    transition: transform 300ms ease-in-out;
}

.accordion-body {
    padding: 0px 1rem;
    display: flex;
    flex-direction: row;
    justify-content: center;
    vertical-align: middle;
    background-color: #fff;
}

.accordion-body-content {
    width: 100%;
    padding: 1rem 0;
    display: inline-flex;
    justify-content: center;
    flex-direction: column;
    vertical-align: middle;
}

.accordion-video {
    width: 45%;
    padding-top: 25.25%;
    height: 0;
    position: relative;
    margin: 1rem 0;
    display: inline-flex;
    vertical-align: middle;
    justify-content: right;
    align-self: center;
}

/* =============================================================================================================== 
Page Content Navigation
=============================================================================================================== */

aside.page-nav-container {
    background-color: transparent;
    border-left: 3px solid var(--primary);
    width: 15rem;
    height: fit-content;
    top: calc(56px * 2 + 2rem);
    right: 5%;
    z-index: 1;
    max-height: calc(100vh - 74px - 58px - 4rem);
    overflow-x: hidden;
    overflow-y: scroll;
}

#page-content-list {
    padding: 0;
}

#page-content-list .nav-link,
#page-content-list nav .nav-link {
    padding: 0.3rem 0rem;
}

#page-content #page-content-list #page-content-list-items .nav-link {
    color: #212529;
    transition: all 300ms ease-in-out !important;
    font-size: 0.8rem;
}

#page-content #page-content-list #page-content-list-items .nav-link:hover {
    color: var(--primary);
    transition: all 300ms ease-in-out !important;
}

#page-content #page-content-list #page-content-list-items .nav-link.active {
    color: var(--primary);
    font-weight: 600;
    transition: all 300ms ease-in-out !important;
}

/* =============================================================================================================== 
Macros
=============================================================================================================== */

/* ---------------------------------------------------
Child Documentation Buttons
--------------------------------------------------- */

.child-documents-container {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    grid-auto-rows: 1fr;
    margin-bottom: 2rem;
    grid-column-gap: 1rem;
}

.child-document {
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    box-shadow: 0px 0px 8px -5px rgb(0 0 0 / 70%);
    transition: all 400ms ease-out;
}

.child-document:after {
    width: 100%;
    content: "";
    position: absolute;
    bottom: 0;
    height: 3px;
    background-color: var(--primary);
}

.document-link {
    padding: 2rem 1rem;
    text-decoration: none;
    color: unset;
    display: grid;
    grid-row-gap: 1rem;
}

.document-title.h5,
.document-overview {
    text-align: center;
}

.document-button {
    text-transform: uppercase;
    animation: button-gradien-out 600ms ease-in-out;
    animation-fill-mode: both;
    border: none;
    background: linear-gradient( 41deg, rgba(94,32,125, 1) 0%, rgba(94,32,125, 1) 65%, rgba(173, 103, 180, 1) 100%);
    background-size: 150%;
    background-position: 0;
    color: #fff;
    padding: .375rem .75rem;
    text-align: center;
    border-radius: .25rem;
}

/* =============================================================================================================== 
Rich Text Custom Format Options
=============================================================================================================== */

.colorRed {
    color: red;
}

.highlight-green {
    background-color: rgba(57, 255, 20, 0.5);
}

.highlight-blue-dark {
    background-color: rgba(20, 57, 255,0.5);
}

.highlight-yellow {
    background-color: rgba(255, 218, 20,0.5);
}

.highlight-cyan {
    background-color: rgba(0,255,255,0.5);
}

.highlight-pink {
    background-color: rgba(255,105,180,0.5);
}

.highlight-red {
    background-color: rgba(251, 43, 17,0.5);
}

.highlight-grey {
    background-color: rgba(158, 158, 158,0.5);
}

div.alert.alert-primary {
    color: #004085;
    background-color: #cce5ff;
    border-color: #b8daff;
}