﻿html, body {
    height: 100%;
    overflow: hidden;
}

a {
    color: #333;
    text-decoration: none;
    background-color: transparent;
    -webkit-text-decoration-skip: objects;
}

    a:hover {
        text-decoration: none;
        -webkit-text-decoration-skip: objects;
    }

ul {
    padding: 0px;
    margin: 0px;
    list-style: none;
}

textarea:focus, input:focus {
    outline: none;
}


*:focus {
    outline: 0;
}

.paggingWrap {
    display: none;
    background-color: #f2f3f8 !important;
    z-index: 0;
}

.pagination {
    padding-bottom: 20px !important;
}

    .pagination .page-item .page-link {
        color: #212529;
        cursor: pointer;
    }

        .pagination .page-item .page-link:focus,
        .pagination .page-item .page-link:active {
            box-shadow: none;
        }

    .pagination .page-item:first-child .page-link {
        background-color: #fff;
        cursor: default;
    }

    .pagination .page-item.active .page-link {
        cursor: default;
    }

/*bootstrap 3 to 4 override*/
.form-group {
    display: -ms-flexbox;
    display: flex;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
    align-items: center;
}

.pageTitle {
    font-size: 1.5rem;
}

.background-admin {
    /* background-image: url('/Images/background/AAGOyAT.jfif') !important;*/
    background-color: #efefef;
}

.customDataWrap {
    position: relative;
    width: 100%;
    height: 100%;
    max-width: 100%;
    display: none;
    overflow: hidden;
}

#customEditWrap {
    max-height: calc(100vh - 60px - 67px);
    overflow-y: auto;
}

.listDataWrap {
    position: relative;
    width: 100%;
    height: 100%;
    border: dashed 0px red;
    display: none;
}

.listDataTool {
    padding: 5px;
}

.listDataScroll {
    position: absolute;
    top: 80px;
    right: 0px;
    left: 0px;
    bottom: 0px;
    overflow-y: auto;
    border: solid 0px red;
    padding: 10px;
}

.listData {
    background-color: white;
    border: solid 1px #ddd;
}

    .listData th {
        padding: 10px 5px;
        background-color: white;
    }

    .listData tr:nth-child(odd) {
        background-color: #f5f5f5;
    }

.thActive {
    border-bottom: solid 2px var(--primaryColor) !important;
}

.listData tr:hover {
    background-color: #cff5ff !important;
}

.detailDataWrap {
    display: none;
}

.detailDataToolbar {
    position: absolute;
    border: solid 0px red;
    margin: 0 auto;
    left: 50%;
    padding-top: 8px;
    transform: translate(-50%, 0%);
    z-index: 1000;
}

.detailRightToolbar {
    position: absolute;
    border: solid 0px red;
    margin: 0 auto;
    padding-top: 8px;
    right: 0px;
    z-index: 1;
    padding-right: 20px;
}

.detailData .form-group {
    margin-bottom: 0.5rem !important;
}

.navbar.shadow {
    /* box-shadow: 1px 1px 3px rgba(0, 0, 0, 0.1);*/
    box-shadow: 0 2px 18px 0 rgb(0 0 0 / 40%) !important;
}

.rootMenuWrap {
    margin-bottom: 6px;
}

.rootMenu {
    padding: 5px 10px;
    margin-bottom: 6px;
    cursor: pointer;
    font-size: 1rem;
    border-radius: 10px;
}

.rootMenu:hover {
    background-color: rgb(from var(--primaryColor) r g b / 0.75) !important;
     color: #fff;
}

.rootMenu.active {
    background-color: rgb(from var(--primaryColor) r g b / 0.75) !important;
    color: #fff;
}

.activeItemMenu {
    background-color: rgb(from var(--primaryColor) r g b / 0.75) !important;
    color: #fff !important;
}

.customEditMenu .activeItemMenu {
    background-color: #262629 !important;
    border-right: solid 4px var(--primaryColor);
    border-top-left-radius: 5px;
}

.customEditMenu .activeItemMenu .active {
    color: var(--primaryColor) !important;
}

.rootMenu.active svg,
.rootMenu:hover svg {
    color: #fff;
}

.icDot {
    position: relative;
}

.icDot::before {
    content: '';
    position: absolute;
    top: 14px;
    left: 18px;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background-color: #9fa0a0;
}

