@charset "utf-8";
/* CSS Document */
/* 手機版側欄開關：收合時三線，展開時轉為 X。 */
.navbar .navbar-menu-wrapper .navbar-toggler.webcms-offcanvas-toggle {
  display: inline-grid;
  width: 38px;
  min-width: 38px;
  height: 38px;
  min-height: 38px;
  padding: 0;
  place-items: center;
  border: 1px solid currentColor;
  border-radius: 50%;
  background: #FFF;
  color: var(--main-color, var(--my-primary, #cb0505));
  transition: color .2s ease, background-color .2s ease, transform .2s ease;
}
.navbar .navbar-menu-wrapper .navbar-toggler.webcms-offcanvas-toggle:hover,
.navbar .navbar-menu-wrapper .navbar-toggler.webcms-offcanvas-toggle:focus {
  background: #F5F5F5;
  outline: 0;
}
.webcms-offcanvas-toggle__icon {
  position: relative;
  display: block;
  width: 17px;
  height: 14px;
}
.webcms-offcanvas-toggle__icon span {
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  transform-origin: center;
  transition: transform .22s ease, opacity .18s ease;
}
.webcms-offcanvas-toggle__icon span:nth-child(1) {
  top: 0;
}
.webcms-offcanvas-toggle__icon span:nth-child(2) {
  top: 6px;
}
.webcms-offcanvas-toggle__icon span:nth-child(3) {
  top: 12px;
}
.webcms-offcanvas-toggle.is-open .webcms-offcanvas-toggle__icon span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}
.webcms-offcanvas-toggle.is-open .webcms-offcanvas-toggle__icon span:nth-child(2) {
  opacity: 0;
}
.webcms-offcanvas-toggle.is-open .webcms-offcanvas-toggle__icon span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}
/* pagebar  */
ul.pagebar {
  text-align: center;
  margin: auto;
  margin-top: 16px;
}
ul.pagebar li {
  display: inline-block;
  width: 42px;
  line-height: 32px;
  text-align: center;
  background: #fff;
  color: var(--main-color);
  border: var(--main-color) 1px solid;
  border-radius: 3px;
  margin: 0 2px;
}
ul.pagebar li a {
  display: block;
  text-decoration: none;
  color: var(--main-color);
}
ul.pagebar li:hover {
  background: #A8A8A8;
  border: #A8A8A8 1px solid;
  border-radius: 3px;
}
ul.pagebar li:hover a {
  color: #FFF;
}
ul.pagebar li.active {
  color: #FFF;
  background: var(--main-color);
  border: var(--main-color) 1px solid;
}
/* button */
.recordBtn, .viewBtn,
.editBtn, .deleteBtn, .setBtn, .otherBtn {
  display: inline-block;
  margin: 0 6px 1px 0 !important;
}
.editBtn {
  color: #65BE3D;
}
.deleteBtn {
  color: #4F4F4F;
}
.cancelBtn {
  color: #EF433C;
}
.setBtn {
  color: #16ADB7;
}
/*沒用到*/
.otherBtn {
  color: #E15D06;
}
/*沒用到*/
/* text type */
.txt11 {
  font-size: 11px;
}
.txt12 {
  font-size: 12px;
}
.txt13 {
  font-size: 13px;
}
.txt14 {
  font-size: 14px;
}
.txt15 {
  font-size: 15px;
}
.txt16 {
  font-size: 16px;
}
.txt17 {
  font-size: 17px;
}
.txt18 {
  font-size: 18px;
}
.txt24 {
  font-size: 24px;
}
.txtB {
  font-weight: bold;
}
.txtN {
  font-weight: normal;
}
.txtBlack {
  color: #000;
}
.txtNavy {
  color: #069;
}
.txtLightBlue {
  color: #9fd0e3;
}
.txtBlue {
  color: #4ca4de;
}
.txtBrown {
  color: #b5730f;
}
.txtGreen {
  color: #539a14;
}
.txtGray {
  color: #919295;
}
.txtOrange {
  color: #f86d11;
}
.txtPurple {
  color: #975f7a;
}
.txtRed {
  color: #e23a3b;
}
.txtYellow {
  color: #ff9;
}
.txtPink {
  color: #f56f6c;
}
.txtWhite {
  color: #fff;
}
span.tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 500;
  line-height: 1.3;
  white-space: nowrap;
}
.tag_gray {
  background: #e2e2e2;
  color: #939393;
}
.tag_yellow {
  background: #f7f093;
  color: #696638;
}
/*#f6aa00*/
.tag_orange {
  background: #f6aa00;
  color: #fff;
}
.tag_blue {
  background: #b4e1f3;
  color: #3f6a7b;
}
.tag_green {
  background: #c8f9b4;
  color: #578245;
}
.tag_red {
  background: #f7b4b4;
  color: #774e4e;
}
.tag_purple {
  background: #814863;
  color: #fff;
}
.tag_navy {
  background: #437a9a;
  color: #fff;
}
.tag_red_border {
  background: #FFF;
  border: 1px #DF4A50 solid;
  color: #DF4A50;
}
.tag_navy_border {
  background: #FFF;
  border: 1px #437a9a solid;
  color: #437a9a;
  padding: 2px 6px !important;
  margin-top: 4px;
}
.error {
  color: #f56e81;
}
/* width */
.w40 {
  width: 40px;
}
.w50 {
  width: 50px;
}
.w60 {
  width: 60px;
}
.w80 {
  width: 80px;
}
.w100 {
  width: 100px;
}
.w150 {
  width: 150px;
}
.w180 {
  width: 180px;
}
.w200 {
  width: 200px;
}
.w250 {
  width: 250px;
}
.w300 {
  width: 300px;
}
.w350 {
  width: 350px;
}
.w400 {
  width: 400px;
}
.w500 {
  width: 500px;
}
.w600 {
  width: 600px;
}
.w700 {
  width: 700px;
}
.w800 {
  width: 800px;
}
.w20p {
  width: 20%;
}
.w30p {
  width: 30%;
}
.w40p {
  width: 40%;
}
.w50p {
  width: 50%;
}
.w60p {
  width: 60%;
}
.w70p {
  width: 70%;
}
.w80p {
  width: 80%;
}
.w90p {
  width: 90%;
}
.heading {
  margin-bottom: 36px;
}
.heading span {
  background: var(--main-color);
  color: #FFF;
  font-weight: 600;
  padding: 4px 8px;
  z-index: 1;
  border-radius: 6px 6px 0 0;
}
.heading hr {
  margin-top: 2px;
  border-bottom: var(--main-color) 1px solid;
}
/* notify block */
.notify-primary,
.notify-danger,
.notify-warning,
.notify-success {
  border-radius: 3px;
  text-align: left;
  margin: 8px 0;
  padding: 6px 12px;
  line-height: 1.2em;
  font-size: 0.9em;
  width: auto;
}
.notify-primary {
  background-color: #E7F5FE;
  color: #5574AC;
  border: #98D2F6 1px solid;
}
.notify-danger {
  background-color: #FDE8E8;
  color: #AF5F5F;
  border: #FFA4A4 1px solid;
}
.notify-warning {
  background-color: #FBF7E6;
  color: #D4A039;
  border: #F3E58F 1px solid;
}
.notify-success {
  background-color: #EEFFE2;
  color: #6D865B;
  border: #A2DA70 1px solid;
}
/* ------------------------ { other } -------------------- */
.imgPreload img {
  width: 100%;
  height: auto;
}
.imgBorder {
  border: #ddd 1px solid;
  background: #fff;
  padding: 2px;
  margin: 0 2px;
}
.jDate {
  background: #FFF url(/assets/images/calendar.png) no-repeat right;
  background-position-x: 96%;
  background-position-y: center;
}
.clear {
  clear: both;
}
.__nav > a {
  margin-bottom: 6px;
}
/* -------------------- { 開關切換 } -------------------- */
.switch {
  position: relative;
  width: 40px;
  margin-top: 6px;
}
/* 原checkbox樣式隱藏 */
.switch_checkbox {
  display: none;
}
/* 主外框 */
.switch_label {
  display: block;
  overflow: hidden;
  cursor: pointer;
  border: 1px solid #ADBAC9;
  border-radius: 15px;
}
/* 背景 */
.switch_inner {
  display: block;
  width: 200%;
  margin-left: -100%;
  transition: margin 0.12s ease-in 0s;
}
.switch_inner:before, .switch_inner:after {
  display: block;
  float: left;
  width: 50%;
  /* before和after各佔50% */
  height: 18px;
  /* 全按鈕高度 */
  line-height: 18px;
  /* ON OFF文字高度 */
  color: white;
  font-family: Trebuchet, Arial, sans-serif;
  font-weight: bold;
  box-sizing: border-box;
}
/* ON */
.switch_inner:before {
  content: "";
  background-color: #0d6efd;
}
/* OFF */
.switch_inner:after {
  content: "";
  background-color: #FFF;
  text-align: right;
}
/* 上面的小圓 */
.switch_circle {
  display: block;
  margin: 0px;
  /* 小圓距離上下左右margin */
  width: 12px;
  /* 小圓寬度 */
  height: 12px;
  /* 小圓高度 */
  position: absolute;
  top: 4px;
  /* 距離上邊緣 左右是和一開始的位置有關 */
  right: 22px;
  /* uncheck時 小圓移動到離右側距離XXpx位置 */
  background-color: #ADBAC9;
  border-radius: 100px;
  transition: right 0.12s ease-in 0s;
}
.switch_checkbox:checked + .switch_label {
  border: 1px solid #0d6efd;
}
/* label和背景的移動 */
.switch_checkbox:checked + .switch_label .switch_inner {
  margin-left: 0;
}
/* label和上面小圓的移動 */
.switch_checkbox:checked + .switch_label .switch_circle {
  right: 5px;
  background: #FFF;
}
/* 導覽與登入身份 */
/* 明確分開操作人、代管身份與目前網店 */
.dealer-context-navbar .dealer-store-nav {
  flex: 1;
  min-width: 0;
  margin-right: 18px;
}
.dealer-context-navbar .dealer-current-store {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  max-width: 100%;
  min-width: 0;
  min-height: 28px;
  padding: 4px 8px;
  border: 1px solid #d6dee5;
  border-radius: 4px;
  background: #f8fafc;
  font-size: 12px;
  line-height: 1.4;
  text-decoration: none;
}
.dealer-current-store .mdi {
  font-size: 14px;
  flex-shrink: 0;
}
.dealer-context-navbar .dealer-current-store:hover {
  border-color: #8ca8bb;
  background: #edf4f8;
  text-decoration: none;
}
.navbar.dealer-context-navbar .shopName .dealer-current-store,
.navbar.dealer-context-navbar .shopName .dealer-current-store:hover,
.navbar.dealer-context-navbar .shopName .dealer-current-store:focus,
.navbar.dealer-context-navbar .shopName .dealer-current-store:visited {
  color: #47667d;
  font-weight: 600;
}
.navbar.dealer-context-navbar .dealer-current-store .mdi,
.navbar.dealer-context-navbar .dealer-current-store .dealer-store-name {
  color: inherit;
}
.dealer-current-store:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 3px;
}
.dealer-current-store .dealer-store-label {
  color: #84909b;
  font-size: 11px;
  font-weight: 400;
  white-space: nowrap;
}
.dealer-current-store .dealer-store-name {
  min-width: 0;
  max-width: 220px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 12px;
}
.navbar.dealer-context-navbar .navbar-menu-wrapper .navbar-nav .dealer-cart-nav {
  margin: 0 12px 0 0;
}
.navbar.dealer-context-navbar .navbar-menu-wrapper .navbar-nav .dealer-identity {
  margin: 0;
}
.navbar.dealer-context-navbar .dealer-identity .dealer-identity-trigger {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 6px 10px;
  border: 1px solid #dce3e8;
  border-radius: 6px;
  background: #fafcfd;
}
.dealer-identity-icon {
  color: #718292;
  font-size: 26px;
  line-height: 1;
}
.dealer-identity-text {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
  text-align: left;
}
.dealer-identity-label {
  color: #718292;
  font-size: 10px;
  font-weight: 600;
  line-height: 1.2;
}
.dealer-identity-name {
  display: block;
  max-width: 170px;
  overflow: hidden;
  text-overflow: ellipsis;
  color: #34414c;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.3;
}
.navbar.dealer-context-navbar .dealer-identity--managed .dealer-identity-trigger {
  border-color: #e5c992;
  background: #fff8eb;
}
.dealer-identity--managed .dealer-identity-icon, .dealer-identity--managed .dealer-identity-label {
  color: #996312;
}
.dealer-identity-summary {
  width: 260px;
  max-width: calc(100vw - 48px);
  box-sizing: border-box;
  margin: 10px 10px 6px;
  padding: 14px 16px;
  border: 1px solid #e3e7eb;
  border-radius: 8px;
  background: #f5f6f7;
  white-space: normal;
  cursor: default;
}
.dealer-identity-summary-label {
  display: block;
  margin-bottom: 6px;
  color: #7c8995;
  font-size: 11px;
}
.dealer-identity--managed .dealer-identity-summary-label {
  color: #996312;
}
.dealer-identity-summary strong {
  display: block;
  color: #34414c;
  font-size: 16px;
  line-height: 1.5;
  overflow-wrap: anywhere;
}
.dealer-identity-summary dl {
  display: grid;
  grid-template-columns: 32px minmax(0,1fr);
  gap: 7px 12px;
  margin: 13px 0 0;
  padding-top: 12px;
  border-top: 1px solid #e3e7eb;
  font-size: 12px;
  line-height: 1.5;
}
.dealer-identity-summary dt {
  color: #84909b;
  font-weight: 400;
}
.dealer-identity-summary dd {
  margin: 0;
  color: #4f5d68;
  overflow-wrap: anywhere;
}
@media (max-width:991px) {
  .navbar.dealer-context-navbar .navbar-menu-wrapper .navbar-nav-right {
    flex-shrink: 0;
  }
  .navbar.dealer-context-navbar .navbar-menu-wrapper .webcms-offcanvas-toggle {
    flex-shrink: 0;
    margin-left: 10px;
  }
  .dealer-context-navbar .dealer-store-nav {
    display: flex;
    min-width: 0;
    margin-right: 6px;
  }
  .navbar.dealer-context-navbar .dealer-store-nav .shopName {
    min-width: 0;
    max-width: 100%;
    margin: 0;
  }
  .dealer-current-store .dealer-store-label {
    display: none;
  }
  .navbar.dealer-context-navbar .navbar-menu-wrapper .navbar-nav .dealer-cart-nav {
    margin-right: 8px;
  }
  .dealer-identity-name {
    max-width: 120px;
  }
}
@media (max-width:575px) {
  .navbar.dealer-context-navbar .navbar-menu-wrapper {
    padding-left: 8px;
    padding-right: 8px;
  }
  .navbar.dealer-context-navbar .dealer-identity .dealer-identity-trigger {
    gap: 7px;
    height: 38px;
    box-sizing: border-box;
    padding: 4px 9px;
    border-radius: 7px;
  }
  .dealer-identity-text {
    gap: 2px;
  }
  .dealer-identity-label {
    font-size: 9px;
    white-space: nowrap;
  }
  .navbar.dealer-context-navbar .dealer-identity--managed .dealer-identity-trigger {
    border-color: #e8d8b8;
    background: #fcf8ef;
  }
  .dealer-identity-name {
    max-width: 72px;
    font-size: 12px;
  }
  .dealer-identity-icon {
    display: none;
  }
  .dealer-context-navbar .dealer-current-store {
    gap: 4px;
    padding: 4px 6px;
  }
  .navbar.dealer-context-navbar .dealer-cart-nav .mdi {
    margin-left: 4px!important;
    margin-right: 4px!important;
  }
}
li.shopName {
  font-size: 1rem;
}
.navbar .navbar-menu-wrapper .navbar-nav .nav-item.dropdown .count-indicator .count {
  top: 1px;
  font-size: 1em;
  width: auto;
  padding: 0 6px 2px 6px;
  border-radius: 5px;
  height: 1.4em;
  line-height: 1.4em;
  color: #FFF;
}
/* 與總後台一致；盤商後台以 shopColor 作為側欄主色。 */
#sidebar {
  --sidebar-main: var(--main-color);
  --sidebar-soft: color-mix(in srgb, var(--sidebar-main) 9%, white);
  --sidebar-hover: color-mix(in srgb, var(--sidebar-main) 16%, white);
  --sidebar-active-hover: color-mix(in srgb, var(--sidebar-main) 82%, white);
  --sidebar-text: color-mix(in srgb, var(--sidebar-main) 75%, black);
  background-color: #FFF;
}
#sidebar > .nav {
  margin-top: 0;
}
#sidebar > .nav > .nav-item {
  background: transparent;
}
#sidebar > .nav > .nav-item > .nav-link {
  color: #333;
  background: transparent;
  transition: background-color .15s ease, color .15s ease;
}
#sidebar .nav .nav-item > .nav-link i.menu-icon,
#sidebar .nav .nav-item > .nav-link .menu-title,
#sidebar .nav .nav-item > .nav-link .menu-arrow {
  color: inherit;
}
#sidebar > .nav > .nav-item > .nav-link[aria-expanded="true"] {
  color: var(--sidebar-text);
  background-color: var(--sidebar-soft);
}
#sidebar > .nav > .nav-item > .nav-link:hover,
#sidebar > .nav > .nav-item > .nav-link:focus-visible {
  color: var(--sidebar-text);
  background-color: var(--sidebar-hover);
}
#sidebar .nav.sub-menu {
  padding: 6px 0 10px;
  background-color: var(--sidebar-soft);
}
#sidebar .nav.sub-menu .nav-item {
  background: transparent;
}
#sidebar .nav.sub-menu .nav-item::before {
  display: none;
}
#sidebar .nav.sub-menu .nav-link {
  margin-left: 3.2rem;
  padding: .6rem 1rem .6rem 1.7rem;
  color: var(--sidebar-text);
  background: transparent;
  border-radius: 0;
  line-height: 1.4;
  transition: background-color .15s ease;
}
#sidebar .nav.sub-menu .nav-link:hover,
#sidebar .nav.sub-menu .nav-link:focus-visible {
  color: var(--sidebar-text);
  background-color: var(--sidebar-hover);
}
#sidebar > .nav > .nav-item.active > .nav-link,
#sidebar > .nav > .nav-item.active > .nav-link[aria-expanded="true"] {
  color: #FFF;
  background-color: var(--sidebar-main);
}
#sidebar > .nav > .nav-item.active > .nav-link:hover,
#sidebar > .nav > .nav-item.active > .nav-link:focus-visible {
  color: #FFF;
  background-color: var(--sidebar-active-hover);
}
#sidebar > .nav > .nav-item.active .nav.sub-menu {
  background-color: var(--sidebar-main);
}
#sidebar > .nav > .nav-item.active .nav.sub-menu .nav-link {
  color: #FFF;
}
#sidebar > .nav > .nav-item.active .nav.sub-menu .nav-link:hover,
#sidebar > .nav > .nav-item.active .nav.sub-menu .nav-link:focus-visible,
#sidebar > .nav > .nav-item.active .nav.sub-menu .nav-link.active {
  color: #FFF;
  background-color: var(--sidebar-active-hover);
}
#sidebar .nav.sub-menu .nav-link.active {
  font-weight: 600;
}
#sidebar .nav.sub-menu .nav-link.active::before {
  content: '';
  position: absolute;
  left: .55rem;
  top: 50%;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: currentColor;
  transform: translateY(-50%);
}

