/*
 * @copyright (C) ThinkIQ Inc. 2021 - All Rights Reserved
 * Unauthorized copying of this file, via any medium is strictly prohibited
 * Proprietary and confidential
 */

html, body {
    height: 100%;
}

html {
    display: flex;
    flex-direction: column;
    min-height: 100%;
    font-size: 14px;
}

body {
    display: flex;
    flex-direction: column;
    flex: 1 1 100%;
}

:root {
    --tiq-primary: #f78200;
    --tiq-blood-orange: #f50;
    --tiq-blue: #00386c;
    --tiq-navy: #00123a;
    --tiq-silver: #a9b7bf;

    --primary: #1c94c4;
    --light: #f8f9fa;
    --gray: #6c757d;

    --margin: 12px;
}

.tiq-orange {
  color: #F78200;
}

.tiq-blood-orange {
  color: #FF5500;
}

.tiq-blue {
  color: #00386C;
}

.tiq-navy {
  color: #00123A;
}

.tiq-silver {
  color: #a9b7bf;
}

.text-tiq-primary{
    color: var(--tiq-primary);
}

.text-tiq-blood-orange{
    color: var(--tiq-blood-orange);
}

.text-tiq-blue{
    color: var(--tiq-blue);
}


.text-tiq-navy{
    color: var(--tiq-navy);
}

.text-tiq-silver{
    color: var(--tiq-silver);
}

a {
  color: var(--tiq-blue);
}

.fa,
.fa-solid,
.fa-light,
.fa-regular {
  color: var(--tiq-primary);
}

.alert-info {
    color: var(--tiq-silver);
    border-color: var(--tiq-blue);
    background-color:  var(--tiq-blue);
}

.alert-info a:not(.fa),
.alert-info button{
    color: white;
}
.bg-primary,
.bg-info {
    background-color: var(--tiq-blue) !important;
}

.btn-info {
    color: #FFF;
    background-color: var(--tiq-blue);
    border-color: var(--tiq-blue);
}

.btn-info:disabled {
    color: #FFF;
    background-color: #00386c;
    border-color: #00386c;
}

.btn-primary {
    color: #fff !important;
    background-color: var(--tiq-blue);
    border-color: var(--tiq-blue);
}

.btn-close-silver {
    background: transparent url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23a9b7bf'%3e%3cpath d='M.293.293a1 1 0 011.414 0L8 6.586 14.293.293a1 1 0 111.414 1.414L9.414 8l6.293 6.293a1 1 0 01-1.414 1.414L8 9.414l-6.293 6.293a1 1 0 01-1.414-1.414L6.586 8 .293 1.707a1 1 0 010-1.414z'/%3e%3c/svg%3e") center/1em auto no-repeat;
}

.border-info {
    border-color: var(--tiq-blue) !important;
}

.btn-dark .fa,
.btn-primary .fa,
.btn-primary .fa-regular,
.btn-primary .fa-sharp{
    color: #fff !important;
}

.form-group {
    margin-bottom: 12px;
}

.page-header .nav-header {
    padding-left: 7px;
}

.page-header .nav-sub-item {
    list-style: none;
    padding: 0 10px;
}

.page-header .nav-link {
  padding: 0 0.5rem;
  font-size: 14px;
}

.page-header .link-item.active {
  border-bottom-color: rgb(28, 148, 196);
  text-decoration: none;
}

.nav-tabs .nav-link,
.link-item {
  color: var(--tiq-blue);
}

.current {
  text-decoration: underline;
  font-weight: bolder;
}

.nav-tabs .nav-link.active,
.link-item.active {
  color: var(--tiq-navy);
}

.dropdown-item  {
    color: #1c94c4;
}

button:focus {
  outline: none;
}

.grid-counter {
  color: var(--tiq-primary);
}

.page-header .logo-row {
    background-color: #f9fafd;
    box-shadow: 0 2px 5px rgb(59 58 58 / 17%);
    z-index: 1;
    position: relative;
    display: flex;
    align-items: center;
    padding-top: 8px;
    padding-bottom: 8px;
}

.page-header .logo-row .page-logo {
    height: 36px;
    background-size: contain;
    display: block;
    flex: 1 1 400px;
    max-width: 400px;
}

.horizontal-menu {
    min-height: 32px;
    background-color: #fff;
    box-shadow: 0 1px 6px 0 #a9a9a9;
    position: relative;
}

.page-content {
    flex: 1 1 100%;
    display: flex;
    flex-direction: column;
}

.page-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.page-footer .copyright {
    display: flex;
    align-items: center;
    font-size: 11px;
    padding: 8px 0;
}

.page-footer .footer-logo {
    width: 60.60606px;
    height: 18.48485px;
    display: block;
    background-size: contain;
    margin-left: 8px;
}

