﻿@import url('open-iconic/font/css/open-iconic-bootstrap.min.css');

html, body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

a, .btn-link {
    color: #0366d6;
}

.btn-primary {
    color: #fff;
    background-color: #1b6ec2;
    border-color: #1861ac;
}

app {
    position: relative;
    display: flex;
    flex-direction: column;
}

/* .top-row {
    height: 3.5rem;
    display: flex;
    align-items: center;
} */

.main {
    flex: 1;
}

    .main .top-row {
        background-color: #f7f7f7;
        border-bottom: 1px solid #d6d5d5;
        /* justify-content: flex-end; */
    }

        .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;
        }

.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 .oi {
        width: 2rem;
        font-size: 1.1rem;
        vertical-align: text-top;
        top: -2px;
    }

    .sidebar .nav-item {
        font-size: 0.9rem;
        padding-bottom: 0.5rem;
    }

        .sidebar .nav-item:first-of-type {
            padding-top: 1rem;
        }

        .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;
            }

/* .content {
    padding-top: 1.1rem;
} */

.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: 250px;
        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;
    }

    /*Custom Css for catalogue Text Editor*/

    .ql-bubble {
        border: 1px dotted black !important;
        height: 60px !important;
        margin-bottom: 20px !important;
    }

    /* .container {
        border: 2px solid beige
    } */
}

/* .ql-toolbar {
    display: none;
} */
.header-wraper div, .header-wraper form {
    display: inline-block;
    /* margin-left: 11px; */
}

.header-wraper {
    padding: 20px 10px;
    vertical-align: middle;
    border-bottom: 10px solid #960505 !important;
    text-align: center;
}

.btn-block {
    display: block;
    width: auto;
}

.sn-number {
    margin: 0 10px;
    vertical-align: middle;
}

.unsaved-label {
    margin-right: 5px;
    color: red;
    vertical-align: middle;
}

.last-saved {
    margin-right: 5px;
    vertical-align: middle;
}

.drp-wrap {
    /* float: right; */
}

    .drp-wrap label {
        margin-right: 5px;
        vertical-align: text-top;
    }

.header-wraper form {
    margin-right: 10px;
}

.content ul {
    margin: 20px 0 !important;
}

.tabs.is-boxed li.is-active a, .tabs ul {
    border-color: #960505 !important;
}

.ql-toolbar.ql-snow {
    width: 15%;
    margin: 0 0 0 15.8%;
}

.ql-container {
    margin-bottom: 20px !important;
}

@media (max-width:1025px) {
    .drp-wrap {
        display: block;
        float: none;
        margin-top: 20px;
    }

    .container {
        margin: 0 !important;
        padding: 0 !important;
        width: 78%;
        padding: 0 40px !important;
    }

    .tabs.is-small {
        width: 76%;
    }

    .ql-toolbar.ql-snow {
        margin: 0 0 1% 15.2%;
    }

    .toggle-switch {
        display: block;
    }

    .header-wraper {
        text-align: unset
    }

    .toggle-switch {
        display: block !important;
    }
}

@media (max-width:767px) {
    .sn-number {
        margin-right: 0;
        vertical-align: middle;
    }

    .tabs.is-small {
        width: 100%;
    }

    .ql-toolbar.ql-snow {
        margin: 0;
        width: 100%;
    }

    .ql-container.ql-snow {
        width: 90%;
        margin: 0 auto;
    }
}

/* color indication css for macros begin */
.hexagon {
    width: 18px;
    height: 12px;
    position: relative;
}

    .hexagon,
    .hexagon:before,
    .hexagon:after {
        /* background: red; */
        /* box-shadow: 0 0 10px rgba(0,0,0,0.8); */
        display: inline-block;
        margin-right: 10px;
    }

        .hexagon:before,
        .hexagon:after {
            content: "";
            position: absolute;
            left: 4.5px;
            width: 10.7px;
            height: 10px;
            transform: rotate(145deg) skew(22.5deg);
        }

        .hexagon:before {
            top: -5px;
        }

        .hexagon:after {
            top: 7px;
        }

        .hexagon span {
            position: absolute;
            top: 0;
            left: 0;
            width: 15px;
            height: 10px;
            z-index: 1;
        }

        .hexagon.color-user:before, .hexagon.color-user:after, .color-user {
            background: beige;
        }

        .hexagon.color-dept:before, .hexagon.color-dept:after, .color-dept {
            background: gray;
        }

        .hexagon.color-global:before, .hexagon.color-global:after, .color-global {
            background: lightgreen;
        }

