/* 全局样式 */
body {
    background-color: #f8f9fa; /* 背景颜色 */
}


/* 主页容器样式 */
.custom-container {
    max-width: 100%; /* 最大宽度 */
    /* 居中 */
    margin: 0 auto; 
    /* margin: 0 !important; 确保没有外边距 */
    padding: 10px; /* 内边距 */
    /* background-color: #ffffff; 背景颜色 */
    background-color: rgba(255, 255, 255, 1); /* 设置背景透明度 */
    border-radius: 8px; /* 边角圆角 */
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.1); /* 阴影效果 */
}

/* 额外减少顶部间距 */
.mt-3 {
    /* 这里的设置会强制让custom-container 与顶部保留间距，比如1rem  */
    margin-top: 0rem !important;
}

/* 表单标签样式 */
.custom-label {
    text-align: right; /* 右对齐 */
    padding-right: 10px; /* 右内边距 */
}

/* 表单输入框样式 */
.custom-input {
    width: 100%; /* 宽度100% */
}

/* 调整标签的间距 */
.input-label {
    display: block;
    margin-bottom: 0.25rem; /* 调整标签与输入框之间的间距 */
}

/* 调整容器的间距 */
.form-group {
    margin-bottom: 2px; /* 调整表单元素之间的间距，上下之间的间距 */
}


/* 按钮样式 */
.btn-primary {
    background-color: #007bff; /* 背景颜色 */
    border-color: #007bff; /* 边框颜色 */
}

.btn-primary:hover {
    background-color: #0056b3; /* 悬停时背景颜色 */
    border-color: #004085; /* 悬停时边框颜色 */
}

/* 模态框样式 */
.modal-content {
    border-radius: 8px; /* 边角圆角 */
}

.modal-header {
    border-bottom: none; /* 去除底部边框 */
}

.modal-body {
    padding: 2rem; /* 内边距 */
}

/* 关闭按钮样式 */
.btn-close {
    background: none; /* 背景颜色 */
    border: none; /* 边框 */
    font-size: 1.5rem; /* 字体大小 */
    color: #6f96a6; /* 字体颜色 */
}

.btn-close:hover {
    color: #2f5259; /* 悬停时字体颜色 */
}

/* 表格容器样式 */
.table-responsive {
    overflow: auto; /* 滚动条 */
    border-radius: 8px; /* 边角圆角 */
    height: 1000px; /* 表格高度，根据需要调整 */
}

/* 表格单元格样式 */
.table th, .table td {
    white-space: nowrap; /* 不换行 */
}

/* 固定表头样式 */
.table thead th {
    position: sticky; /* 固定位置 */
    top: 0; /* 顶部 */
    background-color: #fd7e14; /* 表头背景颜色 */
    color: white; /* 表头字体颜色 */
    z-index: 1000; /* 层级 */
}

/* 表单中的内部居中显示，均匀排列 */
.justify-content-center {
    justify-content: center; /* 居中 */
}

.justify-content-evenly {
    justify-content: space-evenly; /* 均匀分布 */
}

/* 表格行样式 */
.tableRow-style {
    color: #291800; /* 字体颜色 */
    text-align: right; /* 右对齐 */
}

.tableRowbold-style {
    color: #291800; /* 字体颜色 */
    font-weight: bold; /* 加粗 */
    text-align: left; /* 左对齐 */
}

.tableRowbold-style-center {
    color: #291800; /* 字体颜色 */
    font-weight: bold; /* 加粗 */
    text-align: center; /* 居中 */
}

/* 详情和日志信息容器样式 */
.detail-info {
    background-color: #f5f5f5; /* 背景颜色 */
    border: 1px solid #ddd; /* 边框 */
    padding: 10px; /* 内边距 */
    height: 100%; /* 高度100% */
    overflow-x: auto; /* 垂直滚动条 */
    overflow-y: auto; /* 垂直滚动条 */
}


/* 表单的紧凑排列 */
/* 调整 .input-group-mini 的宽度和间距 */
.input-group-mini {
    display: inline-block;
    width: 48%; /* 更改为 48%，确保两个元素在同一行 */
    margin-right: 1%;
    margin-bottom: 10px;
}

.input-group-micro {
    display: inline-block;
    width: 22%; /* 更改为 48%，确保两个元素在同一行 */
    margin-right: 1%;
    margin-bottom: 10px;
}

.input-group-mini:nth-child(2n) {
    margin-right: 0; /* 每两个元素结束后取消右边距 */
}

.input-field {
    font-size: 14px; /* 可以适当调整字体大小 */
    padding: 0.375rem 0.75rem;
    width: 100%;
}


.bold-center {
    font-weight: bold;
    text-align: center;
}


/* 调整按钮大小 */
.btn-sm {
    font-size: 12px;
    padding: 5px 10px;
}


/* //用于显示收藏的样式 */
.favorite-text {
    cursor: pointer;
    /* color: #007bff; */
    color: #28a745; /* Bootstrap success color for a distinct look */
    text-decoration: underline;
}

.favorite-text-active {
    cursor: pointer;
    /* color: #dc3545; */
    color: #155724; /* Darker shade for active state */
    text-decoration: underline;
}

/* 关于点赞部分的样式 */
.like-text {
    cursor: pointer;
    color: #007bff; /* Bootstrap primary color for a modern look */
    text-decoration: none;
    font-weight: 500;
}

.like-text-active {
    cursor: pointer;
    color: #dc3545; /* Bootstrap danger color to indicate active state */
    text-decoration: none;
    font-weight: 500;
}

/* 关于审批部分的样式 */
.approval-text {
    cursor: pointer;
    color: #dc3545; /* Bootstrap success color for a modern look */
    text-decoration: none;
    font-weight: 500;
}

/* //显示已经审批的按钮颜色 */
.approval-text-approved {
    cursor: pointer;
    color: #155724; /* Bootstrap primary color to indicate approved state */
    text-decoration: none;
    font-weight: 500;
}

.approval-text-rejected {
    cursor: pointer;
    color: #dc3545; /* Bootstrap danger color to indicate rejected state */
    text-decoration: none;
    font-weight: 500;
}

.approval-text-disabled {
    cursor: not-allowed;
    color: grey; /* 灰色表示无效状态 */
    text-decoration: none;
    font-weight: 500;
}
/*以上是关于记录显示表中的按钮样式*/

/* //以下用于显示撤消按钮的样式 */
.btn-link {
    color: #007bff; /* 正常颜色 */
    cursor: pointer;
    text-decoration: none;
}

.btn-link.disabled {
    color: gray; /* 灰色 */
    pointer-events: none; /* 禁用点击事件 */
    cursor: not-allowed; /* 更改鼠标光标样式 */
}

.revoke-approve-btn {
    color: #007bff; /* 正常颜色 */
}

.revoke-approve-btn.disabled {
    color: gray; /* 灰色 */
}
/* //以上用于显示撤消按钮的样式 */

