/* ------------------------------------------------------------------------------
 *  CSS Variables
 * ---------------------------------------------------------------------------- */
:root {
    --primary-color: #FF8E3E;
    --hover-color: #003277;
    --active-color: #e07a30;
    --input-color: #38465E;
    --error-color: #CC3366;
    --input-animation-duration: 0.2s;
    --easing-function: ease-in-out;
    --white-primary: #FFFFFF;
    --grey-neutral-lighter: #AAB1BC;
    --input-normal-color: #AAB1BC;
    --grey-primary: #38465E;
    --header-height: 70px;
    /* Checkmark */
    --borderWidth: 2px;
    --height: 15px;
    --width: 8px;
    --borderColor: #00CD98;
    /* Checkbox */
    --checkbox-stroke: #AAB1BC;
    --grey-neutral-hover: #DADEE3;
}

body {
    background-color: #ffffff;
    font-family: Heebo, sans-serif;
    font-weight: 400;
    font-size: 13px;
    color: var(--grey-primary);
}

h1 {
    font-family: "Heebo", serif;
    font-weight: 300;
    font-size: 24px;
    letter-spacing: 0;
}

h2 {
    font-family: "Heebo", serif;
    font-weight: 300;
    font-size: 21px;
    letter-spacing: 0;
}

label {
    font-family: "Heebo", serif;
    font-weight: 500;
    font-size: 12px;
    color: var(--grey-primary);
    letter-spacing: 0;
}

a {
    font-family: "Heebo", serif;
    font-weight: 500;
    font-size: 12px;
    color: var(--grey-primary);
}

/* ------------------------------------------------------------------------------
 *  Inputs
 * ---------------------------------------------------------------------------- */
input:focus,
textarea:focus,
select:focus,
input:active,
textarea:active,
select:active,
input:hover,
textarea:hover,
select:hover {
    outline: var(--primary-color) solid 1px;
    outline-offset: -1px;
    color: var(--input-color);
}

select,
input,
textarea {
    outline-offset: -1px;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    padding: 0 40px 0 20px;
    background: var(--white-primary);
    width: 100%;
    font-family: Heebo, serif;
    font-weight: 400;
    font-size: 13px;
    border: 0;
    color: var(--input-normal-color);
    position: relative;
    outline: 1px solid var(--grey-neutral-lighter);
    transition: all 0.3s ease-in-out;
}

input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
textarea:-webkit-autofill,
textarea:-webkit-autofill:hover,
textarea:-webkit-autofill:focus,
select:-webkit-autofill,
select:-webkit-autofill:hover,
select:-webkit-autofill:focus {
    outline: var(--primary-color) solid 1px;
    outline-offset: 0;
    fill: var(--primary-color);
}

input,
input:default {
    border: 0;
    color: var(--grey-primary);
}

input[type="text"],
input[type="password"],
input[type="email"],
input[type="number"],
input[type="date"],
textarea {
    flex-grow: 1;
}

.input-group {
    position: relative;
    height: 48px;
}

.input-group-append {
    z-index: 1;
    position: absolute;
    top: 50%;
    right: 6%;
    transform: translate(0, -50%);
}

.input-group-prepend {
    z-index: 1;
    position: absolute;
    top: 50%;
    left: 6%;
    transform: translate(0, -50%);
}

.input-group-prepend svg {
    height: 20px;
    width: 21px;
    fill: var(--input-normal-color);
    transition: all 0.3s ease-in-out;
}

.input-group-append svg {
    height: 20px;
    width: 21px;
    fill: var(--input-normal-color);
    transition: all 0.3s ease-in-out;
}

.flyde-input:hover .input-group-prepend svg {
    fill: var(--primary-color);
}

.flyde-input:hover .input-group-append svg {
    fill: var(--primary-color);
}

.input-group-append ~ input {
    padding-right: 50px;
}

.input-group-prepend ~ input {
    padding-left: 50px;
}

.flyde-input {
    margin-bottom: 24px;
    width: 273px;
}

::placeholder {
    color: #AAB1BC;
    font-weight: 300;
    opacity: 1;
}

:-ms-input-placeholder {
    color: #AAB1BC;
    font-weight: 300;
}

::-ms-input-placeholder {
    color: #AAB1BC;
    font-weight: 300;
}

/* ------------------------------------------------------------------------------
 *  Login view
 * ---------------------------------------------------------------------------- */
.login-view {
    min-height: 100vh;
}

.login-view .form-element {
    background: white !important;
}

