/* =================================================================
   Albionwan 管理系统主题 v13 —— 纯亮色模式
================================================================= */

/* -----------------------------------------------------------------
   1. 侧边栏 —— 深紫品牌色，白色文字
----------------------------------------------------------------- */
.main-sidebar,
.main-sidebar .sidebar {
    background: #1e1b4b !important;
}
.brand-link {
    background: transparent !important;
    border-bottom: 1px solid rgba(255,255,255,0.1) !important;
}
.brand-link .brand-text,
.navbar-brand-text {
    color: #fff !important;
    font-weight: 700 !important;
}

/* 菜单文字 */
.nav-sidebar .nav-link,
.nav-sidebar .nav-link *,
.main-sidebar .nav-sidebar .nav-link,
.main-sidebar .nav-sidebar .nav-link * {
    color: rgba(255,255,255,0.7) !important;
}
.nav-sidebar .nav-item > .nav-link:hover,
.nav-sidebar .nav-item > .nav-link:hover * {
    color: #fff !important;
    background: rgba(255,255,255,0.1) !important;
}
.nav-sidebar .nav-item > .nav-link.active,
.nav-sidebar .nav-item > .nav-link.active *,
.nav-sidebar .nav-item.menu-open > .nav-link,
.nav-sidebar .nav-item.menu-open > .nav-link * {
    color: #fff !important;
    background: rgba(99,102,241,0.5) !important;
}
.nav-sidebar .nav-treeview { background: transparent !important; }
.nav-sidebar .nav-header {
    color: rgba(255,255,255,0.3) !important;
    font-size: 10px !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
}
.main-sidebar .ps__rail-y { display: none !important; }

