﻿/*Global CSS Area &&  Overwrite HTML Control
*/
body {
    overscroll-behavior-y: contain;
}

@font-face {
    font-family: "noto";
    src: url('/fonts/NotoSansTC-Regular.otf');
}

@font-face {
    font-family: "noto-light";
    src: url('/fonts/NotoSansTC-Light.otf');
}

@font-face {
    font-family: "noto-bold";
    src: url('/fonts/NotoSansTC-bold.otf');
}

@font-face {
    font-family: "nunito";
    src: url('/fonts/Nunito-Regular.ttf');
}

@font-face {
    font-family: "nunito-light";
    src: url('/fonts/Nunito-Light.ttf');
}

@font-face {
    font-family: "nunito-bold";
    src: url('/fonts/Nunito-Bold.ttf');
}

body, html {
    height: 100%;
    margin:0px;
    padding:0px;
    font-family: 'noto', sans-serif;
    font-style: normal;
    overflow: hidden;
    font-size: 16px;
}

a {
    color: #333;
    text-decoration: none;
    background-color: transparent;
    -webkit-text-decoration-skip: objects;
}

/*.btn:active {
    background-color: var(--highColor) !important;
}*/

:root {
    --primaryColor: #ff8400; /*  #60b515 #ff8400 #3c6ecb;  #ca032e #f35d00*/
    /*綠色 #388E3C #00B894 #3CB371 #2ECC71 #4CAF50*/
    --secondaryColor: #ffa500; /* #ffa500 #669cff; #ff2f5c*/
    --secondaryXorColor: #66e9e3;
    --highColor: #F87217;
}

.color-primary {
    color: var(--primaryColor) !important;
}

.color-secondary {
    color: var(--secondaryColor) !important;
}

.bg-primary-text {
    color: #3c6ecb;
    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-primary:active, .btn-primary.active:active {
    border: 0px;
    background-color: var(--secondaryColor) !important;
}



.btn-dark, .btn-dark:hover, .btn-dark:focus {
    color: #fff;
    background-color: #23272b;
    border-color: #1d2124;
}


.bg-gray {
    background-color: #808080 !important;
    color: white;
}

.ui-widget {
    font-family: 'noto', sans-serif;
    font-size: 1rem;
}

#tabData .control-label {
    text-align: right;
}

.control-label {
    font-size: 0.9em;
    font-weight: 500;
}

::-webkit-input-placeholder { /* Edge */
}

:-ms-input-placeholder { /* Internet Explorer 10-11 */
    font-family: 'noto-light';
    color: #8e9399;
}

::placeholder {
    font-family: 'noto-light';
    color: #8e9399;
}

select:required:invalid {
    color: #8e9399;
}

.select-lg {
    background-color: #fff;
    border: 0px;
    margin: 10px 10px;
    font-size: 20px;
}

.select-md {
    padding: 5px 20px 5px 10px;
    background-color: #fff;
    border: 0px;
    font-size: 1.1rem;
}

input {
    position: relative;
}


.custom-checkbox {
    display: block;
    position: relative;
    padding-left: 25px;
    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;
}

    .checkmark.center {
        left: 50%;
        transform: translate(-50%,-50%);
    }

/* 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;
    white-space: nowrap;
}

    /* 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);
}


input:focus {
    box-shadow: none !important;
}

option[value=""][disabled] {
    display: none;
}

::-webkit-scrollbar {
    width: 10px;
}

/* Track */
::-webkit-scrollbar-track {
    background: #f1f1f1;
}

/* Handle */
::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 0;
}

    /* Handle on hover */
    ::-webkit-scrollbar-thumb:hover {
        background: #888;
    }

#sidebar .flex-grow-scroll::-webkit-scrollbar-track, [id*=popMenu]::-webkit-scrollbar-track {
    background: #3e3e43;
}

#sidebar .flex-grow-scroll::-webkit-scrollbar-thumb, [id*=popMenu]::-webkit-scrollbar-thumb {
    background: #262629;
    border-radius: 0;
}

    #sidebar .flex-grow-scroll::-webkit-scrollbar-thumb:hover, [id*=popMenu]::-webkit-scrollbar-thumb:hover {
        background: #151516;
    }

[id*=popMenu]::-webkit-scrollbar-track,
[id*=popMenu]::-webkit-scrollbar-thumb {
    border-radius: 0.25rem;
}

.debug-r {
    border: solid 3px red !important;
}

.debug-g {
    border: solid 3px green !important;
}

.debug-b {
    border: solid 3px black !important;
}

.noto-light {
    font-family: 'noto-light';
}

