/* 通用樣式 */
body {
    font-family: 'WenQuanYi Micro Hei', sans-serif;
    font-size: 14px;
    line-height: 1.2;
}

.highlighted-text {
    background-color: #f4d03f;
    color: #333;
    padding: 2px 3px;
    border-radius: 5px;
}

th, td {
    border: 1px solid #ddd;
    padding: 8px;
    text-align: left;
}

/* Navbar 設計 */
.navbar-default {
    background-color: rgba(0, 0, 0, 0.6);
    border-color: transparent;
}

.navbar-default .navbar-brand,
.navbar-default .navbar-text,
.navbar-default .navbar-nav > li > a{
    background-color: transparent;
    border-radius: 8px;
    text-shadow: 2px 2px 2px rgba(0, 0, 0, 0.8);
    font-family: 'Nunito Sans', sans-serif;
    font-size: 14px;
    font-weight: bold;
    color: #ffffff;
    transition: all 0.3s;
}
.navbar-default .navbar-toggle .icon-bar,
.navbar-default .badge {
    background-color: transparent;
    border-radius: 8px;
    text-shadow: 2px 2px 2px rgba(0, 0, 0, 0.8);
    font-family: 'Nunito Sans', sans-serif;
    font-size: 14px;
    font-weight: bold;
    color: #ffffff;
    transition: all 0.3s;
}
.navbar-default .badge::before {
    background-color: transparent;
    border-radius: 8px;
    text-shadow: 2px 2px 2px rgba(0, 0, 0, 0.8);
    font-family: 'Nunito Sans', sans-serif;
    font-size: 14px;
    font-weight: bold;
    color: #ffffff;
    transition: all 0.3s;
}

.navbar-default .badge {
    padding: 8px 12px;
    color: #00ff00;
}


.navbar-default .badge::before {
    border-color: transparent;
    content: "帳戶餘額： ";
    color: #ff9c4c;
    padding: 3px 5px;
    margin-right: 5px;
}

.navbar-default .navbar-brand,
.navbar-default .navbar-text,
.navbar-default .navbar-nav > li > a,
.navbar-default .navbar-toggle .icon-bar:hover,
.navbar-default .badge:hover, 
.navbar-default .badge::before:hover {
    background-color: #485563;
    text-shadow: 2px 2px 2px rgba(0, 0, 0, 0.8);
}

.navbar-default .navbar-nav > .active > a,
.navbar-default .navbar-nav > .active > a:hover,
.navbar-default .navbar-nav > .active > a:focus {
    background-color: #485563;
    text-shadow: 2px 2px 2px rgba(0, 0, 0, 0.8);
}

.navbar-default .navbar-toggle .icon-bar {
    background-color: #ebebeb;
}

/* 底面 */
.well {
    min-height: 20px;
    padding: 19px;
    margin-bottom: 20px;
    background-color: rgba(0, 0, 0, 0.6);
    border: 1px solid transparent;
    border-radius: 8px;
    box-shadow: 0 1px 1px rgba(0, 0, 0, 0.05);
    color: #ffffff;
    font-size: 14px;
    transition: all 0.3s;
}

.well:hover {
    background-color: rgba(0, 0, 0, 0.6);
}

/* 修改所有 Select2 框的樣式 */
.select2-container,
.select2-container .select2-selection,
.select2-container .select2-selection__arrow,
.select2-container .select2-dropdown,
.select2-container .select2-dropdown .select2-results__option,
.select2-container .select2-dropdown .select2-results__option:hover {
    width: 100%;
}

.select2-container .select2-selection {
    height: 34px;
    border: 1px solid #485563;
    border-radius: 8px;
    background-color: rgba(0, 0, 0, 0.6);
    color: #ffffff;
    font-size: 14px;
}

.select2-container .select2-selection__arrow {
    height: 32px;
    border-left: 1px solid #485563;
}