.login-view .form-login {
    background-color: #fafafa !important;
    padding: 15px 15px 0 15px;
    width: 350px;
}

.login-view .form-login .flyde-input,
.login-view .form-login .login-options,
.login-view .form-login .login-btn {
    width: 100%;
}

.login-view .login-title {
    margin-bottom: 24px;
}

.login-view .login-logo {
    margin-bottom: 40px;
    width: 350px;
}

.login-view label {
    font-family: "Heebo", serif;
    font-weight: 500;
    font-size: 13px;
    color: #000000;
    letter-spacing: 0;
    text-align: left;
}

.login-view input {
    border: 0;
    color: var(--input-color);
}

.login-view #password-input input {
    color: var(--primary-color);
    font-family: "Heebo", serif;
    letter-spacing: 0;
}

.login-view .login-options {
    margin-bottom: 44px;
}

.login-view .login-forgot-link {
    font-family: "Heebo", serif;
    font-weight: 500;
    font-size: 12px;
    color: #38465E;
    letter-spacing: 0;
    transition: color 0.2s ease-in-out;
}

.login-view .login-forgot-link:hover {
    color: var(--hover-color) !important;
}

.login-view .btn-flyde-submit {
    background: var(--primary-color);
    width: 100%;
    height: 40px;
    border-radius: 3px;
    border: 0;
    font-family: "Heebo", serif;
    font-weight: 500;
    font-size: 11px;
    color: #FFFFFF;
    letter-spacing: 1px;
    text-align: center;
    cursor: pointer;
    transition: all var(--input-animation-duration) ease-in-out;
}

.login-view .btn-flyde-submit:hover {
    background: #e07a30;
}

.login-view .form-login .login-btn {
    margin-left: -15px;
    margin-right: -15px;
    width: calc(100% + 30px);
    transition: all var(--input-animation-duration) var(--easing-function);
}

.email-svg {
    width: 18px;
    height: 12.63px;
    fill: var(--primary-color);
}

.enala-input-has-error .email-svg {
    fill: var(--error-color);
}

.login-view .recover-desc {
    max-width: 262px;
    margin-bottom: 29px;
}

.login-view .recover-title {
    margin-bottom: 3px;
}

.login-view .recover-btn {
    margin-top: 40px;
}

.login-view .recover-options {
    margin-top: 24px;
}

.incorrect-login {
    margin-bottom: 16px;
}

.error-login-box-text {
    font-family: "Heebo", serif;
    font-size: 12px;
    color: var(--error-color);
    margin-bottom: 4px;
}

.select2-container--open .select2-selection--single, .select2-selection--single:focus {
    box-shadow: 0 0 0 0;
}
.select2-container--default .select2-selection--single {
    height: 48px;
    border: 0;
    outline: 1px solid var(--grey-neutral-lighter);
    border-radius: 0;
}
.select2-container--default .select2-selection--single .select2-selection__rendered {
    line-height: 48px;
    color: var(--grey-primary);
    font-family: Heebo, serif;
    font-size: 13px;
    padding-left: 20px;
}
.select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 46px;
    right: 10px;
}
.select2-container {
    width: 100% !important;
}

/* ------------------------------------------------------------------------------
 *  Accept legal view
 * ---------------------------------------------------------------------------- */