.workarea {
    width: 100%;
    height: 100%;
    overflow: hidden;
    font-size: 17px;
}

img {
    max-width: 100%;
}

#posMaster .btn {
    font-size: 20px;
}

.workarea input[type=text] {
    font-size: 17px;
    border-radius: 5px;
    padding: 5px;
}

/*jquery ui tabs fix*/
#tabs1 {
    height: 100%;
    position: relative;
    min-height: 100%;
}

#tabDetail {
    /*height: 100%;
    position: relative;
    min-height: 100%;
    flex-grow: 1;*/

    flex: 1 1 auto;
    overflow-y: auto;
    border: solid 3px blue;
}

.tab-fill {
    display: flex;
    flex-direction: column;
    height: 100%;
    max-height: 100%;
}

.tbAttachmentList {
    display: flex;
    flex-wrap: wrap;
}

/*remark 20211008*/
.ui-tabs-panel {
    /*overflow-y: auto;*/
    display: flex;
}

.timePanel {
    position: absolute;
    bottom: 10px;
    right: 10px;
    width: 360px;
    height: 150px;
    color: #666;
    font-size: 30px;
}

.statusbar {
    position: absolute;
    left: 0px;
    bottom: 0px;
    width: 100%;
    height: 4%;
    background-color: #ececec;
}

.textarea-small {
    min-height: 60px;
}

textarea {
    width: 100%;
    border-radius: 10px;
    padding: 10px;
    min-height: 80px;
}

    textarea:focus, input:focus {
        outline: none;
    }

.pointer {
    cursor: pointer;
}

.labelHead {
    font-size: 41px;
    margin: 20px 0;
}

.labelTitle {
    font-size: 24px;
    color: #1b2733;
    margin: 20px 0;
}

.btn-number {
    background: rgb(2,0,36);
    background: linear-gradient(0deg, rgba(2,0,36,1) 0%, rgba(106,106,107,1) 49%, rgba(135,136,136,1) 100%);
    width: 60px;
    height: 60px;
    text-align: center;
    padding: 0px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 20px;
    border-bottom: 0px;
}

.btn-function {
    background: rgb(2,0,36);
    background: linear-gradient(0deg, rgba(2,0,36,1) 0%, rgba(106,106,107,1) 49%, rgba(135,136,136,1) 100%);
    width: 80px;
    height: 60px;
    text-align: center;
    padding: 0px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 22px;
    border-bottom: 0px;
}

.btnPayment {
    height: 55px;
    font-size: 20px;
    width: 250px;
    color: white;
    background-color: orange;
}

.btn-white {
    padding: 10px;
    border-radius: 2px;
    background-color: white;
    border: solid 1px #efefef;
    cursor: pointer;
    text-align: center;
}

.label {
    font-size: 17px !important;
}

.labelSmall {
    font-size: 12px !important;
}

/*input[type=text], input[type=password] {
    height: 55px;
    line-height: 55px;
    border-radius: 10px;
    border: solid 1px #d8d8d8;
    font-size: 20px;
    padding-left: 10px;
    border-radius: 5px;
    width: 100%;
}*/

.panelMonitor {
    height: 90px;
    color: white;
}

.panelMaterialType {
    height: 200px;
    overflow: auto;
}

.scrollable {
    height: 100%;
    overflow-y: auto;
}

.btn-materialType {
    background: rgb(241,140,47);
    width: 120px;
    height: 60px;
    text-align: center;
    padding: 0px;
    color: white;
    font-size: 22px;
    border-bottom: 0px;
    margin: 3px 0 0 3px;
    overflow: hidden;
}

    .btn-materialType.actived {
        background: rgb(207,86,30);
    }

.btn-material {
    background: rgb(0,120,215);
    width: 140px;
    height: 80px;
    padding: 10px;
    text-align: center;
    padding: 0px;
    color: white;
    font-size: 20px;
    border-bottom: 0px;
    margin: 5px 0 0 5px;
    overflow-wrap: break-word;
    word-wrap: break-word;
    white-space: normal;
    line-height: 22px;
}

.btn-paymentItem {
    background-color: #eee;
    color: black;
    font-size: 22px;
    min-width: 100px;
    height: 60px;
    padding: 0px;
    line-height: 60px;
    padding: 0 10px;
    white-space: normal;
}

.btn-dollarType {
    background-color: #999;
    color: black;
    font-size: 22px;
    width: 100px;
    height: 60px;
    padding: 0px;
    line-height: 60px;
    border: solid 1px #ececec;
    color: white;
}

div.active {
    color: var(--primaryColor) !important;
}

.border-active {
    border: solid 1px var(--primaryColor) !important;
}