/* 所有排序列表只由點狀把手拖曳，游標採上下箭頭。 */
.backend-sort-handle { display: inline-flex; align-items: center; justify-content: center; padding: 2px 4px; border: 0; background: transparent; color: #8a939a; font-size: 1.25rem; line-height: 1; cursor: ns-resize; }
.backend-sort-handle i, .backend-sort-handle:active { cursor: ns-resize; }
.backend-sort-handle[type="button"]:not(:disabled) { cursor: ns-resize; }
.backend-sort-handle:focus-visible { outline: 2px solid #84909b; outline-offset: 2px; }

/* 後台新增、上一頁、送出按鈕統一尺寸。 */
.btn.backend-add-button,
.btn.backend-back-button,
.btn.backend-submit-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  height: 32px;
  min-height: 32px;
  padding: 0 12px;
  border: 1px solid transparent;
  border-radius: 2px;
  font-size: 14px;
  line-height: 1;
  vertical-align: middle;
  white-space: nowrap;
  text-decoration: none;
}
.btn.backend-back-button,
.btn.backend-back-button:focus,
.btn.backend-back-button:active {
  color: #4d83ff;
  border-color: #4d83ff;
  background: #fff;
}
.btn.backend-back-button:hover {
  color: #3268d9;
  border-color: #3268d9;
  background: #edf3ff;
  text-decoration: none;
}
.btn.backend-add-button,
.btn.backend-add-button:focus,
.btn.backend-add-button:active {
  color: #fff;
  border-color: #4d83ff;
  background: #4d83ff;
}
.btn.backend-add-button:hover {
  color: #fff;
  border-color: #3268d9;
  background: #3268d9;
}
.btn.backend-submit-button,
.btn.backend-submit-button:focus,
.btn.backend-submit-button:active {
  color: #fff;
  border-color: #606060;
  background: #606060;
}
.btn.backend-submit-button:hover {
  color: #fff;
  border-color: #484848;
  background: #484848;
}
.btn.backend-submit-button > i { font-size: inherit; line-height: 1; margin: 0; }
.btn.backend-add-button:focus-visible,
.btn.backend-submit-button:focus-visible { outline: 2px solid #4d83ff; outline-offset: 2px; }
.btn.backend-back-button:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 2px;
}
.btn.backend-back-button > i { font-size: inherit; line-height: 1; margin: 0; }
.btn.backend-add-button > i { font-size: inherit; line-height: 1; margin: 0; }
.backend-list-toolbar { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; }
.backend-toolbar-note.notify-primary { display: inline-flex; align-items: center; gap: 6px; margin: 0; padding: .5rem .81rem; min-height: 32px; font-size: .875rem; line-height: 1; }
.backend-toolbar-note > i { font-size: inherit; line-height: 1; margin: 0; flex: 0 0 auto; }

/* 欄位補充在右側：金黃色括號說明，紅色必填標記。 */
.backend-label-note { color: #a87800; }
.backend-required { color: #d32f2f; white-space: nowrap; }
