/* 全局基础 */
body {
    color: #777;
    font-size: 12px;
    line-height: 1.5;
}
p, li, li a, label {
    color: #777;
}

/* ==========核心修复：左右并排布局========== */
.content {
    padding-top: 0;
    /* 横向排列：左侧菜单 + 右侧表格卡片同一行 */
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 12px;
}

.content-div {
    margin-top: 50px;
}
.content-div .container .content {
    min-height: 400px;
}
.content-div a {
    color: #777;
    cursor: pointer;
    text-decoration: none;
}
.content-div a:hover {
    color: #C91423;
}

/* 卡片头部组件 */
.widget.widget-table {
    overflow: visible;
    border: 1px solid #eee;
    border-radius: 4px;
    /* 主内容区域自动占满剩余宽度 */
    flex: 1;
}
.widget-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: #fff;
    height: 50px;
    padding: 0 15px;
    box-sizing: border-box;
    border-bottom: 1px solid #eee;
}
.widget-title {
    color: #C91423;
    font-size: 14px;
    margin: 0;
    font-weight: 500;
}
.widget-title i {
    margin-right: 6px;
}
.widget-header-toolbar {
    display: flex;
    gap: 8px;
}
.btn-u-red {
    background-color: #C91423;
    border-color: #C91423;
    color: #fff;
    padding: 6px 14px;
    border-radius: 3px;
    transition: background 0.2s ease;
}
.btn-u-red:hover {
    background-color: #b81120;
    border-color: #b81120;
}
.btn-u-red i {
    margin-right: 4px;
}

/* 表格外层横向滚动容器 */
.content-right {
    position: relative;
}
.table-scroll-wrap {
    overflow-x: auto;
}

/* DataTables 搜索栏美化 */
.dataTables_filter {
    color: #777;
    float: left !important;
    margin: 10px 0;
}
.dataTables_filter input {
    color: #777;
    height: 30px;
    width: 200px;
    border: solid 1px rgba(0, 0, 0, .1);
    padding-left: 5px;
    border-radius: 3px;
    outline: none;
}
.dataTables_filter input:focus {
    border-color: #C91423;
}
.search-header {
    position: absolute;
    right: 0;
}

/* 表格全局样式 */
table.dataTable.no-footer {
    border-bottom: solid 1px #ddd;
}
table.dataTable thead th,
table.dataTable thead td {
    border-bottom: none;
    background: rgb(207, 0, 37);
    color: #fff;
    text-align: center;
    padding: 10px 8px;
}
.table-bordered>tbody>tr>td,
.table-bordered>tbody>tr>th,
.table-bordered>tfoot>tr>td,
.table-bordered>tfoot>tr>th,
.table-bordered>thead>tr>td,
.table-bordered>thead>tr>th {
    border: none;
}
.dataTable tbody td {
    padding: 9px 8px;
    vertical-align: middle;
}
.table-striped tbody tr:nth-child(odd) {
    background-color: #fcfcfc;
}
.table-hover tbody tr:hover {
    background-color: #fff3f3 !important;
}

/* 弹窗/新增按钮层级 */
#add-bank-account {
    z-index: 999;
}

/* 表单行通用样式 */
.row-title-div {
    height: 30px;
    text-align: right;
}
.row-title-div .tips {
    color: rgb(207,0,37);
}
.row-div {
    height: 30px;
    margin-bottom: 8px;
    overflow: hidden;
}
.row-div input {
    height: 30px;
    width: 150px;
    border: 1px solid #ddd;
    border-radius: 3px;
    padding: 0 5px;
}
.row-left {
    width: 300px;
    float: left;
    text-align: center;
}
.row-right {
    width: 300px;
    float: left;
}
.star {
    color: red;
}

/* Chosen下拉框兼容 */
.row-left .chosen-container-single {
    width: 150px !important;
    height: 30px;
}
.row-left .chosen-container-single .chosen-single {
    height: 30px;
    line-height: 30px;
}
.row-left .chosen-container-single .chosen-single span {
    padding-top: 0;
}
.row-left .chosen-container-active.chosen-with-drop .chosen-single {
    background-image: none;
}
.row-left .chosen-search {
    display: none;
}

