* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', 'Microsoft YaHei', sans-serif;
}

body {
    background-color: #f5f7fa;
    /*color: #333;*/
}

.header {
    background: linear-gradient(135deg, #1e88e5, #0d47a1);
    color: white;
    padding: 18px 30px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.header h1 {
    font-weight: 400;
    display: inline-block;
}

.header-actions {
    float: right;
    margin-top: 5px;
}

.container {
    padding: 20px;
    max-width: 1400px;
    margin: 0 auto;
}

.card {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
    margin-bottom: 20px;
    overflow: hidden;
}

.card-header {
    padding: 18px 25px;
    background-color: #f8fafc;
    border-bottom: 1px solid #eef2f7;
    font-size: 18px;
    color: #2c3e50;
    font-weight: 500;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.card-body {
    padding: 25px;
}

.form-row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -15px;
}

.form-group {
    padding: 0 15px;
    margin-bottom: 20px;
    width: 33.33%;
}

.form-group.full-width {
    width: 100%;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #4a5568;
}

.toolbar {
    padding: 15px;
    background-color: #f8fafc;
    border-bottom: 1px solid #eef2f7;
}

.footer {
    text-align: center;
    padding: 25px;
    color: #718096;
    font-size: 14px;
    border-top: 1px solid #eef2f7;
}

/* 表格样式美化 */
.datagrid-container {
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    overflow: hidden;
}

.datagrid-header {
    background: linear-gradient(to bottom, #f8fafc, #edf2f7) !important;
    border-color: #e2e8f0 !important;
}

.datagrid-header-row {
}

.datagrid-header .datagrid-cell {
    font-weight: 600 !important;
    /*color: #2d3748 !important;*/
    font-size: 14px !important;
    border-right: 1px solid #e2e8f0 !important;
}

.datagrid-row {
    transition: background-color 0.2s;
}

.datagrid-row-alt {
    background-color: #f8fafc !important;
}

.datagrid-row:hover {
    background-color: #edf2f7 !important;
}

.datagrid-row-selected {
    background-color: #e3f2fd !important;
}

.datagrid-cell {
    border-right: 1px solid #e2e8f0 !important;
    /*color: #4a5568 !important;*/
    font-size: 14px !important;
}

.datagrid-cell-number {
    text-align: right !important;
    font-family: 'Segoe UI', 'Microsoft YaHei', sans-serif;
}

.datagrid-editable .textbox, .datagrid-editable .easyui-my97 {
    border-radius: 4px !important;
    border: 1px solid #cbd5e0 !important;
}

.datagrid-editable .textbox:hover, .datagrid-editable .easyui-my97:hover,
.datagrid-editable .textbox:focus, .datagrid-editable .easyui-my97:focus {
    border-color: #1e88e5 !important;
}

.datagrid-pager {
    border-top: 1px solid #e2e8f0 !important;
    background: #f8fafc !important;
}

.pagination-link {
    border-radius: 4px !important;
    margin: 0 2px !important;
}

.datagrid-td-rownumber {
    font-weight: 500 !important;
    /*color: #718096 !important;*/
}

.datagrid-cell-c1-amount {
    font-weight: 600 !important;
    color: #1e88e5 !important;
}

.datagrid-toolbar .easyui-linkbutton {
    border-radius: 4px !important;
    margin-right: 6px !important;
}

.easyui-textbox, .easyui-datebox, .easyui-combobox {
    border-radius: 4px !important;
}

.datagrid-body {
    background-color: white;
}

@media (max-width: 1200px) {
    .form-group {
        width: 50%;
    }
}

@media (max-width: 768px) {
    .form-group {
        width: 100%;
    }

    .header-actions {
        float: none;
        margin-top: 15px;
    }

    .datagrid-header .datagrid-cell {
        font-size: 13px !important;
        padding: 10px 4px !important;
    }

    .datagrid-cell {
        font-size: 13px !important;
        padding: 8px 4px !important;
    }
}

.search-table .textbox {
    width: 120px !important;
    height: 28px !important;
}