/* color indication css for macros end */

.macro-table {
    margin-top: 30px;
}

.shortkey-wrapper {
    display: inline-block;
    border: 1px solid #dbdbdb;
    padding: 10px 10px 0;
}

/*Saving button spinner css*/
.spinning {
    -animation: spin 1s infinite linear;
    -webkit-animation: spin2 1s infinite linear;
    margin-right: 5px;
}

@keyframes spin {
    from {
        transform: scale(1) rotate(0deg);
    }

    to {
        transform: scale(1) rotate(360deg);
    }
}

@-webkit-keyframes spin2 {
    from {
        -webkit-transform: rotate(0deg);
    }

    to {
        -webkit-transform: rotate(360deg);
    }
}

.fa-left {
    margin-right: 7px;
}

/* Toggle background color-profile */
.classic-mode .ql-container.ql-snow {
    border: 1px solid #469bb5;
    background-color: white;
    border-radius: 3px;
}

.classic-mode .main .top-row {
    background-image: linear-gradient(#f1ebeb, #9ebbcc);
}

.classic-mode {
    background-color: #bdccd6;
    color: #000;
    min-height: 100vh;
}

    .classic-mode .tabs.is-boxed li.is-active a, .classic-mode .tabs ul {
        border-color: #757dd8 !important;
    }

    .classic-mode .ql-toolbar.ql-snow {
        border: 1px solid #469bb5;
        background-color: white;
    }

    .classic-mode .header-wraper {
        border-bottom: 10px solid #054c96 !important;
    }

.toggle-switch {
    vertical-align: text-bottom !important;
    cursor: pointer;
    display:inline-block;
}

.classic-mode .form-control {
    color: #000;
}

.classic-mode .shortkey-wrapper {
    background: #fff;
}

/*common toggle checkboxes*/
.input-checkbox label {
    flex-direction: row !important;
    display: flex !important;
    align-items: center !important;
}

    .input-checkbox label span:not(.checked) {
        flex-basis: 80% !important;
        font-weight: 400 !important;
        line-height: 20px !important;
    }

input[type="checkbox"],
.input_checkbox,
input[type="checkbox"]:focus,
.input_checkbox:focus,
input[type="checkbox"]:active,
.input_checkbox:active,
input[type="checkbox"]:not([disabled]):hover,
.input_checkbox:not([disabled]):hover {
    height: 26px !important;
    width: 50px !important;
    border-radius: 26px !important;
    background-color: #ccc !important;
    order: 2 !important;
    outline: none !important;
    top: auto !important;
}

    input[type="checkbox"]::before,
    .input_checkbox::before {
        position: absolute !important;
        content: "" !important;
        height: 24px !important;
        width: 24px !important;
        left: 2px !important;
        top: 1px !important;
        box-sizing: content-box !important;
        background-color: white !important;
        -webkit-transition: .4s !important;
        transition: .4s !important;
        border-radius: 50% !important;
        opacity: 1 !important;
        border: 0 !important;
        box-shadow: 1px 0px 9px rgba(0,0,0,0.3) !important;
        outline: none !important;
    }

    input[type="checkbox"]:checked::before,
    .input_checkbox:checked::before,
    input[type=checkbox]:checked::before {
        -webkit-transform: translateX(22px) !important;
        -ms-transform: translateX(22px) !important;
        transform: translateX(22px) !important;
        box-shadow: -1px 0px 9px rgba(0,0,0,0.3) !important;
        outline: none !important;
        background: none;
    }

    input[type="checkbox"]:checked,
    .input_checkbox:checked,
    input[type="checkbox"]:checked:focus,
    .input_checkbox:checked:focus,
    input[type="checkbox"]:checked:active,
    .input_checkbox:checked:active,
    input[type="checkbox"]:checked:not([disabled]):hover,
    .input_checkbox:checked:not([disabled]):hover {
        background-color: #469bb5 !important;
        outline: none !important;
    }

    input[type="checkbox"],
    .input_checkbox,
    input[type="checkbox"]:focus,
    .input_checkbox:focus,
    input[type="checkbox"]:active,
    .input_checkbox:active,
    input[type="checkbox"]:not([disabled]):hover,
    .input_checkbox:not([disabled]):hover {
        box-sizing: content-box !important; /*Live Anon Viewing*/
        float: none !important; /*Live Anon Viewing*/
        position: relative !important; /*Live Anon Viewing*/
        appearance: none !important; /*Live Anon Viewing*/
        -webkit-appearance: none !important; /*Live Anon Viewing*/
        -moz-appearance: none !important; /*Live Anon Viewing*/
        margin: 0 !important; /*Live Anon Viewing*/
        outline: none !important;
    }
.ql-editor{
    max-height:120px
}

.expansion {
    border: 1px solid #ccc;
}
    .expansion:hover {
        background-color: lightblue;
        color: white;
    }
.classic-mode .expansion {
    border: 1px solid #469bb5;
    background-color: transparent;
}
.ql-container.ql-snow {
    border-radius: 3px;
}
.ql-smallcaps {
    display: contents !important;
}
.sc-x {
    margin-right: 4px;
}
.toggle-control-events {
    pointer-events: none;
}
.toggle-control-events .control-disable {
    background-color: #e9ecef;
}
.note-editor {
    width:70% !important;
}
.note-icon-smallcaps {
    background: url(../summernote/icons/smallcaps-icon.svg);
    background-repeat: no-repeat;
    background-size: cover;
    display: inline-block;
    margin-top: 3px;
    height: 12px;
    width: 12px;
}
.note-icon-copy {
    background: url(../summernote/icons/copy.png);
    background-repeat: no-repeat;
    background-size: cover;
    display: inline-block;
    margin-top: 3px;
    height: 12px;
    width: 12px;
}
.note-icon-paste {
    background: url(../summernote/icons/paste.png);
    background-repeat: no-repeat;
    background-size: cover;
    display: inline-block;
    margin-top: 3px;
    height: 14px;
    width: 12px;
}
.note-icon-cut {
    background: url(../summernote/icons/cut.png);
    background-repeat: no-repeat;
    background-size: cover;
    display: inline-block;
    margin-top: 3px;
    height: 12px;
    width: 12px;
}
.note-editor {
    margin-bottom: 15px;
    border-radius: 0.5rem !important;
}
.card-header .btn {
    border: none;
    background-color: #f1f1f1;
}
.card .note-editing-area {
    background-color: #fff;
    color:black;
}
.note-editor {
    font-family: Arial
}
.swal-modal {
    background-color: #28a745;
    padding: 0px 5px;
    vertical-align: top;
    /*border: 3px solid white;*/
}
.swal-title {
    color: white;
    font-weight: 600;
    text-transform: none;
    position: relative;
    display: block;
    /*padding: 0px 16px;*/
    font-size: 27px;
    line-height: normal;
    text-align: left;
    margin-bottom: 0;
}
.swal-text {
    font-size: 16px;
    position: relative;
    float: none;
    line-height: normal;
    vertical-align: top;
    text-align: left;
    display: inline-block;
    margin: 0;
    /* padding: 0 10px; */
    font-weight: 400;
    color: white;
}
.main .header-wraper {
    position: sticky;
    top: -1px;
    z-index: 1;
}
.content .tabs {
    position: sticky;
    top: 89px;
    z-index: 1;
    background-color: #bdccd6;
}
@media (max-width: 1075px) {
    .content .tabs {
        top:147px;
    }
 }
.note-editable p{
    margin-bottom:0px !important;
}

.btn-block .btn-outline-success{
    margin-right: 5px;
}