/* override menu top */
#search-nav {
    max-width: 550px;
}

.selected-profile {
    color:white !important;
}

.full-width {
    width: 100% !important;
}
/* end of menu top */

/* override sidebar */
.sidebar .nav-collapse li a .sub-item:before {
    content: '';
    height: 0px ! important ;
    width: 0px!important ;
    background: rgba(131, 132, 138, 0.89);
    position: absolute;
    left: -20px ! important ;
    top: 50% ! important ;
    transform: translateY(-50%);
    border-radius: 100%;
}

.sidebar .nav-collapse li a .sub-item {
    margin-left: 10px ! important;
}

.sidebar .nav-sub-item1 {
    padding-left: 20px;
    padding-right: 0px;
}

.sidebar .nav-sub-item2 {
    padding-left: 28px;
    padding-right: 0px;
}
/* end of sidebar */


/* ==== image ==== */
.square-container {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1; /* Forces a perfect square */
    overflow: hidden;
    /* padding-bottom: 1%; */
    /* This creates a 1:1 aspect ratio */
}

.square-container .content-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 15px;
}

.square-container label {
    margin-bottom: 10px;
}

.image-icon {
    width: 128px !important;
    height: 128px !important;
}
/* end of image */


/*
.message-notif-scroll.scrollbar-outer .notif-center a .notif-profile  {
    height: 100% !important;
}

button:disabled {
    cursor: not-allowed;
    opacity: 0.5;
    pointer-events: all !important;
}
*/

/* Change default text stack */
/*
body {
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif !important;
}

* {
  font-family: inherit;
}

body,
body p,
body span,
body div,
body td,
body th {
    color: #000000 !important;
}

.sidebar .nav > li h4,
.sidebar .nav > li p,
.sidebar .nav li.nav-item.active > a > p,
.sidebar .nav > .nav-item > a > .sub-item,
.sidebar .nav li > a,
.sidebar .nav li .nav-link {
    color: #000000 !important; 
}

.sidebar .nav li.active > a,
.sidebar .nav li > a:hover {
    color: #001bff !important;
}
*/

/* fix Input group icon size */
/*
.input-group {
    flex-wrap: nowrap;
}

.input-group-prepend {
    width : auto;
}

.input-group-prepend label {
    width: 100%;
    overflow: hidden;
}

.input-group-append > .input-group-icon {
    width : 100%;
    vertical-align: central;
    padding-left: 5px;
}

.title-icon {
    padding-right: 5px;
    color:blue;
}

.form-left-icon {
    color:blue;
}

.button-icon {
    font-size:12px;
    padding-right: 10px;
}



.paddingTop {
    padding-top: 5px;
}
*/

td.image-icon {
    width: 128px !important;
}

td.status-disable {
    color: rgba(255, 0, 0, 0.582) !important;
}
td.status-active {
    color: rgba(16, 82, 16, 0.889) !important;
}

.compact-select {
    padding-top: 7px !important;
    padding-left: 5px !important;
    padding-right: 5px !important;
}

/* form error message */
.form-group ul.has-error {
    padding-left: 0px;
}
.form-group ul.has-error li {
    color:red;
    font-size: 10px;
    list-style: none;
}
.form-group input.has-error {
    border-color: red;
}

input.has-error {
    border: 1px solid red !important;
    box-shadow: 0 0 3px rgba(255, 0, 0, 0.5) !important;
}

/* 針對 Focus 狀態也要變紅，否則點擊時會變回藍色 */
input.has-error:focus {
    border-color: red !important;
    box-shadow: 0 0 5px rgba(255, 0, 0, 0.8) !important;
}

td ul.has-error {
    padding-left: 0px;
}
td ul.has-error li {
    color:red;
    font-size: 10px;
    list-style: none;
}
/* form error message end */

.form-group .text-area {
    white-space: pre-line;
}

.form-group select {
    padding-top: 5px;
}

/*
.form-group.form-group-default label:not(.btn) {
    color:#000000 !important;
    text-transform: capitalize !important;
}

.form-group.form-group-default.popup {
    overflow: visible;
}
*/

.form-group.form-group-default.edit {
    border: 1px solid #35cd3a !important;
    color: greenyellow;
}

.form-check-default {
    background-color: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.07);
    border-radius: 4px;
    margin-top: 10px;
    padding-top: 7px;
    padding-left: 12px;
    padding-right: 12px;
    padding-bottom: 4px;
    overflow: hidden;
    width: 100%;
    -webkit-transition: background-color .2s ease;
    transition: background-color .2s ease;
    margin-bottom: 15px;
}
.form-check {
    padding-top: 5px;
    padding-left: 30px;
    padding-right: 12px;
    padding-bottom: 2px;
}

