.ecip-navy-bg {
    background-color: #123a64 !important;
}

.ecip-navbar-premium {
    border: 0;
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.08) inset;
}

.ecip-brand-link {
    display: flex;
    align-items: center;
    gap: 16px;
    color: #fff;
}

.ecip-brand-link:hover,
.ecip-brand-link:focus {
    color: #fff;
    text-decoration: none;
}

.ecip-brand-system-name {
    font-weight: 600;
    font-size: 14px;
    letter-spacing: 0.02em;
    white-space: nowrap;
}

.ecip-brand-link__institutions {
    display: inline-flex;
    align-items: center;
    gap: 24px;
}

.ecip-brand-link__institution {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .08em;
    color: rgba(255, 255, 255, 0.9);
    text-transform: uppercase;
    white-space: nowrap;
}

.ecip-navbar-premium .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    min-height: 88px;
}

.ecip-navbar-premium .navbar-brand {
    float: none;
    height: auto;
    padding: 0;
    margin-right: 0;
}

.ecip-brand-link img {
    display: block;
    width: auto;
    max-width: 100%;
    height: 46px;
}

.ecip-navbar-premium .navbar-responsive-collapse {
    display: flex !important;
    align-items: center;
    justify-content: flex-end;
    flex: 1;
    border-top: 0;
    box-shadow: none;
}

.ecip-navbar-premium .navbar-responsive-collapse > .res-container {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    width: 100%;
    gap: 12px;
}

.ecip-navbar-nav-main {
    margin-left: auto;
    display: flex;
    align-items: center;
    min-width: 0;
}

.ecip-navbar-premium .navbar-nav > li > a {
    color: rgba(255, 255, 255, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    line-height: 1.2;
    white-space: nowrap;
    transition: color 160ms ease, background-color 160ms ease, box-shadow 160ms ease;
}

.ecip-navbar-premium .navbar-nav > li > a:hover,
.ecip-navbar-premium .navbar-nav > li > a:focus {
    color: #fff;
    background-color: rgba(255, 255, 255, 0.08);
}

.ecip-navbar-account {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: nowrap;
    white-space: nowrap;
    min-width: 0;
}

.ecip-navbar-account__summary {
    color: #fff;
    padding: 8px 10px;
    line-height: 1.2;
    display: inline-flex !important;
    align-items: center;
    white-space: nowrap;
    flex: 0 1 auto;
    min-width: 0;
}

.ecip-navbar-premium .navbar-nav > li {
    display: flex;
    align-items: center;
    min-width: 0;
}

.header-v8 .blog-topbar {
    border: 0;
}

.header-v8 .blog-topbar .container {
    min-height: 36px;
    display: flex;
    align-items: center;
}

.header-v8 .blog-topbar .topbar-time,
.header-v8 .blog-topbar .topbar-list > li {
    display: inline-flex;
    align-items: center;
    min-height: 36px;
}

.ecip-navbar-account__name {
    font-weight: 600;
    display: inline-block;
    margin-right: 8px;
    color: #fff !important;
    max-width: 210px;
    overflow: hidden;
    text-overflow: ellipsis;
    vertical-align: middle;
    white-space: nowrap;
}

.ecip-navbar-account__role {
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.2);
    font-size: 11px;
    white-space: nowrap;
}

.ecip-navbar-account__environment {
    display: inline-flex !important;
    align-items: center;
}

.ecip-navbar-premium .navbar-nav.navbar-right {
    margin-right: 0;
}

.ecip-navbar-premium .navbar-nav.navbar-right > li > a {
    white-space: nowrap;
}

.ecip-navbar-premium .dropdown-menu {
    border-radius: 14px;
    border: 1px solid #dbe5f2;
    box-shadow: 0 16px 36px rgba(15, 45, 82, 0.14);
    padding: 8px 0;
    margin-top: 12px;
}

.ecip-navbar-premium .dropdown-menu > li > a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 18px;
    color: #173f6e;
    white-space: nowrap;
}

.ecip-navbar-premium .dropdown-menu > li > a:hover,
.ecip-navbar-premium .dropdown-menu > li > a:focus {
    background: #edf4ff;
    color: #0f2d52;
}

.ecip-session-badge-wrap {
    position: fixed;
    right: 22px;
    bottom: 22px;
    z-index: 1040;
    max-width: calc(100vw - 24px);
}

.ecip-session-timer--floating {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-width: 142px;
    padding: 10px 14px;
    border-radius: 999px;
    border: 1px solid rgba(15, 45, 82, 0.12);
    background: rgba(255, 255, 255, 0.96);
    color: #10345c;
    box-shadow: 0 12px 28px rgba(15, 45, 82, 0.16);
    backdrop-filter: blur(10px);
    font-size: 12px;
    font-weight: 700;
}

.ecip-session-timer--floating i {
    color: #1b4d86;
    font-size: 14px;
}

.ecip-session-timer--floating.ecip-session-timer--warn {
    background: #fff6e7;
    border-color: #f1cf96;
    color: #8b5d13;
}