/* -----------------------------------------------------------------
   2. 顶部导航栏
----------------------------------------------------------------- */
.main-header.navbar {
    background: #fff !important;
    border-bottom: 1px solid #e5e7ef !important;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06) !important;
}
.main-header .navbar-nav .nav-link,
.main-header .navbar-nav a {
    background: transparent !important;
    color: #475569 !important;
}
.main-header .navbar-nav .nav-link:hover { color: #6366f1 !important; }
.main-header span:not(.badge),
.main-header small { color: #64748b !important; }

/* 顶部时区选择框 */
.main-header select,
.main-header .form-control {
    background: #f8f9fc !important;
    color: #334155 !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 6px !important;
}

/* -----------------------------------------------------------------
   3. 内容区背景
----------------------------------------------------------------- */
body,
.content-wrapper,
.wrapper {
    background: #f1f4f9 !important;
}

/* 修复 adminlte body a{background:#fff} 污染全局链接背景 */
body a {
    background: transparent !important;
}

/* -----------------------------------------------------------------
   4. 卡片
----------------------------------------------------------------- */
.card, .box, .dcat-box, .small-box {
    background: #fff !important;
    border: 1px solid #e8ecf4 !important;
    border-radius: 10px !important;
    box-shadow: 0 1px 6px rgba(0,0,0,0.06) !important;
}
.card-header, .box-header {
    background: #fafbfe !important;
    border-bottom: 1px solid #eef1f8 !important;
    color: #1e293b !important;
    font-weight: 600 !important;
}
.card-body, .box-body { color: #334155 !important; }
.card-title, .box-title { color: #1e293b !important; font-weight: 600 !important; }
.card-footer, .box-footer {
    background: #fafbfe !important;
    border-top: 1px solid #eef1f8 !important;
}

/* -----------------------------------------------------------------
   5. 表格
----------------------------------------------------------------- */
.table thead th {
    background: #f1f4f9 !important;
    color: #64748b !important;
    border: none !important;
    border-bottom: 1px solid #e8ecf4 !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.6px !important;
    padding: 10px 12px !important;
}
.table tbody td {
    background: #fff !important;
    color: #334155 !important;
    border: none !important;
    border-top: 1px solid #eef1f8 !important;
    padding: 11px 12px !important;
    font-size: 13px !important;
}
.table tbody tr:hover td { background: #f8f9fd !important; }
.table tbody tr td:first-child { border-radius: 6px 0 0 6px !important; }
.table tbody tr td:last-child  { border-radius: 0 6px 6px 0 !important; }

/* -----------------------------------------------------------------
   6. 表单
----------------------------------------------------------------- */
.form-control,
select.form-control,
textarea.form-control,
input[type="text"],
input[type="password"],
input[type="email"],
input[type="number"],
input[type="search"] {
    background: #fff !important;
    border: 1px solid #dde3f0 !important;
    color: #334155 !important;
    border-radius: 7px !important;
}
.form-control:focus {
    border-color: #6366f1 !important;
    box-shadow: 0 0 0 3px rgba(99,102,241,0.12) !important;
}
.input-group-text {
    background: #eef1f8 !important;
    border-color: #dde3f0 !important;
    color: #64748b !important;
}
.control-label, label { color: #475569 !important; font-size: 13px !important; }

/* -----------------------------------------------------------------
   7. 按钮
----------------------------------------------------------------- */
.btn { border-radius: 7px !important; font-size: 13px !important; font-weight: 500 !important; }
.btn-primary  { background: linear-gradient(135deg,#6366f1,#818cf8) !important; color: #fff !important; border: none !important; box-shadow: 0 2px 8px rgba(99,102,241,0.3) !important; }
.btn-success  { background: linear-gradient(135deg,#059669,#10b981) !important; color: #fff !important; border: none !important; }
.btn-danger   { background: linear-gradient(135deg,#dc2626,#f87171) !important; color: #fff !important; border: none !important; }
.btn-warning  { background: linear-gradient(135deg,#d97706,#fbbf24) !important; color: #fff !important; border: none !important; }
.btn-default,
.btn-secondary {
    background: #eef1f8 !important;
    color: #475569 !important;
    border: 1px solid #dde3f0 !important;
}

/* -----------------------------------------------------------------
   8. AMis 框架组件 (.amis-scope)
----------------------------------------------------------------- */
.amis-scope {
    color: #334155 !important;
}
.amis-scope a {
    background: transparent !important;
    color: #6366f1 !important;
}
.amis-scope table,
.amis-scope .cxd-Table,
.amis-scope .Table-table {
    background: #fff !important;
    color: #334155 !important;
}
.amis-scope thead th,
.amis-scope .cxd-Table-thead th {
    background: #f1f4f9 !important;
    color: #64748b !important;
    border-bottom: 1px solid #e8ecf4 !important;
    font-size: 12px !important;
    font-weight: 600 !important;
}
.amis-scope tbody td,
.amis-scope .cxd-Table-tbody td {
    background: #fff !important;
    color: #334155 !important;
    border-bottom: 1px solid #eef1f8 !important;
}
.amis-scope tbody tr:hover td { background: #f8f9fd !important; }

.amis-scope .cxd-Panel,
.amis-scope .Panel,
.amis-scope .cxd-Card,
.amis-scope .Card {
    background: #fff !important;
    border: 1px solid #e8ecf4 !important;
    border-radius: 10px !important;
    color: #334155 !important;
}
.amis-scope .cxd-Panel-heading,
.amis-scope .Panel-heading {
    background: #fafbfe !important;
    border-bottom: 1px solid #eef1f8 !important;
    color: #1e293b !important;
}
.amis-scope div,
.amis-scope span:not([class*="icon"]):not([class*="svg"]),
.amis-scope p, .amis-scope td, .amis-scope th, .amis-scope label {
    color: #334155;
}
.amis-scope .cxd-PropertyItem-label { color: #64748b !important; font-size: 12px !important; }
.amis-scope .cxd-PropertyItem-value { color: #1e293b !important; font-weight: 600 !important; }
.amis-scope input,
.amis-scope select,
.amis-scope .cxd-Select,
.amis-scope .cxd-TextControl-input {
    background: #fff !important;
    color: #334155 !important;
    border-color: #dde3f0 !important;
}

/* -----------------------------------------------------------------
   9. info-box
----------------------------------------------------------------- */
.info-box {
    background: #fff !important;
    border: 1px solid #e8ecf4 !important;
    border-radius: 10px !important;
}
.info-box-text  { color: #64748b !important; font-size: 12px !important; }
.info-box-number { color: #1e293b !important; font-size: 22px !important; font-weight: 700 !important; }

/* -----------------------------------------------------------------
   10. 其他全局元素
----------------------------------------------------------------- */
/* 面包屑 */
.content-header h1 { color: #1e293b !important; font-size: 18px !important; font-weight: 600 !important; }
.breadcrumb { background: transparent !important; }
.breadcrumb-item a { background: transparent !important; color: #6366f1 !important; }
.breadcrumb-item.active,
.breadcrumb-item + .breadcrumb-item::before { color: #94a3b8 !important; }

/* 分页 */
.pagination .page-link {
    background: #fff !important;
    border-color: #dde3f0 !important;
    color: #475569 !important;
    border-radius: 6px !important;
}
.pagination .page-item.active .page-link {
    background: #6366f1 !important;
    border-color: #6366f1 !important;
    color: #fff !important;
}

/* Badge */
.badge { border-radius: 5px !important; font-size: 11px !important; font-weight: 600 !important; padding: 3px 7px !important; }

/* 下拉菜单 */
.dropdown-menu {
    background: #fff !important;
    border: 1px solid #e8ecf4 !important;
    border-radius: 10px !important;
    box-shadow: 0 8px 24px rgba(0,0,0,0.1) !important;
    padding: 6px !important;
}
.dropdown-item {
    background: transparent !important;
    color: #475569 !important;
    border-radius: 6px !important;
    font-size: 13px !important;
    padding: 8px 12px !important;
}
.dropdown-item:hover { background: rgba(99,102,241,0.08) !important; color: #6366f1 !important; }

/* 模态框 */
.modal-content { background: #fff !important; border-radius: 12px !important; color: #334155 !important; }
.modal-header { border-color: #eef1f8 !important; }
.modal-title { color: #1e293b !important; font-weight: 600 !important; }

/* Select2 */
.select2-container--default .select2-selection--single,
.select2-container--default .select2-selection--multiple {
    background: #fff !important;
    border: 1px solid #dde3f0 !important;
    border-radius: 7px !important;
    min-height: 38px !important;
}
.select2-container--default .select2-selection--single .select2-selection__rendered {
    color: #334155 !important;
    line-height: 36px !important;
}
.select2-dropdown {
    background: #fff !important;
    border: 1px solid #dde3f0 !important;
    border-radius: 8px !important;
    box-shadow: 0 8px 24px rgba(0,0,0,0.1) !important;
}
.select2-container--default .select2-results__option { color: #475569 !important; font-size: 13px !important; }
.select2-container--default .select2-results__option--highlighted {
    background: rgba(99,102,241,0.08) !important;
    color: #6366f1 !important;
}

/* 链接 */
a { color: #6366f1 !important; }
a:hover { opacity: 0.85; text-decoration: none !important; }
.text-muted { color: #94a3b8 !important; }

/* 进度条 */
#nprogress .bar { background: #6366f1 !important; height: 2px !important; }

/* 滚动条 */
*::-webkit-scrollbar { width: 4px !important; height: 4px !important; }
*::-webkit-scrollbar-track { background: transparent !important; }
*::-webkit-scrollbar-thumb { background: rgba(99,102,241,0.3) !important; border-radius: 4px !important; }
*::-webkit-scrollbar-thumb:hover { background: #6366f1 !important; }

/* 工具类 */
.hidden, .field_hidden { opacity: 0 !important; display: none !important; }
.fs-12 { font-size: 12px !important; }
.fs-12 td { font-size: 12px !important; }
.bg-green_light  { background: rgba(5,150,105,0.10) !important; }
.bg-blue_light   { background: rgba(99,102,241,0.10) !important; }
.bg-red_light    { background: rgba(220,38,38,0.10) !important; }
.bg-yellow_light { background: rgba(217,119,6,0.12) !important; }
