body {
    height: 100%;
    margin: 0;
    padding: 0;
    font-family: 'Open Sans', sans-serif;
    font-size: 16px;
    color: #666666;
    font-weight: 500;
    line-height: 18px;
    text-rendering: optimizeLegibility;
    overflow-y:hidden;
}

hr {
    border-color: #a8a8a8;
    margin-left: 10px;
}

input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
    /* display: none; <- Crashes Chrome on hover */
    -webkit-appearance: none;
    margin: 0; /* <-- Apparently some margin are still there even though it's hidden */
}

input[type=number] {
    -moz-appearance:textfield; /* Firefox */
}

input {
    font-size: 100%;
    border: 1px solid #B5B5B5;
    padding: 6px;
    border-radius: 4px;
    height: 32px;
}

input:-moz-read-only {
    /* For Firefox */
    background-color: #e6e6e6;
    color: black;
}

input:read-only {
    background-color: #e6e6e6;
    color: black;
}

textarea:-moz-read-only {
    /* For Firefox */
    background-color: #e6e6e6;
    color: black;
}

textarea:read-only {
    background-color: #e6e6e6;
    color: black;
}

select:disabled {
    background-color: #e6e6e6 !important;
    color: black !important;
    opacity: 1;
}

select {
    font-size: 100%;
    border: 1px solid #B5B5B5;
    padding: 2px;
    border-radius: 4px;
    height: 32px;
}

input[type="checkbox"] {
    display: none;
    margin-right: 4px;
}

input[type="checkbox"]+label {
    text-align: left;
    margin-left: 12px;
}

input[type="checkbox"]+label span {
    display: inline-block;
    width: 19px;
    height: 19px;
    margin: -2px 5px 0 0;
    vertical-align: middle;
    background: url(../pimages/check_radio.png) left top no-repeat;
    cursor: pointer;
}

input[type="checkbox"]:checked+label span {
    background: url(../pimages/check_radio.png) -19px top no-repeat;
}

input[type="radio"] {
    display: none;
}

input[type="radio"]+label {}

input[type="radio"]+label span {
    display: inline-block;
    width: 19px;
    height: 19px;
    margin: -2px 5px 0 0;
    vertical-align: middle;
    background: url(../pimages/check_radio.png) -38px top no-repeat;
    cursor: pointer;
}

input[type="radio"]:checked+label span {
    background: url(../pimages/check_radio.png) -57px top no-repeat;
}

 ::placeholder {
    /* CSS 3 標準 */
    color: rgb(255, 200, 200);
}

 ::-webkit-input-placeholder {
    /* Chrome, Safari */
    color: rgb(255, 200, 200);
}

 ::-ms-input-placeholder {
    /* IE 10+ */
    color: rgb(255, 200, 200);
}

 ::-moz-placeholder {
    /* Firefox 19+ */
    color: rgb(255, 200, 200);
}

input:disabled {
    background: #efefef !important;
}

input:read-only {
    background: #e6e6e6 !important
}

h1,
h2,
h3,
h4,
h5,
h6,
p {
    margin-top: 0;
    padding: 0;
}

#container {}

.page-top {
    padding-left: 20px;
    padding-right: 20px;
    position: fixed;
    width: 100%;
    background: white;
    z-index: 9999;
}

.page-header {
    vertical-align: middle;
    margin: 15px 0;
    padding: 0;
    border-bottom: none;
    margin-bottom: 10px;
}

.container-fluid {
    padding-left: 20px;
    padding-right: 20px;
    /*    font-size: 14px;*/
    /*padding-bottom: 200px;*/
}

.panel-default-fixed {
    position: relative;
    width: 100%;
    border-top: 2px solid #bfbfbf;
}

.panel-default {
    border: 1px solid #e8e8e8;
    border-top: 2px solid #bfbfbf;
    margin-top: 5px;
}

.panel-edit {}

.panel-edit .panel-heading,
.panel-default .panel-heading,
.panel-default-fixed .panel-heading {
    height: 40px;
    color: #595959;
    border-color: #e8e8e8;
    background: #fcfcfc;
}

.panel-body {
    padding: 15px;
}

