/* Variables */
:root {
    --ioa-dark-blue: #002C5B;
    --ioa-blue: #005596;
    --ioa-muted-blue: #2B99D9;
    --ioa-light-blue: #83C9FF;
    --ioa-red: #D11242;
    --ioa-light-red: #FEEDF1;
    --ioa-dark-red: #A0062E;
    --ioa-grey: #778CA3;
    --ioa-light-grey: #C9E8FC;
    --ioa-dark-grey: #2C3E50;
    --ioa-white: #FFFFFF;
    --ioa-box-shadow: rgba(0, 0, 0, 0.38);
}


/* Base Elements */
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
input:-webkit-autofill:active {
    -webkit-box-shadow: 0 0 0 30px var(--ioa-white) inset !important;
}

#login {
    background-color: var(--ioa-dark-blue);
}

#login .card-body svg {
    max-width: 300px;
    margin: 1rem auto;
    display: inherit;
}

#login .powered-by svg {
    max-width: 48px;
    margin-top: 0.5rem;
}

/* Header */
.profile-image {
    padding: 0 0.5rem;
}

.profile-image svg {
    margin: 0;
    width: 48px;
    height: 48px;
    position: relative;
    overflow: hidden;
}

/* Navigation */
.power-bottom {
    display: block;
    position: absolute;
    bottom: 100px;
    width: 100%;
}

.powered-by img, .powered-by svg {
    width: 48px !important;
    height: auto;
    margin-bottom: 0.25rem !important;
    opacity: 1 !important;
}

.powered-by span {
    color: var(--ioa-white);
    font-weight: normal;
    font-size: 0.75rem;
    text-transform: none !important;
}

#dashboard header #userinfo .btn-group .dropdown-toggle.active,
#dashboard header #userinfo .btn-group .dropdown-toggle:hover,
#dashboard header #userinfo .btn-group .dropdown-toggle:focus {
    color: var(--ioa-muted-blue);
    background-color: var(--ioa-white);
}

#dashboard header #userinfo, #dashboard nav {
    background: var(--ioa-dark-blue);
}

#dashboard nav li.active a, #dashboard nav li.active a svg {
    color: var(--ioa-light-blue);
    font-weight: normal;
}

#dashboard nav li.active a img {
    opacity: 0.7;
}

#dashboard nav li a:hover, #dashboard nav li a:focus {
    color: var(--ioa-light-blue);
    background: var(--ioa-box-shadow);
}

/* User Status */
.status {
    margin-right: 0.5rem;
    font-size: 0.675rem;
}

.status.active {
    color: var(--ioa-muted-blue);
}

.status.inactive {
    color: var(--ioa-grey);
}

.status.terminated {
    color: var(--ioa-red);
}

/* Form Elements */
.input-group {
    position: relative;
    margin: 0.5rem 0 0.875rem;
}

.input-group.disabled {
    opacity: 0.5;
}

.input-group>.form-control {
    margin-bottom: 0.5rem;
    padding: 0 0.35rem 0.25rem;
    color: var(--ioa-dark-grey);
    font-weight: 400;
    border: none;
    border-bottom: 1px solid var(--ioa-grey);
    border-radius: 0;
    background-color: transparent;
    width: 100%;
    height: 40px;
}

.input-group>.form-control:focus {
    outline: 0;
    box-shadow: none;
    border: 0;
    border-bottom: 2px solid var(--ioa-muted-blue);
}

.input-group>.form-control:focus ~ label,
.input-group label.input-filled {
    top: -0.75rem;
    left: 0.25rem;
    font-size: 0.75rem;
    width: 100%;
    z-index: 10;
}

