﻿@import url('open-iconic/font/css/open-iconic-bootstrap.min.css');

html, body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-size: 0.8rem;
}
.main {
    z-index: 500;
}
/*    .main .content {
        height: calc(100% -(2.0rem + 1.5em + .5rem + 2px));
    }
*/
.blazored-modal-container {
    z-index: 1000;
}

.h1, h1 {
    font-size: 1.5rem;
}
.h2, h2 {
    font-size: 1.2rem;
}
/* LINKS & I18N */
a, .btn-link {
    color: #0366d6;
}
    a.I18nText {
        color: inherit !important;
        display: inline-block;
        width: 100%;
        height: 100%;
    }
        a.I18nText:hover {
            color: #ffffff !important;
            background-color: #1b6ec2 !important;
            text-decoration: inherit !important;
        }
        a.I18nText.error {
            color: #000000 !important;
            background-color: yellow !important;
        }
            a.I18nText.error:hover {
                color: #ffffff !important;
                background-color: #ff0000 !important;
                text-decoration: inherit !important;
            }

/* end of LINKS & I18N */

/* BUTTONS */
.btn-edit,
.btn-ok,
.btn-primary,
.btn-refresh,
.btn-delete,
.btn-undelete,
.btn-red,
.btn-add,
.btn-green,
.btn-cancel,
.btn-secondary {
    text-transform: capitalize !important;
}
.btn-edit, .btn-ok, .btn-primary, .btn-refresh {
    color: #fff;
    background-color: rgb(0, 117, 235); /*#1b6ec2*/
    border-color: #1b6ec2;
}
    .btn-edit:focus,
    .btn-ok:focus,
    .btn-primary:focus,
    .btn-refresh:focus {
        outline-color: #ff0000;
    }
.btn-delete,
.btn-red {
    color: #fff;
    background-color: #c62828 !important; /*#c62828*/
    border-color: #c62828;
}

    .btn-delete:focus,
    .btn-:focus {
        outline-color: #1b6ec2;
    }

.btn-add,
.btn-green,
.btn-undelete {
    color: #fff;
    background-color: rgb(54, 161, 139) !important; /*#2e7d32*/
    border-color: #2e7d32;
}

    .btn-add:focus,
    .btn-green:focus,
    .btn-undelete {
        outline-color: #ff0000;
    }

.btn-cancel {
    color: #fff;
    background-color: #6c757d !important;
    border-color: #6c757d;
}
.btn-secondary {
    color: #000;
    background-color: #ffffff !important;
    border-color: #6c757d;
}
    .btn-cancel:hover,
    .btn-secondary:hover {
        background-color: #6c757d !important;
        border-color: #6c757d;
        outline-color: #ff0000;
    }

    .btn-cancel:focus,
    .btn-secondary:focus {
        outline-color: #ff0000;
    }

.close {
    color: #000000;
}

    .close:hover {
        color: #6c757d;
    }
.bigicon {
    font-size: 36px !important;
    font-weight: bold !important;
}
    .bigicon.check {
        color: blue;
    }
    .bigicon.clear {
        color: red;
    }
/* End of BUTTONS */

/* NUMERIC INPUT */
input[type=number] {
    width: initial;
}
/* End of NUMERIC INPUT */

/* CHECKBOX */
input[type=checkbox].checkbox:not(old) {
    width: 2em;
    margin: 0;
    padding: 0;
    font-size: 1em;
    opacity: 0;
    transform: scale(1.5);
}
    input[type=checkbox].checkbox:not(old) + label {
        display: inline-block;
        margin-left: -2em;
        line-height: 1.5em;
    }
        input[type=checkbox].checkbox:not(old) + label > span {
            display: inline-block;
            width: 0.875em;
            height: 0.875em;
            margin: 0.25em 0.5em 0.25em 0.25em;
            border: 0.0625em solid rgb(192,192,192);
            /*border-radius: 0.25em;*/
            background: rgb(224,224,224);
            background-image: -moz-linear-gradient(rgb(240,240,240),rgb(224,224,224));
            background-image: -ms-linear-gradient(rgb(240,240,240),rgb(224,224,224));
            background-image: -o-linear-gradient(rgb(240,240,240),rgb(224,224,224));
            background-image: -webkit-linear-gradient(rgb(240,240,240),rgb(224,224,224));
            background-image: linear-gradient(rgb(240,240,240),rgb(224,224,224));
            vertical-align: bottom;
        }
    input[type=checkbox].checkboxwithtick:not(old):checked + label > span:before {
        content: '✓';
        display: block;
        width: 1em;
        color: rgb(21,101,192);
        font-size: 0.875em;
        line-height: 1em;
        text-align: center;
        text-shadow: 0 0 0.0714em rgb(115,153,77);
        font-weight: bold;
    }
