/* ========================================
   Modern Minimal Buttons (FastAdmin)
   极简商务蓝灰风统一按钮体系
   ======================================== */

/* 动画统一 */
.btn {
  transition: all 0.18s ease !important;
  border-radius: 8px !important;
  font-weight: 500;
}

/* 1. 主按钮 primary（核心蓝） */
.btn-primary,
.btn-primary:active,
.btn-primary:focus,
.btn-primary.active,
.btn-primary.focus,
.open > .dropdown-toggle.btn-primary {
  background-color: #00CF22 !important;
  border-color: #00CF22 !important;
  color: #ffffff !important;
  box-shadow: none !important;
}

.btn-primary:hover {
  background-color: rgba(0, 207, 34, 0.88) !important;
  border-color: rgba(0, 207, 34, 0.88) !important;
}

/* 2. 成功按钮 success（不再用鲜绿 → 改蓝灰成功态） */
.btn-success,
.btn-success:active,
.btn-success:focus,
.btn-success.active,
.btn-success.focus,
.open > .dropdown-toggle.btn-success {
  background-color: rgba(0, 207, 34, 0.12) !important;
  border-color: rgba(0, 207, 34, 0.18) !important;
  color: #00CF22 !important;
  box-shadow: none !important;
}

.btn-success:hover {
  background-color: rgba(0, 207, 34, 0.18) !important;
  border-color: rgba(0, 207, 34, 0.25) !important;
  color: #00AD1C !important;
}

/* 3. 信息按钮 info（浅蓝灰） */
.btn-info,
.btn-info:active,
.btn-info:focus,
.btn-info.active,
.btn-info.focus,
.open > .dropdown-toggle.btn-info {
  background-color: rgba(100, 116, 139, 0.12) !important;
  border-color: rgba(100, 116, 139, 0.18) !important;
  color: #475569 !important;
}

.btn-info:hover {
  background-color: rgba(100, 116, 139, 0.18) !important;
  color: #334155 !important;
}

/* 4. 警告按钮 warning（低饱和橙） */
.btn-warning,
.btn-warning:active,
.btn-warning:focus,
.btn-warning.active,
.btn-warning.focus,
.open > .dropdown-toggle.btn-warning {
  background-color: rgba(245, 158, 11, 0.12) !important;
  border-color: rgba(245, 158, 11, 0.18) !important;
  color: #b45309 !important;
}

.btn-warning:hover {
  background-color: rgba(245, 158, 11, 0.18) !important;
  color: #92400e !important;
}

/* 5. 危险按钮 danger（低饱和红） */
.btn-danger,
.btn-danger:active,
.btn-danger:focus,
.btn-danger.active,
.btn-danger.focus,
.open > .dropdown-toggle.btn-danger {
  background-color: rgba(239, 68, 68, 0.12) !important;
  border-color: rgba(239, 68, 68, 0.18) !important;
  color: #b91c1c !important;
}

.btn-danger:hover {
  background-color: rgba(239, 68, 68, 0.18) !important;
  color: #991b1b !important;
}

/* 6. 默认按钮 default（极简灰） */
.btn-default {
  background-color: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  color: #475569 !important;
}

.btn-default:hover {
  background-color: #f8fafc !important;
  border-color: #cbd5e1 !important;
  color: #111827 !important;
}

/* 7. 禁用状态 */
.btn.disabled,
.btn[disabled] {
  opacity: 0.5 !important;
  cursor: not-allowed !important;
  box-shadow: none !important;
}
/* ========================================
   Modern Minimal UI (FastAdmin)
   layer / dropdown / pagination / text
   ======================================== */

/* 1. layui-layer 标题栏 */
.layui-layer-title {
  background-color: #f8fafc !important;
  border-bottom: 1px solid #e2e8f0 !important;
  color: #111827 !important;
  font-weight: 600 !important;
}

/* ========================================
   2. 下拉菜单 dropdown-menu
   ======================================== */

.dropdown-menu {
  border: 1px solid #eef2f6 !important;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
  border-radius: 10px;
  padding: 6px 0;
}

.dropdown-menu > li > a {
  color: #475569 !important;
  transition: all 0.18s ease !important;
  border-radius: 6px;
  margin: 2px 6px;
}

.dropdown-menu > li > a:hover,
.dropdown-menu > li > a:focus {
  background-color: rgba(0, 207, 34, 0.06) !important;
  color: #00CF22 !important;
}

.dropdown-menu > .active > a,
.dropdown-menu > .active > a:hover,
.dropdown-menu > .active > a:focus {
  background-color: rgba(0, 207, 34, 0.08) !important;
  color: #00CF22 !important;
  font-weight: 500;
}

.dropdown-menu .divider {
  background-color: #eef2f6 !important;
}

/* ========================================
   3. 分页 pagination（极简现代）
   ======================================== */

