﻿html, body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

:root {
    --bs-primary: #032154;
    --bs-primary-rgb: 3, 33, 84;
    --bs-link-color: #032154;
    --bs-link-color-rgb: 3, 33, 84;
    --bs-link-hover-color: #234271;
    --bs-link-hover-color-rgb: 35, 66, 113;
}

a {
    color: #032154;
}

a:hover {
    color: #234271;
}

.btn-primary {
    color: #fff;
    background-color: #032154;
    border-color: #032154;
}

.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active {
    background-color: #234271;
    border-color: #234271;
}

.content {
    padding-top: 66px;
}

h1:focus {
    outline: none;
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid #e50000;
}

.validation-message {
    color: #e50000;
}

.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NiIgaGVpZ2h0PSI0OSIvPjwvY2xpcFBhdGg+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMCkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0yMzUgLTUxKSI+PHBhdGggZD0iTTI2My41MDYgNTFDMjY0LjcxNyA1MSAyNjUuODEzIDUxLjQ4MzcgMjY2LjYwNiA1Mi4yNjU4TDI2Ny4wNTIgNTIuNzk4NyAyNjcuNTM5IDUzLjYyODMgMjkwLjE4NSA5Mi4xODMxIDI5MC41NDUgOTIuNzk1IDI5MC42NTYgOTIuOTk2QzI5MC44NzcgOTMuNTEzIDI5MSA5NC4wODE1IDI5MSA5NC42NzgyIDI5MSA5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rem;
    color: white;
}

    .blazor-error-boundary::after {
        content: "An error has occurred."
    }

.language-dropdown {
    width: 100px !important;
}

.my-chart {
    width: 100px;
    height: 100px;
    position: relative;
}

.piechart {
    height: 100%;
    width: 100%;
}

    .piechart > div {
        min-height: 0px !important;
    }

.home-page-btn {
    min-width: 192px;
    min-height: 40px;
}

.home-page-btn-count0 {
    min-width: 192px;
    min-height: 40px;
    color: #fff !important;
    background-color: #032154 !important;
    border: none !important;
}

.chart-number {
    margin: 0;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-weight: bold;
    font-size: large;
}

.dxbl-listbox-item-selected {
    background-color: #032154 !important;
}

.page-title {
    text-align: center !important;
    margin-top: 10px !important;
}

.validation-error {
    margin-top: 8px !important;
    color: red;
    margin-left: 2px !important;
}

.email-sent-span {
    margin-top: 8px !important;
    font-weight: bold;
    margin-left: 2px !important;
}

.header-container {
    z-index: 201 !important;
}

.profile-icon {
    height: 25px;
    width: 25px;
}

.registration-max-width {
    max-width: 225px;
}

.top-row {
    background-color: #54BAB6;
    border-bottom: 1px solid #d6d5d5;
    /*justify-content: space-between;*/
    height: 3.5rem;
    display: flex;
    align-items: center;
}

    .top-row ::deep a, .top-row .btn-link {
        white-space: nowrap;
        margin-left: 1.5rem;
    }

    .top-row a:first-child {
        overflow: hidden;
        text-overflow: ellipsis;
    }

.chart-text {
    font-size: 14px;
}

@media (max-width: 955px) {
    .top-row:not(.auth) {
        display: none;
    }

    .top-row a, .top-row .btn-link {
        margin-left: 0;
    }
}

@media (min-width: 955px) {
    .top-row {
        position: sticky;
        top: 0;
        z-index: 1;
    }

    .top-row, article {
        padding-left: 2rem !important;
        padding-right: 1.5rem !important;
    }
}


/*LeftMenu*/

.left-menu-link:hover {
    background-color: #032154 !important;
    color: white !important;
    border-radius: 7px !important;
}

.page-title {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-top: 66px;
}

/*TrainingPage css*/

.items-div {
    max-width: 500px;
    margin: auto;
    margin-top: 10px;
}