.btn-primary {
    margin-left: 5px;
    background: linear-gradient(to bottom, #5a91f0 0%, #3b76e1 100%);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
    /*    font-size: 12px !important; */
}

.btn-primary.focusonly_focus {
    color: #fff !important;
    background-color: #0000ff !important;
}

.searchdiv {
    height: 0px;
    padding: 0px;
    background-color: #f5f5f5;
    border: 1px solid #e3e3e3;
    border-radius: 3px;
    -webkit-box-shadow: inset 0 1px 1px rgb(0 0 0 / 5%);
    box-shadow: inset 0 1px 1px rgb(0 0 0 / 5%);
    overflow: hidden;
}

.searchdiv_act {
    height: auto;
    padding: 10px;
    overflow: unset;
}

.article .searchdiv_act {
    height: 230px !important;
    overflow: unset;
}

.fulldiv {
    position: relative;
    min-height: 1px;
    padding-left: 15px;
    padding-right: 15px;
    padding-top: 15px;
    border: 1px solid #cd8400;
    border-radius: 8px;
}

.halfdiv {
    width: 50%;
    position: relative;
    min-height: 1px;
    padding-left: 15px;
    padding-right: 15px;
    float: left;
}

.conditem,
.inpitem {
    margin-bottom: 5px;
    overflow: hidden;
    clear: both;
}

.inpitem label {

    width: 100px;
    text-align: right;
    float: left;
    line-height: 35px;
    margin-right: 10px;
    font-weight: 900;
}

.inpitem label.req::before {
    content: "* ";
    color: red;
    font-weight: bold;
}

.inpitem label p {
    color: #F00;
    font-size: 12px;
    line-height: 16px;
}

.w85 {
    width: calc(100% - 230px);
    float: left;
}

.w85 input[type=checkbox] {
    vertical-align: middle;
    width: 16px;
    height: 16px;
    display: inline;
    float: none;
    margin-top: 0;
}

.checklabel {
    margin-right: 10px;
}

.inpitem input[type="text"],
.inpitem input[type="number"] {
    display: block;
    width: calc(100% - 230px);
    height: 35px;
    /*padding: 8px 13px;*/
    /*    font-size: 14px;*/
    line-height: 1.42857143;
    color: black;
    background-color: #ffffff;
    background-image: none;
    border: 1px solid #cccccc;
    border-radius: 8px !important;
    -webkit-box-shadow: inset 0 1px 1px rgb(0 0 0 / 8%);
    box-shadow: inset 0 1px 1px rgb(0 0 0 / 8%);
    -webkit-transition: border-color ease-in-out .3s, box-shadow ease-in-out .3s;
    -o-transition: border-color ease-in-out .3s, box-shadow ease-in-out .3s;
    transition: border-color ease-in-out .3s, box-shadow ease-in-out .3s;
    float: left;
    font-weight: normal;
}

.inpitem input.digitcheck,
.inpitem input.floatcheck,
.inpitem input.numshow,
.inpitem input.numcheck {
    max-width: 160px;
}

.inpitem select {
    display: block;
    width: 300px;
    height: 35px;
    padding: 8px 6px 7px 6px;
    /*    font-size: 14px;*/
    line-height: 1.42857143;
    color: black;
    background-color: #ffffff;
    background-image: none;
    border: 1px solid #cccccc;
    border-radius: 8px;
    -webkit-box-shadow: inset 0 1px 1px rgb(0 0 0 / 8%);
    box-shadow: inset 0 1px 1px rgb(0 0 0 / 8%);
    -webkit-transition: border-color ease-in-out .3s, box-shadow ease-in-out .3s;
    -o-transition: border-color ease-in-out .3s, box-shadow ease-in-out .3s;
    transition: border-color ease-in-out .3s, box-shadow ease-in-out .3s;
    float: left;
}

.inpitem textarea {
    padding: 8px 6px 7px 6px;
    width: 100%;
    color: black;
    border-radius: 8px;
}

.conditem input {
    display: block;
    width: 100%;
    height: 35px;
    padding: 8px 6px 7px 6px;
    /*    font-size: 16px;*/
    line-height: 1.42857143;
    color: #555555;
    background-color: #ffffff;
    background-image: none;
    border: 1px solid #cccccc;
    border-radius: 8px;
    -webkit-box-shadow: inset 0 1px 1px rgb(0 0 0 / 8%);
    box-shadow: inset 0 1px 1px rgb(0 0 0 / 8%);
    -webkit-transition: border-color ease-in-out .3s, box-shadow ease-in-out .3s;
    -o-transition: border-color ease-in-out .3s, box-shadow ease-in-out .3s;
    transition: border-color ease-in-out .3s, box-shadow ease-in-out .3s;
    color: #7373ff;
}

.conditem select {
    display: block;
    width: 100%;
    height: 35px;
    padding: 8px 6px 7px 6px;
    /*    font-size: 16px;*/
    line-height: 1.42857143;
    color: #555555;
    background-color: #ffffff;
    background-image: none;
    border: 1px solid #cccccc;
    border-radius: 8px;
    -webkit-box-shadow: inset 0 1px 1px rgb(0 0 0 / 8%);
    box-shadow: inset 0 1px 1px rgb(0 0 0 / 8%);
    -webkit-transition: border-color ease-in-out .3s, box-shadow ease-in-out .3s;
    -o-transition: border-color ease-in-out .3s, box-shadow ease-in-out .3s;
    transition: border-color ease-in-out .3s, box-shadow ease-in-out .3s;
}

label {
    display: inline-block;
    max-width: 100%;
    margin-bottom: 5px;
    font-weight: bold;
}

.categroup {
    overflow: hidden;
}

.categroup select {
    float: left;
    width: 120px;
    margin-right: 10px;
}

.select_valid {
    background: #ededff !important;
}

.picktitdiv {
    height: 24px;
    margin-right: 5px;
}

.pickdatadiv {
    overflow: auto;
    margin-right: 5px;
}

.picktit {
    background: #F1F1F1;
    color: #7C7C7C;
    height: 24px;
    float: left;
    margin-right: 2px;
    /*    font-size: 16px;*/
    text-align: center;
    line-height: 24px;
}

.pickdatacol {
    height: 30px;
    margin-bottom: 2px;
    border-width: 0px;
}

.pickdatacol:hover>.pickdata {
    background: #B8B5FF;
}

.pickdata {
    background: #FAFAFA;
    height: 28px;
    float: left;
    margin-right: 2px;
    /*    font-size: 16px;*/
    white-space: nowrap;
    text-overflow: ellipsis;
    -o-text-overflow: ellipsis;
    overflow: hidden;
    cursor: pointer;
    line-height: 28px;
    padding-left: 4px;
    padding-right: 4px;
    color: black;
}

.pickupdown {
    position: absolute;
    height: 1px;
    width: 1px;
    border: 0px;
    top: -100px;
    background-color: rgba(0, 0, 0, 0);
}

.pickkeysel {
    outline-color: #FF0505;
    outline-style: dotted;
    outline-width: 2px;
    outline-offset: -2px;
}

.pickcustdiv {
    background: #CCCCCC;
    margin-bottom: 2px;
    margin-right: 4px;
    padding-top: 4px;
    padding-bottom: 1px;
}

.attr_tb {
    width: 100%;
    max-width: 100%;
    margin-bottom: 2px;
    border: 1px solid #dddddd;
    /*    font-size: 14px;*/
    background: #e6e6e6;
}

.attr_tb tr>td {
    padding: 4px !important;
}

.attr_tb td:nth-child(1) {
    width: 140px;
    text-align: right;
    font-weight: 900;
}

.brow_tb {
    width: 100%;
    max-width: 100%;
    margin-bottom: 17px;
    border: 1px solid #dddddd;
}

.brow_tb>thead>tr>td,
.brow_tb>tfoot>tr>td,
.brow_tb>tbody>tr>td {
    vertical-align: middle;
    padding: 8px;
}

.brow_tb thead>tr>th,
.brow_tb thead>tr>td {
    border-bottom-width: 2px !important;
    background: #e9e9e9;
    font-weight: bold;
}

.brow2_tb thead>tr>th,
.brow2_tb thead>tr>td {
    border-bottom-width: 2px !important;
    background: #ffe6b9;
    font-weight: bold;
}

.brow_tb>thead>tr>th,
.brow_tb>tbody>tr>th,
.brow_tb>tfoot>tr>th,
.brow_tb>thead>tr>td,
.brow_tb>tbody>tr>td,
.brow_tb>tfoot>tr>td {
    border: 1px solid #dddddd;
    padding-left: 5px;
    color: #666666;
}

.brow_tb>tbody>tr>th,
.brow_tb>tfoot>tr>th,
.brow_tb>tbody>tr>td,
.brow_tb>tfoot>tr>td {
    color: black;
}

.cursor_tr>tbody>tr:hover {
    background: #f5f5ff;
    -webkit-box-shadow: inset 0 -8px 3px rgb(51 48 255 / 5%);
    box-shadow: inset 0 -8px 10px rgb(51 48 255 / 5%);
    cursor: pointer;
}

.is_stop_1 {
    color: red !important;
}

.is_hide_1 {
    background: #ffadad !important;
}

.btn span {
    /*    line-height: 16px;*/
}

.smallinp {
    overflow: hidden;
}

.smallinp input {
    display: initial;
    width: 100px;
    height: 25px;
    padding: 5px 5px;
    /*    font-size: 14px;*/
    float: none;
}

.smallinp label {
    width: 38px;
    line-height: 25px;
}

.savediv {
    text-align: center;
    margin-top: 20px;
    padding-left: 30px;
    padding-right: 30px;
    margin-bottom: 40px;
}

.savediv_left {
    float: left;
    width: 33%;
    height: 34px;
}

.savediv_mid {
    float: left;
    width: 33%;
    text-align: center;
    padding-left: 30px;
    padding-right: 30px;
    height: 34px;
}

.savediv_right {
    float: left;
    width: 33%;
    height: 34px;
}

.msgbox {
    color: red;
    text-align: center;
    background: #ffeded;
    line-height: 40px;
    height: 40px;
    font-weight: bold;
}

.btn {
    border-radius: 12px;
}

.btn-func {
    color: black;
    background-color: #f2f2f2;
    border-color: #5B5C5C;
    margin-left: 15px;
}

.btn-func:hover {
    color: #fff;
    background-color: #5A5A5A;
}

.btn-del {
    color: #fff;
    background: linear-gradient(to bottom, #ff5f6d 0%, #d31027 100%);
    box-shadow: 0 4px 10px rgba(139, 0, 0, 0.4);
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
    border-color: #a42e2e;
    margin-left: 5px;
    /*    font-size: 12px !important; */
}

.btn-del:hover {
    color: #fff;
    background-color: #b70000;
}

.btn-extlnk {
    color: #fff;
    background-color: #3e7333;
    border-color: rgb(31, 77, 22);
    margin-left: 5px;
    /*    font-size: 12px !important; */
}

.btn-extlnk:hover {
    color: #fff;
    background-color: green;
}

.btn-cust {
    color: #fff;
    background-color: #337ab7;
    border-color: #337ab7;
    margin-left: 15px;
    margin-top: 0px;
    /*    font-size: 12px !important; */
    float: left;
}

.btn-cust:hover {
    color: #fff;
    background-color: #0000ff;
}

.btn-cust-r {
    color: #fff;
    background-color: #337ab7;
    border-color: #337ab7;
    margin-right: -28px;
    margin-top: 0px;
    /*    font-size: 12px !important; */
    float: right;
}

.btn-cust-r:hover {
    color: #fff;
    background-color: #0000ff;
}

.btn-cust1 {
    color: #fff;
    background-color: #006600;
    border-color: #006600;
    margin-left: 15px;
    margin-top: 0px;
    /*    font-size: 12px !important; */
    float: left;
}

.btn-cust1:hover {
    color: #fff;
    background-color: #008000;
}

.btn-download2 {
    color: #fff;
    background-color: #005d00;
    border-color: #00a200;
    margin-left: 5px;
    /*    font-size: 12px !important; */
    width: 130px;
}

.btn-download2:hover {
    color: #fff;
    background-color: #008700;
}

.tbclass {
    display: table;
    table-layout: fixed;
}

.trclass {
    display: table-row;
}

.tdclass {
    display: table-cell !important;
}

.topbanner {
    position: relative;
    padding: 5px;
    line-height: 30px;
    background: #adadad;
    height: 40px;
    min-width: 1520px;
}

.topbannertxt {
    float: left;
    text-shadow: 3px 3px 0 rgba(0, 0, 0, 0.13);
    font-size: 22px;
    color: white;
    margin-left: 20px;
}

.login_info {
    float: right;
    margin-right: 20px;
    color: white;
    /*    font-size: 14px;*/
}

.maintb {
    width: 100%;
/*    min-width: 1520px; */
    height: 100% ;
    font-size: 16px;
}

.maintb tr {
    vertical-align: top;
    background: #fffbf5;
}

.workspace {
    position: relative;
    height: 100%;
    background:#fffbf5;
    /*    min-width: 1100px;*/
}

.workspace_div {
    /*    font-size: 1.0em;*/
    position: relative;
    width: 100%;
    top: 9px;
    overflow-y: auto;
    padding-bottom: 30px;
    height: calc(100% - 50px);
}

.model1_div1 {
    max-width: 350px;
    margin: auto;
    position: relative;
    opacity: 0.9;
    padding-bottom: 15px;
    padding-top: 15px;
}

.model1line {
    line-height: 38px;
    height: 38px;
    clear:both;
}

.model1line input {
    max-width: 210px;
    width: calc(100% - 230px);
}

.model1line select {
    background: white;
    max-width: 210px;
    width: calc(100% - 230px);
}

.model1_label {
    width: 130px;
    display: inline-block;
    text-align: right;
    margin-right: 5px;
}

.model1line {
    line-height: 38px;
    height: 38px;
}


/* Menu */

/* 自動縮放 */
/*
.leftmenu {
    height: 100%;
    background: #515151;
    border-right: solid 1px #c6c6c6;
    -webkit-transition: all ease-in-out .3s;
    -o-transition: all ease-in-out .3s;
    transition: all ease-in-out .3s;
    width:50px;
}

.menudiv {
    position:fixed;
    height:100%;
    overflow-y: scroll;
}

.leftmenu:hover .menudiv{
    position:relative; 
}
*/

/* 固定顯示 */

.leftmenu {
    height: 100%;
    border-right: solid 1px #c6c6c6;
    -webkit-transition: all ease-in-out .3s;
    -o-transition: all ease-in-out .3s;
    transition: all ease-in-out .3s;
    width:270px;
}

.menudiv {
    position:relative;
    height:100%;
    overflow-y: scroll;
}



.menuicon {
    display:none;
}

#menu,
#menu ul,
#menu li {
    padding: 0;
    margin: 0;
    list-style: none;
}

#menu {
    width:270px; 
    margin-top: 0px;
    margin-bottom: 25px;
/*    height: calc(100% - 60px); */
/*    opacity: 0; */
    -webkit-transition: all ease-in-out .3s;
    -o-transition: all ease-in-out .3s;
    transition: all ease-in-out .3s;
}