.pagination > li > a,
.pagination > li > span {
  color: #475569 !important;
  background-color: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  transition: all 0.18s ease !important;
  border-radius: 6px !important;
  margin: 0 2px;
}

.pagination > li > a:hover,
.pagination > li > span:hover,
.pagination > li > a:focus,
.pagination > li > span:focus {
  color: #00CF22 !important;
  background-color: rgba(0, 207, 34, 0.05) !important;
  border-color: rgba(0, 207, 34, 0.2) !important;
}

.pagination > .active > a,
.pagination > .active > span,
.pagination > .active > a:hover,
.pagination > .active > span:hover,
.pagination > .active > a:focus,
.pagination > .active > span:focus {
  background-color: rgba(0, 207, 34, 0.08) !important;
  border-color: rgba(0, 207, 34, 0.2) !important;
  color: #00CF22 !important;
  font-weight: 600;
}

.pagination > .disabled > span,
.pagination > .disabled > span:hover,
.pagination > .disabled > span:focus,
.pagination > .disabled > a,
.pagination > .disabled > a:hover,
.pagination > .disabled > a:focus {
  color: #94a3b8 !important;
  background-color: #ffffff !important;
  border-color: #eef2f6 !important;
}

/* ========================================
   4. 主文字 text-primary（弱强调）
   ======================================== */

.text-primary {
  color: #00CF22 !important;
}

a.text-primary:hover,
a.text-primary:focus {
  color: #00AD1C !important;
}

/* 额外：统一链接风格 */
a {
  color: #475569;
  transition: all 0.18s ease;
}

a:hover {
  color: #00CF22;
}
/* ========================================
   Modern Minimal Scrollbar
   极简商务蓝灰滚动条
   ======================================== */

/* WebKit */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

/* 轨道 */
::-webkit-scrollbar-track {
  background: transparent;
}

/* 滑块 */
::-webkit-scrollbar-thumb {
  background: rgba(148, 163, 184, 0.35);
  border-radius: 10px;
  transition: all 0.2s ease;
}

/* hover 状态（轻蓝强调） */
::-webkit-scrollbar-thumb:hover {
  background: rgba(0, 207, 34, 0.35);
}

/* corner */
::-webkit-scrollbar-corner {
  background: transparent;
}

/* Firefox */
* {
  scrollbar-width: thin;
  scrollbar-color: rgba(148, 163, 184, 0.4) transparent;
}

/* hover 页面整体微感提升（可选） */
html {
  scroll-behavior: smooth;
}
/* ========================================
   Modern Minimal Table & Switch
   极简商务蓝灰（表格 + 开关统一）
   ======================================== */

/* ========================================
   1. 表格斑马纹（极简低对比）
   ======================================== */

/* =========================
   表头（重点：拉开层级）
   ========================= */
.table > thead > tr > th {
  background: #f1f5f9 !important;  /* 比原来更深一点 */
  color: #334155 !important;
  border-bottom: 1px solid #e2e8f0 !important;
  font-weight: 600;
}

/* =========================
   表格基础边框
   ========================= */
.table {
  border-color: #eef2f6 !important;
}

/* =========================
   斑马纹（降低对比度）
   ========================= */
.table-striped > tbody > tr:nth-of-type(odd) {
  background-color: #ffffff !important;  /* 奇数行纯白 */
}

.table-striped > tbody > tr:nth-of-type(even) {
  background-color: #f8fafc !important;  /* 偶数行极浅灰 */
}

/* =========================
   hover（轻蓝，不破坏结构）
   ========================= */
.table-hover > tbody > tr:hover {
  background-color: rgba(0, 207, 34, 0.04) !important;
  transition: background-color 0.15s ease;
}

/* =========================
   行内分割线（增强结构感）
   ========================= */
.table > tbody > tr {
  border-bottom: 1px solid #f1f5f9;
}

/* ========================================
   2. Switchery（FastAdmin 常用开关）
   ======================================== */

.switchery {
  background-color: #e2e8f0 !important;
  border-color: #e2e8f0 !important;
  box-shadow: none !important;
}

.switchery > small {
  background-color: #ffffff !important;
}

/* 选中状态（低饱和蓝，不刺眼） */
.switchery.switchery-checked {
  background-color: rgba(0, 207, 34, 0.75) !important;
  border-color: rgba(0, 207, 34, 0.75) !important;
}

/* ========================================
   3. Layui Switch
   ======================================== */

.layui-switch {
  background-color: #e2e8f0 !important;
  border-color: #e2e8f0 !important;
  box-shadow: none !important;
}

.layui-switch[checked] {
  background-color: rgba(0, 207, 34, 0.75) !important;
  border-color: rgba(0, 207, 34, 0.75) !important;
}

/* ========================================
   4. Bootstrap Switch
   ======================================== */

.bootstrap-switch {
  border-color: #e2e8f0 !important;
  box-shadow: none !important;
}