.training-section, .ebinder-section {
    width: 100%;
    min-height: 50px;
    font-weight: bold;
    font-size: 16px;
}

.alerts-section {
    width: 100%;
    min-height: 50px;
    font-weight: bold;
    font-size: 16px;
    background-color: #032154 !important;
}

.document-item-link {
    width: 100%;
    min-height: 50px;
    font-weight: bold;
    font-size: 20px;
    justify-content: space-between;
}

/*Score alert page*/

.filter-toggle-btn {
    display: flex;
    justify-content: center;
    align-items: center;
    border: 1px solid black;
    width: 100%;
    cursor: pointer;
    border-radius: 20px;
}

    .filter-toggle-btn .text {
        margin-right: 8px;
    }

.filter-checkbox-div {
    height: 30px;
    display: flex;
    align-items: center;
    padding-left: 5px;
    cursor: pointer;
}

.filter-checkbox-div-hover:hover {
    background-color: lightgrey !important;
}



.score-div {
    border: 1px solid #999999;
    border-radius: 12px;
    width: 100%;
    margin: auto;
}

    .score-div:hover {
        cursor: pointer;
        background-color: darkgray !important;
    }

.scorealert-header-table {
    margin-bottom: 10px;
}

.scorealert-header-table-cell-caption {
    font-weight: 600;
}

.scorealert-header-table-row {
    margin-bottom: 10px;
}

.filter-div {
    width: max-content;
}

.my-input-class::placeholder {
    font-style: italic;
    user-select: all;
    cursor: pointer !important;
}

/* MainLayout page css*/
main {
    flex: 1;
}

.page {
    display: flex;
    position: relative;
    flex-direction: column;
}

.transparent-background {
    height: 100vh;
    width: 100%;
    top: 0;
    bottom: 0;
    right: 0;
    z-index: 2;
    background-color: #000000c4;
    position: fixed;
    opacity: 0.5;
}

.sidebar {
    width: 220px;
    height: 100%;
    position: sticky;
    background-color: blue;
    border-right: 1px solid #999999;
    background-color: white;
    padding-top: 66px;
    left: 0;
    position: fixed;
    z-index: 3;
}

.logo {
    position: absolute;
    top: 0;
    z-index: 999
}

    .logo.fixed {
        position: fixed
    }

    .logo a {
        max-width: 185px;
        margin: 0;
        padding-top: 0
    }

@media(max-width:991.98px) {
    .logo {
        left: 10px
    }

        .logo a {
            max-width: 150px
        }
}

@media(max-width:575.98px) {
    .logo a {
        max-width: 100px
    }
}

@media(min-width:1200px) {
    .logo .navbar-brand {
        max-width: 100%
    }

        .logo .navbar-brand img {
            width: 160px;
            height: auto
        }
}

@media(max-width:991.98px) {
    header .logo.fixed {
        left: 50%;
        transform: translateX(-50%) !important;
        position: absolute;
        top: 0;
        margin: 0;
        padding: 0
    }

        header .logo.fixed img {
            max-height: 100.8px
        }
}

.left-menu-items {
    display: flex;
    flex-direction: column;
}

.content-container {
    padding: 20px 30px !important;
    transition: all .5s ease;
}

@media (max-width: 900px) {
    .content-container {
        padding: 12px 16px !important;
    }
}

.dropdown-item:focus {
    background-color: #54BAB6 !important;
}

.chart-style .dx-chart {
    padding: 0 0;
}

.chart-style .dxc-elements-axes-group .dxc-arg-elements text {
    font-size: 10px !important;
}

.alert-section-div {
    max-width: 500px;
    margin: auto;
    margin-top: 10px;
}

.item-header {
    background-color: #032154 !important;
    color: white;
    padding: 10px;
}

.action-plan-header {
    background-color: white !important;
    color: black;
    text-align: center;
}

black-color {
    color: black;
}

.action-plan-content {
    background-color: lightgray;
    text-align: center;
}