@keyframes bulb-line1 {
    0%, 60% {
        opacity: 0.1;
    }
    90% {
        opacity: 1;
    }
}
@keyframes bulb-line2 {
    0%, 51% {
        opacity: 0.1;
    }
    81% {
        opacity: 1;
    }
}
@keyframes bulb-line3 {
    0%, 42% {
        opacity: 0.1;
    }
    72% {
        opacity: 1;
    }
}
@keyframes bulb-line4 {
    0%, 33% {
        opacity: 0.1;
    }
    63% {
        opacity: 1;
    }
}
@keyframes bulb-line5 {
    0%, 34% {
        opacity: 0.1;
    }
    54% {
        opacity: 1;
    }
}
@keyframes bulb-line6 {
    0%, 25% {
        opacity: 0.1;
    }
    45% {
        opacity: 1;
    }
}
@keyframes bulb-line7 {
    0%, 16% {
        opacity: 0.1;
    }
    36% {
        opacity: 1;
    }
}
@keyframes bulb-line8 {
    0%, 7% {
        opacity: 0.1;
    }
    27% {
        opacity: 1;
    }
}
@keyframes bulb-line9 {
    0%, 9% {
        opacity: 0.1;
    }
    18% {
        opacity: 1;
    }
}
@keyframes bulb-line10 {
    0%, 0% {
        opacity: 0.1;
    }
    9% {
        opacity: 1;
    }
}
.lightbulb-loader {
    position: relative;
    width: 177px;
    height: 236px;
    transform: scale(0.8) rotate(-30deg);
    margin: 0 auto;
}
.lightbulb-loader .bulb-line {
    height: 12px;
    background-color: #f79120;
    border-radius: 8px;
    margin-bottom: 6px;
    background-image: linear-gradient(to right, #f75928, #fb8d26);
    animation-duration: 1.2s;
    animation-iteration-count: infinite;
    animation-timing-function: ease-in-out;
}
.lightbulb-loader .bulb-line.line-1 {
    animation-name: bulb-line1;
    margin-left: 44px;
    width: 78px;
}
.lightbulb-loader .bulb-line.line-2 {
    animation-name: bulb-line2;
    margin-left: 23px;
    width: 110px;
}
.lightbulb-loader .bulb-line.line-3 {
    animation-name: bulb-line3;
    margin-left: 11px;
    width: 155px;
}
.lightbulb-loader .bulb-line.line-4 {
    animation-name: bulb-line4;
    margin-left: 4px;
    width: 147px;
}
.lightbulb-loader .bulb-line.line-5 {
    animation-name: bulb-line5;
    margin-left: 2px;
    width: 132px;
}
.lightbulb-loader .bulb-line.line-6 {
    animation-name: bulb-line6;
    margin-left: 1px;
    width: 170px;
}
.lightbulb-loader .bulb-line.line-7 {
    animation-name: bulb-line7;
    margin-left: 6px;
    width: 139px;
}
.lightbulb-loader .bulb-line.line-8 {
    animation-name: bulb-line8;
    margin-left: 12px;
    width: 145px;
}
.lightbulb-loader .bulb-line.line-9 {
    animation-name: bulb-line9;
    margin-left: 24px;
    width: 95px;
}
.lightbulb-loader .bulb-line.line-10 {
    animation-name: bulb-line10;
    margin-left: auto;
    margin-right: auto;
    width: 92px;
}
.lightbulb-loader .bulb-base {
    background-color: #1c94c4;
    background-image: linear-gradient(to right, #1e2d3d, #1273a1);
    height: 17px;
    margin: 0 auto -3px;
    border-radius: 8px;
}
.lightbulb-loader .bulb-base:last-child {
    margin-bottom: 0;
}
.lightbulb-loader .bulb-base.base-1 {
    width: 82px;
}
.lightbulb-loader .bulb-base.base-2 {
    width: 70px;
}
.lightbulb-loader .bulb-base.base-3 {
    width: 50px;
}
.lightbulb-loader .bulb-base.base-4 {
    width: 30px;
    margin-top: -7px;
}

/* BUG FIXES: With the recent updates to Joomla, the CMS increased the bootstrap version
 * Do to this, some of the CSS classes were changed. This is a temporary fix until we
 * can update the CSS classes in the code.
 */
.table>:not(caption)>*>* {
  background-color: unset;
  color: unset;
}
.modal-content {
  width: auto;
}
button, input, optgroup, select, textarea {
 margin: revert;
}
/* END BUG FIXES */

/* PROFILE EDIT (com_users view=profile&layout=edit)
 * Core Joomla markup with no template override. Constrain the width, restore
 * the field spacing Cassiopeia provides, and supply the password toggle icons
 * (Joomla's .icon-* font is not loaded by this template).
 */
.profile-edit {
  max-width: 860px;
  margin: 1.5rem auto;
  padding: 0 1rem;
}
.profile-edit .control-group,
.profile-edit .form-group {
  margin-bottom: 1rem;
}
.profile-edit fieldset {
  margin-bottom: 1.5rem;
}
.profile-edit legend {
  font-size: 1.4rem;
  margin: 1.5rem 0 .75rem;
}
.profile-edit .form-control-feedback,
.profile-edit .form-text {
  display: block;
  margin-top: .25rem;
}
.profile-edit .input-password-toggle .icon-eye::before,
.profile-edit .input-password-toggle .icon-eye-slash::before {
  font-family: "Font Awesome 6 Pro", "FontAwesome";
  font-weight: 900;
}
.profile-edit .input-password-toggle .icon-eye::before {
  content: "\f06e";
}
.profile-edit .input-password-toggle .icon-eye-slash::before {
  content: "\f070";
}
.profile-edit .profile-edit-submit,
.profile-edit .btn-toolbar {
  margin-top: 1.5rem;
}
/* END PROFILE EDIT */

/* PROFILE EDIT polish: message bar, MFA method cards, buttons.
 * The Joomla message may render outside .profile-edit, so key off
 * the page containing the profile form.
 */
body:has(.profile-edit) joomla-alert,
body:has(.profile-edit) #system-message-container .alert,
body:has(.profile-edit) #messageContainer .alert,
body:has(.com-users-profile) joomla-alert,
body:has(.com-users-profile) #system-message-container .alert,
body:has(.com-users-profile) #messageContainer .alert {
  max-width: 860px;
  margin: 1rem auto 0;
  box-sizing: border-box;
}
body:has(.profile-edit) #messageContainer,
body:has(.profile-edit) #system-message-container,
body:has(.com-users-profile) #messageContainer,
body:has(.com-users-profile) #system-message-container {
  padding: 0 1rem;
}