div[id*='popMenu'] .icDot::before {
    display: none;
}

.itemMenuWrap {
    margin: 1px 0;
    padding: 5px 0 5px 45px;
    border-radius: 10px;
}

.itemMenuWrap:hover {
    background-color: rgb(from var(--primaryColor) r g b / 0.75) !important;
    color: #fff;
}

.itemMenuWrap:hover::before, .itemMenuWrap.activeItemMenu::before {
    background-color: #fff;
}

.subMenuWrap .itemMenuWrap {
    padding: 4px 0 4px 20px;
}

.subMenu {
    padding-left: 45px;
}


#sidebar {
    overflow: hidden;
    height: 100%;
    padding: 10px;
    color: #595757 !important;
    background-color: #fff !important;
    /*box-shadow: rgb(0 0 0 / 50%) 2px 0px 6px;*/
}

    #sidebar.expend {
        width: 230px;
        min-width: 230px;
    }

#adminNavToolbar {
    position: relative;
    background-color: white;
    flex: 1;
    box-shadow: 0 1px 15px 1px rgb(69 65 78 / 10%);
    z-index: 2;
}

    #adminNavToolbar .subMenu {
        padding: 0px;
        margin: 0px;
        margin-right: 30px;
        float: right;
    }


        #adminNavToolbar .subMenu li {
            padding: 0px;
            margin: 0px;
            list-style: none;
            display: inline-block;
        }


            #adminNavToolbar .subMenu li a.select, #adminNavToolbar .subMenu li button.select, header .header-subMenu li a.select:hover {
                color: var(--primaryColor);
                font-weight: bold;
                border-bottom: 4px solid var(--primaryColor);
            }

            #adminNavToolbar .subMenu li a, #adminNavToolbar .subMenu li button {
                padding: 18px 10px;
                color: #757575;
                cursor: pointer;
                margin-left: 20px;
                border-radius: 0;
                border: 0;
                border-bottom: 4px solid transparent;
            }

@media screen and (max-width: 1650px) {
    .onlineOrderSettingSubMenu li button {
        padding: 18px 0 !important;
    }
}

@media screen and (max-width: 1420px) {
    .onlineOrderSettingSubMenu li button {
        padding: 10px 0 !important;
    }
}

@media screen and (max-width: 1024px) {
    .onlineOrderSettingSubMenu li button {
        padding: 5px 0 !important;
    }
}

.tabCaption {
    color: #333;
    font-weight: bold;
    height: 40px;
}

    .tabCaption.active {
        border-bottom: 4px solid var(--primaryColor);
    }


/* Sidebar sizes when expanded and expanded */
.sidebar-expanded {
    width: 210px;
    min-width: 210px;
}

.sidebar-collapsed {
    width: 72px;
    min-width: 72px;
}

.sidebar-collapsed .fa-chevron-down, .sidebar-collapsed .fa-chevron-right {
    display: none;
}


/* overwrite*/
.ui-widget-header {
    background-color: white;
    border: 0px;
    border-bottom: solid 1px #e9e9e9;
}

.ui-widget-content {
    border: 0px !important;
}


.btn {
    white-space: nowrap !important;
    word-wrap: normal;
}

.thFunction {
    text-align: center;
    max-width: 100px;
}

.tdFunction {
    text-align: left !important;
    max-width: 150px;
    width: 150px;
}

/*combine*/
.flex-grow-scroll {
    flex: 1 1 auto;
    overflow-y: auto;
    height: 0px;
}


.primary-light {
    background-color: var(--primaryColor);
    color: white;
}

.secondary-light {
    background-color: #ff5057;
    color: white;
}

.text-orange {
    color: #ff8300;
}

.text-active {
    color: var(--primaryColor);
}

.text-lg {
    font-size: 24px;
}

.text-md {
    font-size: 20px;
}

.btn-secondary-light {
    background-color: #fafafa;
    color: black;
    border: 1px solid #ddd;
}

.btn-white-fixed {
    border-radius: 2px;
    border: 1px solid #dddddd;
    background-color: #ffffff;
    padding: 9px 0;
    float: right;
    font-size: 16px;
    width: 114px;
    height: 40px;
}

.btn-list-edit {
    border: 1px solid #e6e6e6;
    padding: 5px 8px;
    display: inline-block;
    line-height: 20px;
    background-color: #fafafa;
    margin-left: 5px;
    min-width: 60px;
}