.item-content {
    background-color: lightgray;
}

.ticket-link {
    cursor: pointer;
    text-decoration: underline;
}

.div-link {
    cursor: pointer;
}

.border-radius {
    border-radius: 8px;
}

.bottom-border-radius {
    border-bottom-left-radius: 8px;
    border-bottom-right-radius: 8px;
}

.top-border-radius {
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
}


.even-btn {
    background-color: #234271 !important;
    border: none;
}

.odd-btn {
    background-color: #032154 !important;
    border: none;
}

.gray-btn {
    background-color: lightgrey !important;
}

.abell-colour {
    color: #032154 !important;
}

.new-circle {
    width: 27px;
    height: 27px;
    border: 2px solid red;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    background-color: red;
    color: white;
    cursor: pointer;
}

.closed-circle {
    width: 27px;
    height: 27px;
    border: 2px solid greenyellow;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    background-color: greenyellow;
    color: #032154;
    cursor: pointer;
}

.repeat-circle {
    width: 27px;
    height: 27px;
    border: 2px solid lightyellow;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    background-color: lightyellow;
    color: #032154;
    cursor: pointer;
}

.Corrective-table-td {
    text-align: -webkit-center;
    padding: 5px;
}

.chart-style .dxc-labels-group .dxc-labels text {
    fill: #54BAB6 !important;
    font-weight: bold !important;
}

.loading-indicator {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    width: 100%;
    top: 0;
    bottom: 0;
    right: 0;
    z-index: 205;
    background-color: #a9a7a7c4;
    position: fixed;
    opacity: 0.5;
}

.loading-icon {
    width: 70px;
    height: 70px;
}

.red-text {
    color: red;
}

.greentext {
    color: green;
}

#req-list {
    list-style: none;
}

.icon-wrong::before {
    display: inline-block;
    content: ' ';
    background-image: url('../images/wrong_red.svg');
    background-repeat: no-repeat;
    background-size: 21px 18px;
    height: 21px;
    width: 18px;
    margin-bottom: -8px;
    margin-right: 10px;
    margin-left: -25px; /* same as padding-left set on li */
}

.icon-right::before {
    display: inline-block;
    content: ' ';
    background-image: url('../images/right_green.svg');
    background-repeat: no-repeat;
    background-size: 21px 19px;
    height: 21px;
    width: 19px;
    margin-bottom: -8px;
    margin-right: 5px;
    margin-left: -22px; /* same as padding-left set on li */
}

.icon-bullet::before {
    content: '*';
    display: inline-block;
    font-weight: 500;
    margin-left: -1.3em; /* same as padding-left set on li */
    width: 1.3em; /* same as padding-left set on li */
}

.scorealerts-dropdown {
    display: none;
    position: absolute;
    margin: 1px;
    background-color: white;
    border: 1px solid #ced4da;
    border-top: none;
    border-bottom-left-radius: 3px;
    border-bottom-right-radius: 3px;
    z-index: 1;
}

.fiter-div {
    border: 1px solid #ced4da;
    display: none;
}

.customFilters {
    border: 1px solid #ced4da;
    display: none;
}

.customDropdown {
    height: 30px;
}

.customDropdownText {
    width: 94%;
    border: 1px solid #ced4da;
    border-top-left-radius: 3px;
    border-bottom-left-radius: 3px;
    cursor: text;
    font-size: 14px !important;
}

.customDropdownIcon {
    align-self: center;
    margin-right: 6px;
}

.customDropdownButton {
    border: 1px solid #ced4da;
    border-top-right-radius: 3px;
    border-bottom-right-radius: 3px;
    width: 30px;
    height: 30px;
    cursor: pointer;
    border-left: none;
    background-image: url('/images/icons8-sort-down-24.png');
    background-size: 16px 16px;
    background-position: center;
    background-repeat: no-repeat;
}

.show {
    display: block !important;
}