.menudiv::-webkit-scrollbar {
    width: 3px;
}

.menudiv::-webkit-scrollbar-track {
    background: gray;
}

.menudiv::-webkit-scrollbar-thumb {
    background: rgb(212, 212, 212);
}

/*
#menu::-webkit-scrollbar {
    width: 3px;
}

#menu::-webkit-scrollbar-track {
    background: gray;
}

#menu::-webkit-scrollbar-thumb {
    background: rgb(212, 212, 212);
}
*/
/* Handle on hover */

#menu::-webkit-scrollbar-thumb:hover {
    background: yellow;
}

#menu>li {
    position: relative;
}

/*
#menu li a {
    text-decoration: none;
    display: block;
    padding: 10px;
    cursor: pointer;
}
*/
#menu li a {
  display: inline-flex;
  align-items: center;
  width: 100%;
  padding: 8px 12px;
  text-decoration: none;
}

.menu-icon {
  height: auto;
  margin-right: 8px;
}

#menu>li>a {
    color: #4f4f4f;
    font-weight:bold;
    font-size: 2rem;
    padding-left: 13px;
/*    border-bottom: 1px solid #585858; */
}

#menu>li>a:hover {
    background-color: #ffebc5;
}

#menu>li>a>span {
    /*    font-size: 16px;*/
    margin-left: 8px;
}