.btn-secondary-title {
    background-color: #ffffff;
    font-size: 16px;
    float: right;
    padding: 10px;
    border: 1px solid #ddd;
    margin: 7px 0;
}



.edit-wrap {
    display: flex;
    flex-basis: 600px;
    max-width: 100%;
    flex-wrap: wrap;
}

    .edit-wrap select {
        border: 0px;
        border-radius: 0;
    }

    .edit-wrap textarea {
        border: 0px !important;
    }


.edit-content {
    display: flex;
    flex-direction: row;
    width: 100%;
}

.edit-data {
    padding-right: 2rem;
    flex-grow: 1;
}

.edit-row {
    box-shadow: none;
    width: 100%;
    display: flex;
    border-style: solid;
    border-color: #d3d3d3;
    border-width: 1px;
    /*border: solid 1px #d3d3d3;*/
    padding: 0px;
    height: auto;
    margin-top: -1px;
    align-items: center;
    background-color: #f7f7f7;
}

.edit-row-inner {
    box-shadow: none;
    width: 100%;
    display: flex;
    padding: 0px;
    height: auto;
    border-style: solid;
    border-color: #d3d3d3;
    border-width: 1px 0 0 1px;
    margin-top: -1px;
}

.edit-label, .edit-label-2, .edit-label-grow {
    flex-basis: 110px;
    border-right: 1px solid #d6d6d6;
    color: black;
    background-color: #f7f7f7;
    padding: 10px;
    display: flex;
    align-items: center;
    height: 48px;
}

.edit-label-2 {
    flex-basis: 400px;
}

.edit-label-grow {
    flex-basis: 0;
    flex-grow: 1;
}

.edit-label-white {
    border-right: 1px solid #d6d6d6;
    color: black;
    background-color: white;
    padding: 10px;
    align-items: center;
}

.edit-title {
    font-size: 20px;
    color: #000;
    padding: 24px 0 8px 0;
    font-weight: 400;
}

.edit-column {
    display: flex;
    flex-direction: column;
    width: 100%;
}

.edit-input-wrap {
    width: 100%;
    padding: 0px;
    margin-right: 1px;
    background-color: white;
}

.edit-input-grow {
    flex-grow: 1;
    padding: 0px;
    margin-right: 1px;
    background-color: white;
}


.edit-input-content {
    height: 48px;
    display: flex;
    padding-left: 20px;
    align-items: center;
}

.edit-wrap textarea {
    border: 0px;
}

.edit-hr {
    border-bottom: solid 1px #e6e6e6;
}

.edit-input {
    height: 48px;
    width: 100%;
    border: 0px;
    border-radius: 0;
    box-sizing: border-box;
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    padding-left: 15px;
    padding-right: 15px;
}

.edit-short {
    width: 120px;
}

.content-row {
    width: 100%;
    background-color: white;
    border: solid 1px #d3d3d3;
    border-bottom: 0px;
    padding: 10px 10px;
    display: flex;
    align-items: center;
}

    .content-row:last-child {
        border-bottom: solid 1px #d3d3d3;
    }

.b-content {
    padding: 30px;
}

.list-content {
    width: 600px;
    /*border: 1px solid #e6e6e6;*/
    background-color: #fff;
}

.list-head {
    width: 100%;
    display: flex;
    padding: 10px 0 10px 10px;
    align-items: center;
}

.list-content .edit-row {
    margin-right: -1px;
}

/*modal */

.modal > ul.nav-tab li a {
    padding: 15px 10px;
    display: block;
    color: #757575;
    border-bottom: 4px solid #fff;
}

    .modal > ul.nav-tab li a.select {
        color: #000;
        border-bottom: 4px solid var(--primaryColor);
    }

.modal-body {
    position: relative;
    -ms-flex: 1 1 auto;
    flex: 1 1 auto;
    padding: 10px;
    padding-left: 1rem;
    padding-right: 1rem;
}

.modal > .ui-state-default, .ui-widget-content .ui-state-default, .ui-widget-header .ui-state-default, .ui-button, html .ui-button.ui-state-disabled:hover, html .ui-button.ui-state-disabled:active {
    border: 0px solid #c5c5c5;
    background-color: transparent;
    font-weight: normal;
    color: #454545;
    text-align: center;
}

    .modal > .ui-state-active, .ui-widget-content .ui-state-active, .ui-widget-header .ui-state-active, a.ui-button:active, .ui-button:active, .ui-button.ui-state-active:hover {
        background-color: transparent;
        color: #000 !important;
        border-bottom: 4px solid var(--primaryColor) !important;
    }

