/* ================================================
   Windows XP Luna 风格 - 用户前端
   ================================================ */

/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    background: #f8f8f8;
}

body {
    font-family: Tahoma, "Microsoft YaHei", Verdana, Arial, sans-serif !important;
    font-size: 12px !important;
    color: #000000 !important;
    background: linear-gradient(135deg, #7eb3d4 0%, #5a8fb9 100%) !important;
    min-height: 100vh;
    overflow-x: hidden;
    line-height: 1.4 !important;
}

/* XP风格的窗口框架 */
.xp-window {
    background: #ece9d8;
    border: 2px solid;
    border-color: #dfcedb #8f8680 #8f8680 #dfcedb;
    border-radius: 0;
    margin: 20px auto;
    max-width: 900px;
    box-shadow: 1px 1px 0 #ffffff inset, 1px 1px 0 #838383;
}

.xp-titlebar {
    background: linear-gradient(90deg, #000080 0%, #1084d7 100%);
    color: #ffffff;
    padding: 2px 2px 2px 4px;
    font-size: 11px;
    font-weight: bold;
    cursor: move;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid;
    border-color: #dfcedb #8f8680 #8f8680 #dfcedb;
}

.xp-titlebar-icon {
    width: 16px;
    height: 14px;
    margin-right: 4px;
    display: inline-block;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 14"><circle cx="8" cy="7" r="5" fill="%23ffffff"/></svg>') center/contain no-repeat;
}

.xp-window-content {
    padding: 8px;
    background: #ece9d8;
}

.xp-panel {
    background: #ece9d8;
    border: 2px solid;
    border-color: #dfcedb #8f8680 #8f8680 #dfcedb;
    margin-bottom: 8px;
    padding: 4px;
    box-shadow: 1px 1px 0 #ffffff inset;
}

.xp-panel-header {
    background: linear-gradient(90deg, #000080 0%, #1084d7 100%);
    color: #ffffff;
    padding: 2px 4px;
    font-weight: bold;
    font-size: 11px;
    margin-bottom: 4px;
    border: 1px solid;
    border-color: #dfcedb #8f8680 #8f8680 #dfcedb;
}

.xp-panel-content {
    padding: 8px;
    background: #ece9d8;
}

/* 按钮样式 */
.xp-btn, .btn, button, input[type="button"], input[type="submit"], input[type="reset"] {
    background: linear-gradient(180deg, #f0f0f0 0%, #dfdfdf 100%);
    border: 2px solid;
    border-color: #dfcedb #8f8680 #8f8680 #dfcedb;
    color: #000;
    padding: 4px 12px;
    font-family: Tahoma, sans-serif;
    font-size: 11px;
    font-weight: bold;
    cursor: pointer;
    border-radius: 0;
    min-height: 24px;
    display: inline-block;
    text-align: center;
    vertical-align: middle;
    transition: all 0.1s ease;
}

.xp-btn:hover, .btn:hover, button:hover, input[type="button"]:hover, input[type="submit"]:hover {
    background: linear-gradient(180deg, #ffffff 0%, #dfdfdf 100%);
    border-color: #dfcedb #505050 #505050 #dfcedb;
}

.xp-btn:active, .btn:active, button:active, input[type="button"]:active, input[type="submit"]:active {
    background: linear-gradient(180deg, #dfdfdf 0%, #f0f0f0 100%);
    border-color: #505050 #dfcedb #dfcedb #505050;
    box-shadow: 1px 1px 0 #ffffff inset;
}

.xp-btn-primary {
    background: linear-gradient(180deg, #0066cc 0%, #0052a3 100%);
    color: #ffffff;
    border-color: #dfcedb #8f8680 #8f8680 #dfcedb;
}

.xp-btn-primary:hover {
    background: linear-gradient(180deg, #0077dd 0%, #0052a3 100%);
}

.xp-btn-primary:active {
    background: linear-gradient(180deg, #0052a3 0%, #0066cc 100%);
    border-color: #505050 #dfcedb #dfcedb #505050;
}

.xp-btn:disabled, button:disabled, input:disabled {
    color: #a6a7a6;
    background: #e8e8e8;
    border-color: #dfcedb #8f8680 #8f8680 #dfcedb;
    cursor: not-allowed;
}

/* 输入框样式 */
input[type="text"],
input[type="password"],
input[type="email"],
input[type="number"],
input[type="date"],
textarea,
select {
    background: #ffffff;
    border: 2px solid;
    border-color: #8f8680 #dfcedb #dfcedb #8f8680;
    font-family: Tahoma, sans-serif;
    font-size: 11px;
    padding: 3px 4px;
    color: #000;
    box-shadow: 1px 1px 0 #ffffff inset;
}

input[type="text"]:focus,
input[type="password"]:focus,
input[type="email"]:focus,
input[type="number"]:focus,
input[type="date"]:focus,
textarea:focus,
select:focus {
    outline: none;
    background: #ffffff;
    border-color: #000080 #000080 #dfcedb #000080;
}

textarea {
    resize: both;
}

/* 复选框和单选按钮 */
input[type="checkbox"],
input[type="radio"] {
    cursor: pointer;
    margin-right: 4px;
}

/* 导航菜单 */
.xp-navbar {
    background: linear-gradient(90deg, #000080 0%, #1084d7 100%);
    border: 2px solid;
    border-color: #dfcedb #8f8680 #8f8680 #dfcedb;
    padding: 0;
    margin-bottom: 8px;
}

.xp-navbar-menu {
    list-style: none;
    display: flex;
    margin: 0;
    padding: 2px;
}

.xp-navbar-item {
    border-right: 1px solid #1084d7;
    padding: 0;
    margin: 0;
}

.xp-navbar-item:last-child {
    border-right: none;
}

.xp-navbar-link {
    display: block;
    color: #ffffff;
    text-decoration: none;
    padding: 4px 12px;
    font-size: 11px;
    font-weight: bold;
    transition: all 0.1s ease;
    font-family: Tahoma, sans-serif;
}

.xp-navbar-link:hover {
    background: rgba(255, 255, 255, 0.2);
}

.xp-navbar-link:active {
    background: rgba(0, 0, 0, 0.1);
}

/* 选项卡样式 */
.xp-tabs {
    border-bottom: 2px solid;
    border-color: #dfcedb #8f8680 #8f8680 #dfcedb;
    background: #ece9d8;
    margin-bottom: 8px;
}

.xp-tabs-list {
    list-style: none;
    display: flex;
    margin: 0;
    padding: 4px 4px 0 4px;
}

.xp-tabs-item {
    margin-right: 2px;
    margin-bottom: 0;
}

.xp-tabs-link {
    display: block;
    padding: 4px 12px;
    background: linear-gradient(180deg, #e8e4d9 0%, #d4cfc1 100%);
    border: 2px solid;
    border-color: #dfcedb #8f8680 #8f8680 #dfcedb;
    border-bottom: none;
    font-size: 11px;
    font-family: Tahoma, sans-serif;
    color: #000;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.1s ease;
    border-radius: 0;
}

.xp-tabs-link:hover {
    background: linear-gradient(180deg, #f0f0f0 0%, #dfdfdf 100%);
}

.xp-tabs-link.active {
    background: linear-gradient(180deg, #ece9d8 0%, #e8e4d9 100%);
    border-color: #dfcedb #8f8680 #dfcedb #8f8680;
    padding-bottom: 6px;
}

.xp-tabs-content {
    background: #ece9d8;
    padding: 8px;
    display: none;
}

.xp-tabs-content.active {
    display: block;
}

/* 分隔线 */
.xp-divider {
    border: none;
    border-top: 1px solid #8f8680;
    border-bottom: 1px solid #dfcedb;
    margin: 4px 0;
    height: 0;
}

hr {
    border: none;
    border-top: 1px solid #8f8680;
    border-bottom: 1px solid #dfcedb;
    margin: 8px 0;
}

/* 表格样式 */
table {
    width: 100%;
    border-collapse: collapse;
    background: #ffffff;
    border: 2px solid;
    border-color: #8f8680 #dfcedb #dfcedb #8f8680;
    margin-bottom: 8px;
}

table th {
    background: linear-gradient(180deg, #e8e4d9 0%, #d4cfc1 100%);
    color: #000;
    padding: 4px 6px;
    text-align: left;
    font-weight: bold;
    border: 1px solid #dfcedb;
    font-size: 11px;
    font-family: Tahoma, sans-serif;
}

table td {
    padding: 4px 6px;
    border: 1px solid #dfcedb;
    font-size: 11px;
    font-family: Tahoma, sans-serif;
}

table tbody tr:hover {
    background: #e6f2ff;
}

table tbody tr.selected {
    background: #0066cc;
    color: #ffffff;
}

/* 警告框 */
.xp-alert {
    background: #ffffcc;
    border: 2px solid;
    border-color: #dfcedb #8f8680 #8f8680 #dfcedb;
    padding: 8px;
    margin-bottom: 8px;
    color: #000;
    font-size: 11px;
    font-family: Tahoma, sans-serif;
}

.xp-alert.error {
    background: #ffcccc;
    color: #cc0000;
}

.xp-alert.success {
    background: #ccffcc;
    color: #006600;
}

.xp-alert.warning {
    background: #ffffcc;
    color: #996600;
}

.xp-alert.info {
    background: #ccccff;
    color: #000099;
}

/* 列表框 */
.xp-listbox {
    background: #ffffff;
    border: 2px solid;
    border-color: #8f8680 #dfcedb #dfcedb #8f8680;
    padding: 4px;
    max-height: 200px;
    overflow-y: auto;
    font-size: 11px;
    font-family: Tahoma, sans-serif;
    box-shadow: 1px 1px 0 #ffffff inset;
}

.xp-listbox-item {
    padding: 2px 4px;
    border: 1px solid transparent;
    cursor: pointer;
}

.xp-listbox-item:hover {
    background: #0066cc;
    color: #ffffff;
    border: 1px solid #000080;
}

.xp-listbox-item.selected {
    background: #0066cc;
    color: #ffffff;
    border: 1px solid #000080;
}

/* 进度条 */
.xp-progressbar {
    background: #ece9d8;
    border: 2px solid;
    border-color: #8f8680 #dfcedb #dfcedb #8f8680;
    padding: 2px;
    height: 20px;
    overflow: hidden;
}

.xp-progressbar-fill {
    background: linear-gradient(90deg, #0066cc 0%, #0052a3 100%);
    height: 100%;
    width: 0%;
    transition: width 0.3s ease;
    box-shadow: 1px 1px 0 #ffffff inset;
}

/* 文本和字符 */
a {
    color: #0066cc;
    text-decoration: none;
    cursor: pointer;
}

a:hover {
    color: #0052a3;
    text-decoration: underline;
}

a:visited {
    color: #551a8b;
}

h1, h2, h3, h4, h5, h6 {
    font-family: Tahoma, sans-serif;
    color: #000;
    margin: 8px 0;
    font-weight: bold;
}

h1 {
    font-size: 18px;
}

h2 {
    font-size: 16px;
}

h3 {
    font-size: 14px;
}

h4 {
    font-size: 12px;
}

h5, h6 {
    font-size: 11px;
}

/* 标签和badge */
.xp-label {
    display: inline-block;
    font-size: 11px;
    padding: 2px 4px;
    background: #ece9d8;
    border: 1px solid #dfcedb;
    font-family: Tahoma, sans-serif;
}

.xp-badge {
    display: inline-block;
    font-size: 10px;
    padding: 2px 6px;
    background: #0066cc;
    color: #ffffff;
    border: 1px solid #003f7f;
    border-radius: 0;
    font-family: Tahoma, sans-serif;
    font-weight: bold;
}

/* 菜单项 */
.xp-menu {
    background: #ece9d8;
    border: 2px solid;
    border-color: #dfcedb #8f8680 #8f8680 #dfcedb;
    padding: 2px;
    margin: 0;
    list-style: none;
    font-size: 11px;
    font-family: Tahoma, sans-serif;
    box-shadow: 1px 1px 0 #ffffff inset, 1px 1px 0 #838383;
}

.xp-menu-item {
    padding: 2px 0;
    margin: 0;
}

.xp-menu-link {
    display: block;
    padding: 2px 12px;
    color: #000;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.1s ease;
}

.xp-menu-link:hover {
    background: linear-gradient(90deg, #0066cc 0%, #0052a3 100%);
    color: #ffffff;
}

.xp-menu-link.disabled {
    color: #a6a7a6;
    cursor: not-allowed;
}

.xp-menu-divider {
    border-top: 1px solid #8f8680;
    border-bottom: 1px solid #dfcedb;
    margin: 2px 0;
    height: 0;
}

/* 状态栏 */
.xp-statusbar {
    background: linear-gradient(90deg, #dfcedb 0%, #ece9d8 100%);
    border-top: 2px solid;
    border-color: #dfcedb #8f8680 #8f8680 #dfcedb;
    padding: 2px 4px;
    font-size: 11px;
    font-family: Tahoma, sans-serif;
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 24px;
}

.xp-statusbar-item {
    padding: 2px 4px;
    border-right: 1px solid #dfcedb;
}

.xp-statusbar-item:last-child {
    border-right: none;
}

/* 表单组 */
.xp-form-group {
    margin-bottom: 12px;
}

.xp-form-group label {
    display: block;
    margin-bottom: 4px;
    font-size: 11px;
    font-family: Tahoma, sans-serif;
    font-weight: bold;
}

.xp-form-group input,
.xp-form-group textarea,
.xp-form-group select {
    width: 100%;
}

/* 网格布局 */
.xp-row {
    display: flex;
    gap: 8px;
    margin-bottom: 8px;
}

.xp-col {
    flex: 1;
}

.xp-col-2 {
    width: calc(50% - 4px);
}

.xp-col-3 {
    width: calc(33.333% - 5px);
}

.xp-col-4 {
    width: calc(25% - 6px);
}

/* 响应式 */
@media (max-width: 768px) {
    .xp-window {
        max-width: 95vw;
    }
    
    .xp-row {
        flex-direction: column;
    }
    
    .xp-col-2,
    .xp-col-3,
    .xp-col-4 {
        width: 100%;
    }
    
    .xp-navbar-menu {
        flex-direction: column;
    }
    
    .xp-navbar-item {
        border-right: none;
        border-bottom: 1px solid #1084d7;
    }
    
    .xp-navbar-item:last-child {
        border-bottom: none;
    }
    
    .xp-tabs-list {
        flex-wrap: wrap;
    }
}

/* 辅助类 */
.xp-text-center {
    text-align: center;
}

.xp-text-right {
    text-align: right;
}

.xp-text-left {
    text-align: left;
}

.xp-m-0 {
    margin: 0;
}

.xp-mt-10 {
    margin-top: 10px;
}

.xp-mb-10 {
    margin-bottom: 10px;
}

.xp-p-10 {
    padding: 10px;
}

.xp-hidden {
    display: none;
}

.xp-block {
    display: block;
}

.xp-inline {
    display: inline;
}

.xp-inline-block {
    display: inline-block;
}

/* 模态框 */
.xp-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.xp-modal-content {
    background: #ece9d8;
    border: 2px solid;
    border-color: #dfcedb #8f8680 #8f8680 #dfcedb;
    min-width: 300px;
    max-width: 600px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
}

.xp-modal-header {
    background: linear-gradient(90deg, #000080 0%, #1084d7 100%);
    color: #ffffff;
    padding: 2px 4px;
    font-weight: bold;
    font-size: 11px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid;
    border-color: #dfcedb #8f8680 #8f8680 #dfcedb;
}

.xp-modal-close {
    background: linear-gradient(180deg, #f0f0f0 0%, #dfdfdf 100%);
    border: 2px solid;
    border-color: #dfcedb #8f8680 #8f8680 #dfcedb;
    width: 18px;
    height: 14px;
    padding: 0;
    cursor: pointer;
    font-size: 10px;
    line-height: 1;
    color: #000;
    vertical-align: middle;
}

.xp-modal-body {
    padding: 8px;
    background: #ece9d8;
}

.xp-modal-footer {
    padding: 8px;
    background: #ece9d8;
    border-top: 1px solid #dfcedb;
    text-align: right;
}

/* Bootstrap布局兼容 - 不要重置这些类 */
.app-content,
.app-content-body,
.wrapper-md,
.control {
    display: block !important;
}

/* 表单水平布局修复 */
.form-horizontal .form-group {
    display: flex !important;
    flex-wrap: wrap !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    margin-bottom: 12px !important;
    align-items: flex-start !important;
}

.form-horizontal .control-label {
    text-align: right !important;
    padding-right: 10px !important;
    padding-top: 6px !important;
    font-weight: bold !important;
}

/* Bootstrap栅格系统修复 */
.col-sm-1, .col-sm-2, .col-sm-3, .col-sm-4, .col-sm-5, .col-sm-6,
.col-sm-7, .col-sm-8, .col-sm-9, .col-sm-10, .col-sm-11, .col-sm-12,
.col-xs-1, .col-xs-2, .col-xs-3, .col-xs-4, .col-xs-5, .col-xs-6,
.col-xs-7, .col-xs-8, .col-xs-9, .col-xs-10, .col-xs-11, .col-xs-12 {
    position: relative !important;
    float: left !important;
    padding-left: 8px !important;
    padding-right: 8px !important;
}

.col-sm-2 { width: 16.66666667% !important; }
.col-sm-3 { width: 25% !important; }
.col-sm-4 { width: 33.33333333% !important; }
.col-sm-5 { width: 41.66666667% !important; }
.col-sm-6 { width: 50% !important; }
.col-sm-9 { width: 75% !important; }
.col-sm-10 { width: 83.33333333% !important; }
.col-sm-offset-2 { margin-left: 16.66666667% !important; }

.col-xs-6 { width: 50% !important; }

/* 清除浮动 */
.form-group::after,
.row::after {
    content: "" !important;
    display: table !important;
    clear: both !important;
}

/* 模态框 - 默认隐藏 */
.modal {
    display: none !important;
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    z-index: 1050 !important;
    overflow: hidden !important;
}

.modal.in,
.modal.show {
    display: block !important;
}

.modal-backdrop {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    background: rgba(0, 0, 0, 0.5) !important;
    z-index: 1040 !important;
}

.modal-dialog {
    position: relative !important;
    margin: 50px auto !important;
    max-width: 500px !important;
    background: #ece9d8 !important;
    border: 2px solid !important;
    border-color: #dfcedb #8f8680 #8f8680 #dfcedb !important;
    box-shadow: 2px 2px 10px rgba(0,0,0,0.3) !important;
}

/* 选项卡样式修复 */
.nav-tabs {
    list-style: none !important;
    display: flex !important;
    margin: 0 !important;
    padding: 0 !important;
    border-bottom: 2px solid #8f8680 !important;
    background: #ece9d8 !important;
}

.nav-tabs > li {
    margin-bottom: -2px !important;
}

.nav-tabs > li > a {
    display: block !important;
    padding: 8px 16px !important;
    background: linear-gradient(180deg, #e8e4d9 0%, #d4cfc1 100%) !important;
    border: 2px solid !important;
    border-color: #dfcedb #8f8680 #8f8680 #dfcedb !important;
    border-bottom: none !important;
    color: #000000 !important;
    text-decoration: none !important;
    font-size: 12px !important;
    font-family: Tahoma, sans-serif !important;
}

.nav-tabs > li > a:hover {
    background: linear-gradient(180deg, #f0f0f0 0%, #dfdfdf 100%) !important;
}

.nav-tabs > li.active > a {
    background: #ece9d8 !important;
    border-bottom: 2px solid #ece9d8 !important;
    font-weight: bold !important;
}

.tab-content {
    background: #ece9d8 !important;
    padding: 16px !important;
    border: 2px solid #8f8680 !important;
    border-top: none !important;
}

.tab-pane {
    display: none !important;
}

.tab-pane.active {
    display: block !important;
}

/* 强制覆盖所有文字颜色 */
body, p, span, div, td, th, li, label, h1, h2, h3, h4, h5, h6,
.control-label, .form-label, .help-block, .text-muted,
.panel-body *, .wrapper-md *, .app-content *, .app-content-body *,
.fixed-table-pagination *, .pagination-detail *, .page-list *,
dt, dd, strong, em, b, i, small, .small,
.form-group label, .form-horizontal .control-label,
.radio label, .checkbox label,
.list-inline li, .list-group-item,
.text-info, .text-primary, .text-success, .text-warning, .text-danger,
.text-default, .text-dark, .text-black,
.font-bold, .font-thin, .h1, .h2, .h3, .h4, .h5, .h6,
.bg-light *, .bg-white *, .bg-info *, .bg-primary *,
.pull-left, .pull-right, .clearfix,
.col-xs-1, .col-xs-2, .col-xs-3, .col-xs-4, .col-xs-5, .col-xs-6,
.col-xs-7, .col-xs-8, .col-xs-9, .col-xs-10, .col-xs-11, .col-xs-12,
.col-sm-1, .col-sm-2, .col-sm-3, .col-sm-4, .col-sm-5, .col-sm-6,
.col-sm-7, .col-sm-8, .col-sm-9, .col-sm-10, .col-sm-11, .col-sm-12,
.col-md-1, .col-md-2, .col-md-3, .col-md-4, .col-md-5, .col-md-6,
.col-md-7, .col-md-8, .col-md-9, .col-md-10, .col-md-11, .col-md-12,
.col-lg-1, .col-lg-2, .col-lg-3, .col-lg-4, .col-lg-5, .col-lg-6,
.col-lg-7, .col-lg-8, .col-lg-9, .col-lg-10, .col-lg-11, .col-lg-12 {
    color: #000000 !important;
}

/* 确保所有文字都是黑色 */
* {
    color: inherit;
}

/* 根元素文字颜色 */
html, body {
    color: #000000 !important;
}

/* 链接颜色 */
a {
    color: #0066cc !important;
}

a:hover {
    color: #0052a3 !important;
}

/* 白色文字区域（标题栏等） */
.xp-titlebar,
.xp-titlebar *,
.xp-panel-header,
.xp-panel-header *,
.xp-navbar-link,
.xp-top-bar,
.xp-top-bar *,
.xp-modal-header,
.xp-modal-header * {
    color: #ffffff !important;
}

/* 侧边栏菜单激活状态 */
.xp-sidebar-menu a.active,
.xp-sidebar-menu a:hover {
    color: #ffffff !important;
}

/* 表格选中行 */
table tbody tr.selected,
table tbody tr.selected td {
    color: #ffffff !important;
}

/* 列表框选中项 */
.xp-listbox-item:hover,
.xp-listbox-item.selected {
    color: #ffffff !important;
}

/* 菜单悬停 */
.xp-menu-link:hover {
    color: #ffffff !important;
}

/* 按钮文字颜色 */
.xp-btn, .btn, button, input[type="button"], input[type="submit"], input[type="reset"] {
    color: #000000 !important;
}

.xp-btn-primary, .xp-btn-primary:hover {
    color: #ffffff !important;
}

/* 警告框文字颜色 */
.xp-alert {
    color: #000000 !important;
}

.xp-alert.error {
    color: #cc0000 !important;
}

.xp-alert.success {
    color: #006600 !important;
}

.xp-alert.warning {
    color: #996600 !important;
}

.xp-alert.info {
    color: #000099 !important;
}

/* 徽章颜色 */
.xp-badge {
    color: #ffffff !important;
}

/* 输入框文字颜色 */
input[type="text"],
input[type="password"],
input[type="email"],
input[type="number"],
input[type="date"],
textarea,
select {
    color: #000000 !important;
}

/* 状态栏文字 */
.xp-statusbar,
.xp-statusbar * {
    color: #000000 !important;
}

/* 版权信息 */
.xp-copyright {
    color: #666666 !important;
}

/* ================================================
   Bootstrap 兼容性样式 - XP风格覆盖
   ================================================ */

/* 面板样式 */
.panel,
.panel-default {
    background: #ece9d8 !important;
    border: 2px solid !important;
    border-color: #dfcedb #8f8680 #8f8680 #dfcedb !important;
    border-radius: 0 !important;
    box-shadow: 1px 1px 0 #ffffff inset, 1px 1px 0 #838383 !important;
    margin-bottom: 12px !important;
}

.panel-heading {
    background: linear-gradient(90deg, #000080 0%, #1084d7 100%) !important;
    color: #ffffff !important;
    padding: 6px 10px !important;
    border-bottom: 2px solid !important;
    border-color: #dfcedb #8f8680 #8f8680 #dfcedb !important;
    border-radius: 0 !important;
    font-family: Tahoma, sans-serif !important;
}

.panel-heading,
.panel-heading *,
.panel-title {
    color: #ffffff !important;
    font-size: 12px !important;
    font-weight: bold !important;
}

.panel-body {
    padding: 12px !important;
    background: #ece9d8 !important;
}

/* 表单控件 */
.form-control {
    background: #ffffff !important;
    border: 2px solid !important;
    border-color: #8f8680 #dfcedb #dfcedb #8f8680 !important;
    border-radius: 0 !important;
    font-family: Tahoma, sans-serif !important;
    font-size: 12px !important;
    padding: 4px 8px !important;
    color: #000000 !important;
    height: auto !important;
    min-height: 26px !important;
}

.form-control:focus {
    outline: none !important;
    border-color: #000080 #000080 #dfcedb #000080 !important;
    box-shadow: none !important;
}

.form-group {
    margin-bottom: 10px !important;
}

.form-inline .form-group {
    display: inline-block !important;
    margin-right: 8px !important;
    margin-bottom: 8px !important;
    vertical-align: middle !important;
}

/* 输入组 */
.input-group {
    display: inline-flex !important;
    align-items: stretch !important;
}

.input-group-addon {
    background: linear-gradient(180deg, #e8e4d9 0%, #d4cfc1 100%) !important;
    border: 2px solid !important;
    border-color: #dfcedb #8f8680 #8f8680 #dfcedb !important;
    border-radius: 0 !important;
    padding: 4px 8px !important;
    font-size: 12px !important;
    color: #000000 !important;
    font-family: Tahoma, sans-serif !important;
}

/* 按钮样式 */
.btn {
    background: linear-gradient(180deg, #f0f0f0 0%, #dfdfdf 100%) !important;
    border: 2px solid !important;
    border-color: #dfcedb #8f8680 #8f8680 #dfcedb !important;
    border-radius: 0 !important;
    color: #000000 !important;
    padding: 4px 12px !important;
    font-family: Tahoma, sans-serif !important;
    font-size: 12px !important;
    font-weight: bold !important;
    cursor: pointer !important;
    min-height: 26px !important;
    display: inline-block !important;
    text-align: center !important;
    vertical-align: middle !important;
    text-decoration: none !important;
}

.btn:hover {
    background: linear-gradient(180deg, #ffffff 0%, #dfdfdf 100%) !important;
    border-color: #dfcedb #505050 #505050 #dfcedb !important;
    text-decoration: none !important;
}

.btn:active {
    background: linear-gradient(180deg, #dfdfdf 0%, #f0f0f0 100%) !important;
    border-color: #505050 #dfcedb #dfcedb #505050 !important;
}

.btn-primary {
    background: linear-gradient(180deg, #0066cc 0%, #0052a3 100%) !important;
    color: #ffffff !important;
}

.btn-primary:hover {
    background: linear-gradient(180deg, #0077dd 0%, #0052a3 100%) !important;
    color: #ffffff !important;
}

.btn-success {
    background: linear-gradient(180deg, #5cb85c 0%, #449d44 100%) !important;
    color: #ffffff !important;
}

.btn-success:hover {
    background: linear-gradient(180deg, #6ec86e 0%, #449d44 100%) !important;
    color: #ffffff !important;
}

.btn-info {
    background: linear-gradient(180deg, #5bc0de 0%, #31b0d5 100%) !important;
    color: #ffffff !important;
}

.btn-info:hover {
    background: linear-gradient(180deg, #6dcfed 0%, #31b0d5 100%) !important;
    color: #ffffff !important;
}

.btn-warning {
    background: linear-gradient(180deg, #f0ad4e 0%, #ec971f 100%) !important;
    color: #ffffff !important;
}

.btn-warning:hover {
    background: linear-gradient(180deg, #f2b866 0%, #ec971f 100%) !important;
    color: #ffffff !important;
}

.btn-danger {
    background: linear-gradient(180deg, #d9534f 0%, #c9302c 100%) !important;
    color: #ffffff !important;
}

.btn-danger:hover {
    background: linear-gradient(180deg, #e06460 0%, #c9302c 100%) !important;
    color: #ffffff !important;
}

.btn-default {
    background: linear-gradient(180deg, #f0f0f0 0%, #dfdfdf 100%) !important;
    color: #000000 !important;
}

.btn-xs {
    padding: 2px 8px !important;
    font-size: 11px !important;
    min-height: 22px !important;
}

.btn-sm {
    padding: 3px 10px !important;
    font-size: 11px !important;
    min-height: 24px !important;
}

/* 警告框 */
.alert {
    background: #ffffcc !important;
    border: 2px solid !important;
    border-color: #dfcedb #8f8680 #8f8680 #dfcedb !important;
    border-radius: 0 !important;
    padding: 10px !important;
    margin-bottom: 12px !important;
    color: #000000 !important;
    font-size: 12px !important;
    font-family: Tahoma, sans-serif !important;
}

.alert-info {
    background: #ccccff !important;
    color: #000099 !important;
}

.alert-success {
    background: #ccffcc !important;
    color: #006600 !important;
}

.alert-warning {
    background: #ffffcc !important;
    color: #996600 !important;
}

.alert-danger {
    background: #ffcccc !important;
    color: #cc0000 !important;
}

/* 标签 */
.label {
    display: inline-block !important;
    padding: 2px 6px !important;
    font-size: 11px !important;
    font-weight: bold !important;
    border-radius: 0 !important;
    font-family: Tahoma, sans-serif !important;
}

.label-primary {
    background: #0066cc !important;
    color: #ffffff !important;
}

.label-success {
    background: #5cb85c !important;
    color: #ffffff !important;
}

.label-info {
    background: #5bc0de !important;
    color: #ffffff !important;
}

.label-warning {
    background: #f0ad4e !important;
    color: #ffffff !important;
}

.label-danger {
    background: #d9534f !important;
    color: #ffffff !important;
}

/* 模态框 */
.modal {
    display: none;
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    background: rgba(0, 0, 0, 0.5) !important;
    z-index: 1000 !important;
    align-items: center !important;
    justify-content: center !important;
}

.modal.in,
.modal.show {
    display: flex !important;
}

.modal-dialog {
    background: #ece9d8 !important;
    border: 2px solid !important;
    border-color: #dfcedb #8f8680 #8f8680 #dfcedb !important;
    min-width: 300px !important;
    max-width: 600px !important;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.3) !important;
    margin: auto !important;
}

.modal-content {
    background: #ece9d8 !important;
    border: none !important;
    border-radius: 0 !important;
}

.modal-header {
    background: linear-gradient(90deg, #000080 0%, #1084d7 100%) !important;
    color: #ffffff !important;
    padding: 6px 10px !important;
    border-bottom: 2px solid !important;
    border-color: #dfcedb #8f8680 #8f8680 #dfcedb !important;
    border-radius: 0 !important;
}

.modal-header,
.modal-header *,
.modal-title {
    color: #ffffff !important;
    font-size: 12px !important;
    font-weight: bold !important;
}

.modal-header .close {
    color: #ffffff !important;
    opacity: 1 !important;
    font-size: 16px !important;
    text-shadow: none !important;
}

.modal-body {
    padding: 12px !important;
    background: #ece9d8 !important;
    color: #000000 !important;
}

.modal-footer {
    padding: 10px !important;
    background: #ece9d8 !important;
    border-top: 1px solid #dfcedb !important;
    text-align: right !important;
}

/* 表格样式 */
.table {
    width: 100% !important;
    border-collapse: collapse !important;
    background: #ffffff !important;
    border: 2px solid !important;
    border-color: #8f8680 #dfcedb #dfcedb #8f8680 !important;
    margin-bottom: 12px !important;
}

.table th {
    background: linear-gradient(180deg, #e8e4d9 0%, #d4cfc1 100%) !important;
    color: #000000 !important;
    padding: 6px 8px !important;
    text-align: left !important;
    font-weight: bold !important;
    border: 1px solid #dfcedb !important;
    font-size: 12px !important;
    font-family: Tahoma, sans-serif !important;
}

.table td {
    padding: 6px 8px !important;
    border: 1px solid #dfcedb !important;
    font-size: 12px !important;
    font-family: Tahoma, sans-serif !important;
    color: #000000 !important;
    background: #ffffff !important;
}

.table-striped tbody tr:nth-of-type(odd) td {
    background: #f8f8f8 !important;
}

.table-hover tbody tr:hover td {
    background: #e6f2ff !important;
}

.table-bordered {
    border: 2px solid !important;
    border-color: #8f8680 #dfcedb #dfcedb #8f8680 !important;
}

.table-condensed th,
.table-condensed td {
    padding: 4px 6px !important;
}

/* 分页 */
.pagination {
    display: flex !important;
    list-style: none !important;
    margin: 10px 0 !important;
    padding: 0 !important;
}

.pagination li {
    margin: 0 2px !important;
}

.pagination li a,
.pagination li span {
    display: block !important;
    padding: 4px 10px !important;
    background: linear-gradient(180deg, #f0f0f0 0%, #dfdfdf 100%) !important;
    border: 2px solid !important;
    border-color: #dfcedb #8f8680 #8f8680 #dfcedb !important;
    color: #000000 !important;
    text-decoration: none !important;
    font-size: 12px !important;
    font-family: Tahoma, sans-serif !important;
}

.pagination li a:hover {
    background: linear-gradient(180deg, #ffffff 0%, #dfdfdf 100%) !important;
}

.pagination li.active a,
.pagination li.active span {
    background: linear-gradient(180deg, #0066cc 0%, #0052a3 100%) !important;
    color: #ffffff !important;
}

/* 隐藏类 */
.hidden-print {
    display: block !important;
}

/* 包装器 */
.wrapper-md {
    padding: 12px !important;
}

.bg-light {
    background: linear-gradient(90deg, #e8e4d9 0%, #d4cfc1 100%) !important;
    padding: 10px 12px !important;
    border-bottom: 2px solid !important;
    border-color: #dfcedb #8f8680 #8f8680 #dfcedb !important;
    margin-bottom: 0 !important;
}

.bg-light h1,
.bg-light h2,
.bg-light h3 {
    margin: 0 !important;
    font-size: 14px !important;
    font-weight: bold !important;
    color: #000000 !important;
}

/* 列表 */
.list-inline {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

.list-inline li {
    display: inline-block !important;
    margin-right: 15px !important;
    font-size: 12px !important;
    color: #000000 !important;
}

/* 字体辅助类 */
.font-bold {
    font-weight: bold !important;
}

.font-thin {
    font-weight: normal !important;
}

.m-n {
    margin: 0 !important;
}

.h3 {
    font-size: 14px !important;
}

/* Bootstrap Table 插件样式 */
.fixed-table-toolbar {
    padding: 10px !important;
    background: #ece9d8 !important;
}

.fixed-table-pagination {
    padding: 10px !important;
    background: #ece9d8 !important;
}

.fixed-table-container {
    border: 2px solid !important;
    border-color: #8f8680 #dfcedb #dfcedb #8f8680 !important;
}

/* 日期选择器 */
.datepicker {
    background: #ece9d8 !important;
    border: 2px solid !important;
    border-color: #dfcedb #8f8680 #8f8680 #dfcedb !important;
    border-radius: 0 !important;
    font-family: Tahoma, sans-serif !important;
    font-size: 12px !important;
}

.datepicker table {
    border: none !important;
}

.datepicker td,
.datepicker th {
    border: none !important;
    padding: 4px 8px !important;
}

.datepicker td.active,
.datepicker td.active:hover {
    background: linear-gradient(180deg, #0066cc 0%, #0052a3 100%) !important;
    color: #ffffff !important;
}

/* ================================================
   额外的文字颜色修复
   ================================================ */

/* 状态栏和页脚文字颜色 - 强制黑色 */
.xp-statusbar,
.xp-statusbar *,
.xp-statusbar span,
.xp-statusbar div,
.xp-statusbar-item,
.xp-statusbar-item * {
    color: #000000 !important;
}

/* 分页信息文字颜色 */
.fixed-table-pagination,
.fixed-table-pagination *,
.pagination-detail,
.pagination-detail *,
.pagination-info,
.pagination-info *,
.page-list,
.page-list *,
.page-list span,
.page-list select {
    color: #000000 !important;
}

/* Bootstrap Table 分页文字 */
.fixed-table-pagination .pagination-detail span,
.fixed-table-pagination .page-list span,
.fixed-table-pagination span.pagination-info {
    color: #000000 !important;
}

/* 版权信息 */
.xp-copyright,
.xp-copyright *,
footer,
footer *,
.footer,
.footer * {
    color: #000000 !important;
}

/* 表单标签颜色修复 */
.form-group label,
.form-horizontal .control-label,
.control-label,
label.control-label,
.radio label,
.checkbox label,
.form-check-label {
    color: #000000 !important;
}

/* 列表项文字颜色 */
.list-inline li,
.list-inline li span,
.list-group-item,
.list-group-item * {
    color: #000000 !important;
}

/* 修复可能被覆盖的白色文字区域 */
.game-titlebar,
.game-titlebar *,
.xp-login-titlebar,
.xp-login-titlebar *,
.xp-titlebar,
.xp-titlebar *,
.xp-panel-header,
.xp-panel-header *,
.xp-navbar-link,
.xp-top-bar,
.xp-top-bar *,
.xp-modal-header,
.xp-modal-header *,
.panel-heading,
.panel-heading *,
.panel-title,
.modal-header,
.modal-header *,
.modal-title {
    color: #ffffff !important;
}

/* 按钮内文字颜色 */
.btn:not(.btn-primary):not(.btn-success):not(.btn-info):not(.btn-warning):not(.btn-danger),
.btn-default,
.btn-default * {
    color: #000000 !important;
}

.btn-primary,
.btn-primary *,
.btn-success,
.btn-success *,
.btn-info,
.btn-info *,
.btn-warning,
.btn-warning *,
.btn-danger,
.btn-danger * {
    color: #ffffff !important;
}

/* 标签颜色 */
.label,
.label-default,
.label-primary,
.label-success,
.label-info,
.label-warning,
.label-danger {
    color: #ffffff !important;
}

/* 链接颜色 - 蓝色而非紫色 */
a:link,
a:visited,
a:active {
    color: #0066cc !important;
}

a:hover {
    color: #0052a3 !important;
}

/* 表格内链接 */
table a,
.table a,
td a {
    color: #0066cc !important;
}

table a:hover,
.table a:hover,
td a:hover {
    color: #0052a3 !important;
}

/* ================================================
   元素尺寸一致性修复
   ================================================ */

/* 统一表单控件尺寸 */
.form-control,
input[type="text"],
input[type="password"],
input[type="email"],
input[type="number"],
input[type="date"],
input[type="url"],
input[type="tel"],
textarea,
select {
    height: auto !important;
    min-height: 28px !important;
    padding: 4px 8px !important;
    font-size: 12px !important;
    line-height: 1.4 !important;
    font-family: Tahoma, "Microsoft YaHei", sans-serif !important;
}

/* 统一按钮尺寸 */
.btn,
button,
input[type="button"],
input[type="submit"],
input[type="reset"] {
    height: auto !important;
    min-height: 28px !important;
    padding: 4px 12px !important;
    font-size: 12px !important;
    line-height: 1.4 !important;
    font-family: Tahoma, "Microsoft YaHei", sans-serif !important;
    vertical-align: middle !important;
}

/* 小按钮 */
.btn-xs {
    min-height: 22px !important;
    padding: 2px 8px !important;
    font-size: 11px !important;
}

.btn-sm {
    min-height: 24px !important;
    padding: 3px 10px !important;
    font-size: 11px !important;
}

/* 大按钮 */
.btn-lg {
    min-height: 36px !important;
    padding: 8px 16px !important;
    font-size: 14px !important;
}

/* 统一下拉框尺寸 */
select.form-control {
    padding-right: 20px !important;
}

/* 下拉框样式修复 - 白色背景黑色文字 */
select,
select.form-control,
.form-control[type="select"] {
    background: #ffffff !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23000' d='M2 4l4 4 4-4z'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 8px center !important;
    color: #000000 !important;
    border: 2px solid !important;
    border-color: #8f8680 #dfcedb #dfcedb #8f8680 !important;
    padding: 4px 24px 4px 8px !important;
    font-size: 12px !important;
    font-family: Tahoma, sans-serif !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    appearance: none !important;
    cursor: pointer !important;
}

select option {
    background: #ffffff !important;
    color: #000000 !important;
    padding: 4px 8px !important;
}

/* 统一输入组尺寸 */
.input-group {
    display: inline-flex !important;
    align-items: stretch !important;
}

.input-group .form-control {
    flex: 1 !important;
}

.input-group-addon {
    display: flex !important;
    align-items: center !important;
    padding: 4px 8px !important;
    font-size: 12px !important;
    min-height: 28px !important;
}

/* 统一表格单元格尺寸 */
.table th,
.table td,
table th,
table td {
    padding: 6px 8px !important;
    font-size: 12px !important;
    vertical-align: middle !important;
}

/* 统一面板尺寸 */
.panel {
    margin-bottom: 12px !important;
}

.panel-heading {
    padding: 8px 12px !important;
}

.panel-body {
    padding: 12px !important;
}

/* 统一标签尺寸 */
.label {
    padding: 2px 6px !important;
    font-size: 11px !important;
    line-height: 1.4 !important;
}

/* 统一徽章尺寸 */
.badge {
    padding: 2px 6px !important;
    font-size: 11px !important;
    line-height: 1.4 !important;
}

/* 统一警告框尺寸 */
.alert {
    padding: 10px 12px !important;
    margin-bottom: 12px !important;
    font-size: 12px !important;
}

/* 统一分页尺寸 */
.pagination li a,
.pagination li span {
    padding: 4px 10px !important;
    font-size: 12px !important;
    min-height: 28px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

/* 统一列表项尺寸 */
.list-inline li {
    margin-right: 12px !important;
    font-size: 12px !important;
}

.list-group-item {
    padding: 8px 12px !important;
    font-size: 12px !important;
}

/* 统一标题尺寸 */
.h1, h1 { font-size: 18px !important; }
.h2, h2 { font-size: 16px !important; }
.h3, h3 { font-size: 14px !important; }
.h4, h4 { font-size: 12px !important; }
.h5, h5 { font-size: 11px !important; }
.h6, h6 { font-size: 11px !important; }

/* 统一间距 */
.wrapper-md {
    padding: 12px !important;
}

.m-n { margin: 0 !important; }
.m-t { margin-top: 10px !important; }
.m-b { margin-bottom: 10px !important; }
.m-l { margin-left: 10px !important; }
.m-r { margin-right: 10px !important; }

.p-n { padding: 0 !important; }
.p-t { padding-top: 10px !important; }
.p-b { padding-bottom: 10px !important; }
.p-l { padding-left: 10px !important; }
.p-r { padding-right: 10px !important; }

/* ================================================
   搜索工具栏和表单内联布局修复
   ================================================ */

/* 表单内联布局 */
.form-inline {
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    gap: 6px !important;
    padding: 12px !important;
    background: #ece9d8 !important;
    border: 2px solid !important;
    border-color: #dfcedb #8f8680 #8f8680 #dfcedb !important;
    margin-bottom: 12px !important;
}

.form-inline .form-group {
    display: inline-flex !important;
    align-items: center !important;
    margin-bottom: 4px !important;
    margin-right: 0 !important;
}

.form-inline .form-control {
    display: inline-block !important;
    width: auto !important;
    vertical-align: middle !important;
    min-width: 120px !important;
}

.form-inline .btn {
    vertical-align: middle !important;
    margin-bottom: 4px !important;
}

.form-inline select.form-control {
    min-width: 140px !important;
}

.form-inline input[type="text"].form-control {
    min-width: 160px !important;
}

/* 输入组修复 */
.input-group {
    display: inline-flex !important;
    align-items: stretch !important;
    width: auto !important;
}

.input-group .form-control {
    flex: 1 1 auto !important;
    width: 1% !important;
    min-width: 0 !important;
}

.input-group-addon {
    display: flex !important;
    align-items: center !important;
    padding: 4px 10px !important;
    font-size: 12px !important;
    font-weight: normal !important;
    color: #000000 !important;
    text-align: center !important;
    background: linear-gradient(180deg, #e8e4d9 0%, #d4cfc1 100%) !important;
    border: 2px solid !important;
    border-color: #dfcedb #8f8680 #8f8680 #dfcedb !important;
    white-space: nowrap !important;
    cursor: pointer !important;
}

.input-group-addon a {
    color: #0066cc !important;
    text-decoration: none !important;
}

.input-group-addon a:hover {
    color: #0052a3 !important;
}

/* 日期范围选择器 */
.input-daterange {
    display: inline-flex !important;
    align-items: center !important;
}

.input-daterange .form-control {
    width: 120px !important;
}

.input-daterange .input-group-addon {
    padding: 4px 8px !important;
}

/* 搜索工具栏按钮组 */
#searchToolbar {
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    gap: 8px !important;
}

#searchToolbar .form-group,
#searchToolbar .input-group,
#searchToolbar .btn {
    margin-bottom: 4px !important;
}

/* Bootstrap Table 工具栏修复 */
.fixed-table-toolbar {
    padding: 12px !important;
    background: #ece9d8 !important;
    border: 2px solid !important;
    border-color: #dfcedb #8f8680 #8f8680 #dfcedb !important;
    border-bottom: none !important;
}

.fixed-table-toolbar .columns,
.fixed-table-toolbar .search,
.fixed-table-toolbar .columns-right {
    display: inline-flex !important;
    align-items: center !important;
    gap: 4px !important;
}

/* 分页工具栏修复 */
.fixed-table-pagination {
    padding: 12px !important;
    background: #ece9d8 !important;
    border: 2px solid !important;
    border-color: #dfcedb #8f8680 #8f8680 #dfcedb !important;
    border-top: none !important;
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    flex-wrap: wrap !important;
}

.fixed-table-pagination .pagination-detail {
    color: #000000 !important;
    font-size: 12px !important;
}

.fixed-table-pagination .pagination-detail span {
    color: #000000 !important;
}

.fixed-table-pagination .page-list {
    display: inline-flex !important;
    align-items: center !important;
    gap: 4px !important;
}

.fixed-table-pagination .page-list span {
    color: #000000 !important;
}

/* 列表组项目 */
.list-group-item {
    background: #ece9d8 !important;
    border: 1px solid #dfcedb !important;
    padding: 10px 12px !important;
    margin-bottom: 4px !important;
    color: #000000 !important;
}

/* 分隔线 */
.line-dashed {
    border-top: 1px dashed #8f8680 !important;
    margin: 16px 0 !important;
}

.pull-in {
    margin-left: -12px !important;
    margin-right: -12px !important;
}

/* 公告样式 */
.alert-info,
.alert-success,
.alert-warning,
.alert-danger {
    color: #000000 !important;
}

.alert-info {
    background: #ccccff !important;
    border-color: #9999cc !important;
}

/* 确保所有文字可见 */
.bg-light h1,
.bg-light h2,
.bg-light h3,
.bg-light h4,
.bg-light p,
.bg-light span,
.bg-light div {
    color: #000000 !important;
}

/* 复选框和单选框标签 */
.checkbox label,
.radio label,
input[type="checkbox"] + label,
input[type="radio"] + label {
    color: #000000 !important;
    font-weight: normal !important;
    cursor: pointer !important;
}

/* 帮助文本 */
.help-block,
.text-muted,
font[color] {
    color: inherit !important;
}

font[color="red"],
font[color="green"],
font[color="blue"] {
    font-weight: normal !important;
}

/* 确保红色警告文字可见 */
font[color="red"] {
    color: #cc0000 !important;
}

font[color="green"] {
    color: #006600 !important;
}

font[color="blue"] {
    color: #0066cc !important;
}


/* ================================================
   额外的文字颜色和布局修复 - 2026
   ================================================ */

/* 注意事项文字 - 确保黑色可见 */
.alert p,
.alert div,
.alert span,
.alert li,
.alert strong,
.alert em {
    color: inherit !important;
}

.alert-info,
.alert-info *:not(a) {
    color: #000000 !important;
}

.alert-warning,
.alert-warning *:not(a) {
    color: #000000 !important;
}

/* 页脚版权文字强制黑色加粗 */
.xp-statusbar span,
.xp-statusbar div,
.xp-statusbar-item,
.xp-statusbar-item span {
    color: #000000 !important;
    font-weight: bold !important;
}

/* 输入组日期范围选择器优化 */
.input-daterange {
    display: inline-flex !important;
    align-items: center !important;
    gap: 4px !important;
}

.input-daterange .form-control {
    width: 110px !important;
    min-width: 110px !important;
}

.input-daterange .input-group-addon {
    padding: 4px 6px !important;
    cursor: pointer !important;
}

/* 搜索工具栏优化 */
#searchToolbar {
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    gap: 6px !important;
    padding: 12px !important;
    background: #ece9d8 !important;
    border: 2px solid !important;
    border-color: #dfcedb #8f8680 #8f8680 #dfcedb !important;
    margin-bottom: 0 !important;
}

#searchToolbar .form-group {
    margin-bottom: 4px !important;
}

#searchToolbar .btn {
    margin-bottom: 4px !important;
}

/* 确保所有按钮对齐 */
.btn-group {
    display: inline-flex !important;
    gap: 4px !important;
    align-items: center !important;
}

/* 表单水平布局优化 */
.form-horizontal .form-group {
    margin-bottom: 16px !important;
}

.form-horizontal .control-label {
    padding-top: 7px !important;
    margin-bottom: 0 !important;
    text-align: right !important;
}

/* 确保输入框和按钮高度一致 */
.form-control,
.btn,
input[type="text"],
input[type="password"],
input[type="email"],
select {
    height: 32px !important;
    line-height: 1.42857143 !important;
    padding: 6px 12px !important;
}

textarea.form-control {
    height: auto !important;
}

/* 小按钮尺寸 */
.btn-sm,
.btn-xs {
    height: 28px !important;
    padding: 4px 10px !important;
    font-size: 11px !important;
}

/* 输入组插件对齐 */
.input-group {
    display: inline-flex !important;
}

.input-group .form-control:not(:first-child):not(:last-child) {
    border-radius: 0 !important;
}

.input-group-addon {
    height: 32px !important;
    display: flex !important;
    align-items: center !important;
}

/* 公告文字确保可见 */
.xp-window-content font,
.xp-window-content span {
    color: inherit !important;
}

/* Layer 弹窗统一使用 /assets/css/layer-xp.css。 */