#menu li li a {
    color: #FFFFFF;
}

#menu li li a:hover {
    color: #FFFFFF;
    background-color: #373737;
}

#menu li li a:before {
    font-family: 'bootstrap-icons';
    content: "bi-caret-right-fill";
    /*    font-size: 14px;*/
    margin-left: 0px;
    margin-right: 4px;
    transition: margin ease 0.5s;
}

#menu li li a:hover:before {
    margin-right: 14px;
}

#menu>li>ul {
    position: absolute;
    top: 0px;
    width: 100%;
    background-color: #444444;
}

#menu li ul {
    overflow: hidden;
}

#menu>li:hover>ul {
    visibility: visible;
}

#menu li a.parent:after {
    font-family: 'bootstrap-icons';
    content: "bi-arrow-right-circle";
    float: right;
    margin-right: 0px;
    margin-top: 4px;
}

#menu li.open>a.parent:after {
    font-family: 'bootstrap-icons';
    content: "bi-arrow-bar-down";
    float: right;
    margin-right: 0px;
    margin-top: 4px;
}

#menu li ul a {
    padding-left: 24px;
}

#menu li.open ul {
    display: block;
    position: relative;
}

#menu li.open li.active {
    background: white;
}

#menu li.open li.active span {
    color: red;
}

#menu li.active {
    background: white;
}

#menu li.active span {
    color: red;
}

.mygenericon {
    font-family: 'Genericons';
    -webkit-font-smoothing: antialiased;
    width: 30px;
    height: 30px;
    font-size: 30px;
    text-decoration: inherit;
    font-weight: normal;
    font-style: normal;
    line-height: 30px;
    cursor: pointer;
}