.ui-datepicker .ui-datepicker-buttonpane button {
    border: 1px solid #d3d3d3;
    background-color: #e6e6e6;
    outline: none;
    opacity: 1;
}

.table th, .table td {
    padding: 0.75rem;
    vertical-align: middle;
    line-height: 1.25;
}

.ui-state-active a, .ui-state-active a:link, .ui-state-active a:visited {
    color: #000;
    text-decoration: none;
}


.text-lignt {
    color: #e9e9e9;
}

.dark-100 {
    color: #221815;
}

.dark-75 {
    color: #666464
}

.dark-50 {
    color: #9fa0a0;
}

.dark-25 {
    color: #d3d3d4;
}

.dark-10 {
    color: #efefef;
}

.bg-primary-text {
    color: var(--primaryColor);
    background-color: #fafafa;
    border: 1px solid #dddddd;
    font-size: 16px;
}

.bg-primary {
    color: #fafafa;
    background-color: var(--primaryColor) !important;
}

.bg-secondary {
    background-color: var(--secondaryColor) !important;
    color: white;
}

.btn-gray {
    color: #333;
    background-color: #eee;
    border: 1px solid #ddd;
    font-size: 16px;
}


.bg-primary.active, .bg-primary.active:active {
    border: 0px;
    background-color: var(--primaryColor);
}

.btn-lg {
    padding: 10px 40px;
    font-size: 20px;
}

.customEditMenu {
    width: 200px;
    color: white;
}

.page-item.active .page-link, .page-item.active .page-link:hover {
    z-index: 1;
    color: #fff;
    background-color: var(--primaryColor) !important;
    border: 1px;
    border-color: var(--primaryColor);
}

.tab-fill {
    display: flex;
    flex-direction: column;
    height: 100%;
    max-height: 100%;
}

#tabs1 {
    background-color: #f2f3f8 !important;
}

.ui-widget-header {
    background-color: transparent !important;
    border-radius: 0px;
}

.ui-tabs-panel {
    background-color: transparent !important;
}

.ui-widget input, .ui-widget select, .ui-widget textarea, .ui-widget button {
    /*font-family: 'Noto Sans TC';*/
}

.row-border {
    border: solid 1px #d6d6d6;
    border-top: 0;
}

    .row-border:first-child {
        border-top: solid 1px #d3d3d3;
    }

.row-border-bottom {
    border-bottom: solid 1px #d3d3d3;
}

