﻿html {
    --color-900: #1a237e;
    --color-800: #283593;
    --color-700: #303f9f;
    --color-600: #e3e3e3;
    --color-500: #3f51b5;
    --color-200: #9fa8da;
    --color-100: #c5cae9;
    --color-50: #e8eaf6;
    --color-10: #f0f2fe; /* doesn't exist in MD, added 8 to each RGB from 50 */
    --gray-300: #e0e0e0;
    --gray-50: #FAFAFA;
    --app-header-bg: var(--color-800);
    --app-header-bg-highlight: var(--color-600);
    --app-header-color: var(--gray-50);
    --app-menu-color: var(--color-900);
    --app-menu-bg: var(--color-10);
    --app-menu-selected: var(--color-600);
    --app-menu-bg-highlight: var(--color-600);
    --app-menu-toggled-bg: var(--color-600);
    --app-menu-toggled-color: var(--color-10);
    --app-editor-bg: white;
    --app-editor-bg-disabled: var(--gray-300);
    --app-footer-bg: var(--app-header-bg);
    --app-footer-color: var(--color-100);
    --app-footer-color-light: var(--color-10);
}
body{
    font-family:'Segoe UI';
    font-size:14px;
    overflow:hidden;
}
.navbar-menu-fixed-1 {
    top: 56px;
    position: fixed;
    /* top: 0; */
    background: #fff;
    right: 0;
    left: 0;
    width: 100%;
    z-index: 1030;
}
.navbar-menu-fixed-2 {
    top: 88px;
    position: fixed;
    /* top: 0; */
    background: #fff;
    right: 0;
    left: 0;
    width: 100%;
    z-index: 1030;
}
.navbar-collapse span{
    white-space:unset;
}

.bg-word-ofice {
    background-color: #0f5599 !important;
}
.color-word-office {
    color: #0f5599 !important;
}

.bg-excel-ofice {
    background-color: #008000;
}

.color-excel-office {
    color: #008000;
}

.font-small {
    font-size: 0.7rem;
}
.font-medium{
    font-size:1rem;
}
.font-large{
    font-size:1.2rem;
}
.word-office footer {
    background-color: #0f5599;
}

.word-office .word-page {
    white-space:unset !important;
}

.alert-lv-office-warning {
    color: #721c24;
    background-color: #f8d7da;
    border-color: #f5c6cb;
    position: fixed;
    left: 0;
    right: 0;
    margin: 0 auto;
    z-index: 99999;
    width: 30%;
    top: 40%;
}

.disable-page {
    width: 100%;
    height: 100%;
    padding: 0 0 0 0;
    margin: 0 0 0 0;
    overflow: hidden;
    opacity: 1;
    /*pointer-events: none;*/
}
.disable-page-edit {
    width: 100%;
    height: 100%;
    padding: 0 0 0 0;
    margin: 0 0 0 0;
    overflow: hidden;
    opacity: 1 !important;
    /*pointer-events: none;*/
}
/*==============================Word Office===========================*/
.tox .tox-statusbar {
    display: none !important;
}

.word-office #loading {
    position: absolute;
    left: 50%;
    top: 50%;
    z-index: 1;
    width: 120px;
    height: 120px;
    margin: -76px 0 0 -76px;
    border: 16px solid #f3f3f3;
    border-radius: 50%;
    border-top: 16px solid #3498db;
    -webkit-animation: spin 2s linear infinite;
    animation: spin 2s linear infinite;
}

