/* ============================================================================
   04-feedback.css — part 4 of 9 of the former main.css
   Disclaimer banners, alerts and toasts

   LOAD ORDER MATTERS. These files are linked in numeric order from
   shared_elements/main/main.html. They were split by position and never
   reordered, so the cascade is byte-for-byte what the single file produced.
   Moving a rule between them can change which declaration wins.
   ============================================================================ */
/* Disclaimer banners */
.disclaimer-banner {
    /* Used for reminders, not warnings. */
    background-color: var(--ks-info);
    color: var(--ks-info-blue);
    border: 0.5px solid var(--ks-info-blue);
    border-radius: 6px;
    font-family: 'Roboto', sans-serif;
    font-style: normal;
    font-weight: 400;
    font-size: 16px !important;
    line-height: 19px;
}

/*
  ___  _           _
 / _ \| |         | |
/ /_\ \ | ___ _ __| |_ ___
|  _  | |/ _ \ '__| __/ __|
| | | | |  __/ |  | |_\__ \
\_| |_/_|\___|_|   \__|___/
*/

.ks-alert-base {
    border: none;
    border-radius: 6px;
    font-family: 'Roboto', sans-serif;
    font-style: normal;
    font-weight: 400;
    font-size: 0.8rem;
    line-height: 19px;
    padding: 20px;
    margin: unset;
    word-break: break-word;
}

.ks-alert-base .alert-dismiss-top-right {
    position: absolute;
    right: 1rem;
    top: 1rem;
    width: 1.5rem;
    height: 1.5rem;
}

/* Built at render time as alert-{{ alert_type }} in alert_base.html, so static scans see it as unused */
.ks-alert-base.alert-disclaimer {
    background-color: var(--ks-info-blue);
    color: var(--ks-white);
}

.ks-alert-base svg {
    width: 1.5rem;
    height: 1.5rem;
}

.ks-alert-base .alert-body svg {
    color: unset;
}

.ks-alert-base .alert-body .selection-field-wrapper svg {
    color: var(--ks-black-2);
    height: 1em;
    width: auto;
}

.ks-alert-base p:last-of-type {
    margin-bottom: unset;
}

.ks-alert-base.alert-warning {
    background-color: var(--ks-dark-orange);
    color: var(--ks-white);
}

.ks-alert-base.alert-danger {
    background-color: var(--ks-danger);
    color: var(--ks-white);
}

.ks-alert-base.alert-success {
    background-color: var(--ks-green);
    color: var(--ks-white);
}

.ks-alert-base svg,
.ks-alert-base a,
.disclaimer-banner a {
    color: var(--ks-white);
}

/* Toasts */
.ec-toast-base {
    position: fixed;
    margin: 1rem;
    padding: 0 1rem;
}

.ec-toast-base.toast-top-right {
    top: 2rem;
    right: 2rem;
}

.ec-toast-base.toast-danger {
    background-color: var(--ks-danger);
    border: 1px solid var(--ks-danger);
    color: var(--ks-white);
}

/* disclaimer alert */

.circle-radius
{
    border-radius: 100% !important;
}

.user-info-avatar
{
    border: 1px solid var(--ks-black-2);
    border-radius: 100%;
    height: 200px;
    width: 200px;
}

.user-info-avatar img
{
    width: 100%;
    height: 100%;
    border-radius: 100%;
}

.user-settings-wrapper
{
    margin-top: 120px;
}

#user_settings > h3
{
    margin-bottom: 4rem;
}

#user_settings > form .form-floating
{
    margin-bottom: 2rem;
}

#user_settings > form .checkbox-wrapper > div.d-flex.flex-row
{
    /* Bootstrap loads after this stylesheet, so I need to !important this :( */
    /* It's under an ID selector so it should be fine... maybe... */
    flex-direction: row-reverse !important;
    justify-content: space-between;
    width: 100%;
}

#user_settings > form .checkbox-wrapper > div.d-flex.flex-row > label.checkbox-label
{
    padding: 0;
    font-weight: 300;
    font-size: 24px;
    line-height: 28px;
}

#user_settings > form .checkbox-wrapper > div.d-flex.flex-row > label.custom-checkbox-label
{
    margin: 0 0 0 auto;
}

.navbar-logo-banner{
    max-height: 40px;
    max-width: 300px;
}

#navbar-user-dropdown > ul.dropdown-menu
{
    background-color: var(--ks-white);
    border-radius: 4px;
    border: none;
    top: 50px;
    user-select: none;
    z-index: 10;
}

#navbar-user-dropdown > ul.dropdown-menu::after
{
    content: '';
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-bottom: 20px solid var(--ks-white);
    position: absolute;
    top: -15px;
    right: 5px;
}

#navbar-user-dropdown #dropdown-user-name:hover
{
    background-color: var(--ks-white);
}

#navbar-user-dropdown #user-access-menu
{
    border: none;
    border-radius: 4px;
    margin-right: 0;
    padding: 8px 0;
    box-shadow: -4px 0px 8px 3px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease 0s;
}

#navbar-user-dropdown .dropdown-item:hover,
#navbar-user-dropdown .dropdown-item:active
{
    /* The background color is provided by bootstrap */
    background-color: var(--bs-dropdown-link-hover-bg);
    color: var(--ks-black-2);
}

#navbar-user-dropdown > ul.dropdown-menu > li.dropstart > button.dropdown-item::before
{
    content: '';
    display: none;
}

#navbar-user-dropdown #user-access-menu button,
#navbar-user-dropdown #user-access-menu li span
{
    padding: 4px;
}

#navbar-user-dropdown #user-access-menu .a-icon
{
    padding: 0;
    height: 1.3em;
    align-self: center;
}

#navbar-user-dropdown #user-access-menu svg
{
    align-self: center;
}

#navbar-user-dropdown #user-access-menu li
{
    padding: 0;
}

#navbar-user-dropdown #user-access-menu li .fa-check
{
    position: absolute;
    bottom: 35%;
}

@media only screen and (min-width: 992px) {
    #navbarMobileToggler {
        display: none;
    }
}

/* assetsearch/searchfield.html ends*/