.accept-form {
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.accept-logo {
    margin-top: 43px;
    margin-bottom: 43px;
}

.accept-container {
    width: 100%;
    background-color: #ffffff;
}

.accept-title {
    margin: 43px 12px 43px 12px;
    text-align: center;
}

.accept-text {
    max-width: 100%;
    overflow: auto;
    border: 1px solid #DADEE3;
    margin: 0 auto;
    padding: 32px;
    color: #7D838D;
}

.accept-checkbox {
    margin: 22px auto;
}

.accept-checkbox .file-color {
    font-weight: 300;
    color: #38465E;
}

.file-color {
    color: var(--input-color);
    font-weight: 300;
    margin-bottom: 0;
}

.file-color a {
    color: var(--active-color);
    text-decoration: underline;
}

.accept-button {
    margin-bottom: 43px;
}

.accept-button .btn-flyde-submit {
    width: auto;
    padding: 0 30px;
}

.accept-button .btn-flyde-submit:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* ------------------------------------------------------------------------------
 *  Custom Checkboxes
 * ---------------------------------------------------------------------------- */
input[type="checkbox"] {
    display: none;
}

input[type="checkbox"] + label {
    position: relative;
    width: 17px;
    height: 17px;
    border: 1px solid var(--checkbox-stroke);
    vertical-align: middle;
    transition: background 0.1s ease;
    cursor: pointer;
    background: var(--white-primary);
    margin: 0;
}

input[type="checkbox"] + label:hover {
    background: var(--grey-neutral-hover);
}

input[type="checkbox"]:disabled + label {
    background: var(--grey-neutral-hover);
}

input[type="checkbox"] + label:after {
    content: '';
    position: absolute;
    top: 1px;
    left: 5px;
    width: 5px;
    height: 11px;
    opacity: 0;
    transform: rotate(45deg) scale(0);
    border-right: 2px solid #fff;
    border-bottom: 2px solid #fff;
    transition: all 0.3s ease;
    transition-delay: 0.15s;
}

input[type="checkbox"]:checked + label {
    border-color: transparent;
    background: var(--primary-color);
    animation: jelly 0.6s ease;
}

input[type="checkbox"]:checked ~ label:after {
    opacity: 1;
    transform: rotate(45deg) scale(1);
}

@keyframes jelly {
    from { transform: scale(1, 1); }
    30% { transform: scale(1.25, 0.75); }
    40% { transform: scale(0.75, 1.25); }
    50% { transform: scale(1.15, 0.85); }
    65% { transform: scale(0.95, 1.05); }
    75% { transform: scale(1.05, 0.95); }
    to { transform: scale(1, 1); }
}

/* ------------------------------------------------------------------------------
 *  Navbar / Header
 * ---------------------------------------------------------------------------- */
.flyde-header-row {
    padding: 0 35px 0 20px;
    min-width: 100%;
    position: relative;
    background: white;
    height: var(--header-height);
    filter: drop-shadow(0px 1px 3px rgba(0, 0, 0, 0.05));
    z-index: 10;
}

@media (max-width: 600px) {
    .flyde-header-row {
        padding-left: 16px!important;
        padding-right: 0px!important;
    }
}

.toolbar-flyde {
    z-index: 12;
}

@media (max-width: 600px) {
    .toolbar-flyde {
        padding-right: 22px;
    }
}

.flyde-toolbar-item {
    width: 21px;
    height: 21px;
    fill: var(--primary-color);
    transition: all var(--input-animation-duration) var(--easing-function);
    -webkit-transition: all var(--input-animation-duration) var(--easing-function);
    -moz-transition: all var(--input-animation-duration) var(--easing-function);
}

.flyde-toolbar-item:hover {
    fill: var(--primary-color);
    cursor: pointer;
}

.nav-item-flyde {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 36px;
    width: 36px;
    margin-left: 17px;
    background: white !important;
    border-radius: 50%;
    filter: drop-shadow(0px 2px 1px rgba(188, 194, 205, 0.2));
    -moz-user-select: none;
    -webkit-user-select: none;
    user-select: none;
    transition: all 0.28s ease-in-out;
}

.nav-item-flyde:hover {
    filter: drop-shadow(0px 4px 6px rgba(188, 194, 205, 0.5));
}

.nav-item-flyde > svg {
    margin: auto;
}

.nav-item-dshadow {
    filter: drop-shadow(0px 2px 4px rgba(188, 194, 205, 0.4));
}

.nav-item-flyde-user-left {
    position: relative;
    height: 36px;
    padding-left: 10px;
    -moz-user-select: none;
    -webkit-user-select: none;
    user-select: none;
}

.nav-item-flyde-user-left:before {
    content: "";
    position: absolute;
    height: 36px;
    left: 0;
    width: 36px;
    border-bottom-left-radius: 50%;
    border-top-left-radius: 50%;
    background: white;
    z-index: -1;
}

.nav-item-circle {
    display: flex;
    height: 22px;
    width: 22px;
    margin-top: 2px;
    justify-content: center;
    align-items: center;
    background-color: var(--primary-color);
    border-radius: 50%;
}

.nav-item-circle span {
    display: flex;
    justify-content: center;
    align-items: center;
    font-family: "Heebo", serif;
    font-weight: 400;
    font-size: 12px;
    color: white;
}

.nav-item-flyde-user-center {
    position: relative;
    height: 36px;
    align-items: center;
    display: flex;
    -moz-user-select: none;
    -webkit-user-select: none;
    user-select: none;
}

.nav-item-flyde-user-center:before {
    content: "";
    position: absolute;
    height: 36px;
    width: 100%;
    background: white;
    z-index: -1;
}

.user-name-label {
    font-weight: 500;
    letter-spacing: 1px;
    padding-right: 5px;
    padding-left: 10px;
    font-size: 12px;
}

.nav-item-flyde-user-right {
    position: relative;
    display: flex;
    height: 36px;
    -moz-user-select: none;
    -webkit-user-select: none;
    user-select: none;
}

.nav-item-flyde-user-right:before {
    content: "";
    position: absolute;
    right: -30px;
    height: 36px;
    width: 36px;
    border-bottom-right-radius: 50%;
    border-top-right-radius: 50%;
    background: white;
    z-index: -1;
}

.flyde-dropdown {
    cursor: pointer;
}

.flyde-dropdown.dropdown-toggle::after {
    content: '';
    font-family: inherit;
    display: inline-block;
    width: 7px;
    height: 7px;
    border-right: 1.5px solid var(--grey-primary);
    border-bottom: 1.5px solid var(--grey-primary);
    transform: rotate(45deg);
    margin-left: 10px;
    margin-bottom: 3px;
}

.nav-item-active:before {
    background: var(--primary-color) !important;
}

.nav-item-active span.user-name-label,
.nav-item-active::after {
    color: white;
    -moz-user-select: none;
    -webkit-user-select: none;
    user-select: none;
}

.dropdown-flyde {
    padding: 0;
    margin-top: 10px;
    box-shadow: none;
    display: block;
    filter: drop-shadow(0 2px 4px rgba(188, 194, 205, 0.4));
    -webkit-filter: drop-shadow(0 2px 4px rgba(188, 194, 205, 0.4));
    -moz-user-select: none;
    -webkit-user-select: none;
    user-select: none;
    border-radius: 8px;
}

.dropdown-menu {
    min-width: 13.25rem;
    max-height: 400px;
    padding: 0 !important;
    overflow: auto;
}

.dropdown-flyde .dropdown-item {
    display: flex;
    align-items: center;
    height: 60px;
    padding: 0 18px;
    font-family: "Heebo", serif;
    font-weight: 300;
    font-size: 13px;
}

.narrow {
    height: 48px !important;
}

.light {
    font-weight: 300 !important;
}

.medium,
.selected {
    font-weight: 500 !important;
}

.dropdown-flyde .dropdown-item:last-child {
    margin-bottom: 10px;
}

.dropdown-flyde .dropdown-item.selected .circle-mark {
    border: 0;
}

.dropdown-flyde .dropdown-item.selected .circle-mark:after {
    content: "";
    margin-left: 7px;
    margin-right: 4px;
    display: inline-block;
    transform: rotate(45deg);
    height: var(--height);
    width: var(--width);
    border-bottom: var(--borderWidth) solid var(--borderColor);
    border-right: var(--borderWidth) solid var(--borderColor);
}

.client-name {
    background: #E7EBEF;
    margin: 12px 18px 7px 18px;
    text-align: center;
    border-radius: 5px;
}

.client-name > span {
    color: #4F5D72;
}

.circle-mark {
    margin-right: 10px;
    height: 20px;
    width: 20px;
    border: 1px solid var(--grey-neutral-lighter);
    background: transparent;
    border-radius: 50%;
}

.separator {
    padding: 0;
    border-top: 0.5px solid #F4F6FA;
}

.ham-menu {
    position: relative;
    height: 16px;
    width: 24px;
}

.ham-bar {
    position: relative;
}

.ham-bar:before {
    content: "";
    position: absolute;
    width: 24px;
    border-top: 1px solid #000000;
    top: 0;
    left: 0;
    opacity: 1;
    transform: scale(1);
    transform-origin: top left;
    transition: all 0.3s ease-in-out;
}

.ham-bar:nth-child(1):before {
    top: 0;
}

.ham-menu.--active .ham-bar:nth-child(1):before {
    transform: rotateZ(45deg) translate(2%, -50%);
}

.ham-bar:nth-child(2):before {
    transform-origin: center;
    top: 7px;
}

.ham-menu.--active .ham-bar:nth-child(2):before {
    transform: rotateZ(-45deg) translate(-2px, -2px);
}

.ham-bar:nth-child(3):before {
    top: 14px;
}

.ham-menu.--active .ham-bar:nth-child(3):before {
    transform: translateX(12px);
    opacity: 0;
}

/* Navbar mobile menu */
@media (max-width: 600px) {
    .nav-menu {
        height: 0;
        overflow: hidden;
        transition: all 1s cubic-bezier(0.07, 0.74, 0.5, 0.99);
    }

    .nav-menu.--active {
        display: flex !important;
        height: calc(100vh - 70px);
        background: white;
    }

    .nav-menu {
        display: flex !important;
    }

    .nav-menu-container > div:not(.separator),
    .nav-menu-container > a:not(.separator) {
        padding: 0 32px;
    }

    .nav-menu-container .client-name {
        margin: 12px 32px 7px 32px;
        font-size: 14px;
    }

    .nav-menu-container .dropdown-item.selected .circle-mark {
        border: 0;
    }

    .nav-menu-container .dropdown-item.selected .circle-mark:after {
        content: "";
        margin-left: 7px;
        margin-right: 4px;
        display: inline-block;
        transform: rotate(45deg);
        height: var(--height);
        width: var(--width);
        border-bottom: var(--borderWidth) solid var(--borderColor);
        border-right: var(--borderWidth) solid var(--borderColor);
    }

    .nav-menu-container-apps > div:not(.separator),
    .nav-menu-container-apps > a:not(.separator) {
        padding: 0 32px;
    }
}

.logo-ribbon {
    position: fixed;
    background: #ff0000;
    box-shadow: 0 0 0 999px #ff0000;
    clip-path: inset(0 -100%);
    inset: 0 auto auto 0;
    transform-origin: 100% 0;
    transform: translate(-29.3%) rotate(-45deg);
    font-size: 20px;
    font-weight: bold;
    color: #ffffff;
    z-index: 1000;
}

/* ------------------------------------------------------------------------------
 *  Agent selector (navbar)
 * ---------------------------------------------------------------------------- */
.agent-circle {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    font-size: 13px;
    flex-shrink: 0;
    transition: transform 0.2s ease;
}

.agent-circle svg {
    width: 16px;
    height: 16px;
}

.agent-name-label {
    margin-left: 8px;
    font-size: 13px;
    font-weight: 500;
    color: #4F5D72;
}

#agent-dropdown {
    padding: 6px 0;
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.12);
}

