                                    @import url('open-iconic/font/css/open-iconic-bootstrap.min.css');

:root {
    --main-color: #FF5500; /* Industrias Red Orange */
    --secondary-color: #FF8A00; /* Industrias Orange */
    --tertiary-color: #0076B6; /* Industrias Blue */
    --primary-grey: rgba(255,255,255,0.20); /* Industrias Grey */
}

html, body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

a, .btn-link {
    color: #0366d6; 
}


.btn-selection-inline {
    display: flex;
    justify-content: start;
    align-items: center;
}

.btn-container-inline {
    display: flex;
    justify-content: center;
    align-items: center;
}


.btn-container-inline.header {
    margin-top: 0.9rem;
}
.btn-container-inline-end {
    display: flex;
    justify-content: center;
    align-items: center;
}

.btn-primary {
    color: #fff;
    background-color: var(--main-color);
    border-color: #1861ac;
}

.btn-cancel {
    color: #fff;
    background-color: rgba(255,255,255,0.25);
    border-color: #1861ac;
}

.btn-secondary {
    color: #fff;
    background-color: var(--secondary-color);
    border-color: #1861ac;
}

.btn-tertiary {
    color: #fff;
    background-color: var(--tertiary-color);
    border-color: #1861ac;
}

app {
    position: relative;
    display: flex;
    flex-direction: column;
}


.dataentry-row-inline {
    display: flex;
    justify-content: start;
    padding-top: 5px;
}

.dataentry-label-inline {
    display: flex;
    width: 250px;
    min-width: 250px;
    max-width: 250px;
    align-items: center;
}

.dataentry-label-detail-inline {
    display: flex;
    width: 100%;
    align-items: center;
}

.top-row {
    height: 3.5rem;
    display: flex;
    align-items: center;
}

.main {
    flex: 1;
}

    .main .top-row {
        background-color: var(--secondary-color);
        border-bottom: 1px solid #d6d5d5;
        justify-content: flex-end;
        z-index: 1;
    }

    .main .top-row > a, .main .top-row .btn-link {
        white-space: nowrap;
        margin-left: 1.5rem;
        color: #FFFFFF;
    }

.main .top-row a:first-child {
    overflow: hidden;
    text-overflow: ellipsis;
}

.top-row .nav-item {
    font-size: 0.9rem;
    padding-bottom: 0.2rem;
    padding-left: 0rem;
    padding-right: 0rem;
}

    .top-row .nav-item a {
        color: #ffffff;
        border-radius: 4px;
        height: 2rem;
        display: flex;
        align-items: center;
        line-height: 2rem;
    }

    .top-row .nav-item a.active {
        background-color: rgba(255,255,255,0.25);
        color: white;
    }

    .top-row .nav-item a:hover {
        background-color: rgba(255,255,255,0.1);
        color: white;
    }
    
.sidebar {
    background-image: linear-gradient(180deg, var(--secondary-color) 20%, var(--tertiary-color) 70%);
}

    .sidebar .top-row {
        background-color: var(--secondary-color);
        z-index: 1;
    }

    .sidebar .navbar-brand {
        font-size: 1.1rem;
    }

    .sidebar .oi {
        width: 2rem;
        font-size: 1.1rem;
        vertical-align: text-top;
        top: -2px;
    }

    .sidebar .nav-item {
        font-size: 0.9rem;
        padding-bottom: 0.3rem;
    }

        .sidebar .nav-item:first-of-type {
            padding-top: 1rem;
        }

        .sidebar .nav-item:last-of-type {
            padding-bottom: 1rem;
        }

        .sidebar .nav-item a {
            color: #ffffff;
            border-radius: 4px;
            height: 2rem;
            display: flex;
            align-items: center;
            line-height: 2rem;
        }

        .sidebar .nav-item a.active {
            background-color: rgba(255,255,255,0.25);
            color: white;
        }

        .sidebar .nav-item a:hover {
            background-color: rgba(255,255,255,0.1);
            color: white;
        }


.content {
    padding-top: 1.1rem;
    padding-bottom: 0.5rem;
    
    min-height: 250px;
    height: auto;
}

.form-section {
    border-radius: 25px;
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
    padding-left: 0rem;
    padding-right: 0rem;
    background-color: var(--secondary-color);
    border-width: 5px;
    border-color: var(--main-color);
}