.img_ctrl_div {
    position: absolute;
    height: 30px;
    z-index: 2;
    opacity: 0.5;
    margin-top: -6px;
    right: 0;
}

.img_note_div {
    height: 18px;
    line-height: 30px;
    margin-top: 5px;
    position: relative;
    text-align: center;
}

.img_cam_icon {
    float: right;
    margin-left: 10px;
}

.img_cam_icon:before {
    content: '\f102';
}

.img_pic_icon {
    float: right;
    margin-left: 10px;
}

.img_pic_icon:before {
    content: '\f473';
}

.img_zoom_icon {
    float: right;
    margin-left: 10px;
}

.img_zoom_icon:before {
    content: '\f402';
}

.img_del_icon {
    float: right;
    margin-left: 5px;
    margin-right: 5px;
}

.img_del_icon:before {
    content: '\f405';
}

.img_refresh_icon {
    float: right;
}

.img_refresh_icon:before {
    content: '\f420';
}

.zoomimg_div {
    width: 100%;
    height: 100%;
}

.img_selfimg {
    z-index: 3;
    vertical-align: middle;
    margin-top: 4px;
}

.img_div {
    text-align: center;
    float: left;
    margin-left: 40px;
    border-style: dashed;
    border-radius: 15px;
    border-width: 1px;
    padding: 5px;
    box-sizing: border-box;
    white-space: nowrap;
    position: relative;
}

.img_div:after {
    content: ".";
    font-size: 0;
    -webkit-text-size-adjust: none;
}

.camdiv {
    display: none;
}

.opendiv {
    cursor: pointer;
    color: #000087;
}

.opendiv._close:after {
    font-family: 'bootstrap-icons';
    content: "bi-arrow-right-circle";
    float: right;
    margin-left: 7px;
    margin-top: 1px;
    cursor: pointer;
    font-size: 20px;
}

.opendiv._open:after {
    font-family: 'bootstrap-icons';
    content: "bi-arrow-bar-down";
    float: right;
    margin-left: 7px;
    margin-top: 1px;
    cursor: pointer;
    font-size: 20px;
}

.w85._close {
    height: 38px;
    overflow: hidden;
}

.tddiv {
    line-height: 24px;
}

.tddiv_r {
    line-height: 24px;
    text-align: right;
}

.tddiv_m {
    line-height: 24px;
    text-align: center;
}

.tabs-nav {
    text-align: left;
    border-bottom: solid;
    border-color: #eeece8;
    border-width: 4px;
    margin-top: -12px;
}

.tabs-nav .tab-item {
/*    background: #fff8d4;*/
    display: inline-block;
    margin-right: 5px;
    height: 40px;
/*    border-radius: 20px 0 0 0;*/
    cursor: pointer;
    font-weight: bold;
    position: relative;  
}

.tabs-nav .tab-item.selected {
/*    background: #f4a81b;*/
    cursor: default;
}

.tabs-nav .tab-item.selected::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 100%;
  height: 4px;                      /* 與原本的 border-width 相同 */
  background-color: #f4a81b;
}

.tabs-nav .tab-item.action {
    border-style: solid;
    border-color: red;
}

.tabs-nav .tab-item .tab-link {
    color: gray;
    display: inline-block;
    height: 20px;
    font-size: 20px;
    line-height: 20px;
    padding: 10px 12px;
    text-align: center;
    text-decoration: none;
    white-space: nowrap;
    outline: none;
}

.tabs-nav .tab-item.selected .tab-link {
    color: #f4a81b;
}

.tab-panel {
    min-height: 300px;
    text-align: justify;
    word-wrap: break-word;
    display: none;
    margin-top: -10px;
    padding-top: 20px;
    padding-right: 10px;
    padding-bottom: 10px;
}

.clearfix {
    zoom: 1;
}

.clearfix:after {
    content: '.';
    display: block;
    clear: both;
    visibility: hidden;
    height: 0;
    font-size: 0;
}

.checkgroup label {
    text-align: left;
}

.price_note {
    color: red;
    margin-left: 5px;
    line-height: 34px;
}

.samp {
    width: 62px;
    font-size: 10px;
    height: 24px;
}

.samp_td {
    padding-left: 0px !important;
    padding-right: 0px !important;
    text-align: center;
}

.btn-save {
    color: #fff;
    background-color: #5656ff;
    border-color: #2525ff;
    margin-left: 5px;
    font-size: 12px !important;
    width: 50px;
    height: 26px;
    line-height: 13px;
}

.btn-save:hover {
    color: #fff;
    background-color: #0000ff;
}

.btn-cancel {
    color: #fff;
    background-color: #b73333;
    border-color: #a42e2e;
    margin-left: 5px;
    font-size: 12px !important;
    width: 50px;
    height: 26px;
    line-height: 13px;
}

.btn-cancel:hover {
    color: #fff;
    background-color: #b70000;
}

.menuicon {
    font-size: 32px;
    color:#b3b3ff;
    margin-left:4px;
}

.mygenericon {
    font-family: 'Genericons';
    -webkit-font-smoothing: antialiased;
    width: 30px;
    height: 30px;
    font-size: 30px;
    text-decoration: inherit;
    font-weight: normal;
    font-style: normal;
    line-height: 30px;
    cursor: pointer;
}

.img_ctrl_div {
    position: absolute;
    height: 30px;
    z-index: 2;
    opacity: 0.5;
    margin-top: -6px;
    right: 0;
}

.img_note_div {
    height: 18px;
    line-height: 30px;
    margin-top: 5px;
    position: relative;
    text-align: center;
}