.agent-option {
    padding: 8px 14px;
    cursor: pointer;
    transition: background-color 0.15s ease;
    position: relative;
}

.agent-option:hover {
    background-color: #f0f0f5;
}

.agent-option.selected {
    background-color: #edf7f8;
}

.agent-option .agent-circle {
    width: 24px;
    height: 24px;
}

.agent-option .agent-circle svg {
    width: 14px;
    height: 14px;
}

.agent-option-name {
    margin-left: 10px;
    font-size: 13px;
    font-weight: 500;
    color: #2d3436;
    min-width: 46px;
}

.agent-personality {
    margin-left: 6px;
    font-size: 10px;
    color: #b2bec3;
    font-style: italic;
}

.agent-tooltip {
    display: none;
    position: fixed;
    background: #2d3436;
    color: white;
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 12px;
    line-height: 1.5;
    max-width: 300px;
    z-index: 10000;
    pointer-events: none;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.agent-tooltip::after {
    content: '';
    position: absolute;
    right: -6px;
    top: 50%;
    transform: translateY(-50%);
    border-width: 6px;
    border-style: solid;
    border-color: transparent transparent transparent #2d3436;
}

.agent-tooltip.agent-tooltip-right::after {
    right: auto;
    left: -6px;
    border-color: transparent #2d3436 transparent transparent;
}

#agent-menu-btn:hover > div:first-child .agent-circle {
    transform: scale(1.08);
}

.agent-caret {
    margin-left: 6px;
    color: #65728D;
    transition: transform 0.2s ease;
}

#agent-menu-btn.open .agent-caret {
    transform: rotate(180deg);
}

/* ------------------------------------------------------------------------------
 *  Login panel animation
 * ---------------------------------------------------------------------------- */
#right-panel.panel-animated {
    overflow: hidden;
    height: 0;
    opacity: 0;
    transition: height 0.8s cubic-bezier(0.4, 0, 0.2, 1),
                opacity 0.6s ease-in-out 0.2s;
}

#right-panel.panel-visible {
    opacity: 1;
}

/* ------------------------------------------------------------------------------
 *  Profile modal
 * ---------------------------------------------------------------------------- */
#profileModal .modal-content {
    border-radius: 10px;
    border: none;
    box-shadow: 0 8px 30px rgba(0,0,0,0.15);
}

#profileModal .modal-header {
    border-bottom: 1px solid #eee;
    padding: 16px 24px;
}

#profileModal .modal-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--grey-primary);
}

#profileModal .modal-body {
    padding: 24px;
}

.profile-section-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--grey-primary);
}

#profile-content .flyde-input {
    width: 100%;
}

#profile-content .flyde-input input {
    height: 40px;
}