@charset "UTF-8";
/* 工程師開發中如需添加css寫在這個檔案, 開新專案時清空此處----------------------------- */
/* 將一些文字預設改為純黑 */
:root {
  --text-color: black
}
body .ui-menu .ui-menu-list .ui-menuitem.ui-menuitem-active>.ui-menuitem-link .ui-menuitem-text,
body .ui-menu .ui-menu-list .ui-menuitem .ui-menuitem-link .ui-menuitem-text,
body .ui-datatable .ui-datatable-data>tr{
  color: black;
}

.table-no-select-all .ui-chkbox-all {
  display: none !important;
}

/* 將p:panelGrid的格子背景改為透明 */
body .ui-panelgrid .ui-panelgrid-cell{
  background: transparent;
}

/*  表單form-row增加框線 */
.formPage-table {
  border: 1px solid #ced4da;
}

.formPage-table .form-row {
  padding: 0 !important;
}

.formPage-table .form-row > div {
  border: 1px solid #ced4da;
  padding: 2px 5px;
}

.button-group {
  display: flex;
  justify-content: space-between;
  gap: 10px;
}
/*  客製漸層背景按鈕 */
body .ui-button,
.ui-button.btn-border {
  background: linear-gradient(#f7f7f7 0%, #e3e2e2 100%) !important;
  border-color: #bab9b9 !important;
  color: #495057 !important;
  box-shadow: 1px 1px 2px #e0dfdf !important;
}

body .ui-button:hover,
.ui-button.btn-border:hover {
  background: linear-gradient(#f2f2f2 0%, #d6d5d5 100%) !important;
  border-color: #cfcdcd !important;
  color: #495057 !important;
  box-shadow: 0px 0px 0px #e0dfdf !important;
}

body .ui-button.error,
.ui-button.btn-border.error {
  background: linear-gradient(#f36292 0%, #d4376b 100%) !important;
  border-color: #da3169 !important;
  color: #ffffff !important;
  box-shadow: 1px 1px 2px #e0dfdf !important;
}

body .ui-button:hover.error,
.ui-button.btn-border.error:hover {
  background: linear-gradient(#f36292 0%, #d4376b 100%) !important;
  border-color: #ee3f79 !important;
  color: #ffffff !important;
  box-shadow: 0px 0px 0px #e0dfdf !important;
}

.ui-button:focus {
  box-shadow: none !important;
}
/* 客製table動作按鈕 */
body .table-btn .ui-button {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  color: #2196f3 !important;
}

body .table-btn .ui-button:hover {
  color: #aedbff !important;
}

/*  客製p:accordionPanel元件 */
.custom-accordion .ui-accordion-header{
  padding: 5px 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
}
.custom-accordion  .ui-accordion-header > .ui-icon{
  color: #2196f3 !important;
}
.custom-accordion .ui-accordion-content{
  padding: 0 25px 5px !important;
  border: 0 !important;
  background: transparent !important;
}

/*  input,select的最小寬度 */
.min-145px {
  min-width: 145px !important;
}

.min-200px {
  min-width: 200px !important;
}

/*  dialog的最大高度 */
.ui-dialog .ui-dialog-content {
  max-height: 90vh;
}

/*  移除confirmDialog內容區的alert icon */
.ui-confirm-dialog .ui-dialog-content .ui-icon.ui-confirm-dialog-severity {
  display: none;
}

.ui-confirm-dialog .ui-dialog-footer .ui-button {
  line-height: 1;
}

/*  客製登入頁排版----------------------------------- */
.login-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  min-height: 100vh;
  background: url("/GSSCM/javax.faces.resource/images/login-bg.jpg.xhtml");
  background-size: cover;
}

.login-box {
  display: flex;
  flex-wrap: wrap;
  width: 100%;
  max-width: 1800px;
  padding-bottom: 10px;
}
.login-header,
.login-header img {
  width: 100%;
}
.login-box .login-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  width: 450px;
  max-width: 500px;
  padding: 20px 45px 15px;
  background: white;
  overflow: auto;
  box-shadow: 0 0 6px rgba(0, 0, 0, 0.3);
}

/*  logo及標題 */
.login-wrapper .logoBar {
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 65px;
  padding: 10px 15px;
  background-color: white;
  z-index: 1;
}

.login-wrapper .logoBar .logo {
  height: 45px;
}

.login-wrapper .logoBar .title {
  font-size: 1.5rem;
  font-weight: bold;
  text-align: center;
  margin-right: 10px;
}
.login-wrapper .logoBar .title-en {
  font-size: 1.5rem;
  font-weight: bold;
  text-align: center;
}
/*  登入表單 */
.login-card .content {
  width: 100%;
}

.login-card .content .login-form {
  display: flex;
  flex-direction: column;
  padding: 0 15px;
}

.login-form .ui-password .ui-password-icon {
  top: calc(50% - 4px) !important;
}

/*  最新公告 */
.login-box .announcement-card {
  height: 336px;
  box-shadow: 0 0 6px rgba(0, 0, 0, 0.3);
}

/*  驗證碼圖片 */
.kaptcha {
  width: 100%;
  min-height: 40px;
}

/*  驗證碼圖片 */
.kaptcha-image {
  width: 100%;
  cursor: pointer;
}
/*  登入按鈕 */
.login-btnBar {
  display: flex;
}
.login-btnBar button {
  justify-content: center;
  flex: 1;
  height: 35px;
}
.btn-login {
  flex: 2 !important;
  background: #2196f3 !important;
  color: white !important;
}
.btn-login:hover {
  background: #0d89ec !important;
  color: white !important;
}

/*  忘記密碼 */
.btn-forgetPassword {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: #0d89ec;
}
.btn-forgetPassword:hover {
  color: #0d89ec;
}
.btn-forgetPassword img {
  display: inline-block;
  width: 14px;
  filter: invert(55%) sepia(66%) saturate(4059%) hue-rotate(184deg)
    brightness(99%) contrast(92%);
}

/*  歡迎頁 */
.welcome-page {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.welcome-page .bg-welcome {
  position: absolute;
  top: 10px;
  left: calc(65vh / 2);
  width: 65vw;
  min-width: 900px;
  opacity: .2;
}

.welcome-page .bulletinBox{
  width: 85%;
  z-index: 1;
}

/*  頁腳版權聲明 */
.login-wrapper .footer {
  width: 100%;
  margin-top: 8px;
  margin-left: 60px;
  text-align: center;
  font-size: 0.85rem;
  text-align: center;
}


/*  各種SVG Icon----------------------------------- */
/*  想更改顏色可使用此處將色碼轉換filter值 https:/* codepen.io/sosuke/pen/Pjoqqp */
.login-form .icon-tips {
  width: 14px;
  height: 14px;
  padding-bottom: 5px;
  filter: invert(31%) sepia(57%) saturate(1795%) hue-rotate(205deg)
    brightness(93%) contrast(86%);
}

.login-form .icon-tips + span {
  line-height: 1;
}

.icon-tooltip {
  cursor: pointer;
  filter: invert(28%) sepia(53%) saturate(1146%) hue-rotate(192deg)
    brightness(90%) contrast(96%);
}

.header .icon-user {
  width: 18px;
  height: 18px;
  filter: invert(28%) sepia(53%) saturate(1146%) hue-rotate(192deg)
    brightness(90%) contrast(96%);
}

/*  客製view表格修改----------------------------------------------- */

/* View/Form頁面標題 */
.pageTitle {
  position: relative;
  display: inline-flex;
  align-items: center;
  height: 40px;
  padding: 5px 15px;
  margin-left: 5px;
  font-size: 1.3rem;
  font-weight: bold;
  color: #2c4b9c;
}
.pageTitle:before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 99px;
  margin-right: 5px;
  background-color: #2c4b9c;
}

/*  table表格增加框線 */
.ui-datatable-header {
  border: 0.5px solid #dbdbdb !important;
  border-bottom: 0 !important;
}
.ui-datatable
  thead:not(.ui-datatable-scrollable-theadclone)
  th:not(.ui-datatable-frozenlayout-left):not(.ui-datatable-frozenlayout-right),
.ui-datatable
  td:not(.ui-datatable-frozenlayout-left):not(.ui-datatable-frozenlayout-right) {
  border: 0.5px solid #dbdbdb;
}
/* table表格底色 */
.ui-datatable thead th {
  background: linear-gradient(180deg, white, #e6ecff) !important;
}

/* radio元件、checkbox元件移除框線 */
.ui-datatable .ui-selectoneradio td,
.ui-datatable .ui-selectmanycheckbox td {
  border: 0 !important;
}

/*  出貨表單table header */
.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

/*  menuSettingForm頁面表格強制換行 */
.menuSettingFormTable .menuSetting-permission tr {
  display: flex;
  flex-wrap: wrap;
}

.menuSettingFormTable .menuSetting-permission tr td {
  width: 50%;
}

.menuSettingFormTable .menuSetting-status tr {
  display: flex;
  flex-direction: column;
}

/* view、form整體間距變窄 */
/* form頁面tab頁籤 */
.ui-tabs-panel {
  padding: 0.5rem 1rem !important;
}
.ui-tabs-header {
  padding: 0.7rem 1rem !important;
}

/* 調整datatable的滾軸寬度和顏色 讓客戶使用時更方便 */
 @supports (scrollbar-width: auto) {
.ui-datatable-scrollable-body, .ui-datatable-tablewrapper{ 
  scrollbar-color:#6183ff #efefef ; 
  scrollbar-width: auto;
 }  
} 
@supports not (scrollbar-width: auto) {
  /* 調整datatable的滾軸寬度和顏色 讓客戶使用時更方便 */
.ui-datatable-scrollable-body::-webkit-scrollbar, .ui-datatable-tablewrapper::-webkit-scrollbar {
  height: 12px !important; 
}
.ui-datatable-scrollable-body::-webkit-scrollbar-thumb, .ui-datatable-tablewrapper::-webkit-scrollbar-thumb {
   background:#6183ff;
 }
 .ui-datatable-scrollable-body::-webkit-scrollbar-track, .ui-datatable-tablewrapper::-webkit-scrollbar-track {
   background:#efefef;
 }
}
/* 調整凍結欄位的寬度為表格寬度的20% */
#monthPurchaseTable .ui-datatable-frozenlayout-left {
  width: 80% !important;
}

/* 調整非凍結欄位的寬度為表格寬度的80% */
#monthPurchaseTable .ui-datatable-frozenlayout-right {
  width: 20% !important;
}

/*  客製form頁面修改----------------------------------------------- */

/* 隱藏edge瀏覽器的密碼顯示圖示 */
input[type="password"]::-ms-reveal {
  display: none;
}

/* 小標題 */
.form-title {
  display: block;
  font-size: 1.2rem;
  font-weight: bold;
  color: #1a357a;
  &:before {
    content: "◆ ";
  }
}

/* 表單Label */
.form-label {
  background: #f0f3ff;
}

/* 最後更新小字 */
.lastUpdate {
  font-size: 0.85rem !important;
  padding-left: 5px;
  margin-top: 5px;
}
.lastUpdate span {
  font-size: 0.85rem !important;
}

/* 應客戶要求，將原本顯示在右上角的PrimeFace訊息更改到上方中央 */
div.ui-growl {
  display: fixed;
  top: 40%;
  left: 50%;
  right: 0;
  margin-left: -150px;
}

/* 修正角色權限Form有expandedRow參數的table上方出現灰條的問題 */
.ui-datatable.expandedRow-table
  thead:not(.ui-datatable-scrollable-theadclone)
  tr
  th:not(.ui-datatable-frozenlayout-left):not(.ui-datatable-frozenlayout-right) {
  padding: 0 !important;
  border: 0;
}

.ui-datatable tfoot td{
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    padding-right: 7px !important;
    padding-left: 7px !important;
}

@media (min-width: 1920px) {
    .ui-datatable {
        width: auto; /* 或者其他适合的宽度 */
    }
}