/*
.btn.active {
    background-color: #3c6ecb !important;
    color: white;
}
    */

.btn-number-w {
    background-color: #999;
    color: white;
    font-size: 28px !important;
}

#panelMaterial {
    overflow: auto;
    height: 100%;
}

#salesGrid {
    color: black;
    width: 100%;
}

.dark {
    background-color: black;
    color: white;
}

.text-1 {
    font-size: 36px !important;
}

.text-2 {
    font-size: 24px !important;
}

.text-3 {
    font-size: 17px !important;
}

.text-small {
    font-size: 12px !important;
}

.dialog-header {
}

.dialog-body {
    background-color: #fcfcfc;
}

.dialog-footer {
}

.lbIcon {
    background: rgb(201,99,28);
    background: linear-gradient(0deg, rgba(201,99,28,1) 0%, rgba(162,72,28,1) 49%, rgba(124,48,27,1) 100%);
    height: 40px;
    line-height: 40px;
    padding: 0 20px;
    border-radius: 10px;
    color: white;
}

.ui-keyboard {
    left: 0px !important;
    top: 0px !important;
    position: relative !important;
    border: 0px !important;
}

#mdInvoiceDonation .ui-keyboard {
    position: relative !important;
    top: 0px !important;
    margin-top: 30px;
}

.bg-blue {
    background-color: #308bdb;
    color: white;
}

.text-blue {
    color: #308bdb;
}

.background {
    display: flex;
    width: 100%;
    height: 100%;
    align-items: center;
    justify-content: center;
    /*background-image: url('/Images/backgroundgreen1.jpg');*/
    background-image: url('/Images/background/AAGOFg6.jfif');
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

button:focus, select:focus {
    box-shadow: none !important;
}

.primary-light, .btn-secondary-light, .btn-secondary-light-2, .btn-white-fixed {
    min-width: 114px;
    width: auto;
    height: 38px;
    line-height: 1.3;
    border-radius: 0.25rem;
}

.btn-secondary-light-2 {
    width: auto !important;
    background-color: #fafafa;
    color: black;
    border: 1px solid #ddd;
}

.primary-light:hover {
    color: #fff;
}

.btn-white-fixed {
    padding: 9px 6px;
}

.modal .modal-dialog {
    margin: 0.5rem !important;
}

.modal .modal-content {
    border: none;
    border-radius: 4px;
    box-shadow: 0 0 15px 1px rgb(69 65 78 / 20%);
}

.modal .modal-header {
    position: relative;
    text-align: center;
}

.modal .modal-title {
    width: 100%;
}

.modal .modal-header .close {
    position: absolute;
    right: 1rem;
    outline: none;
}

.modal .modal-footer .btn {
    min-width: 100px;
    width: auto;
    height: 38px;
    padding: 0 6px;
    border-radius: 0.25rem;
    border-color: #ddd;
    cursor: pointer;
}

/*


    .modal .modal-footer .btn:not(.btn-primary):hover {
        background-color: #f4f5f8;
    }

.modal .modal-footer .bg-primary {
   
}


.modal .modal-footer .bg-primary:active {
    box-shadow: none !important;
}*/

.table {
    margin-bottom: 0;
}

#errorPanel {
    border-radius: 4px;
    box-shadow: 0 0 15px 1px rgb(69 65 78 / 20%);
}

a.bg-primary:hover, a.bg-primary:focus, button.bg-primary:hover, button.bg-primary:focus {
    background-color: var(--secondaryColor) !important;
}

.bg-delete {
    background-color: #e50000 !important;
}

.bg-white {
    background-color: #fff !important;
}

.bg-table {
    background-color: #f7f7f7 !important;
}

.bg-readonly {
    background-color: #e9ecef !important;
}


.m_switch_color {
    background-color: var(--primaryColor) !important;
    box-shadow: inset 0 0 0px 1px rgb(0 0 0 / 5%) !important;
}

.border {
    border: 1px solid #d3d3d3 !important;
}

.border-top {
    border-top: 1px solid #d3d3d3 !important;
}

.border-bottom {
    border-bottom: 1px solid #d3d3d3 !important;
}

.border-right {
    border-right: 1px solid #d3d3d3 !important;
}

.border-left {
    border-left: 1px solid #d3d3d3 !important;
}

.border-notop {
    border: 1px solid #d3d3d3 !important;
    border-top: none !important;
}

.listDataColumn tbody tr.active {
    color: #3c6ecb;
}

#companyIcon {
    height: 60px;
    padding: .8rem 0 .5rem;
}

#ui-datepicker-div {
    border: 1px solid #c5c5c5 !important;
}