.imageTopRight {
    position: absolute;
    right: 10px;
    top: 10px;
    transform: translate(50%,-50%);
    z-index: 100;
}

/*
.status {
    margin-top: 20px;
    padding: 10px;
    border-radius: 4px;
}
.success {
    background-color: #dff0d8;
    color: #3c763d;
}
.error {
    background-color: #f2dede;
    color: #a94442;
}
.file-info {
    margin-top: 15px;
    padding: 10px;
    background-color: #f5f5f5;
    border-radius: 4px;
}
*/
/* end of form input type = file */

optgroup + [label] {
    color: red;
}

option {
    color: blue;
}

/*
file manager
*/
#file-manager h1 i {
    font-size: 36px;
    padding: 5px;
}

#file-manager h3 {
    padding: 5px;
}

.folder-box {
    position: relative;
    border: 1px;
    border-style: solid;
    width: 100%;
    height: 100%;
    min-width: 100px;
    min-height: 50px;
}

.file-box {
    position: relative;
    border: 1px;
    border-style: solid;
    width: 100%;
    height: 100%;
    min-width: 100px;
    min-height: 100px;
}

.folder-box .checkbox {
    position: absolute;
    left: 5px;
    bottom: 5px;
    margin: 0; /* Remove default margins */
}

.file-box .checkbox {
    position: absolute;
    left: 5px;
    bottom: 5px;
    margin: 0; /* Remove default margins */
}

.fitImage {
    width: 100%;
    height: 100%;
    max-width: 100px;
    max-height: 100px;
}

/* ================== Start of sort-icon in table header =====================*/
/* 所有th統一右邊距 */
.table thead th {
    position: relative;
    padding-right: 35px !important; /* 所有th都有相同的右邊距 */
    text-align: center; /* 預設置中 */
    white-space: nowrap;
}

/* 有文字內容的th（需要左對齊的） */
.table thead th:not(.text-center) {
    text-align: left;
}

/* 置中對齊的th */
.table thead th.text-center {
    text-align: center !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
}

/* 排序圖標容器 - 只出現在非置中的th中 */
.table thead th:not(.text-center) .sort-icons {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    width: 20px;
}

/* 文字部分 - 只針對有排序圖標的th */
.table thead th:not(.text-center) > :not(.sort-icons) {
    display: inline-block;
    max-width: calc(100% - 30px);
    overflow: hidden;
    text-overflow: ellipsis;
    vertical-align: middle;
}

/* 置中th的文字直接置中 */
.table thead th.text-center > :not(.sort-icons) {
    display: block;
    width: 100%;
    text-align: center;
}
/* ================== End of sort-icon in table header=====================*/

/*
shark last column of table
*/
.table td.fit,
.table th.fit {
    white-space: nowrap;
    width: 1%;
}
.table-hover tbody tr:hover td, .table-hover tbody tr:hover th {
    background-color: #cce7e8;
}

.table td .btn-link,
.table th .btn-link {
    padding-top: 1px !important;
    padding-bottom: 1px !important;
    padding-left: 3px !important;
    padding-right: 3px !important;
}

.datetime-cell {
    white-space: nowrap;
}
.datetime-two-lines {
    white-space: normal;
    line-height: 1.2;
}
.datetime-two-lines .date-part {
    white-space: nowrap;
    display: block;
}
.datetime-two-lines .time-part {
    white-space: nowrap;
    display: block;
}

.table .table-primary td, 
.table .table-primary th,
.table .table-success td, 
.table .table-success th,
.table .table-info td, 
.table .table-info th {
    padding-top: 5px !important;
    padding-bottom: 5px !important;
}


td .upload {
    cursor: pointer; /* "hand" cursor */
}


/*
azzara
*/
.notif-center a .notif-profile {
    display: inline-flex;
    height: 40px;
    margin: 10px;
    align-items: center;
    justify-content: center;
}

/* table head background states*/
.table-foot-bg-default tfoot {
    border: 1px solid #282a3c !important;
}

.table-foot-bg-primary tfoot {
    border: 1px solid #177dff !important;
}

.table-foot-bg-secondary tfoot {
    border: 1px solid #716aca !important;
}

.table-foot-bg-info tfoot {
    border: 1px solid #36a3f7 !important;
}

.table-foot-bg-success tfoot {
    border: 1px solid #35cd3a !important;
}

.table-foot-bg-warning tfoot {
    border: 1px solid #ffa534 !important;
}

.table-foot-bg-danger tfoot {
    border: 1px solid #f3545d !important;
}

.table-foot-bg-default tfoot th {
    background: #282a3c !important;
    color: #ffffff !important;
    border: 0px !important;
}