.img_cam_icon {
    float: right;
    margin-left: 10px;
}

.img_cam_icon:before {
    content: '\f102';
}

.img_pic_icon {
    float: right;
    margin-left: 10px;
}

.img_pic_icon:before {
    content: '\f473';
}

.img_zoom_icon {
    float: right;
    margin-left: 10px;
}

.img_zoom_icon:before {
    content: '\f402';
}

.img_del_icon {
    float: right;
    margin-left: 5px;
    margin-right: 5px;
}

.img_del_icon:before {
    content: '\f405';
}

.img_refresh_icon {
    float: right;
}

.img_refresh_icon:before {
    content: '\f420';
}

.zoomimg_div {
    width: 100%;
    height: 100%;
}

.img_selfimg {
    z-index: 3;
    vertical-align: middle;
    margin-top: 4px;
}

.img_div {
    text-align: center;
    float: left;
    margin-left: 40px;
    border-style: dashed;
    border-radius: 15px;
    border-width: 1px;
    padding: 5px;
    box-sizing: border-box;
    white-space: nowrap;
    position: relative;
}

.img_div:after {
    content: ".";
    font-size: 0;
    -webkit-text-size-adjust: none;
}

.camdiv {
    display: none;
}

.json_sample {
    display: none;
}

.indexselect {
    width: 300px !important;
}

.productGroupHeading {
    margin: 0 0 15px 0;
}

.productGroupHeading .productGroupName {
    color: #000;
    font-size: 25px;
    font-weight: normal;
    float: left;
}

.productGroupHeading .note {
    font-size: 15px;
    float: right;
    margin: 6px 0 0 10px;
    color: blue;
}

.pageination {
    text-align: right;
    margin-right: 10px;
}

.pagingList {
    display: inline-block;
    padding-left: 0;
    margin: 5px 0;
}

.pagingList>li {
    display: inline;
}

.pagingList>.page_btn a {
    background: url(../pimages/btn_page.png) repeat-x;
    border: 1px solid #ccc;
    padding: 2px 9px;
    color: #000;
    font-size: 15px;
    float: left;
    line-height: 15px;
    margin-left: 7px;
    padding: 2px 5px 2px 5px;
    position: relative;
    text-decoration: none;
    border-radius: 1px;
}

.pagingList>.page_btn>a:hover {
    border: 1px solid black;
}

.pagingList>.page_btn.disabled>a:hover {
    border: 1px solid #ccc;
}

.pagingList>.disabled>a,
.pagingList>.disabled>a:hover,
.pagingList>.disabled>a:focus {
    cursor: not-allowed;
    border-radius: 1px;
    color: gray;
}

.pagingList>.page>a {
    background: #fff;
    border: 0px solid #ccc;
    color: #000;
    font-size: 15px;
    float: left;
    line-height: 15px;
    margin-left: 7px;
    padding: 2px 5px 2px 5px;
    position: relative;
    text-decoration: none;
    border-radius: 1px;
}

.pagingList>.active a {
    color: #e63535;
}

.pagingList>.active a:hover {
    color: #e63535;
}

.detail_sel {
    border-style: dashed;
    border-color: red;
    cursor: auto !important;
}

.detail_tr {
    height: 48px;
    /*    cursor: pointer;*/
}

.searchicon {
    margin-left: 5px;
    margin-top: 8px;
    cursor: pointer;
    float: left;
}

.cond_txt {
    float: left;
    margin-left: 20px;
}

.half_line {
    float: left;
    width: 50%;
    clear: none;
}

.third_line {
    float: left;
    width: 33.3%;
    clear: none;
}

.quarter_line {
    float: left;
    width: 25%;
    clear: none;
}

.fifth_line {
    float: left;
    width: 20%;
    clear: none;
}

.less_note {
    color: grey;
    line-height: 32px;
    margin-left: 5px;
}

.pull-right {
    margin-top: 5px;
    margin-right: 20px;
    z-index: 999;
    position: absolute;
    right: 17px;
}

.form-control {
    font-size: initial;
}

.txt_disp {
    line-height: 37px;
    color: black;
}

.error_inp {
    border-color: red !important;
    border-width: medium !important;
}

.ok_inp {
    border-color: green !important;
    border-width: medium !important;
}

.specmsg {
    color: red;
    margin-left: 30px;
}

.finddiv {
    /*    margin: auto;*/
    padding: 15px;
/*    width: 600px;*/
    position: relative;
    min-height: 1px;
    /*    
    border-style: solid;
    border-width: 1px;
*/
}

.find_cond_txt {
    /*    margin: auto;*/
    padding: 10px;
    width: 500px;
    position: relative;
}

._blankmode {
    border-style: solid;
    border-color: red;
}

.selectdown {
    width: fit-content;
    padding-left: 10px;
    padding-right: 10px;
    color: blue;
    cursor: pointer;
}

.selectdown:after {
    font-family: 'bootstrap-icons';
    content: "bi-arrow-right-circle";
    float: right;
    margin-top: 3px;
    margin-left: 6px;
}

.selectdown.open:after {
    font-family: 'bootstrap-icons';
    content: "bi-arrow-bar-down";
    float: right;
    margin-top: 3px;
    margin-left: 6px;
}

.st_tit {
    text-align: center;
    background: #d2d2d2;
    padding: 5px;
    
}

.proc_tit {
    text-align: center;
    font-size: 20px;
    font-weight: bold;
    color: red;
    height: 50px;
    line-height: 40px;
}

.procblock {
    border-style: solid;
    margin-top: 10px;
}

.exthtml {
    float: left;
    margin-left: 10px;
    line-height: 34px;
}