.ui-sortable-handle, .ui-sortable-helper {
    background-color: #fff;
}

.table thead th {
    background-color: #fff;
}

#menuToggle {
    cursor: pointer;
}

.fa-arrow-alt-circle-left {
    cursor: pointer;
}

.white-space-nowrap {
    white-space: nowrap !important;
}

.customEditMenu > .flex-column {
    box-shadow: 2px 0 6px 0 rgb(0 0 0 / 50%);
    z-index: 1;
}

.select2-container--default .select2-results__option--highlighted.select2-results__option--selectable {
    background-color: unset !important;
    color: unset !important;
}

.select2-container--default .select2-results__option--selected.select2-results__option--selectable {
    background-color: #ddd !important;
}

.select2-container--default .select2-results__option--highlighted.select2-results__option--selectable:hover {
    background-color: #5897fb !important;
    color: white !important;
}

@media screen and (max-width: 1199px) {
    .primary-light, .btn-secondary-light, .btn-secondary-light-2, .btn-white-fixed {
        min-width: 100px;
    }
}

@media screen and (min-width: 576px) {
    .modal .modal-dialog {
        margin: 1.75rem auto !important;
    }
}

.h-viewport {
    height: var(--vh, 100vh);
}

.row.g-0 > [class*='col'] {
    padding-right: 0 !important;
    padding-left: 0 !important;
}

.edit-form:not(.row) .edit-row:not(:last-child) {
    border-bottom: none;
}

.row.edit-form .col-12:not(:last-child) .edit-row {
    border-bottom: none;
}

.edit-leftWrap {
    padding-right: 0.5rem;
}

.edit-rightWrap {
    padding-left: 0.5rem;
}

@media (max-width: 1199px) {
    .edit-leftWrap {
        padding-right: 0;
    }

    .edit-rightWrap {
        padding-left: 0;
        padding-top: 1rem;
    }
}

@media (min-width: 992px) {
    .br-lg-0 {
        border-right-color: #fff;
    }

    .bb-lg {
        border-bottom: 1px solid #d3d3d3 !important;
    }
}

@media (min-width: 1200px) {
    .br-xl-0 {
        border-right-color: #fff;
    }

    .bb-xl {
        border-bottom: 1px solid #d3d3d3 !important;
    }
}

.ui-readonly {
    cursor: default !important;
    pointer-events: none;
    opacity: 0.8;
}

.ui-readonly-1 {
    cursor: default !important;
    pointer-events: none;
    opacity: 0.6;
}

table tr.row {
    display: table-row;
}

.tdFunction {
    max-width: 200px;
}

#memoWrap .memoType {
    word-break: break-all;
}

#memoWrap .memoType > div:not(.btnDeleteMemoType) {
    width: 115px;
}

.item-hide {
    pointer-events: none;
    opacity: 0;
}

.tbEditList thead tr th {
    font-size: 1rem;
    font-weight: 400;
    padding: 7px 0.75rem;
    color: #212529;
    background-color: #fafafa;
    border-bottom: 2px solid #dee2e6;
}

#coworkerWrap .icon-function {
    width: calc((993px - 10px* 8 - 2rem) / 8);
    min-width: 95px;
    padding: 6px 20px;
    margin: 3px 5px;
    text-align: center;
    color: #444;
    background-color: white;
    border-radius: 4px;
}

#coworkerWrap .icon-function svg {
    margin-bottom: 1px;
}

#coworkerWrap .mainWrap {
    height: calc(var(--vh, 100vh) - 115px - 75px);
}

@media screen and (max-width: 992px) {
    #coworkerWrap h1 {
        font-size: 2rem;
    }

    #coworkerWrap h3 {
        font-size: 1.25rem;
    }

    #coworkerWrap .icon-function {
        width: calc((577px - 6px * 8 - 2rem) / 8);
        min-width: 60px;
        padding: 2px 5px;
        margin: 3px;
        font-size: 12px;
    }

    #coworkerWrap .icon-function svg {
        margin-bottom: -3px;
        width: 15px;
    }

    #coworkerWrap .mainWrap {
        height: calc(var(--vh, 100vh) - 115px - 49px);
    }
}

@media screen and (max-width: 576px) {
    #coworkerWrap .icon-function {
        width: calc((100vw - 6px * 4 - 2rem) / 4);
        min-width: 65px;
        padding: 2px 8px;
        margin: 3px;
        font-size: 12px;
    }

    #coworkerWrap .icon-function svg {
        width: 15px;
    }

    #coworkerWrap .mainWrap {
        height: calc(var(--vh, 100vh) - 115px - 98px);
    }
}