.table-foot-bg-primary tfoot th {
    background: #177dff !important;
    color: #ffffff !important;
    border: 0px !important;
}

.table-foot-bg-secondary tfoot th {
    background: #716aca !important;
    color: #ffffff !important;
    border: 0px !important;
}

.table-foot-bg-info tfoot th {
    background: #36a3f7 !important;
    color: #ffffff !important;
    border: 0px !important;
}

.table-foot-bg-success tfoot th {
    background: #35cd3a !important;
    color: #ffffff !important;
    border: 0px !important;
}

.table-foot-bg-warning tfoot th {
    background: #ffa534 !important;
    color: #ffffff !important;
    border: 0px !important;
}

.table-foot-bg-danger tfoot th {
    background: #f3545d !important;
    color: #ffffff !important;
    border: 0px !important;
}

/* === table width === */
tr th.date, tr td.date {
    text-align: center;
    min-width:95px;
}
tr th.code, tr td.code,
tr th.w-100, tr td.w-100
{
    width:100px;
    min-width:100px;
    max-width:100px;
}
tr th.productCode, tr td.productCode {
    min-width:150px;
    max-width:150px;
}
tr th.productName, tr td.productName {
    min-width:250px;
}
tr th.number, tr td.number {
    width:130px;
    min-width:130px;
    max-width:130px;
    text-align: center;
}
tr th.total, tr td.total {
    width:80px;
    min-width:80px;
    max-width:80px;
    text-align: center;
}

tr th.seq, tr td.seq {
    width:55px;
    text-align: center;
}

tr.align-row-top td {
    vertical-align: top !important;
    padding-top: .75rem; /* 根據你的表格間距調整，對齊第一個 input */
}

/* invoice/receipt total amount */
td.print-top {
    border: 1px solid #35cd3a !important;
    text-align: right;
    font-style: oblique;
    border-style: hidden;
}


table.print {
    width: 100%;
}

table.print tr td.higher {
    line-height: 1.5;
}

table.print tr td.vertical-center {
    vertical-align: middle;
}

table .border {
    border-left: 1px solid black !important;
    border-top: 1px solid black !important;
    border-right: 1px solid black !important;
    border-bottom: 1px solid black !important;
}

table.print {
    border-collapse: collapse !important;
}

table.print.border,
table.print tr.border td,
table.print tr.border th,
table.print td.border {
    border: 1px solid black !important;
    /*
    border-collapse: collapse !important;
    border-left: 1px solid black !important;
    border-top: 1px solid black !important;
    border-right: 1px solid black !important;
    border-bottom: 1px solid black !important;
    */
}

table.print td.border_bottom,
table.print tr.border_bottom td, 
table.print th.border_bottom,
table.print tr.border_bottom th {
    border-bottom: 1px solid black !important;
}

table.print tr.under-line2 td,
table.print tr.under-line2 th,
table.print td.under-line2,
table.print th.under-line2 {
    border-bottom: 1px solid black !important;
    border-style: double !important;
}

table.print td.border_left,
table.print tr.border_left td {
    border-left: 1px solid black !important;
}

table.print td.border_right,
table.print tr.border_right td {
    border-right: 1px solid black !important;
}

table.print td.border_top,
table.print tr.border_top td {
    border-top: 1px solid black !important;
}

table.print .padding {
    padding: 10px;
}
table.print .padding-left {
    padding-left: 10px;
}
table.print .padding-top  {
    padding-top: 10px;
}
table.print .padding-right {
    padding-right: 10px;
}
table.print .padding-bottom {
    padding-bottom: 10px;
}

table.print tr td, 
table.print tr th {
    color: black !important;
}

table.print tr td {
    font-size: 14 !important;
}

table.print.font12 tr td {
    font-size: 12px !important;
}

.font-bold {
    font-weight: bold !important;
}

/* === price tag ==== */
.price-tag {
    border: 1px solid #35cd3a !important;
    overflow: hidden;
    float: left;
    color: black; 
    width: 65mm;
    height: 39mm;
    max-height: 39mm;
    margin-bottom: 1mm;
}

.price-tag-divider {
    float: left;
    width: 2mm;
    height: 39mm;
    margin-bottom: 1mm;
}

.price-tag .title {
    height: 21mm;
    padding-top:  1mm;
    overflow: hidden;
    padding-left: 2mm;
    border-bottom: 1px solid #000 !important;
}

.price-tag .lower {
    height: 14mm;
    padding-top: 1mm;
    padding-left: 3mm;
}

.price-tag .barcode {
    float: left;
    width: 35mm;
}

.price-tag .price {
    float: left;
    text-align: center;
    vertical-align: middle;
}
