
.container {
    max-width: 1500px!important;
    padding: 0 50px !important;
}

/* 表格样式 - 强制显示所有边框 */
.table {
    border-collapse: collapse !important;
    font-size: 13px;
}
.table th, .table td {
    text-align: center;
    vertical-align: middle !important;
    border: 1px solid #333 !important; /* 加粗表格边框，可改为#ddd恢复默认细边框 */
}
/* 新增行按钮样式 */
.add-row-btn {
    cursor: pointer;
    color: #337ab7;
    font-weight: bold;
    display: inline-block;
    margin-left: 5px;
}
.add-row-btn:hover {
    color: #23527c;
    text-decoration: none;
}
/* 筛选项左右排列样式 */
.filter-item {
    display: flex;
    align-items: center;
    margin-right: 20px;
}
.filter-item label {
    margin: 0 8px 0 0;
    font-weight: normal;
}
.filter-wrap {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    margin-bottom: 15px;
    font-size: 14px;
}
/* 输入框统一高度 */
.filter-item .form-control {
    margin: 0;
    width: 200px;
}

.input-width{
    width: 150px !important;
}

/* 模态框类别子类左右布局样式 */
.category-sub-wrap {
    display: flex;
    height: 300px;
    gap: 20px;
    font-size: 14px;
}
.category-list {
    width: 40%;
    border: 1px solid #ddd;
    border-radius: 4px;
    overflow-y: auto;
}
.subcategory-list {
    width: 60%;
    border: 1px solid #ddd;
    border-radius: 4px;
    overflow-y: auto;
}
.category-item {
    padding: 10px 15px;
    cursor: pointer;
    border-bottom: 1px solid #eee;
}
.category-item:hover {
    background-color: #f5f5f5;
}
.category-item.active {
    background-color: #337ab7;
    color: #fff;
}
.subcategory-item {
    padding: 10px 15px;
    cursor: pointer;
    border-bottom: 1px solid #eee;
}
.subcategory-item:hover {
    background-color: #f5f5f5;
}
.subcategory-item.active {
    background-color: #5cb85c;
    color: #fff;
}
.subcategory-empty {
    padding: 10px 15px;
    color: #999;
    text-align: center;
}

.no-display{
    display: none;
}

.col-cate { width: 8% !important; }
.col-subitem { width: 8% !important; }
.col-content { width: 20% !important; }
.col-person { width: 8% !important; }
.col-date { width: 10% !important; }
.col-amount { width: 8% !important; }
.col-quota { width: 6% !important; text-align:center !important; }
.col-space { width: 3% !important; }
.col-paid-amount { width: 8% !important; }
.col-paid-date { width: 8% !important; }
.col-unpaid { width: 8% !important; }
.col-op { width: 5% !important; }


.profit-input {
    width: 100%;
    padding: 4px 6px;
    border: 1px solid #ced4da;
    border-radius: 4px;
    font-size: 13px;
    box-sizing: border-box;
    height: 28px;
    text-align: center;
}
.profit-input:focus {
    outline: none;
    border-color: #80bdff;
    box-shadow: 0 0 0 0.2rem rgba(0,123,255,.25);
}

/* 只读输入框样式 */
.profit-input[readonly] {
    background-color: #e9ecef;
    cursor: not-allowed;
}


.date-picker{
    position:absolute;
    right:8px;
    top:0;
    width:28px;
    height:100%;
    opacity:0;
}

.date-icon{
    position: absolute;
    right: 5px;
    top: 0;
    line-height: 28px;
    font-size: 14px;
    pointer-events:none;
}

.col-op {
    position: relative !important;
    text-align: center !important;
}

.row-delete-btn {
    display: block !important;
    position: absolute !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    left: 100% !important;
    margin-left: 5px !important;
    width: 20px !important;
    height: 20px !important;
    line-height: 18px !important;
    text-align: center !important;
    border-radius: 50% !important;
    background-color: #dc3545 !important;
    color: white !important;
    font-size: 10px !important;
    cursor: pointer !important;
    border: none !important;
    padding: 0 !important;
    z-index: 999 !important;

    opacity: 0 !important;
    transition: opacity 0.2s ease 0.5s !important; /* 0.5秒后才消失 */
    pointer-events: auto !important;
}


.col-op:hover .row-delete-btn {
    opacity: 1 !important;
    transition: opacity 0.2s ease 0s !important; /* 马上显示 */
}
.toast {
    position: fixed;
    top: 15%;
    right: 20px;
    padding: 10px 20px;
    border-radius: 4px;
    color: #fff;
    z-index: 9999;
    display: none;
}

.toast-success {
    background-color: #52c41a;
}
.toast-error {
    background-color: #f5222d;
}