/* MFA method cards: compact header, smaller image, quieter buttons */
.profile-edit [class*="com-users-methods-list-method-header"] {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: .4rem .75rem;
}
.profile-edit [class*="com-users-methods-list-method-image"] img {
  max-height: 28px;
  width: auto;
}
.profile-edit [class*="com-users-methods-list-method-title"] {
  font-size: 1rem;
  margin: 0;
}
.profile-edit [class*="com-users-methods-list-method"] .btn {
  --bs-btn-padding-y: .15rem;
  --bs-btn-padding-x: .6rem;
  --bs-btn-font-size: .85rem;
}
.profile-edit [class*="com-users-methods-list-method-info"],
.profile-edit [class*="com-users-methods-list-method-addnew"] {
  padding-top: .25rem;
  padding-bottom: .25rem;
  margin: 0;
}

/* Cancel is not a warning: tone down the red button on the profile form */
.profile-edit .btn-danger {
  --bs-btn-color: var(--bs-secondary);
  --bs-btn-bg: transparent;
  --bs-btn-border-color: var(--bs-secondary);
  --bs-btn-hover-color: #fff;
  --bs-btn-hover-bg: var(--bs-secondary);
  --bs-btn-hover-border-color: var(--bs-secondary);
  --bs-btn-active-color: #fff;
  --bs-btn-active-bg: var(--bs-secondary);
  --bs-btn-active-border-color: var(--bs-secondary);
}
/* END PROFILE EDIT polish */

/* PROFILE VIEW (com_users view=profile, read-only)
 * Same width and spacing as the edit page. Note the view's Edit button toolbar
 * also carries com-users-profile__edit, so the edit styles are scoped to
 * .profile-edit and must not be keyed on that class.
 */
.com-users-profile {
  max-width: 860px;
  margin: 1.5rem auto;
  padding: 0 1rem;
}
.com-users-profile .btn-toolbar {
  float: right;
  margin: 0 0 1rem 1rem;
}
.com-users-profile fieldset {
  margin-bottom: 1.5rem;
}
.com-users-profile legend {
  font-size: 1.4rem;
  margin: 0 0 .75rem;
  padding-bottom: .5rem;
  border-bottom: 1px solid var(--bs-border-color, #dee2e6);
}
.com-users-profile dl {
  display: grid;
  grid-template-columns: minmax(10rem, 14rem) 1fr;
  gap: .5rem 1rem;
  margin: 0;
}
.com-users-profile dt {
  font-weight: 600;
  color: var(--bs-secondary-color, #6c757d);
}
.com-users-profile dd {
  margin: 0;
}
@media (max-width: 575.98px) {
  .com-users-profile dl {
    grid-template-columns: 1fr;
  }
}
/* END PROFILE VIEW */

/* USER MENU (header profile dropdown, mod_login/default_logout.php) */
.user-menu .user-menu-toggle {
  color: inherit;
}
.user-menu .user-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: var(--tiq-blue, #0d3b66);
  color: #fff;
  font-size: .8rem;
  font-weight: 600;
  line-height: 1;
}
.user-menu .user-menu-list {
  min-width: 14rem;
}
.user-menu .dropdown-header {
  font-weight: 600;
  white-space: normal;
}
/* END USER MENU */