/* 工具类 */
.text-center {
    text-align: center;
}
/* 弹窗基础 */
.modal-650 {
    width: 650px;
    margin: 40px auto;
}
.modal-header {
    padding: 12px 18px;
    border-bottom: 1px solid #eee;
}
.modal-title {
    font-size: 15px;
    color: #333;
    font-weight: normal;
    margin: 0;
}
.modal-body {
    padding: 18px 22px;
    min-height: 60px;
}
.modal-footer {
    padding: 12px 22px;
    text-align: right;
    border-top: 1px solid #eee;
}
.close {
    font-size: 22px;
    opacity: 0.7;
}
.close:hover {
    opacity: 1;
}

/* 顶部提示 */
.form-tip {
    text-align: right;
    font-size: 12px;
    color: #777;
    margin-bottom: 16px;
}
.text-red {
    color: #cf0025;
}

/* 表单行通用 */
.form-row {
    display: flex;
    margin-bottom: 14px;
    align-items: center;
}
/* 左右双栏行 */
.two-col {
    gap: 20px;
}
.two-col .form-item {
    display: flex;
    align-items: center;
}
/* 单行表单项（普通输入） */
.form-item {
    display: flex;
    align-items: center;
}
/* 详细地址通栏项：标签+输入框同一行 */
.full-item {
    display: flex;
    align-items: center;
    width: 100%;
}

/* 统一标签固定宽度，全部左对齐 */
.form-label {
    width: 100px;
    display: inline-block;
    font-size: 12px;
    color: #777;
    flex-shrink: 0;
}

/* 输入框、下拉统一样式 */
.form-control {
    height: 32px;
    width: 160px;
    border: 1px solid #dddddd;
    border-radius: 2px;
    padding: 0 8px;
    font-size: 12px;
    color: #777;
    outline: none;
    transition: border 0.2s;
}
.form-control:focus {
    border-color: #cf0025;
}
/* 详细地址输入框占剩余全部宽度 */
.form-control.full {
    flex: 1;
    width: auto;
}
.form-select {
    height: 32px;
    width: 240px;
    border: 1px solid #ddd;
    border-radius: 2px;
    padding: 0 8px;
    font-size: 12px;
    color: #777;
    outline: none;
}
.form-select:focus {
    border-color: #cf0025;
}

/* 确定按钮 */
.btn-red {
    background-color: #cf0025;
    border: none;
    color: #fff;
    padding: 7px 20px;
    font-size: 12px;
    border-radius: 2px;
    transition: background 0.2s;
}
.btn-red:hover {
    background-color: #b40020;
}

.hidden {
    display: none;
}
/* 修复分页被横向滚动条截断 */
.table-scroll-wrap {
    overflow-x: auto;
    /* 新增：底部预留分页高度，不遮挡分页 */
    padding-bottom: 10px;
}

/* 分页控件容器完整展示，取消左浮动，整行显示 */
.dataTables_wrapper .dataTables_paginate {
    float: none !important;
    text-align: right;
    margin-top: 12px;
}

/* 分页按钮统一内边距，防止文字挤压截断 */
.dataTables_paginate .paginate_button {
    min-width: 32px;
    height: 30px;
    line-height: 30px;
    padding: 0 8px !important;
    margin: 0 2px;
    box-sizing: border-box;
}

/* 分页激活按钮红色主题，和系统配色统一 */
.dataTables_paginate .paginate_button.current {
    background: #cf0025;
    color: #fff !important;
    border-color: #cf0025;
}

/* 分页禁用按钮灰色弱化 */
.dataTables_paginate .paginate_button.disabled {
    color: #ccc !important;
    cursor: not-allowed;
}

/* 修正搜索栏和分页分行，不挤在同一行 */
.dataTables_filter {
    float: left !important;
    margin: 10px 0;
    width: auto;
}
.dataTables_info {
    float: left;
    line-height: 30px;
    margin-top: 12px;
}