.select2-container .select2-dropdown {
    border: 1px solid #485563;
    border-radius: 8px;
    background-color: rgba(0, 0, 0, 0.6);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

.select2-container .select2-dropdown .select2-results__option {
    color: #ffffff;
}

.select2-container .select2-dropdown .select2-results__option:hover {
    background-color: #485563;
}

/* 修改所有输入框的樣式，包括 Select2 框內的输入框 */
.form-control,
.form-control[disabled],
.form-control[readonly],
fieldset[disabled] .form-control {
    height: 34px;
    border: 1px solid #485563;
    border-radius: 8px;
    background-color: rgba(0, 0, 0, 0.6);
    color: #ffffff;
    font-size: 14px;
    transition: all 0.3s;
    pointer-events: auto;
}

.form-control:hover,
.form-control[disabled]:hover,
.form-control[readonly]:hover,
fieldset[disabled] .form-control:hover {
    background-color: #485563;
    border-color: #ffffff;
}

.form-control:focus,
.form-control[disabled]:focus,
.form-control[readonly]:focus,
fieldset[disabled] .form-control:focus {
    background-color: #485563;
    border-color: #ffffff;
    box-shadow: none;
}

/* 修改帶有 .border-rounded 類的元素樣式 */
.border-rounded {
    border-radius: 8px;
    border: 1px solid #485563;
    background-color: rgba(0, 0, 0, 0.6);
    color: #ffffff;
    padding: 10px;
    transition: all 0.3s;
}

.border-rounded:hover {
    border-color: #ffffff;
}

.border-rounded:focus {
    border-color: #ffffff;
    box-shadow: 0 0 5px rgba(255, 255, 255, 0.8);
}

/* 修改 pre 元素樣式 */
pre {
    background-color: rgba(0, 0, 0, 0.6);
    color: #ffffff;
    padding: 10px;
    border-radius: 8px;
    border: 1px solid transparent;
    overflow: auto;
    transition: all 0.3s;
}

pre:hover {
    background-color: #485563;
    border-color: #ffffff;
}

pre:focus {
    background-color: #485563;
    border-color: #ffffff;
    box-shadow: none;
}

/* 修改 .btn-default 元素樣式 */
.btn-default {
    background-color: rgba(0, 0, 0, 0.6);
    color: #ffffff;
    border: 1px solid transparent;
    border-radius: 8px;
    padding: 8px 12px;
    text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.8);
    transition: all 0.3s;
}

.btn-default:hover {
    background-color: #485563;
    border-color: #ffffff;
    text-shadow: 2px 2px 2px rgba(0, 0, 0, 0.8);
}

.btn-default:focus {
    background-color: #485563;
    border-color: #ffffff;
    box-shadow: none;
}

/* 修改 fieldset[disabled] .form-control 元素樣式 */
fieldset[disabled] .form-control,
.form-control[disabled],
.form-control[readonly],
fieldset[disabled] .form-control {
    background-color: rgba(0, 0, 0, 0.6);
    color: #ffffff;
    border: 1px solid transparent;
    border-radius: 8px;
    padding: 8px 12px;
    text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.8);
    transition: all 0.3s;
}

.form-control[disabled]:hover,
.form-control[readonly]:hover,
fieldset[disabled] .form-control:hover {
    background-color: #485563;
    border-color: #ffffff;
    text-shadow: 2px 2px 2px rgba(0, 0, 0, 0.8);
}

.form-control[disabled]:focus,
.form-control[readonly]:focus,
fieldset[disabled] .form-control:focus {
    background-color: #485563;
    border-color: #ffffff;
    box-shadow: none;
}

/* 移動設備樣式 */
@media only screen and (max-width: 767px) {
    .form-control {
        /* 移動設備特有的樣式 */
    }
}