/* ON 状态 */
.bootstrap-switch .bootstrap-switch-handle-on,
.bootstrap-switch .bootstrap-switch-handle-off.bootstrap-switch-primary,
.bootstrap-switch .bootstrap-switch-handle-on.bootstrap-switch-primary {
  background-color: rgba(0, 207, 34, 0.75) !important;
  border-color: rgba(0, 207, 34, 0.75) !important;
  color: #fff !important;
}

/* OFF 状态 */
.bootstrap-switch .bootstrap-switch-handle-off {
  background-color: #e2e8f0 !important;
  color: #64748b !important;
}

/* 中间滑块 */
.bootstrap-switch .bootstrap-switch-label {
  background-color: #ffffff !important;
}

/* focus 状态（轻提示） */
.bootstrap-switch.bootstrap-switch-focused {
  border-color: rgba(0, 207, 34, 0.3) !important;
  box-shadow: 0 0 0 3px rgba(0, 207, 34, 0.08) !important;
}
/* ========================================
   Modern Minimal Text + Switch System
   极简语义文本系统 + 开关统一
   ======================================== */

/* =========================
   1. 文本语义系统
   ========================= */

/* 主强调（Primary） */
/*.text-primary {*/
/*  color: #00CF22 !important;*/
/*}*/
/*.text-primary:hover {*/
/*  color: #00AD1C !important;*/
/*}*/

/* 成功（Success - 低饱和绿） */
/*.text-success {*/
/*  color: #059669 !important;*/
/*}*/
/*.text-success:hover {*/
/*  color: #047857 !important;*/
/*}*/

/* 信息（Info - 蓝灰） */

/*.text-info {*/
/*  color: #475569 !important;*/
/*}*/
/*.text-info:hover {*/
/*  color: #334155 !important;*/
/*}*/

/* 警告（Warning - 柔和琥珀） */

/*.text-warning {*/
/*  color: #b45309 !important;*/
/*}*/
/*.text-warning:hover {*/
/*  color: #92400e !important;*/
/*}*/

/* 危险（Danger - 克制红） */

/*.text-danger {*/
/*  color: #b91c1c !important;*/
/*}*/
/*.text-danger:hover {*/
/*  color: #991b1b !important;*/
/*}*/

/* 弱文本 */
/*.text-muted {*/
/*  color: #64748b !important;*/
/*}*/

/* =========================
   2. Switch 统一系统
   ========================= */

/* OFF 状态（统一灰） */
/*.switchery,*/
/*.layui-switch,*/
/*.bootstrap-switch,*/
/*.onoffswitch-label {*/
/*  background-color: #e2e8f0 !important;*/
/*  border-color: #e2e8f0 !important;*/
/*  box-shadow: none !important;*/
/*}*/

/* ON 状态（统一主蓝） */
/*.switchery.switchery-checked,*/
/*.layui-switch[checked],*/
/*.bootstrap-switch.bootstrap-switch-on,*/
/*input:checked + .switch-label,*/
/*.onoffswitch-checkbox:checked + .onoffswitch-label {*/
/*  background-color: #00CF22 !important;*/
/*  border-color: #00CF22 !important;*/
/*}*/

/* Switch 内部圆点 */
/*.switchery > small,*/
/*.bootstrap-switch .bootstrap-switch-label {*/
/*  background-color: #ffffff !important;*/
/*}*/

/* =========================
   3. Focus / 交互统一
   ========================= */

.bootstrap-switch.bootstrap-switch-focused {
  box-shadow: 0 0 0 3px rgba(0, 207, 34, 0.08) !important;
  border-color: rgba(0, 207, 34, 0.3) !important;
}

/* =========================
   4. 兜底 checkbox（避免碎片样式污染）
   ========================= */

input[type="checkbox"]:checked {
  accent-color: #00CF22;
}
.layui-layer-fast .layui-layer-title {
    background-color: #f1f5f9 !important;
    color: #333 !important;
    border-bottom: 1px solid #e8e8e8 !important;
    font-weight: 600 !important;
}
.layui-layer .layui-layer-setwin > a:after,
.layui-layer-fast .layui-layer-setwin > a:after {
  color: #333 !important;
}
.panel-heading{
    background-color: #fff !important;
}
.panel-intro > .panel-heading .nav-tabs > li > a {
    margin-right: 6px;
    color: #64748b;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-bottom-color: transparent;
    border-radius: 8px 8px 0 0;
    transition: all .2s ease;
}

/* ========================================
   后台右下角 IM 悬浮按钮（未部署，强制隐藏兜底）
   即使 addons.js / bootstrap.js 被插件重新生成也能隐藏
   ======================================== */
.wanl-chat-service,
#wanl-chat,
.wanl-chat-mini,
.wanl-chat-mini-msg,
.wanl-chat-list {
  display: none !important;
}