.showonly_tr {}

.showonly_tr:hover {
    background: #fffbf5 !important;
    -webkit-box-shadow: none !important;
    box-shadow: none !important;
    cursor: auto !important;
}

.qcdiv0 {
    background: #dedede;
    padding-bottom: 10px;
    padding-right: 5px;
    border-style: dashed;
    border-width: 1 0 1 0;
    margin-bottom: 5px;    
}

.qcdiv1 {
    background: #d0ced9;
    padding-bottom: 10px;
    padding-right: 5px;
    border-style: dashed;
    border-width: 1 0 1 0;
    margin-bottom: 5px;    
}

.stdiv {
    padding-left: 10px;
    padding-right: 10px;
}

.schsel {
    background: #dedeff;
}

.tit_text {
    color: #3e7f3e !important;
    text-shadow: 0px 0px 12px;
}

.sample_copy {
    color: #fff;
    background-color: #005d00;
    border-color: #00a200;
    position: absolute;
    right: 30%;
    margin-top: -25px;
    height: 30px;
    line-height: 16px;    
}

.sample_copy:hover {
    color: #fff;
    background-color: #008700;
}


.ycolor td {
    color:rgb(255, 118, 0) !important;
}

.rcolor td {
    color:#c20000 !important;
}

.diecolor td {
    color:#ff4444 !important;
    text-decoration-color: #ff0000;
    text-decoration-line: line-through;
}

.procseldiv {
    clear:both;
    margin-top:20px;
}

.modat2div {
    border-style: solid;
    border-width: 1px;
    border-radius: 10px;
    margin-left: 6px;
    margin-top: 5px;
    background: #dbdbdb;
    margin-bottom: 10px;
}

.modat2_err {
    background: #ffd9d9;
}

.err_border {
    border-style: solid;
    border-width: 2px;
    border-color: red;
}

.drag-handle {
    text-align: center;
    cursor: grab;
    width: 30px;
}

.maint_ck {
    display:block !important;
    margin:auto !important;
    width:30px !important;
}

.jsonview {
    margin-left: 200px;
    padding: 10px;
    border-style: solid;
    border-radius: 8px;
    border-width: 2px;    
}

.breadcrumb {
    background-color: #fffbf5;
}

.breadcrumb>li {
    font-size:2rem;
    color: black;
    font-weight: bold;
}

.breadcrumb>li>a {
    color: black;
}

.breadcrumb>li>a:hover {
    text-decoration:none;
}

.spacename {
    height: 50px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
    border-bottom: 4px solid #f1f1f2;
}

/* 右側容器：把圖示與倒數文字放在同一行 */
.logout-wrapper {
  display: flex;
  align-items: center;
}

/* 動態圖示容器 */
.icon-container {
  display: inline-flex;          /* 多個圖示橫向排列 */
  align-items: center;
  margin-right: 8px;             /* 與倒數文字的間距 */
}

/* 單一圖示樣式（系統動態加入的） */
.icon-container img {
  width: 18px;
  height: auto;
  cursor: pointer;
  margin-right: 4px;             /* 多個圖示之間的間距 */
}

#countdown {
    color:red;
}

.logout-info {
    font-size:1.5rem;
    display: inline-flex;
    align-items: center;
}

.logout-icon {
    width: 18px;                   /* 圖示大小 */
    height: auto;
    margin-left: 4px;
}

.menu-toggle-btn {
    display:none;
}

.sys_btn {
    all: initial;
    
    display:block;
    text-align: center;
    padding: 6px 18px;
    font-size: 1.5rem;
    line-height: 1;
    font-weight: 700;
    color: #fff;
    letter-spacing: .5px;

    /* 形狀 */
    border-radius: 11px;
    width: 80px;

    /* 主體漸層（上亮 → 中飽和 → 下深） */
    background: linear-gradient(to bottom,
        #6E99E8 0%,
        #4B86E6 18%,
        #427AE1 55%,
        #3560AC 100%
    );

    /* 外框（偏深藍） */
    border: 1px solid #2F5EAF;

    /* 立體感：上內高光 + 下內陰影 + 外陰影 */
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,.55),   /* 上方內高光 */
        inset 0 -1px 0 rgba(0,0,0,.18),        /* 下方內陰影 */
        0 1px 0 rgba(255,255,255,.35),         /* 外緣微亮 */
        0 2px 3px rgba(0,0,0,.25);             /* 外陰影 */

    cursor: pointer;
}

.sys_btn:hover {
    background: linear-gradient(to bottom,
        #79A6F0 0%,
        #528FEA 18%,
        #4682E6 55%,
        #3560AC 100%
    );    
}

.sys_btn.confirmbtn_ok {
    width: 40px;
    float: left;
}

.sys_btn.confirmbtn_cancel {
    width: 40px;
    float: right;
    /* 主體紅色漸層 */
    background: linear-gradient(to bottom,
        #FF6A6A 0%,
        #FF3B3B 20%,
        #FF1F1F 55%,
        #C81414 100%
    );

    /* 外框 */
    border: 1px solid #B31212;

      /* 立體層次 */
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,.55),  /* 上方內高光 */
        inset 0 -1px 0 rgba(0,0,0,.22),       /* 下方內陰影 */
        0 2px 3px rgba(0,0,0,.28);            /* 外陰影 */    
}

.sys_btn.confirmbtn_cancel:hover {
    background: linear-gradient(to bottom,
        #FF7C7C 0%,
        #FF4A4A 20%,
        #FF2A2A 55%,
        #C81414 100%
    );
}

/* 訂單月曆 */