.form-section-half {
    border-radius: 25px;
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
    padding-top: 1rem;
    padding-bottom: 1rem;
    padding-left: 1rem;
    padding-right: 1rem;
    background-color: var(--secondary-color);
    border-width: 5px;
    border-color: var(--main-color);
    display: inline-block;
    width: 100%; /* Default to 100% width for mobile */
    box-sizing: border-box; /* Include padding and border in the element's total width and height */
}

@media (min-width: 768px) {
    .form-section-half {
        width: 50%; /* Set to 50% width for desktop */
    }
}


@font-face {
    font-family: BankGothic;
    src: url("../font/Bank Gothic Pro Light.otf") format("opentype");
}
@font-face {
    font-family: BankGothic;
    font-weight: bold;
    src: url("../font/Bank Gothic Pro Medium.otf") format("opentype");
}
@font-face {
    font-family: BankGothic;
    font-weight:100;
    src: url("../font/Bank Gothic Pro Bold.otf") format("opentype");
}

@font-face {
    font-family: UniviaPro;
    src: url("../font/UniviaPro-Regular.otf") format("opentype");
}

@font-face {
    font-family: UniviaPro;
    font-style: italic;
    src: url("../font/UniviaPro-Italic.otf") format("opentype");
}
@font-face {
    font-family: UniviaPro;
    font-weight: bold;
    src: url("../font/UniviaPro-Bold.otf") format("opentype");
}

@font-face {
    font-family: UniviaPro;
    font-weight: bold;
    font-style: italic;
    src: url("../font/UniviaPro-BoldItalic.otf") format("opentype");
}


.navHeader {
    font-family: 'UniviaPro';
}

.footer {
    padding-top: 0.5rem;
    padding-bottom: 0.8rem;
    font-size: 12px;
    width: 100%;
    text-align: end;
    font-family: 'BankGothic';
}


h3 {
    padding-top: 0.8rem;
    width: 100%;
    text-align: start;
    font-family: 'UniviaPro';
}

h4 {
    padding-top: 0.2rem;
    width: 100%;
    text-align: start;
    color: var(--main-color);
    font-size: 20px;
    font-weight: bold;
    font-family: 'UniviaPro';
}

h5 {
    padding-top: 0.2rem;
    width: 100%;
    text-align: start;
    color: #ffffff;
    font-size: 20px;
    font-weight: bold;
    font-family: 'UniviaPro';
}

h6 {
    padding-top: 0.2rem;
    width: 100%;
    text-align: start;
    color: #000000;
    font-size: 16px;
    font-weight: bold;
    font-family: 'UniviaPro';
}

h7 {
    padding-top: 0.2rem;
    width: 100%;
    text-align: start;
    color: #ffffff;
    font-size: 16px;
    font-weight: bold;
    font-family: 'UniviaPro';
}

.navbarUserBar {
    width: 100%;
    text-align: end;
}

.navbarUser {
    text-align: end;
    font-family: 'BankGothic';
    font-weight: 'bold';
    font-size: 14px;
    color: black;
    border-color: transparent;
    background-color:transparent;
}

.navbar-toggler {
    background-color: rgba(255, 255, 255, 0.1);
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid red;
}

.validation-message {
    color: red;
}

#blazor-error-ui {
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

#blazor-error-ui .dismiss {
    cursor: pointer;
    position: absolute;
    right: 0.75rem;
    top: 0.5rem;
}

@media (max-width: 767.98px) {
    .main .top-row:not(.auth) {
        display: none;
    }

    .main .top-row.auth {
        justify-content: space-between;
    }

    .main .top-row a, .main .top-row .btn-link {
        margin-left: 0;
    }
}