@-webkit-keyframes spin {
    0% {
        -webkit-transform: rotate(0deg);
    }

    100% {
        -webkit-transform: rotate(360deg);
    }
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* Add animation to "page content" */
.animate-bottom {
    position: relative;
    -webkit-animation-name: animatebottom;
    -webkit-animation-duration: 1s;
    animation-name: animatebottom;
    animation-duration: 1s
}

@-webkit-keyframes animatebottom {
    from {
        bottom: -100px;
        opacity: 0
    }

    to {
        bottom: 0px;
        opacity: 1
    }
}

@keyframes animatebottom {
    from {
        bottom: -100px;
        opacity: 0
    }

    to {
        bottom: 0;
        opacity: 1
    }
}

/*.word-office #txtMCEEditor {
    padding-top: 0.5cm;
    min-height: 100vh;
}*/

.word-office .office-zoom-level-dropdown .dropdown-menu {
    padding: unset !important;
    margin: unset !important;
    min-width: auto !important;
    border-radius: unset;
}

/* ----- MODAL STYLE ----- */
.word-office .modal {
    top: 32px;
    overflow: hidden !important;
    z-index: 999999;
}

.modal-backdrop.show {
    opacity: 0;
}

    /*modal left*/
    .word-office .modal.left .modal-dialog {
        border: 1px solid #0f5599;
        position: fixed;
        margin: auto;
        width: 520px;
        height: 100%;
        -webkit-transform: translate3d(0%, 0, 0);
        -ms-transform: translate3d(0%, 0, 0);
        -o-transform: translate3d(0%, 0, 0);
        transform: translate3d(0%, 0, 0);
    }

    .word-office .modal.left .modal-content {
        height: 100%;
    }

    .word-office .modal.left .modal-body {
        padding: 0;
    }

    /*Left*/
    .word-office .modal.left.fade .modal-dialog {
        left: 0px;
        -webkit-transition: opacity 0.3s linear, left 0.3s ease-out;
        -moz-transition: opacity 0.3s linear, left 0.3s ease-out;
        -o-transition: opacity 0.3s linear, left 0.3s ease-out;
        transition: opacity 0.3s linear, left 0.3s ease-out;
    }

    .word-office .modal.left.fade.in .modal-dialog {
        left: 0;
    }

.word-office .modal-content {
    border-radius: 0;
    border: none;
}

.word-office .modal-header {
    border-bottom-color: #EEEEEE;
    background-color: #FAFAFA;
}

.word-office .modal-word-office__file-option .word-office__file-option-item {
    height: 100vh;
}

.word-office__file-option-item .item-btn-back {
    height: 70px;
}
    .word-office__file-option-item .item-btn-back button {
        background-color: transparent;
        border: 0;
    }

.word-office__file-option-item .item-btn-back:hover {
    opacity:0.8;
}
    .word-office__file-option-item .item-btn-back i {
        color: #fff;
        display: inline-block;
        padding: 20px 35px;
        font-size: 32px;
    }

.word-office__file-option-item .item{
    height:40px;
    text-align:left;
    overflow:hidden;
    width:100%;
}
.word-office__file-option-item .item:hover {
    cursor:pointer;
    opacity:0.7;
}

    .word-office__file-option-item .item span {
       color: #fff;
       display: inline-block;

       padding: 8px 35px;
       font-size:1rem;
    }


.word-file-input::-webkit-file-upload-button {
    visibility: hidden;
}

.word-file-input {
    position: relative;
    width: 100%;
    height: calc(1.5em + .75rem + 2px);
    margin: 0;
    padding: 8px 35px;
    opacity: 1;
}

.item-word-open::before {
    content: 'Mở';
    display: inline-block;
    background: linear-gradient(top, #f9f9f9, #e3e3e3);
    color: #fff;
    outline: none;
    white-space: nowrap;
    -webkit-user-select: none;
    cursor: pointer;
    font-size: 1rem;
}



/*==============================Excel Office===========================*/

/* ----- MODAL STYLE ----- */
.excel-office .modal {
    top: 32px;
    overflow: hidden !important;
    z-index: 999999;
}

.modal-backdrop.show {
    opacity: 0;
}

.excel-office .modal.left .modal-dialog {
    border: 1px solid #008000;
    position: fixed;
    margin: auto;
    width: 520px;
    height: 100%;
    -webkit-transform: translate3d(0%, 0, 0);
    -ms-transform: translate3d(0%, 0, 0);
    -o-transform: translate3d(0%, 0, 0);
    transform: translate3d(0%, 0, 0);
}

.excel-office .modal.left .modal-content {
    height: 100%;
}

.excel-office .modal.left .modal-body {
    padding: 0;
}

.excel-office .modal.left.fade .modal-dialog {
    left: 0px;
    -webkit-transition: opacity 0.3s linear, left 0.3s ease-out;
    -moz-transition: opacity 0.3s linear, left 0.3s ease-out;
    -o-transition: opacity 0.3s linear, left 0.3s ease-out;
    transition: opacity 0.3s linear, left 0.3s ease-out;
}

.excel-office .modal.left.fade.in .modal-dialog {
    left: 0;
}

.excel-office .modal-content {
    border-radius: 0;
    border: none;
}

.excel-office .modal-header {
    border-bottom-color: #EEEEEE;
    background-color: #FAFAFA;
}

.excel-office .modal-excel-office__file-option .excel-office__file-option-item {
    height: 100vh;
}

.excel-office__file-option-item .item-btn-back {
    height: 70px;
}

    .excel-office__file-option-item .item-btn-back button {
        background-color: transparent;
        border: 0;
    }

    .excel-office__file-option-item .item-btn-back:hover {
        opacity: 0.8;
    }

    .excel-office__file-option-item .item-btn-back i {
        color: #fff;
        display: inline-block;
        padding: 20px 35px;
        font-size: 32px;
    }

.excel-office__file-option-item .item {
    height: 40px;
    text-align: left;
    overflow: hidden;
    width: 100%;
}

    .excel-office__file-option-item .item:hover {
        cursor: pointer;
        opacity: 0.7;
    }

    .excel-office__file-option-item .item span {
        color: #fff;
        display: inline-block;
        padding: 8px 35px;
        font-size: 1rem;
    }


.excel-file-input::-webkit-file-upload-button {
    visibility: hidden;
}

.excel-file-input {
    position: relative;
    width: 100%;
    height: calc(1.5em + .75rem + 2px);
    margin: 0;
    padding: 8px 35px;
    opacity: 1;
}

.item-excel-open::before {
    content: 'Mở';
    display: inline-block;
    background: linear-gradient(top, #f9f9f9, #e3e3e3);
    color: #fff;
    outline: none;
    white-space: nowrap;
    -webkit-user-select: none;
    cursor: pointer;
    font-size: 1rem;
}




/********************
         * Menu items
         *******************/
.btn-custom {
    background: transparent;
    border: 0;
    /* color: #fff; */
    /* font-size: 1.1rem; */
    color: #fff;
    display: inline-block;
    padding: 8px 35px;
    font-size: 1rem;
}

.menuContainer {
    display: inline-block;
    position: relative;
}

    .menuContainer > button {
        background-color: inherit;
        color: inherit;
        min-width: 48px;
        padding: 4px 16px;
    }

body.altKey .kbdShortcut {
    text-decoration: underline;
}

.menuContainer button {
    border: none;
    cursor: pointer;
    font-size: 16px;
}

    .menuContainer button:focus {
        outline: none;
    }

.menuContainer .menuItemContainer {
    background-color: var(--app-menu-bg);
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    min-width: 180px;
    position: absolute;
    z-index: 9;
    background: #ffff;
}

    .menuContainer .menuItemContainer button {
        background-color: var(--app-menu-bg);
        color: var(--app-menu-color);
        display: block;
        padding: 16px;
        text-align: left;
        width: 100%;
    }

.menuContainer kbd {
    float: right;
    font-family: inherit;
}

.menuContainer > button:hover,
.menuContainer > button:focus,
.menuContainer > button[aria-expanded="true"] {
    background-color: var(--app-menu-selected);
}

.menuItemContainer button:hover,
.menuItemContainer button:focus {
    background-color: var(--app-menu-bg-highlight);
}

.menuContainer button[aria-checked=true] {
    background-color: var(--app-menu-toggled-bg);
    color: var(--app-menu-toggled-color);
}

.hidden{
    display:none;
}