.ecip-session-timer--floating.ecip-session-timer--warn i {
    color: #b47816;
}

.ecip-session-timer--floating.ecip-session-timer--danger {
    background: #fff0f1;
    border-color: #efc0c5;
    color: #952837;
}

.ecip-session-timer--floating.ecip-session-timer--danger i {
    color: #b33434;
}

.ecip-page-title {
    border-bottom: 1px solid #dce5f2;
    padding-bottom: 12px;
}

.ecip-page-title .breadcrumb {
    margin-bottom: 8px;
}

.ecip-card {
    border: 1px solid #dbe5f2;
    box-shadow: 0 6px 18px rgba(21, 43, 73, 0.06);
}

.ecip-table {
    border: 1px solid #dbe5f2;
}

.ecip-table > thead > tr > th {
    background: #f6f9fd;
    border-bottom: 1px solid #dbe5f2;
    color: #1f3d61;
}

.ecip-table > tbody > tr:nth-child(odd) {
    background: #fbfdff;
}

.btn.ecip-btn-primary,
.ecip-btn-primary {
    background-color: #1b4d86;
    border-color: #1b4d86;
    color: #fff;
}

.btn.ecip-btn-secondary,
.ecip-btn-secondary {
    background-color: #fff;
    border-color: #c8d7ea;
    color: #1f3d61;
}

.btn.ecip-btn-ghost,
.ecip-btn-ghost {
    background: transparent;
    border: 1px dashed #9bb4d4;
    color: #1f3d61;
}

.ecip-alert-info,
.ecip-alert-success,
.ecip-alert-warning,
.ecip-alert-danger {
    position: relative;
    padding-left: 46px;
    border-radius: 8px;
}

.ecip-alert-info::before,
.ecip-alert-success::before,
.ecip-alert-warning::before,
.ecip-alert-danger::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 14px;
    width: 18px;
    height: 18px;
    transform: translateY(-50%);
    background-size: 18px 18px;
    background-repeat: no-repeat;
}

.ecip-alert-info::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%231b4d86'%3E%3Cpath d='M12 2a10 10 0 100 20 10 10 0 000-20Zm1 15h-2v-6h2v6Zm0-8h-2V7h2v2Z'/%3E%3C/svg%3E");
}

.ecip-alert-success::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%232a7f52'%3E%3Cpath d='M12 2a10 10 0 100 20 10 10 0 000-20Zm-1 14-4-4 1.4-1.4L11 13.2l4.6-4.6L17 10l-6 6Z'/%3E%3C/svg%3E");
}

.ecip-alert-warning::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%239a6b00'%3E%3Cpath d='M1 21h22L12 2 1 21Zm12-3h-2v-2h2v2Zm0-4h-2v-4h2v4Z'/%3E%3C/svg%3E");
}

.ecip-alert-danger::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23a0232a'%3E%3Cpath d='M12 2a10 10 0 100 20 10 10 0 000-20Zm4.3 12.9L14.9 16 12 13.1 9.1 16l-1.4-1.4L10.6 12 7.7 9.1l1.4-1.4L12 10.6l2.9-2.9 1.4 1.4-2.9 2.9 2.9 2.9Z'/%3E%3C/svg%3E");
}

a,
button,
.btn,
.form-control,
.select2-container .select2-choice,
.ecip-card {
    transition: all 160ms ease;
}

a:focus,
button:focus,
.btn:focus,
.form-control:focus,
.select2-container .select2-choice:focus {
    outline: 3px solid rgba(15, 106, 180, 0.35);
    outline-offset: 2px;
}

.btn[disabled],
.btn.disabled,
fieldset[disabled] .btn,
.form-control[disabled],
.form-control[readonly] {
    opacity: 0.55;
    cursor: not-allowed;
}


@media (max-width: 991px) {
    .ecip-navbar-premium .container {
        min-height: 72px;
        flex-wrap: wrap;
    }

    .ecip-brand-link {
        gap: 8px;
        flex-wrap: wrap;
    }

    .ecip-brand-link img {
        height: 36px;
    }

    .ecip-brand-system-name {
        font-size: 12px;
    }

    .ecip-brand-link__institutions {
        gap: 12px;
    }

    .ecip-brand-link__institution {
        font-size: 10px;
    }

    .ecip-navbar-account__summary {
        display: none;
    }

    .ecip-navbar-premium .navbar-responsive-collapse,
    .ecip-navbar-premium .navbar-responsive-collapse > .res-container {
        width: 100%;
        flex-wrap: wrap;
        justify-content: flex-start;
    }

    .ecip-navbar-nav-main,
    .ecip-navbar-account {
        width: 100%;
        justify-content: flex-start;
        margin-left: 0;
    }
}

@media (max-width: 767px) {
    .ecip-session-badge-wrap {
        right: 12px;
        bottom: 12px;
        left: 12px;
    }

    .ecip-session-timer--floating {
        width: 100%;
        justify-content: center;
    }
}
