/* 页面布局样式 */
.custom-theme .page-header {
    height: auto;
    line-height: normal;
    padding: 16px 20px;
    border-bottom: 1px solid #f6f6f6;
}

.custom-theme .header-content {
    display: flex;
    align-items: center;
}

.custom-theme .header-dot {
    margin-right: 12px;
    height: 12px;
    width: 12px;
}

.custom-theme .header-title {
    font-size: 16px;
    color: #333;
    margin-bottom: 8px;
    font-weight: 500;
}

.custom-theme .header-desc {
    font-size: 13px;
    color: #999;
}

/* 搜索表单样式 */
.custom-theme .search-form {
    background: #f8f8f8;
    padding: 12px;
    margin-bottom: 15px;
    border-radius: 4px;
}

.custom-theme .search-form .layui-form-label {
    width: auto;
    padding: 0 15px;
    white-space: nowrap;
    overflow: visible;
    height: 30px;
    line-height: 30px;
}

.custom-theme .search-form .layui-input-inline {
    width: 180px;
    margin-right: 0;
}

.custom-theme .search-form .layui-form-item {
    margin-bottom: 0;
}

.custom-theme .search-form .layui-inline {
    margin-right: 10px;
    margin-bottom: 0;
}

.custom-theme .search-form .layui-input {
    height: 30px;
    line-height: 30px;
    padding: 0 10px;
    font-size: 12px;
}

.custom-theme .search-form .layui-btn {
    height: 30px;
    line-height: 30px;
    padding: 0 12px;
    font-size: 12px;
}

.custom-theme .search-form .layui-btn .layui-icon {
    font-size: 13px;
    margin-right: 4px;
}

/* 按钮样式 */
.custom-theme .btn-container {
    margin-bottom: 20px;
}

.custom-theme .btn-container .layui-btn + .layui-btn {
    margin-left: 8px;
}

.custom-theme .custom-btn {
    height: 30px;
    line-height: 30px;
    padding: 0 12px;
    border-radius: 3px;
    font-size: 12px;
}

.custom-theme .custom-btn .layui-icon {
    font-size: 13px;
    margin-right: 4px;
}

.custom-theme .search-btn {
    height: 30px;
    line-height: 30px;
    padding: 0 12px;
    border-radius: 3px;
    font-size: 12px;
}

.custom-theme .search-btn .layui-icon {
    font-size: 13px;
    margin-right: 4px;
}

.custom-theme .table-btn {
    height: 24px;
    line-height: 24px;
    padding: 0 8px;
    border-radius: 2px;
    font-size: 12px;
}

.custom-theme .table-btn .layui-icon {
    font-size: 12px;
    margin-right: 2px;
}

/* 表格样式 */
.custom-theme .layui-table-view {
    margin: 15px 0;
}

.custom-theme .layui-table-cell {
    height: 38px;
    line-height: 38px;
    padding: 0 8px;
    font-size: 13px;
}

/* 表格工具栏 */
.custom-theme .layui-table-tool {
    min-height: 45px;
    padding: 8px 10px;
}

/* 表格分页 */
.custom-theme .layui-table-page {
    padding: 8px 10px;
}

/* 表格复选框对齐 */
.custom-theme .layui-table-cell.laytable-cell-checkbox {
    height: 38px;
    padding: 0;
    text-align: center;
}

.custom-theme .layui-table-cell.laytable-cell-checkbox .layui-form-checkbox {
    margin: 0;
    padding: 0;
}

/* 表格序号列 */
.custom-theme .layui-table-cell.laytable-cell-numbers {
    height: 38px;
    padding: 0;
    text-align: center;
}

/* 状态列样式 */
.custom-theme .layui-table-cell.laytable-cell-status {
    height: 38px;
    padding: 0;
    text-align: center;
}

.custom-theme .layui-form-switch {
    margin-top: 4px;
}

/* 排序列样式 */
.custom-theme .layui-table-cell.laytable-cell-sort {
    height: 38px;
    line-height: 38px;
    padding: 0 8px;
}

/* 操作列样式 */
.custom-theme .layui-table-cell.laytable-cell-tool {
    height: 38px;
    padding: 4px 8px;
    white-space: nowrap;
}

/* 表格内的输入框 */
.custom-theme .sort-input {
    height: 28px;
    width: 50px;
    text-align: center;
    font-size: 12px;
    padding: 0 5px;
    margin: 5px 0;
    border-radius: 2px;
}

/* 确保排序输入框在单元格中垂直居中 */
.custom-theme .layui-table-cell.laytable-cell-sort .sort-input {
    display: inline-block;
    vertical-align: middle;
    position: relative;
    top: -1px;
}

/* 表头样式 */
.custom-theme .layui-table-header th {
    font-size: 13px;
    font-weight: bold;
    color: #333;
    background-color: #f8f8f8;
    padding: 0;
}

/* 表格hover效果 */
.custom-theme .layui-table-hover {
    background-color: #f8f8f8 !important;
}

/* 状态开关样式 */
.custom-theme .layui-form-switch {
    margin-top: 0;
}

/* 卡片内容区域 */
.custom-theme .layui-card-body {
    padding: 10px;
}