input[type=checkbox].checkbox:not(old):checked + label > span > span {
    display: block;
    width: 0.6em;
    height: 0.6em;
    margin: 0.100em 0.050em;
    border: 0.0625em solid rgb(115,153,77);
    border-radius: 0.125em;
    background: rgb(21,101,192);
    /*background-image: -moz-linear-gradient(rgb(179,217,140),rgb(21,101,192));
    background-image: -ms-linear-gradient(rgb(179,217,140),rgb(21,101,192));
    background-image: -o-linear-gradient(rgb(179,217,140),rgb(21,101,192));
    background-image: -webkit-linear-gradient(rgb(179,217,140),rgb(21,101,192));
    background-image: linear-gradient(rgb(179,217,140),rgb(21,101,192));*/
}
/* End of CHECKBOX */

/* GLOBAL */
.bold, .strong {
    font-weight: bold;
}
app {
    position: relative;
    display: flex;
    flex-direction: column;
}

.mdc-button {
    white-space: nowrap;
}

.noborder{
    border: 0;
}
.nopadding {
    padding: 0;
}

.top-row {
    height: 2.0rem;
    /*display: flex;*/
    align-items: center;
    position: relative;
    padding-left: 0rem !important;
    padding-top: 0px;
}

    .top-row button,
    .top-row .mdc-button {
        position: absolute;
        top: -1.5rem;
        right: -2.0rem;
        margin-top: 0.25rem;
    }

.main {
    flex: 1;
    background-color: white;
}

    .main .top-row {
        background-color: #f7f7f7;
        border-bottom: 1px solid #d6d5d5;
        justify-content: flex-end;
        z-index: 10;
    }

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

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

/* end of GLOBAL */

/* SIDEBAR MENU */
.sidebar {
    background-image: linear-gradient(180deg, rgb(5, 39, 103) 0%, #3a0647 70%);
}

    .sidebar .top-row {
        background-color: rgba(0,0,0,0.4);
    }

    .sidebar .navbar-brand {
        font-size: 1.1rem;
    }

    .sidebar .material-icons {
        width: 1.2rem;
        font-size: 1rem;
        vertical-align: text-top;
        top: -2px;
        margin-left: -5px;
    }
    .sidebar .oi {
        width: 2rem;
        font-size: 1.1rem;
        vertical-align: text-top;
        top: -2px;
    }

    .sidebar .nav-item {
        font-size: 0.9rem;
        padding-bottom: 0rem;
    }

        .sidebar .nav-item:first-of-type {
            padding-top: 0rem;
        }

        .sidebar .nav-item:last-of-type {
            padding-bottom: 1rem;
        }

        .sidebar .nav-item a {
            color: #d7d7d7;
            border-radius: 4px;
            height: 3rem;
            display: flex;
            align-items: center;
            line-height: 3rem;
        }

            .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;
            }


    .sidebar .nav .nav-menu {
        transition: height 1s ease-in-out;
        -webkit-transition: height 1s ease-in-out;
        -moz-transition: height 1s ease-in-out;
        -ms-transition: height 1s ease-in-out;
        -o-transition: height 1s ease-in-out;
        overflow: hidden;
    }

    .sidebar .nav .nav-menu {
        /*height: 20px;*/
        overflow: hidden;
    }
        /*.sidebar .nav .nav-menu:target {
            height: auto;
        }*/
        .sidebar .nav .nav-menu a {
            margin: 0px;
            padding-left: 1rem !important;
            color: white;
        }

        .sidebar .nav .nav-menu .collapse {
            margin: 0px;
            padding: 0px;
        }

    .sidebar .nav {
        position: fixed;
        display: flex;
        align-items: flex-start;
        height: 100%;
    }
        .sidebar .nav .nav-link {
            padding: .3rem 1rem 0;
            position: relative;
        }
        
            .sidebar .nav .nav-link:active,
            .sidebar .nav label:active {
                color: #2196f3;
            }
            .sidebar .nav .nav-link:focus,
            .sidebar .nav .nav-link:hover,
            .sidebar .nav label:hover {
                color: lightblue;
            }
        .sidebar .nav .nav-text {
            position: absolute;
            bottom: -0.1rem;
        }
        .sidebar .nav label.title {
            position: relative;
            color: #2196f3;
        }
            .sidebar .nav label.title .nav-text {
                background-color: #012a54;
                padding: 0 5px;
                margin: 0 -5px;
                bottom: 0.1rem;
            }
            .sidebar .nav label.title .material-icons {
                color: lightgreen;
            }

    .sidebar li,
    .sidebar ul label.title,
    .sidebar ul,
    .sidebar a {
        width: 100%;
        color: #FFF;
        display: block;
    }

    .sidebar ul label {
        height: 35px;
        /*margin-bottom: 0rem;*/
    }
    .sidebar ul li {
        height: 35px;
        overflow: hidden;
        transition: all .3s;
    }

    .sidebar li {
        display: block;
    }
        .sidebar li a:last-of-type {
            /*border-bottom: 1px solid lightblue;*/
        }

    .sidebar label.title {
        /*background: linear-gradient(#111, #2f2f2f);*/
        font-weight: normal;
        text-decoration-line: underline;
        padding: 10px 15px;
        cursor: pointer;
        transition: all .25s;
    }

    .sidebar input[type="radio"] {
        display: none;
    }

    .sidebar input:checked + li {
        height: auto;
    }

    .sidebar .nav li.active label.title .nav-text,
    .sidebar .nav li.active a.active .nav-text {
        color: #151d5e;
        background-color: #2196f3;
    }