@media (min-width: 768px) {
    app {
        flex-direction: row;
    }

    .sidebar {
        width: 190px;
        height: 100vh;
        position: sticky;
        top: 0;
    }

    .main .top-row {
        position: sticky;
        top: 0;
    }

    .main > div {
        padding-left: 2rem !important;
        padding-right: 1.5rem !important;
    }

    .navbar-toggler {
        display: none;
    }

    .sidebar .collapse {
        /* Never collapse the sidebar for wide screens */
        display: block;
    }

    /* Syncfusion Grid*/
    /* https://blazor.syncfusion.com/documentation/datagrid/how-to/grid-styling/ */

    .e-grid .e-headercell {
        background-color: var(--secondary-color); /* Industrias Orange*/
    }

    .e-grid .e-headercelldiv {
        color: #FFFFFF;
    }

    .e-grid .e-filtermenudiv::before {
        color: white; /* Default filter icon color */
    }

    /* Filtered state */
    .e-grid .e-filtermenudiv.e-filtered::before {
        color: red !important; /* Change icon color when filtered */
       
    }

    .e-headercell {
        color: #FFFFFF;
        font-size: 1.8rem;
        font-weight: bold;
    }

    .e-altrow {
        color: gray;
    }
    /*
    .e-pager {
        background-color: #211a4d;
    }*/

    /* pager back ground */
    .e-grid .e-pager, .e-grid .e-pager .e-pagercontainer, .e-grid .e-pager .e-pagercontainer * {
        background-color: white;
    }

    .e-grid .e-pager .e-currentitem, .e-pager {
        color: #000000;
    }

    /* current selected page item */
    .e-grid .e-pager .e-currentitem, .e-pager .e-currentitem:hover {
        background-color: var(--secondary-color);
        color: white;
    }

    /* add special grid row colors*/
    .e-grid .e-row.red {
        background-color: #FF3535;
    }

    .e-grid .e-row.yellow {
        background-color: yellow;
    }

    .e-toolbar-right {
        left: 0;
    }

    .e-toolbar .e-toolbar-items.e-tbar-pos .e-toolbar-left {
        left: unset;
        right: 0;
    } 

    .e-toolbar-icons {
        background-color: var(--secondary-color);
        font-size: 18px;
    }

    .e-toolbar-icons .e-toolbar-delete:before 
    {
        content: '\ebcd';
    }


    .e-checkbox-wrapper.e-info-grid .e-frame.e-check,
    .e-checkbox-wrapper.e-info-grid .e-checkbox:focus + .e-frame.e-check { /* csslint allow: adjoining-classes */
        background-color: var(--secondary-color);
    }
    .e-checkbox-wrapper.e-info-grid .e-frame {
        height: 20px;
        width: 20px;
        padding: 6px 0;
    }

    .e-checkbox-wrapper.e-info-grid .e-check {
        font-size: 12px;
        padding: 0 0 8px 0;
        color: white;
    }

    .e-checkbox-wrapper.e-info-grid .e-ripple-container {
        height: 42px;
        top: -11px;
        width: 36px;
    }

    .e-checkbox-wrapper.e-info-grid .e-label {
        line-height: 20px;
        font-size: 10px;
    }


    .survey-question {
        font-weight: bold;
        display: flex;
        width: 100%;
        align-items: center;
        margin-top: 5px;
        margin-bottom:10px;
    }


    .e-radio:checked + label::after, e-radio:checked + label::before{
        background-color: palegoldenrod;
    }

    .radio-options {
        display: flex;
        justify-content: space-between;
    }

        .radio-options .radio-option {
            display: flex;
            width: 100%;
            padding: 5px;
            margin: 5px;
        }

        .radio-options .radio-option .option {
            display: flex;
            margin: 5px;
            width: 100%;
            justify-content: center;
            text-align: center; /* Add text center */
            background-color: 
        }


    .btn-survey {
        color: #fff;
        border-color: #000000;
        height: 60px; /* Adjust this value to make the button twice as tall */
        font-size: 1.5rem; /* Added to make the font size larger */
        color: #fff;
        font-weight: bold;
        display: flex;
        align-items: center;
        justify-content: center;
    }

        .btn-survey:disabled {
            color: #fff;
            font-weight: bold;
            background-color: var(--main-color);
            border-color: #000000;
        }

        .btn-survey:hover {
            color: #fff;
            font-weight: bold;
            background-color: var(--main-color);
            border-color: #000000;
        }

        .btn-survey:focus {
            color: #fff;
            background-color: var(--main-color);
            font-weight: bold;
            border-color: #000000;
        }

        .btn-survey:active {
            color: #fff;
            font-weight: bold;
            background-color: var(--main-color);
            border-color: #000000;
        }

}
