/* 操作日志页面样式 */

.content_wraper {
    padding: 20px;
    background-color: #f0f2f5;
}

/* 搜索筛选区域 */
.search-filter-container {
    background: #fff;
    border: 1px solid #e4e7ed;
    border-radius: 4px;
    padding: 18px;
    margin-bottom: 10px;
}

.search-filter-row {
    display: flex;
    align-items: flex-end;
    flex-wrap: wrap;
    gap: 18px;
}

.search-filter-item {
    display: flex;
    flex-direction: column;
}

.search-label {
    font-size: 14px;
    color: #606266;
    margin-bottom: 8px;
    line-height: 1;
}

.input-with-clear {
    position: relative;
    display: inline-block;
}

.search-input,
.search-select {
    width: 180px;
    height: 32px;
    padding: 0 30px 0 15px;
    font-size: 14px;
    color: #606266;
    background-color: #fff;
    border: 1px solid #dcdfe6;
    border-radius: 4px;
    transition: border-color 0.2s;
}

.search-input:focus,
.search-select:focus {
    outline: none;
    border-color: #409eff;
}

.clear-btn {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #c0c4cc;
    font-size: 12px;
    transition: color 0.2s;
    z-index: 1;
}

.clear-btn:hover {
    color: #909399;
}

.clear-btn i {
    font-size: 12px;
}

.date-range-group {
    display: flex;
    align-items: center;
    width: 280px;
}

.date-input-wrapper {
    position: relative;
    flex: 1;
    display: inline-block;
}

.date-input {
    width: 100%;
    height: 32px;
    padding: 0 30px 0 15px;
    font-size: 14px;
    color: #606266;
    background-color: #fff;
    border: 1px solid #dcdfe6;
    border-radius: 4px;
}

.date-input-wrapper:first-child .date-input {
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
}

.date-input-wrapper:last-child .date-input {
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
}

.date-input-wrapper .clear-btn {
    right: 8px;
}

.date-separator {
    padding: 0 8px;
    height: 32px;
    line-height: 32px;
    background-color: #f5f7fa;
    border-top: 1px solid #dcdfe6;
    border-bottom: 1px solid #dcdfe6;
    color: #909399;
    font-size: 14px;
}

.search-filter-actions {
    margin-left: auto;
    display: flex;
    gap: 10px;
}

.btn-search,
.btn-reset {
    height: 32px;
    padding: 0 20px;
    font-size: 14px;
    border-radius: 4px;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-search {
    background-color: #409eff;
    color: #fff;
}

.btn-search:hover {
    background-color: #66b1ff;
}

.btn-reset {
    background-color: #909399;
    color: #fff;
}

.btn-reset:hover {
    background-color: #a6a9ad;
}

/* 操作按钮区域 */
.action-bar-container {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
}

.btn-action {
    height: 32px;
    padding: 0 15px;
    font-size: 14px;
    border-radius: 4px;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 6px;
}

.btn-action:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.btn-delete {
    background-color: #f56c6c;
    color: #fff;
}

.btn-delete:hover:not(:disabled) {
    background-color: #f78989;
}

.btn-clear {
    background-color: #f56c6c;
    color: #fff;
}

.btn-clear:hover {
    background-color: #f78989;
}

.btn-export {
    background-color: #e6a23c;
    color: #fff;
}

.btn-export:hover {
    background-color: #ebb563;
}

/* 表格 */
.table-wrapper {
    background: #fff;
    border: 1px solid #e4e7ed;
    border-radius: 4px;
    overflow: hidden;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
}

.data-table thead {
    background-color: #f5f7fa;
}

.data-table th {
    padding: 12px;
    text-align: left;
    font-weight: 500;
    font-size: 14px;
    color: #606266;
    border-bottom: 1px solid #ebeef5;
}

.data-table tbody tr {
    border-bottom: 1px solid #ebeef5;
    transition: background-color 0.2s;
}

.data-table tbody tr:hover {
    background-color: #f5f7fa;
}

.data-table tbody td {
    padding: 12px;
    font-size: 14px;
    color: #606266;
}

/* 状态标签 */
.status-badge {
    display: inline-block;
    padding: 2px 10px;
    font-size: 12px;
    border-radius: 2px;
    line-height: 1.5;
}

.status-success {
    background-color: #409eff;
    color: #fff;
}

.status-fail {
    background-color: #f56c6c;
    color: #fff;
}

.status-unknown {
    background-color: #909399;
    color: #fff;
}

.text-danger {
    color: #f56c6c !important;
}

/* 空状态 */
.empty-state {
    padding: 80px 0;
    text-align: center;
}

.empty-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.empty-icon {
    width: 120px;
    height: 120px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120' viewBox='0 0 120 120'%3E%3Cpath fill='%23c0c4cc' d='M60 20c22.091 0 40 17.909 40 40s-17.909 40-40 40-40-17.909-40-40 17.909-40 40-40zm0 8c-17.673 0-32 14.327-32 32s14.327 32 32 32 32-14.327 32-32-14.327-32-32-32zm0 16c8.837 0 16 7.163 16 16s-7.163 16-16 16-16-7.163-16-16 7.163-16 16-16z'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    margin-bottom: 16px;
}

.empty-text {
    font-size: 14px;
    color: #909399;
}

/* 分页 */
.pagination-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px;
    background: #fff;
    border: 1px solid #e4e7ed;
    border-radius: 4px;
    margin-top: 10px;
}

.pagination-info {
    font-size: 14px;
    color: #606266;
}

.pagination {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 4px;
}

.page-item {
    margin: 0;
}

.page-link {
    display: block;
    padding: 8px 12px;
    font-size: 14px;
    color: #606266;
    background-color: #fff;
    border: 1px solid #dcdfe6;
    border-radius: 4px;
    text-decoration: none;
    transition: all 0.2s;
    min-width: 32px;
    text-align: center;
}

.page-link:hover {
    color: #409eff;
    border-color: #409eff;
}

.page-item.active .page-link {
    background-color: #409eff;
    border-color: #409eff;
    color: #fff;
}

.page-item.active .page-link:hover {
    color: #fff;
}

.page-item.disabled .page-link {
    color: #c0c4cc;
    cursor: not-allowed;
    background-color: #fff;
    border-color: #e4e7ed;
}

.page-item.disabled .page-link:hover {
    color: #c0c4cc;
    border-color: #e4e7ed;
}

/* 详情弹窗样式 */
.detail-table {
    margin-bottom: 0;
    font-size: 14px;
}

.detail-table th {
    background-color: #f5f7fa;
    font-weight: 500;
    color: #606266;
    padding: 10px 12px;
    white-space: nowrap;
    width: 100px;
    vertical-align: top;
}

.detail-table td {
    padding: 10px 12px;
    color: #303133;
    word-break: break-word;
}

.detail-label {
    min-width: 100px;
    max-width: 100px;
    width: 100px !important;
}

.detail-value-long {
    word-break: break-all;
    word-wrap: break-word;
}

.detail-pre {
    max-height: 200px;
    overflow: auto;
    white-space: pre-wrap;
    word-wrap: break-word;
    margin: 0;
    padding: 8px;
    background-color: #f5f7fa;
    border: 1px solid #e4e7ed;
    border-radius: 4px;
    font-size: 13px;
    line-height: 1.5;
    color: #606266;
}