.navbar-toggler {
    background-color: rgba(255, 255, 255, 0.1);
}
/* end of SIDEBAR MENU */

/* VALIDATION & ERRORS */
.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;
}
/* end of VALIDATION & ERRORS */

/* BLAZOR MODAL CSS*/
.blazored-custom-modal {
    display: flex;
    flex-direction: column;
    width: 60vw;
    height: 60vh;
    background-color: #fafafa;
    border-radius: 12px;
    border: 1px solid #fff;
    padding: 0.5rem;
    z-index: 102;
    box-shadow: 0 2px 2px rgba(0,0,0,.75);
}

.blazored-prompt-modal {
    display: flex;
    flex-direction: column;
    width: 600px;
    background-color: #fefefe;
    border-radius: 4px;
    border: 1px solid #fff;
    padding: 0.5rem;
    z-index: 102;
    box-shadow: 0 2px 2px rgba(0,0,0,.75);
}

    .blazored-prompt-modal .blazored-modal-header {
        display: none;
    }
.blazored-modal-content {
    overflow-x: hidden;
    overflow-y: auto;
    height: 570px;
}
/* end of BLAZOR MODAL CSS*/

/* SYSTEM PAGES */
h2.system {
    background-image: url('../background.png');
    border: 2px dashed red;
    padding: 0 0.25em;
    margin: 0 0 0.25em;
}
/* end of SYSTEM PAGES */

/* FORM */
.content {
    padding-top: 1.1rem;
}
    .content .container {
        padding-left: 0px;
        padding-right: 0px;
    }
        .content .container .row {
            margin-left: 0px;
            margin-right: 0px;
        }
label.fullwidth{
    width: 100%;
}
.form-control {
    height: calc(1.5em + .5rem + 2px);
    font-size: 0.7rem;
}

    .form-control.mdc-button {
        width: initial;
    }
.form-group {
    margin-bottom: 0.5rem;
}
    .form-group.info {
        font-size: 0.85em;
        color: blue;
        margin: -1rem 1rem 1rem;
    }
        .form-group.info b {
            color: black;
        }
.form2 {
    border-width: thin;
    border-radius: 10px;
    border-style: solid;
    width: 92%;
    margin: auto;
    padding: 3px;
}

    .form2 .top-row button,
    .form2 .top-row .mdc-button {
        position: absolute;
        top: -1.5rem;
        right: 0rem;
    }

.col, .col-1, .col-10, .col-11, .col-12, .col-2, .col-3, .col-4, .col-5, .col-6, .col-7, .col-8, .col-9, .col-auto,
.col-lg, .col-lg-1, .col-lg-10, .col-lg-11, .col-lg-12, .col-lg-2, .col-lg-3, .col-lg-4, .col-lg-5, .col-lg-6, .col-lg-7, .col-lg-8, .col-lg-9, .col-lg-auto,
.col-md, .col-md-1, .col-md-10, .col-md-11, .col-md-12, .col-md-2, .col-md-3, .col-md-4, .col-md-5, .col-md-6, .col-md-7, .col-md-8, .col-md-9, .col-md-auto,
.col-sm, .col-sm-1, .col-sm-10, .col-sm-11, .col-sm-12, .col-sm-2, .col-sm-3, .col-sm-4, .col-sm-5, .col-sm-6, .col-sm-7, .col-sm-8, .col-sm-9, .col-sm-auto,
.col-xl, .col-xl-1, .col-xl-10, .col-xl-11, .col-xl-12, .col-xl-2, .col-xl-3, .col-xl-4, .col-xl-5, .col-xl-6, .col-xl-7, .col-xl-8, .col-xl-9, .col-xl-auto {
    padding-right: 7px;
    padding-left: 7px;
}

    .col > .row,
    .col-lg-6 > .row {
        margin-left: -5px;
        margin-right: -5px;
    }

