@charset "utf-8";

/* 表單操作：送出與返回並排，桌機／手機共用同一規則。 */
.backend-form-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
.backend-form-actions.mobileBtn { display: none; }
@media (max-width: 767px) {
  .backend-form-actions.compBtn { display: none; }
  .backend-form-actions.mobileBtn { display: flex; }
}

/* 空列表提示：沿用列表字級與灰色文字，不新增卡片。 */
.table td.backend-list-empty,
.list_content_mobile .backend-list-empty {
  padding: 24px 12px;
  color: var(--list-muted-color, #84909b);
  font-size: var(--list-text-size, 14px);
  line-height: 1.5;
  text-align: center;
}
/* 空資料列不參與滑鼠拖曳，避免排序列表把提示當成資料。 */
.backend-list-empty-row { pointer-events: none; }
/* Bootstrap / Template 共用重訂；功能樣式不放在此處。 */
body * {
  font-family: \5FAE\8EDF\6B63\9ED1\9AD4,\65B0\7D30\660E\9AD4, Tahoma, Monaco, sans-serif;
}
.mobileBtn {
  display: none;
}
@media (max-width: 767px) {
  .compBtn {
    display: none;
  }
  .mobileBtn {
    display: block;
  }
}
/* 列表字級集中定義；標題靠字重區分，不以過大字體搶視覺。 */
:root {
  --list-text-size: 14px;
  --list-meta-size: 12px;
  --list-text-color: #343a40;
  --list-muted-color: #84909b;
}
.table {
  font-size: var(--list-text-size);
  color: var(--list-text-color);
}
.table thead th {
  font-size: var(--list-text-size);
  font-weight: 600;
}
.table th, .table td {
  line-height: 1.5;
}
.table small, .table .small {
  font-size: var(--list-meta-size);
}
.list_content_mobile {
  font-size: var(--list-text-size);
  line-height: 1.6;
}
.list_content_mobile .form-group > label {
  font-size: var(--list-meta-size);
  font-weight: 500;
  color: var(--list-muted-color);
  line-height: 1.5;
  margin-bottom: 5px;
}
.list_content_mobile .form-group > div {
  font-size: var(--list-text-size);
  line-height: 1.6;
}
/* ------------------------ { button } -------------------- */
/* btn-primary */
.btn-primary {
  background-color: var(--my-primary);
  border-color: var(--my-primary);
}
.btn-primary:active,
.btn-primary:focus,
.btn-primary:hover {
  background-color: var(--my-primary-hover);
  border-color: var(--my-primary-hover);
}
.btn-primary:not(:disabled):not(.disabled):active,
.btn-primary:not(:disabled):not(.disabled).active,
.show > .btn-primary.dropdown-toggle {
  background-color: var(--my-primary-active);
  border-color: var(--my-primary-active);
}
.btn-primary:not(:disabled):not(.disabled):active:focus,
.btn-primary:not(:disabled):not(.disabled).active:focus,
.show > .btn-primary.dropdown-toggle:focus {
  box-shadow: 0 0 0 0.2rem rgba(128, 128, 128, 0.3);
}
/* btn-warning：保留既有灰色配色與白字。 */
.btn-warning {
  background-color: var(--my-warning);
  border-color: var(--my-warning);
  color: #fff;
}
.btn-warning:active,
.btn-warning:focus,
.btn-warning:hover {
  background-color: var(--my-warning-hover);
  border-color: var(--my-warning-hover);
  color: #fff;
}
.btn-warning:not(:disabled):not(.disabled):active,
.btn-warning:not(:disabled):not(.disabled).active,
.show > .btn-warning.dropdown-toggle {
  background-color: var(--my-warning-active);
  border-color: var(--my-warning-active);
  color: #fff;
}
.btn-warning:not(:disabled):not(.disabled):active:focus,
.btn-warning:not(:disabled):not(.disabled).active:focus,
.show > .btn-warning.dropdown-toggle:focus {
  box-shadow: 0 0 0 0.2rem rgba(128, 128, 128, 0.3);
}
/*btn-success*/
.btn-success {
  background-color: var(--my-success);
  border-color: var(--my-success);
}
.btn-success:active,
.btn-success:focus,
.btn-success:hover {
  background-color: var(--my-success-hover);
  border-color: var(--my-success-hover);
}
.btn-success:not(:disabled):not(.disabled):active,
.btn-success:not(:disabled):not(.disabled).active,
.show > .btn-success.dropdown-toggle {
  background-color: var(--my-success-active);
  border-color: var(--my-success-active);
}
.btn-success:not(:disabled):not(.disabled):active:focus,
.btn-success:not(:disabled):not(.disabled).active:focus,
.show > .btn-success.dropdown-toggle:focus {
  box-shadow: 0 0 0 0.2rem rgba(128, 128, 128, 0.3);
}
.btn-primary, .btn-primary:hover,
.btn-danger,  .btn-danger:hover,
.btn-warning, .btn-warning:hover,
.btn-success, .btn-success:hover {
  box-shadow: 0 2px 2px 0 rgba(128, 128, 128, 0.14), 0 3px 1px -2px
    rgba(128, 128, 128, 0.2), 0 1px 5px 0
    rgba(128, 128, 128, 0.12);
}
div.growlUI {
  background: url(/assets/images/icon_success.png) no-repeat 10px 10px;
}
div.growlUI h1,
div.growlUI h2 {
  line-height: 40px;
  color: #fff;
  padding: 8px 4px 4px 58px;
  text-align: left;
}
div.growlUI h1 {
  font-size: 1em;
}
div.growlUI h2 {
  font-size: 0.8em;
}
.list_content tbody tr:hover {
  background: #EFFFE8;
  transition: background-color 0.5s ease, opacity 0.5s ease;
}
.table th, .table td {
  padding: 0.65rem 0.85rem;
}
select.form-control {
  outline: 1px solid #d1d1d1;
  color: #696969;
}
.list_content_mobile {
  display: none;
}
@media screen and (max-width: 767px) {
  .list_content {
    display: none;
  }
  .list_content_mobile {
    display: block;
  }
}
select.form-control:focus {
  border: #80bdff 1px solid;
}


/* 金額與倍率：焦點框線涵蓋圖示和輸入欄位。 */
.backend-value-group {
    --value-color: #557cb6;
    --value-border: #c6d6e9;
    --value-bg: #eff5fc;
    display: flex;
    flex-wrap: nowrap;
    align-items: stretch;
    width: 100%;
    min-width: 0;
    border: 1px solid var(--value-border);
    border-radius: 3px;
    background: #fff;
    transition: border-color .15s, box-shadow .15s;
}
.backend-multiplier-group {
    --value-color: #8260a7;
    --value-border: #d8cce7;
    --value-bg: #f5f0fa;
}
.backend-value-group:focus-within {
    border-color: var(--value-color);
    box-shadow: 0 0 0 2px var(--value-bg);
}
.backend-value-group > .input-group-text {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 36px;
    padding: 0 10px;
    border: 0;
    border-right: 1px solid var(--value-border);
    border-radius: 0;
    color: var(--value-color);
    background: var(--value-bg);
}
.backend-value-group > .form-control {
    flex: 1 1 0;
    width: 0;
    min-width: 0;
    max-width: none;
    margin: 0;
    border: 0 !important;
    border-radius: 0;
    box-shadow: none !important;
    color: #495057;
}
.backend-value-group > .form-control:disabled,
.backend-value-group > .form-control[readonly] { background: #f5f6f8; }

.variant-price-editor .backend-value-group { width: 156px; max-width: 100%; }
.variant-price-editor .backend-value-group > .form-control { width: 0; }
.variant-quick-field .backend-value-group { width: 180px; max-width: 100%; }
.backend-value-group > .error { position: absolute; top: 100%; left: 0; }