/* 修改 .dropdown-menu 樣式 */
.dropdown-menu {
    border: 1px solid #485563;
    border-radius: 8px;
    background-color: rgba(0, 0, 0, 0.6);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

/* 修改 .dropdown-menu 內的項目樣式 */
.dropdown-menu > li > a {
    color: #ffffff;
}

/* 修改 .dropdown-menu 內的項目懸停時的樣式 */
.dropdown-menu > li > a:hover {
    background-color: #485563;
    color: #ffffff;
    text-shadow: 2px 2px 2px rgba(0, 0, 0, 0.8);
}

/* 修改 .dropdown-menu 內的項目獲得焦點時的樣式 */
.dropdown-menu > li > a:focus {
    background-color: #485563;
    color: #ffffff;
    text-shadow: 2px 2px 2px rgba(0, 0, 0, 0.8);
}

/* 修改主要按鈕樣式 */
.btn-primary,
.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active,
.btn-primary.active,
.open > .dropdown-toggle.btn-primary,
.btn-primary:active:hover,
.btn-primary.active:hover,
.open > .dropdown-toggle.btn-primary:hover,
.btn-primary:active:focus,
.btn-primary.active:focus,
.open > .dropdown-toggle.btn-primary:focus,
.btn-primary:active.focus,
.btn-primary.active.focus,
.open > .dropdown-toggle.btn-primary.focus,
.btn-primary.disabled:hover,
.btn-primary[disabled]:hover,
fieldset[disabled] .btn-primary:hover,
.btn-primary.disabled:focus,
.btn-primary[disabled]:focus,
fieldset[disabled] .btn-primary:focus,
.btn-primary.disabled.focus,
.btn-primary[disabled].focus,
fieldset[disabled] .btn-primary.focus {
    color: #ffffff;
    background-color: rgba(0, 0, 0, 0.6);
    border-color: transparent;
    transition: all 0.3s;
    border-radius: 8px;
}

.btn-primary:hover,
.btn-primary:focus {
    background-color: #485563;
    border-color: rgba(0, 0, 0, 0);
    border-radius: 8px;
    transition: all 0.3s;
}

.btn-primary:active,
.btn-primary.active,
.open > .dropdown-toggle.btn-primary,
.btn-primary:active:hover,
.btn-primary.active:hover,
.open > .dropdown-toggle.btn-primary:hover,
.btn-primary:active:focus,
.btn-primary.active:focus,
.open > .dropdown-toggle.btn-primary:focus,
.btn-primary:active.focus,
.btn-primary.active.focus,
.open > .dropdown-toggle.btn-primary.focus {
    background-color: #2a323a;
    border-color: rgba(0, 0, 0, 0);
    border-radius: 8px;
    transition: all 0.3s;
}

.btn-primary.disabled:hover,
.btn-primary[disabled]:hover,
fieldset[disabled] .btn-primary:hover,
.btn-primary.disabled:focus,
.btn-primary[disabled]:focus,
fieldset[disabled] .btn-primary:focus,
.btn-primary.disabled.focus,
.btn-primary[disabled].focus,
fieldset[disabled] .btn-primary.focus {
    background-color: rgba(0, 0, 0, 0.6);
    border-color: transparent;
    border-radius: 8px;
    transition: all 0.3s;
}

/* 修改 .nav-pills 樣式 */
.nav-pills > li.active > a,
.nav-pills > li.active > a:hover,
.nav-pills > li.active > a:focus {
    color: #ffffff;
    background-color: rgba(0, 0, 0, 0.6);
    border-radius: 8px;
    transition: all 0.3s;
}

.nav-pills > li > a:hover,
.nav-pills > li > a:focus {
    background-color: #485563;
    border-radius: 8px;
    transition: all 0.3s;
}
.highlighted-text {
    white-space: nowrap;
}
/* 調整搜尋按鈕的樣式 */
.btn-default {
    height: 34px; /* 根據需要調整高度 */
}

/* 調整搜尋欄的樣式 */
.form-control {
    height: 34px; /* 根據需要調整高度 */
}

/* 如果需要固定大小的按鈕 */
.search-btn {
    width: 100px; /* 根據需要調整寬度 */
    height: 34px; /* 根據需要調整高度 */
}
body {
    margin: 0;
    padding: 0;
    width: 100%;
    min-height: 100vh;
}

.container {
    width: 100%;
    max-width: 100%;
}
/* ===== 訂單列表網址樣式設定 ===== */
.table a {
    text-decoration: none !important; /* 移除底線 */
    color: #00bfff !important;        /* 超連結顏色（可改成 inherit 跟主題走） */
    word-break: break-all;            /* 太長自動換行 */
}

.table a:hover {
    text-decoration: underline !important; /* 滑鼠移上時顯示底線 */
}
/* 🔹 備註欄專用精緻樣式 (覆蓋 .form-control) */
td .order-note {
  width: 110px !important;
  height: 24px !important;
  font-size: 12px !important;
  border: 1px solid #666 !important;
  border-radius: 5px !important;
  background-color: rgba(255,255,255,0.08) !important;
  color: #fff !important;
  padding: 2px 6px !important;
  line-height: 1.3 !important;
  text-align: left !important;
  transition: all 0.2s ease !important;
}

/* 🔹 hover + focus 效果 */
td .order-note:hover {
  background-color: rgba(255,255,255,0.12) !important;
}
td .order-note:focus {
  background-color: rgba(255,255,255,0.18) !important;
  border-color: #80bfff !important;
  box-shadow: 0 0 4px rgba(130,180,255,0.6) !important;
}

/* 🔹 RWD 小螢幕版本 */
@media (max-width: 992px) {
  td .order-note {
    width: 80px !important;
    font-size: 11px !important;
  }
}