textarea:disabled{
    color: #000;
}

label {
    font-weight: 600;
    margin-bottom: 0rem;
}

fieldset {
    border: 1px solid #000;
    border-radius: 1px;
    margin-top: .2rem;
    margin-bottom: 1rem;
}

    fieldset legend {
        width: auto;
        padding: 0px 8px 0px 8px;
        margin: 0;
        font-size: 1.2rem;
        min-height: 1.2rem;
    }

/* end of FORM */

/* LISTS */
.mdc-table th {
    font-size: 0.8rem !important;
    font-weight: 700 !important;
    line-height: 1rem !important;
    /*letter-spacing: .04em !important;*/
}

@media (max-width: 767.98px) {
    button.navbar-toggler {
        position: absolute;
        top: 0.2rem;
        right: 1.0rem;
    }

    .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;
    }

    .blazored-modal-wrapper {
        min-width: 100%;
    }
}

@media (min-width: 768px) {
    app {
        flex-direction: row;
    }

    .sidebar {
        width: 10.0rem;
        height: 100vh;
        position: sticky;
        top: 0;
        z-index: 200;
    }
        .sidebar .nav label.title {
            width: 10.0rem;
        }

    .main .top-row {
        position: sticky;
        top: 0;
    }

    .main > div {
        /*padding-left: 2rem !important;*/
        padding-right: 1.5rem !important;
    }

    .navbar-toggler {
        display: none; /*TODO show the toggler*/
        top: 0.2rem !important;
        right: 1.0rem !important;
    }

    .sidebar .collapse {
        /* Never collapse the sidebar for wide screens */
        display: block; /*TODO show the toggler and collapse only the text of buttons and the brand*/
    }

    .sidebar .show {
    }
        .sidebar .show a {
            display: block;
        }
        .sidebar li:not(.active) a {
            display: none;
        }

    /*MatDialog ? not used ?*/
    .mdc-dialog__surface {
        max-width: 500px !important;
        margin: 1.75rem auto;
        min-width: 500px !important;
        min-height: 50%;
    }

    /*MatButton*/
    .mdc-button {
        /*height: 28px;*/
        font-weight: 400 !important;
        text-transform: none !important;
    }
    /*MatField*/
    .mdc-table-header-row,
    .mdc-text-field {
        height: 40px;
    }

    .mdc-text-field__input {
        padding-top: 0px !important;
    }

    /*MatTable*/
    .mdc-table, .mdc-table--striped {
        margin-bottom: 0 !important;
        /*width: 100%;
        max-width: 100%;
        background-color: transparent;
        border-collapse: collapse;
        border-spacing: 0;
        display: inline-block;
        overflow-x: auto;
        margin-bottom: 0 !important;
        border: 1px solid rgba(0,0,0,0.1);*/
    }
        .mdc-table tr.mdc-table-row-selected {
            background-color: rgba(0, 72, 255, 0.12) !important;
        }
        .mdc-table tr.mdc-table-row-hover:hover {
            background-color: rgba(0, 72, 255, 0.12) !important;
            cursor: pointer;
        }
        .mdc-table td {
            width: min-content !important;
            border: 1px solid rgba(0,0,0,0.1);
            padding: 5px 5px 5px 12px !important;
        }
            .mdc-table td:first-child {
                border-left: none;
                /*width: 10%;*/
            }
            .mdc-table td:last-child {
                border-right: none;
                width: 100%;
            }
        .mdc-table th {
            line-height: 1rem;
            font-size: 0.8rem;
        }

    .mdc-table-filter {
        width: 100%;
    }
/*    .mdc-paginator-page-size {
        line-height: 26px;
    }
*/
    .mdc-select {
        float: right;
    }

    .mdc-select__selected-text {
        padding-top: 0;
        min-width: 50px;
    }

    .mdc-select__dropdown-icon {
        bottom: 0;
    }

    .mdc-select__anchor {
        height: 25px;
    }
    /* end of all Matxxx */

    .blazored-modal {
        min-width: 768px;
    }

}
@media (min-width: 992px) {

    .blazored-modal {
        min-width: 992px;
    }

}