/* ============================================================
 * ws-onetoone.css — 后台壳层一比一对齐目标站 (2026-09-20)
 * 只覆盖 view/layout 视觉层，不影响 FastAdmin JS/接口
 * ============================================================ */

/* ---------- 整体背景 ---------- */
.content-wrapper, .right-side { background: #f5f7f9 !important; }

/* ---------- 顶栏：白底窄边 ---------- */
.skin-green-light .main-header .navbar,
.main-header .navbar {
    background: #ffffff !important;
    border-bottom: 1px solid #eef1f4 !important;
    box-shadow: none !important;
    min-height: 56px;
}
.skin-green-light .main-header .navbar .nav > li > a,
.main-header .navbar .nav > li > a { color: #4b5563 !important; }
.skin-green-light .main-header .navbar .nav > li > a:hover,
.main-header .navbar .nav > li > a:hover { background: #f3f4f6 !important; color: #111827 !important; }
.skin-green-light .main-header .navbar .sidebar-toggle,
.main-header .navbar .sidebar-toggle { color: #4b5563 !important; }
.skin-green-light .main-header .navbar .sidebar-toggle:hover,
.main-header .navbar .sidebar-toggle:hover { background: #f3f4f6 !important; }

/* ---------- Logo 区：白底 + 绿标 ---------- */
.skin-green-light .main-header .logo,
.main-header .logo {
    background: #ffffff !important;
    color: #111827 !important;
    border-bottom: 1px solid #eef1f4 !important;
    border-right: 1px solid #eef1f4 !important;
    height: 56px;
    line-height: 56px;
    text-align: left !important;
    padding-left: 14px !important;
}
.main-header .logo .logo-lg b { color: #111827 !important; font-weight: 700; font-size: 17px; }
.main-header .logo .logo-lg::before {
    content: "\f232"; /* fa-whatsapp */
    font-family: FontAwesome;
    display: inline-block;
    background: #22c55e;
    color: #fff;
    width: 26px; height: 26px;
    line-height: 26px;
    text-align: center;
    border-radius: 7px;
    margin-right: 8px;
    font-size: 15px;
    vertical-align: -3px;
}

/* ---------- 侧栏：白底窄栏 ---------- */
.main-sidebar, .left-side {
    background: #ffffff !important;
    border-right: 1px solid #eef1f4 !important;
    width: 200px !important;
    padding-top: 56px;
}
.content-wrapper, .right-side, .main-footer { margin-left: 200px !important; }
.main-header .logo { width: 200px !important; }
.main-header .navbar { margin-left: 200px !important; }
@media (max-width: 767px) {
    .content-wrapper, .right-side, .main-footer { margin-left: 0 !important; }
    .main-header .navbar { margin-left: 0 !important; }
    .main-header .logo { width: auto !important; }
}

/* 顶部用户信息块隐藏（底部用户卡替代） */
.main-sidebar .user-panel { display: none !important; }

/* 菜单搜索框：窄化对齐 */
.main-sidebar .sidebar-form { margin: 10px 10px 6px; border: none !important; }
.main-sidebar .sidebar-form .form-control {
    background: #f3f4f6; border: 1px solid #e5e7eb; border-radius: 8px;
    height: 32px; font-size: 12.5px; color: #374151;
}
.main-sidebar .sidebar-form .input-group-btn .btn {
    background: #f3f4f6; border: 1px solid #e5e7eb; border-left: none;
    border-radius: 0 8px 8px 0; color: #9ca3af; height: 32px;
}

/* 菜单项：圆角浅绿高亮 */
.skin-green-light .sidebar-menu > li > a,
.sidebar-menu > li > a {
    color: #4b5563 !important;
    margin: 2px 8px;
    border-radius: 8px;
    border-left: none !important;
    padding: 9px 12px !important;
    font-size: 13.5px;
}
.skin-green-light .sidebar-menu > li:hover > a,
.sidebar-menu > li > a:hover {
    background: #f0fbf5 !important;
    color: #16a34a !important;
}
.skin-green-light .sidebar-menu > li.active > a,
.sidebar-menu > li.active > a {
    background: #dcf5e8 !important;
    color: #16a34a !important;
    font-weight: 600;
}
.sidebar-menu > li > a > .fa { color: #9ca3af; width: 18px; }
.sidebar-menu > li.active > a > .fa, .sidebar-menu > li > a:hover > .fa { color: #16a34a; }
.sidebar-menu .treeview-menu { background: transparent !important; }
.sidebar-menu .treeview-menu > li > a { color: #6b7280; }
.sidebar-menu .treeview-menu > li.active > a { color: #16a34a; background: #dcf5e8; }

/* ---------- 侧栏底部用户卡 ---------- */
.ws-user-card {
    position: fixed;
    left: 0; bottom: 0;
    width: 200px;
    background: #fff;
    border-top: 1px solid #eef1f4;
    border-right: 1px solid #eef1f4;
    display: flex; align-items: center; gap: 10px;
    padding: 12px 14px;
    z-index: 810;
}
.ws-uc-avatar {
    width: 34px; height: 34px; border-radius: 50%;
    background: #dcfce7; color: #16a34a;
    font-weight: 700; font-size: 15px;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}
.ws-uc-name { font-size: 13.5px; font-weight: 600; color: #111827; line-height: 1.2; }
.ws-uc-role { font-size: 11px; color: #9ca3af; }
.main-sidebar .sidebar { padding-bottom: 70px; }

/* ---------- 顶栏页面标题 + 暗色开关 + Logout ---------- */
#ws-page-title {
    float: left;
    line-height: 56px;
    font-size: 15.5px;
    font-weight: 600;
    color: #111827;
    margin-left: 6px;
}
#ws-dark-toggle { cursor: pointer; }
#ws-dark-toggle .ws-icon-sun { display: none; }
html.ws-dark #ws-dark-toggle .ws-icon-moon { display: none; }
html.ws-dark #ws-dark-toggle .ws-icon-sun { display: inline; }
.ws-top-logout { color: #4b5563 !important; font-weight: 500; }
.ws-top-logout i { margin-right: 4px; }

/* 隐藏多 tab 条与全屏/设置齿轮（视觉对齐目标站单页形态；DOM 保留，功能可恢复） */
#firstnav .nav-addtabs { display: none !important; }
.main-header .navbar a[data-toggle="fullscreen"],
.main-header .navbar a[data-toggle="control-sidebar"] { display: none !important; }

/* ---------- 内容区卡片化微调 ---------- */
.content { padding: 20px 24px; }
.panel-intro { border: 1px solid #e8eaec !important; border-radius: 12px !important; box-shadow: 0 1px 2px rgba(0,0,0,.04) !important; }
.panel-intro > .panel-heading {
    background: #fff !important; border-bottom: 1px solid #f1f3f5 !important;
    border-radius: 12px 12px 0 0 !important; padding: 14px 18px;
}
.panel-intro > .panel-heading .panel-title { font-size: 15px; font-weight: 700; color: #111827; }
.panel-intro > .panel-body { padding: 18px; }
.btn-success { background: #22c55e !important; border-color: #22c55e !important; }
.btn-success:hover { background: #16a34a !important; border-color: #16a34a !important; }

/* ============================================================
 * 暗色模式（localStorage: ws-dark=1，<html class="ws-dark">）
 * ============================================================ */
html.ws-dark body, html.ws-dark { background: #111827 !important; }
html.ws-dark .main-header .navbar,
html.ws-dark .skin-green-light .main-header .navbar { background: #1f2937 !important; border-bottom-color: #374151 !important; }
html.ws-dark .main-header .logo,
html.ws-dark .skin-green-light .main-header .logo { background: #1f2937 !important; border-color: #374151 !important; }
html.ws-dark .main-header .logo .logo-lg b { color: #f9fafb !important; }
html.ws-dark .main-sidebar, html.ws-dark .left-side { background: #1f2937 !important; border-right-color: #374151 !important; }
html.ws-dark .sidebar-menu > li > a,
html.ws-dark .skin-green-light .sidebar-menu > li > a { color: #d1d5db !important; }
html.ws-dark .sidebar-menu > li > a:hover,
html.ws-dark .skin-green-light .sidebar-menu > li:hover > a { background: #25324a !important; color: #4ade80 !important; }
html.ws-dark .sidebar-menu > li.active > a,
html.ws-dark .skin-green-light .sidebar-menu > li.active > a { background: #14532d !important; color: #4ade80 !important; }
html.ws-dark .main-sidebar .sidebar-form .form-control,
html.ws-dark .main-sidebar .sidebar-form .input-group-btn .btn { background: #111827; border-color: #374151; color: #d1d5db; }
html.ws-dark .ws-user-card { background: #1f2937; border-color: #374151; }
html.ws-dark .ws-uc-name { color: #f9fafb; }
html.ws-dark .ws-uc-avatar { background: #14532d; color: #4ade80; }
html.ws-dark #ws-page-title { color: #f9fafb; }
html.ws-dark .main-header .navbar .nav > li > a,
html.ws-dark .skin-green-light .main-header .navbar .nav > li > a,
html.ws-dark .skin-green-light .main-header .navbar .sidebar-toggle { color: #d1d5db !important; }
html.ws-dark .main-header .navbar .nav > li > a:hover { background: #374151 !important; }
html.ws-dark .content-wrapper, html.ws-dark .right-side { background: #111827 !important; }
html.ws-dark .content, html.ws-dark #main { background: #111827; color: #d1d5db; }
html.ws-dark .panel-intro, html.ws-dark .panel-default { background: #1f2937 !important; border-color: #374151 !important; }
html.ws-dark .panel-intro > .panel-heading, html.ws-dark .panel-default > .panel-heading { background: #1f2937 !important; border-bottom-color: #374151 !important; }
html.ws-dark .panel-intro > .panel-heading .panel-title, html.ws-dark .panel-title { color: #f9fafb !important; }
html.ws-dark .panel-body { color: #d1d5db; }
html.ws-dark .table { color: #d1d5db; }
html.ws-dark .table > thead > tr > th { background: #25324a; color: #d1d5db; border-color: #374151; }
html.ws-dark .table > tbody > tr > td { border-color: #374151; color: #d1d5db; }
html.ws-dark .table-hover > tbody > tr:hover > td { background: #25324a; }
html.ws-dark .form-control { background: #111827; border-color: #374151; color: #e5e7eb; }
html.ws-dark .form-control:focus { border-color: #22c55e; }
html.ws-dark .ws-sec { background: #1f2937; border-color: #374151; }
html.ws-dark .ws-sec > h4 { color: #d1d5db; border-bottom-color: #374151; }
html.ws-dark .btn-default { background: #25324a; border-color: #374151; color: #d1d5db; }
html.ws-dark .modal-content { background: #1f2937; color: #d1d5db; }
html.ws-dark .modal-header, html.ws-dark .modal-footer { border-color: #374151; }
html.ws-dark .text-muted { color: #9ca3af; }
html.ws-dark .breadcrumb { background: transparent; }
html.ws-dark .dropdown-menu { background: #1f2937; }
html.ws-dark .dropdown-menu > li > a { color: #d1d5db; }
html.ws-dark .dropdown-menu > li > a:hover { background: #25324a; }
html.ws-dark .user-header, html.ws-dark .user-body, html.ws-dark .user-footer { background: #1f2937 !important; color: #d1d5db !important; }
html.ws-dark .user-footer .btn { color: #fff; }
html.ws-dark label { color: #d1d5db; }

/* 2026-09-21 遗留观察项#1：暗色下统计卡/卡片白底修复 */
html.ws-dark .ws-card,
html.ws-dark .ws-card.c-total { background: #1f2937 !important; border-color: #374151 !important; }
html.ws-dark .ws-card .num { color: #f9fafb !important; }
html.ws-dark .ws-card .lbl { color: #9ca3af !important; }
html.ws-dark .ws-card .text-muted,
html.ws-dark .ws-card a { color: #93c5fd !important; }