.input-group label {
    color: var(--ioa-muted-blue);
    font-size: 1rem;
    position: absolute;
    pointer-events: none;
    left: 0.25rem;
    top: 0.675rem;
    transition: 0.2s ease all;
    text-align: left;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.input-group .view-pass {
    z-index: 10;
}

.input-group .view-pass svg {
    margin: 1rem auto;
    display: inherit;
    position: absolute;
    top: -0.25rem;
    right: 0.375rem;
    color: var(--ioa-dark-blue);
}

.input-group input[type=password] {
    padding-right: 2rem;
}

label {
    color: var(--ioa-muted-blue);
}

.btn {
    padding: 0.5rem 0.875rem;
    text-transform: none;
}

.btn.disabled {
    box-shadow: none;
}

.btn-circle {
    background: transparent;
    border: 2px solid var(--ioa-dark-grey);
    color: var(--ioa-dark-grey);
}

.btn-outline {
    color: var(--ioa-dark-blue);
    background-color: var(--ioa-white);
    border: 2px solid var(--ioa-dark-blue);
}

.btn-outline:hover, .btn-outline:focus {
    color: var(--ioa-white);
    background-color: var(--ioa-dark-blue);
}

.btn-red {
    color: var(--ioa-white) !important;
    background-color: var(--ioa-red) !important;
    border: 0 solid transparent;
}

.btn-red.border {
    border: 2px solid transparent !important;
}

.btn-red:hover, .btn-red:focus {
    background-color: var(--ioa-dark-red) !important;
}

.btn-blue {
    color: var(--ioa-white) !important;
    background-color: var(--ioa-light-blue) !important;
    border: 0 solid transparent;
}

.btn-blue.border {
    border: 2px solid transparent !important;
}

.btn-blue:hover, .btn-blue:focus {
    background-color: var(--ioa-muted-blue) !important;
}

.btn-access {
    display: block;
    margin-right: 1rem;
    padding: 1rem;
    color: var(--ioa-white);
    text-align: center;
    text-transform: uppercase;
    background-color: var(--ioa-blue);
    border-radius: 0.5rem;
    width: 200px;
}

.btn-access:hover, .btn-access:focus {
    color: var(--ioa-white);
    background-color: var(--ioa-muted-blue);
}

.btn-access svg {
    margin: 0 auto;
    display: block;
    max-height: 96px;
}

.btn-access span {
    display: block;
    margin-top: 0.5rem;
    font-weight: bold;
}

/* Color Scheme */
.color-darkblue {
    color: var(--ioa-dark-blue) !important;
}

.bg-darkblue {
    background-color: var(--ioa-dark-blue) !important;
}

.color-blue {
    color: var(--ioa-blue) !important;
}

.bg-blue {
    background-color: var(--ioa-blue) !important;
}

.color-lightblue {
    color: var(--ioa-muted-blue) !important;
}

.bg-lightblue {
    background-color: var(--ioa-muted-blue) !important;
}

.color-lightblue-alt {
    color: var(--ioa-light-blue) !important;
}

.bg-lightblue-alt {
    background-color: var(--ioa-light-blue) !important;
}

.color-lightgrey {
    color: var(--ioa-light-grey) !important;
}

.bg-lightgrey {
    background-color: var(--ioa-light-grey) !important;
}

.color-grey {
    color: var(--ioa-grey) !important;
}

.bg-grey {
    background-color: var(--ioa-grey) !important;
}

.color-red {
    color: var(--ioa-red) !important;
}

.bg-red {
    background-color: var(--ioa-red) !important;
}

.color-lightred {
    color: var(--ioa-light-red) !important;
}

.bg-lightred {
    background-color: var(--ioa-light-red) !important;
}

/* Banner */
.page-banner {
    background-color: var(--ioa-light-grey);
}

.page-banner h2 {
    color: var(--ioa-blue);
}

/* Login State */
.login-red, .login-red-btn {
    background-color: var(--ioa-light-red);
}

.login-red {
    padding: 1.75rem;
}

.login-red-btn {
    padding: 1.375rem 1.75rem;
}

/* State Selection */
.state-list {
    background-color: var(--ioa-light-grey);
}

.state-list .card-header {
    color: var(--ioa-white);
    background-color: var(--ioa-dark-blue);
}

.state-list .card-body .list-group li {
    color: var(--ioa-dark-blue);
}

.select-wrapper.state-selector input.select-dropdown,
.select-wrapper.renewal-selector input.select-dropdown {
    margin: 0;
    padding: 0.375rem 0.5rem;
    color: var(--ioa-dark-blue);
    background-color: var(--ioa-light-grey);
    border: none;
    border-radius: 0.25rem;
    line-height: 1.5;
    height: auto;
}

.select-wrapper.state-selector span.caret,
.select-wrapper.renewal-selector span.caret {
    color: var(--ioa-dark-blue);
    top: 0.25rem;
    z-index: 1;
}

.select-wrapper.state-selector .dropdown-content,
.select-wrapper.renewal-selector .dropdown-content {
    background-color: var(--ioa-light-grey);
}

.select-wrapper.state-selector .dropdown-content li,
.select-wrapper.renewal-selector .dropdown-content li {
    color: var(--ioa-dark-blue);
}

.select-wrapper.state-selector .dropdown-content li.active,
.select-wrapper.state-selector .dropdown-content li.selected,
.select-wrapper.renewal-selector .dropdown-content li.active,
.select-wrapper.renewal-selector .dropdown-content li.selected {
    background-color: var(--ioa-muted-blue);
}

.select-wrapper.state-selector .dropdown-content li:hover,
.select-wrapper.state-selector .dropdown-content li:focus,
.select-wrapper.renewal-selector .dropdown-content li:hover,
.select-wrapper.renewal-selector .dropdown-content li:focus {
    background-color: var(--ioa-dark-blue);
}

.select-wrapper.state-selector .dropdown-content li.active span.filtrable,
.select-wrapper.state-selector .dropdown-content li.selected span.filtrable,
.select-wrapper.state-selector .dropdown-content li:hover span.filtrable,
.select-wrapper.state-selector .dropdown-content li.focus span.filtrable,
.select-wrapper.renewal-selector .dropdown-content li.active span.filtrable,
.select-wrapper.renewal-selector .dropdown-content li.selected span.filtrable,
.select-wrapper.renewal-selector .dropdown-content li:hover span.filtrable,
.select-wrapper.renewal-selector .dropdown-content li.focus span.filtrable {
    color: var(--ioa-white);
}

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

.table-sizing thead tr, .table-sizing tbody tr {
    display: table;
    width: 100%;
    table-layout: fixed;
}

.table-sizing tbody {
    display: block;
    max-height: 50vh;
    overflow: auto
}

.table-responsive {
    background-color: var(--ioa-light-red);
}

.table-responsive .table {
    margin-bottom: 0;
}

.table-responsive thead th {
    color: var(--ioa-white);
    font-size: 0.875rem;
    font-weight: normal;
    background-color: var(--ioa-red);
    border: 0;
}

.table-responsive tbody tr {
    color: var(--ioa-dark-blue);
}

.table-responsive tbody td {
    font-size: 0.875rem;
    border: 2px solid var(--ioa-red);
    border-bottom: 0;
}

.table-responsive tbody tr:first-of-type td {
    border-top: 0;
}

.table-responsive tbody tr td:first-of-type {
    border-left: 0;
}

.table-responsive tbody tr td:last-of-type {
    border-right: 0;
}

.table-blue {
    background-color: var(--ioa-white) !important;
}

.table-blue thead th {
    background-color: var(--ioa-blue) !important;
}

.table-blue tbody td {
    border-color: var(--ioa-light-blue);
}

.badge {
    position: relative;
    top: -2px;
    margin-left: 1rem;
    padding: 0.375rem 0.5rem;
}

.list-header {
    margin-bottom: 1rem;
    border-radius: 0.5rem;
}

.table-responsive.licensee thead th, .table-responsive.documents thead th {
    background-color: var(--ioa-dark-blue);
    vertical-align: middle;
}

.list-header svg {
    margin-left: 0.25rem;
    font-size: 0.875rem;
    position: relative;
    top: -0.25rem;
}

.licensee td:nth-of-type(1), .licensee th:nth-of-type(1) {
    width: 200px;
}

.licensee td:nth-of-type(2), .licensee th:nth-of-type(2) {
    width: 320px;
}

.licensee td:nth-of-type(3), .licensee th:nth-of-type(3) {
    width: 340px;
}

.licensee td:nth-of-type(4), .licensee td:nth-of-type(5), .licensee th:nth-of-type(4), .licensee th:nth-of-type(5) {
    width: 200px;
}

.licensee td:nth-of-type(6), .licensee th:nth-of-type(6) {
    width: 160px;
}

.documents td:nth-of-type(1), .documents th:nth-of-type(1),
.documents td:nth-of-type(2), .documents th:nth-of-type(2) {
    width: 400px;
}

.documents td:nth-of-type(3), .documents th:nth-of-type(3),
.documents td:nth-of-type(4), .documents th:nth-of-type(4) {
    width: 200px;
}

.documents td:nth-of-type(5), .documents th:nth-of-type(5) {
    width: 80px;
}

.documents td:nth-of-type(6), .documents th:nth-of-type(6) {
    width: 120px;
}

/* Toggle Switch */
.switch-container {
    position: relative;
}

.switch {
    position: absolute;
    right: 0;
    margin-right: 10px;
}

.cmn-toggle {
    position: absolute;
    margin-left: -9999px;
    visibility: hidden;
}

input.cmn-toggle-round + label {
    padding: 2px;
    width: 60px;
    height: 25px;
    background-color: var(--ioa-white);
    border-radius: 20px;
}

.cmn-toggle + label {
    display: block;
    position: relative;
    cursor: pointer;
    outline: 0;
    user-select: none;
}

input.cmn-toggle-round + label:before {
    right: 1px;
    background-color: var(--ioa-white);
    border-radius: 20px;
    transition: background .4s;
}

input.cmn-toggle-round + label:after, input.cmn-toggle-round + label:before {
    display: block;
    position: absolute;
    top: 1px;
    left: 1px;
    bottom: 1px;
    content: "";
}

input.cmn-toggle-round + label:after {
    display: block;
    position: absolute;
    top: 1px;
    left: 1px;
    bottom: 1px;
    width: 25px;
    background-color: var(--ioa-light-blue);
    border-radius: 100%;
    box-shadow: 0 2px 5px var(--ioa-box-shadow);
    transition: margin .4s;
}

input.cmn-toggle-round + label:before {
    content: "OFF";
    color: var(--ioa-white);
    padding: 0.125rem 0.5rem;
    text-align: right;
    display: block;
    position: absolute;
    top: 1px;
    right: 1px;
    bottom: 1px;
    background-color: var(--ioa-muted-blue);
    border-radius: 20px;
    transition: background .4s;
}

input.cmn-toggle-round:checked + label:before {
    content: "ON";
    color: var(--ioa-white);
    text-align: left;
    background-color: var(--ioa-light-blue);
}

input.cmn-toggle-round:checked + label:after {
    margin-left: 35px;
}

input.cmn-toggle-round + label:after {
    width: 25px;
    background-color: var(--ioa-red);
    border-radius: 100%;
    box-shadow: 0 2px 5px var(--ioa-box-shadow);
    transition: margin .4s;
}

.switch-container.activator input.cmn-toggle-round + label {
    width: 140px;
}

.switch-container.activator input.cmn-toggle-round:checked + label:before {
    content: "Activated";
    background-color: var(--ioa-light-blue);
}

.switch-container.activator input.cmn-toggle-round + label:before {
    content: "De-Activated";
    background-color: var(--ioa-grey);
}

.switch-container.activator input.cmn-toggle-round:checked + label:after {
    margin-left: 115px;
}

/* Borders */
.card {
    border-width: 0;
}

.card .row.no-gutters .border-left-1 {
    border-width: 2px;
    border-color: var(--ioa-light-blue);
}

/* Courses */
.table.course {
    background: var(--ioa-white);
}

.table.course tbody tr td {
    border: 0;
}

.table.course tbody tr td:nth-of-type(1) {
    width: 120px;
}

.table.course tbody tr td:nth-of-type(2) {
    font-weight: bold;
    color: var(--ioa-grey);
    width: 200px;
}

.table.course tbody tr td:nth-of-type(3) {
    padding: 1rem;
    background-color: var(--ioa-light-grey);
    white-space: nowrap;
}

.table.course tbody tr td:nth-of-type(4) {
    color: var(--ioa-grey);
    border-right: 1px solid var(--ioa-light-grey);
    width: 65%;
}

.table.course tbody tr td:nth-of-type(4) .btn-link {
    color: var(--ioa-dark-grey) !important;
}

.table.course tbody tr td:nth-of-type(5) {
    text-align: center;
    width: 110px;
}

.table.course tbody tr td:nth-of-type(5) .btn {
    margin: 0;
    font-size: 0.875rem;
}

.table.course .price,
.table.course .hours {
    color: var(--ioa-blue);
}

.table.course .hours,
.table.course .course_type {
    font-size: 0.875rem;
}

.table.course .price {
    font-size: 1.25rem;
}

.table.course .course_type {
    color: var(--ioa-grey);
}

/* Search Bar */
.search-group ::-webkit-input-placeholder {
    color: var(--ioa-white);
    opacity: 0.7;
}

.search-group ::-moz-placeholder {
    color: var(--ioa-white);
    opacity: 0.7;
}

.search-group ::-ms-input-placeholder {
    color: var(--ioa-white);
    opacity: 0.7;
}

.search-group ::placeholder {
    color: var(--ioa-white);
    opacity: 0.7;
}

.search-group {
    margin-top: 1rem;
    margin-bottom: 1rem;
    color: #bbebff;
    background-color: var(--ioa-dark-blue);
    border-radius: 0.25rem;
}

.search-group .form-control,
.search-group .form-control:hover
.search-group .form-control:focus {
    margin-bottom: 0;
    font-size: 0.875rem;
    color: var(--ioa-white);
    box-shadow: none;
    border: none;
    outline: 0;
}

.search-group input,
.search-group select {
    height: auto;
}

.search-group input {
    margin: 0;
    padding: 0.75rem 0;
    width: 100%;
    color: var(--ioa-white);
    background: transparent;
    border: 0;
}

.search-group button {
    display: inline-block;
    margin: 0;
    padding: 0.75rem 0.5rem;
    text-align: center;
    color: var(--ioa-white);
    background: transparent;
    border: 0;
    width: 32px;
    height: auto;
}

.search-group .filter {
    margin: 0 0.25rem;
    padding: 0.5rem 0 0.25rem;
}

.search-group .filter svg {
    font-size: 1.9875rem;
}

.filter_list {
    display: none;
    position: absolute;
    top: 4rem;
    right: 0.25rem;
    margin: 0.5rem;
    padding: 1rem 1rem 0.5rem;
    width: 320px;
    border-radius: 0.5rem;
    background-color: var(--ioa-light-grey);
    z-index: 10000;
}

.filter_list.active {
    display: block;
}

.filter_list hr {
    border-color: var(--ioa-blue);
}

.filter_list label {
    margin-bottom: 0;
    color: var(--ioa-dark-blue);
    font-size: 1rem;
    font-weight: 600;
}

.filter_list .form-control {
    padding: 0.375rem 0.25rem;
    font-size: 0.875rem;
    background-color: var(--ioa-white);
    border-radius: 0.25rem;
    border: none;
}

.search-group.alt ::-webkit-input-placeholder {
    color: var(--ioa-blue);
    opacity: 0.7;
}

.search-group.alt ::-moz-placeholder {
    color: var(--ioa-blue);
    opacity: 0.7;
}

.search-group.alt ::-ms-input-placeholder {
    color: var(--ioa-blue);
    opacity: 0.7;
}

.search-group.alt ::placeholder {
    color: var(--ioa-blue);
    opacity: 0.7;
}

.search-group.alt {
    background-color: var(--ioa-white);
}

.search-group.alt .btn {
    width: 48px;
    height: 48px;
    box-shadow: none;
}

.search-group.alt input, .search-group.alt select, .search-group.alt button {
    color: var(--ioa-blue);
    font-weight: 600;
}

.sort {
    cursor: pointer;
}

.sort.active svg {
    transform: rotate(180deg);
    position: relative;
    top: 0.125rem;
}

/* Pagination */
.page-navigation {
    border-top: 2px solid var(--ioa-dark-blue);
    padding-top: 1rem;
}

.page-navigation .pagination {
    margin-bottom: 0;
}

.page-navigation .pagination .page-link.active {
    color: var(--ioa-blue);
}

.page-navigation .pagination .previous .page-link,
.page-navigation .pagination .next .page-link,
.page-navigation .pagination .first .page-link,
.page-navigation .pagination .last .page-link {
    color: var(--ioa-dark-blue);
}

.page-navigation .pagination .page-link {
    color: var(--ioa-grey);
    background: transparent;
    border-color: transparent;
}

.page-navigation .pagination .page-link:focus {
    border: 0;
    box-shadow: none;
}

.total_hours, .renewal_period {
    display: inline-block;
    margin: 0 auto;
    padding: 0.5rem 1rem;
    font-size: 1.125rem;
    font-family: 'Poppins', sans-serif;
    text-align: center;
    border-radius: 0.25rem;
    box-shadow: 1px 1px 6px 0 var(--ioa-box-shadow);
    min-width: 250px;
}

.total_hours {
    color: var(--ioa-white);
    background-color: var(--ioa-red);
}

.renewal_period {
    color: var(--ioa-white);
    background-color: var(--ioa-dark-blue);
}

@media only screen and (max-width: 1440px) {
    .licensee td:nth-of-type(1), .licensee th:nth-of-type(1) {
        width: 150px;
    }

    .documents td:nth-of-type(1), .documents th:nth-of-type(1) {
        width: 340px;
    }

    .licensee td:nth-of-type(3), .licensee th:nth-of-type(3) {
        width: 300px;
    }

    .documents td:nth-of-type(2), .documents th:nth-of-type(2),
    .licensee td:nth-of-type(4), .licensee td:nth-of-type(5), .licensee th:nth-of-type(4), .licensee th:nth-of-type(5) {
        display: none;
    }
}