.custom-checkbox {
    display: block;
    position: relative;
    padding-left: 35px;
    cursor: pointer;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

    .custom-checkbox input {
        position: absolute;
        opacity: 0;
        cursor: pointer;
        height: 0;
        width: 0;
    }


/* Create a custom checkbox */
.checkmark {
    position: absolute;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    height: 18px;
    width: 18px;
    background-color: transparent;
    border: 2px solid #9e9e9e;
    border-radius: 2px;
    background-color: #fff;
}

/* On mouse-over, add a grey background color */
.custom-checkbox:hover input ~ .checkmark {
    background-color: #ccc;
}


/* When the checkbox is checked, add a blue background */
.custom-checkbox input:checked ~ .checkmark {
    background-color: var(--primaryColor);
    border-width: 0;
}

/* Create the checkmark/indicator (hidden when not checked) */
.checkmark:after {
    content: "";
    position: absolute;
    display: none;
}

/* Show the checkmark when checked */
.custom-checkbox input:checked ~ .checkmark:after {
    display: block;
}

/* Style the checkmark/indicator */
.custom-checkbox .checkmark:after {
    left: 6px;
    top: 0px;
    width: 7px;
    height: 15px;
    border: solid white;
    border-width: 0 2px 2px 0;
    -webkit-transform: rotate(45deg);
    -ms-transform: rotate(45deg);
    transform: rotate(45deg);
}

.checkPartialMark:after {
    left: 3px !important;
    top: 8px !important;
    width: 12px !important;
    height: 3px !important;
    border: solid white !important;
    border-width: 0 0px 3px 0 !important;
    -webkit-transform: none !important;
    -ms-transform: none !important;
    transform: none !important;
}



/* Customize the label (the container) */
.custom-radio {
    display: block;
    position: relative;
    padding-left: 35px;
    cursor: pointer;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

    /* Hide the browser's default radio button */
    .custom-radio input {
        position: absolute;
        opacity: 0;
        cursor: pointer;
        height: 0;
        width: 0 !important;
    }

/* Create a custom radio button */
.radio-checkmark {
    position: absolute;
    top: 50%;
    left: 0;
    height: 20px;
    width: 20px;
    margin-top: -10px;
    border-radius: 50%;
    background-color: white;
    border: solid 1px #aaa;
}

/* On mouse-over, add a grey background color */
.custom-radio:hover input ~ .radio-checkmark {
    background-color: #ccc;
}

/* When the radio button is checked, add a blue background */
.custom-radio input:checked ~ .radio-checkmark {
    background-color: white;
    border: solid 1px var(--primaryColor);
}

/* Create the indicator (the dot/circle - hidden when not checked) */
.radio-checkmark:after {
    content: "";
    position: absolute;
    display: none;
}

/* Show the indicator (dot/circle) when checked */
.custom-radio input:checked ~ .radio-checkmark:after {
    display: block;
}

/* Style the indicator (dot/circle) */
.custom-radio .radio-checkmark:after {
    top: 4px;
    left: 4px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: var(--primaryColor);
}

.disableDiv {
    opacity: 0.4;
}

#tabMemo {
}

.menuItemIcon {
    padding: 15px 10px;
    text-align: center;
    border-radius: 5px;
    display: block;
    margin: 4px;
    width: 130px;
    height: 130px;
    background-color: #cfd8dc;
    font-weight: 400;
    color: #444;
}

#menuWrap .active {
    color: var(--primaryColor);
}

#menuItemWrap {
}

.col-date {
    width: 120px;
}

.dragDisabled {
    background-color: #eee !important;
}

#renderWrap {
    min-height: calc(100% - 67px - 58px);
}

.formError {
    white-space: nowrap;
}

select {
    background: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' width='15' height='15' viewBox='0 0 448 512'><path fill='currentColor' d='M207 381.5L12.7 187.1c-9.4-9.4-9.4-24.6 0-33.9l22.7-22.7c9.4-9.4 24.5-9.4 33.9 0L224 284.5l154.7-154c9.4-9.3 24.5-9.3 33.9 0l22.7 22.7c9.4 9.4 9.4 24.6 0 33.9L241 381.5c-9.4 9.4-24.6 9.4-33.9 0z'/></svg>") no-repeat;
    background-position: calc(100% - 0.75rem) center !important;
    -moz-appearance: none !important;
    -webkit-appearance: none !important;
    appearance: none !important;
    padding-right: 2.5rem !important;
}


.btn-primary {
    background-color: var(--primaryColor) !important;
    border-color: var(--primaryColor) !important;
}

    .btn-primary:active, .btn-primary:focus, .btn-primary:hover {
        background-color: var(--primaryColor);
        border-color: var(--primaryColor);
        opacity: 0.8;
    }

    .btn-primary.disabled, .btn-primary:disabled {
        opacity: 0.5;
    }


.btn-secondary {
    color: #fff;
    background-color: var(--secondaryColor) !important;
    border-color: var(--secondaryColor) !important;
}

    .btn-secondary:active, .btn-secondary:focus, .btn-secondary:hover {
        background-color: var(--secondaryColor) !important;
        border-color: var(--secondaryColor) !important;
        opacity: 0.5;
    }




.btn-main {
    color: #fff;
    background-color: var(--primaryColor) !important;
    border-color: var(--primaryColor) !important;
}

    .btn-main:active, .btn-main:focus, .btn-main:hover {
        color: #fff;
        background-color: var(--secondaryColor) !important;
        border-color: var(--secondaryColor) !important;
    }

.btn-minor {
    color: #fff;
    background-color: var(--secondaryColor) !important;
}
/*overwrite*/
.btn-outline-danger {
    border-color: var(--primaryColor) !important;
    color: var(--primaryColor) !important;
}

    .btn-outline-danger:hover {
        border-color: var(--primaryColor) !important;
        background-color: var(--primaryColor) !important;
        color: white !important;
    }