#customDropdown:focus {
    outline: red solid 1px;
}

.custom-dropdown-checkbox {
    width: 18px;
    height: 18px;
    margin-right: 5px;
}

::deep .service-items-grid {
    font-size: 10px !important;
}

.service-items-table {
    font-family: arial, sans-serif;
    border-collapse: collapse;
    width: 100%;
}

    .service-items-table td, .service-items-table th {
        border: 1px solid #797979;
        text-align: left;
        padding: 2px;
        font-size: 12px !important;
        text-align: center;
    }

.gray-btn-ebinder {
    background-color: lightgrey !important;
}

.password-toggle-icon {
    position: absolute;
    top: 70%;
    right: 4px;
    transform: translateY(-50%);
    cursor: pointer;
}

.white-bg {
    background-color: white !important;
}

.grey-border {
    border: 1px solid #a1a1a1;
}

/* Chrome, Safari, Edge, Opera */
input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* Firefox */
input[type=number] {
    -moz-appearance: textfield;
}

.portal-card, .portal-card-disabled {
    display: flex;
    position: relative;
    width: 300px;
    justify-content: center;
    align-items: center;
    margin-bottom: 20px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 22px;
}

    .portal-card:hover {
        background-color: #dbdbdb !important;
    }


.hover-grey:hover {
    background-color: lightgray;
}

.icon-bullet::before {
    content: '*';
    display: inline-block;
    font-weight: 500;
    margin-left: -1.3em; /* same as padding-left set on li */
    width: 1.3em; /* same as padding-left set on li */  
}

.ui-icon-bullet {
    background-position: -80px -144px
}

.greentext {
    color: green;
}

.redtext {
    color: red;
}

.icon-right::before {
    display: inline-block;
    content: ' ';
    background-image: url('./Images/right_green.svg');
    background-repeat: no-repeat;
    background-size: 21px 19px;
    height: 21px;
    width: 19px;
    margin-bottom: -8px;
    margin-right: 5px;
    margin-left: -22px; /* same as padding-left set on li */
}

.icon-wrong::before {
    display: inline-block;
    content: ' ';
    background-image: url('./Images/wrong_red.svg');
    background-repeat: no-repeat;
    background-size: 21px 18px;
    height: 21px;
    width: 18px;
    margin-bottom: -8px;
    margin-right: 10px;
    margin-left: -25px; /* same as padding-left set on li */
}

.main-layout-container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.main-content {
    flex: 1 0 auto;
}

.footer {
    width: 100%;
    background-color: #54bab6;
    padding: 20px 10px;
    flex-shrink: 0;
}

@media screen and (max-width: 768px) {
    .footer {
        text-align: center;
    }

        .footer .row {
            flex-direction: column !important;
            align-items: center;
        }
}

/* Portal section */
.portal-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.portal-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: stretch;
    gap: 30px;
    margin-top: 20px;
    text-align: center;
}

.portal-item {
    width: 340px;
    display: flex;
    flex-direction: column;
    align-items: stretch;
}

.portal-card, .portal-card-disabled {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    padding: 20px;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    flex: 1;
}

.portal-card-disabled {
    cursor: default;
}

.preference-checkbox {
    margin-top: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Responsive behavior */
@media (max-width: 768px) {
    .portal-container {
        flex-direction: column;
        align-items: center;
    }

    .portal-item {
        width: 90%;
    }
}

/* Error UI */
.sso-error-container {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px 16px;
}

.sso-error-card {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    padding: 36px 32px;
    max-width: 480px;
    width: 100%;
    text-align: center;
}

.sso-error-icon {
    color: #c0392b;
    margin-bottom: 16px;
}

.sso-error-title {
    font-weight: 700;
    margin-bottom: 12px;
    color: #222;
}

.sso-error-message {
    color: #555;
    margin-bottom: 8px;
}

.sso-error-timestamp {
    font-size: 12px;
    color: #888;
    margin-bottom: 4px;
}