/* 外層容器 */
#bk_wrap{
  max-width: 980px;
  margin: 0 auto;
  padding: 0 10px;              /* 防止貼邊 */
  box-sizing: border-box;
  font-family: Arial, "Microsoft JhengHei", sans-serif;
}

/* 兩個月並排（寬度不足可縮/可換行） */
#bk_wrap .bk-row{
  display: flex;
  gap: 16px;
  justify-content: center;
  align-items: flex-start;
  flex-wrap: wrap;              /* 預設允許換行（小螢幕更穩） */
}

/* 月曆卡片（陰影 + 圓角 + 背景） */
#bk_wrap .bk-cal{
  width: auto;                  /* 不寫死 */
  max-width: 460px;             /* 桌機上限 */
  flex: 1 1 420px;              /* 可縮，理想基準 420 */
  min-width: 320px;             /* 小螢幕至少可看 */
  box-sizing: border-box;

  background: #fff;
  border-radius: 10px;
  box-shadow: 0 6px 18px rgba(0,0,0,.12);
  padding: 14px 14px 10px;
}

/* 標題列：固定高度，避免有無按鈕導致兩張卡高度不一致 */
#bk_wrap .bk-cal-header{
  display: grid;
  grid-template-columns: 40px 1fr 40px;
  align-items: center;
  height: 44px;                 /* ← 固定高度 */
  padding: 4px 0 8px;           /* 用 padding 控制間距 */
  margin: 0;                    /* 不用 margin 撐高度 */
  box-sizing: border-box;
}

/* 左右區塊：即使沒有按鈕也固定佔位 */
#bk_wrap .bk-cal-nav-left,
#bk_wrap .bk-cal-nav-right{
  width: 40px;
  height: 32px;                 /* ← 與按鈕同高 */
  display: flex;
  align-items: center;
  justify-content: center;
}

/* 月份標題：不要再用 margin */
#bk_wrap .bk-cal-title{
  margin: 0;
  line-height: 32px;            /* 與左右對齊更穩 */
  text-align: center;
}

/* 標題列按鈕：固定尺寸 */
#bk_wrap .bk-cal-btn{
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  font-size: 5rem;
}

#bk_wrap .bk-cal-btn:hover{
  background: #f5f8ff;
}

/* 表格 */
#bk_wrap .bk-cal-table{
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}

#bk_wrap .bk-cal-table th{
  font-size: 12px;
  color: #666;
  padding: 8px 0;
  border-bottom: 1px solid #eee;
}

/* 每格固定高度（6週已由 PHP 固定輸出） */
#bk_wrap .bk-cal-table td{
  height: 56px;
  text-align: center;
  vertical-align: top;
  border-bottom: 1px solid #f3f3f3;
  padding: 0;
}

/* 空白格 */
#bk_wrap td.bk-empty{
  background: transparent;
}

/* 日期 + 房數兩行固定佈局 */
#bk_wrap .bk-daynum{
  margin-top: 8px;
  font-size: 16px;
  line-height: 18px;
}

#bk_wrap .bk-rooms{
  margin-top: 4px;
  font-size: 14px;
  line-height: 16px;
  min-height: 16px;             /* 沒房也占位 */
  color: #d00;
}

/* 無房：仍顯示但不可點 */
#bk_wrap td.bk-unavailable{
  color: #bbb;
  cursor: default;
}

/* 有房可點 */
#bk_wrap td.bk-available{
  cursor: pointer;
  border-radius: 10px;
}

#bk_wrap td.bk-available:hover{
  background: #f5f8ff;
}

/* 選取藍底 */
#bk_wrap td.bk-selected{
  background: #1e6bff !important;
  color: #fff !important;
  border-radius: 10px;
}

#bk_wrap td.bk-selected .bk-rooms{
  color: #fff !important;
}

/* 區間淡藍（若你後續有加 range class） */
#bk_wrap td.bk-range{
  background: #cfe0ff !important;
  border-radius: 10px;
}

.roomsel_table {
    margin:auto;
    width: 250px;
    border-collapse: collapse;
    font-family: sans-serif;
    border-radius: 8px;
    overflow: hidden; /* 確保圓角效果 */
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}


.roomsel_table th {
    background-color: #f5f5f5;
    color: #666;
    font-weight: normal;
    padding: 10px;
    text-align: center;
}

.roomsel_table td {
    padding: 12px;
    text-align: center;
    background-color: #fff;
    border-bottom: 1px solid #eee;
    color: #333;
}

/* 斑馬紋效果，讓第二行顏色稍深（如附圖） */
.roomsel_table tr:nth-child(even) td {
    background-color: #f8fafb;
}

/* 自定義 Radio 按鈕樣式 (選配) */
.roomsel_table input[type="radio"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    display:block;
    margin:auto;
}

@media (max-width: 1023px) {
    #bk_wrap .bk-row{
        flex-wrap: nowrap;       /* 平板仍並排 */
        gap: 12px;
    }
    #bk_wrap .bk-cal{
        flex: 0 1 400px;         /* ← 關鍵：真的把卡片目標寬度變 400 */
        max-width: 400px;
        min-width: 0;            /* ← 關鍵：允許再縮一點避免溢出 */
    }

    .leftmenu  {
        width:50px;
    }
    .menudiv {
        position: absolute;
        display: block;
        top:0;
        background-color: #fff5e6;
        left: -280px;
        z-index: 9999;
        transition: left 0.3s ease;
    }
    .menu-toggle-btn {
        display: block;
        text-align: center;
        font-size: 3rem;
        font-weight: bold;
        margin-top: 14px;
        cursor:pointer;
    }
    .menudiv.show {
        left: 0;
    }    
}
