/* 全局样式 */
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: 900px; /* 表格高度 */
}

/* 基础的 category-total 样式 */
.category-total {
    color: #291800; /* 字体颜色 */
    font-weight: bold; /* 加粗 */
    /* border: 2px solid #000000 !important; 加深边框颜色 */
}

/* 奇数行背景为浅绿色，偶数行背景为白色 */
/* 针对 .category-total 奇数行应用浅绿色背景 */
.category-total:nth-child(odd) {
    background-color: #d4edda !important; /* 浅绿色背景 */
}

/* 针对 .category-total 偶数行应用白色背景 */
.category-total:nth-child(even) {
    background-color: #ffffff !important; /* 白色背景 */
}


/* 修改表格边框的整体颜色 */
table {
    border-collapse: collapse; /* 合并表格边框 */
    /* border: 2px solid #000000; 设置表格外边框为深色 */
}

table td, table th {
    border: 2px solid #000000; /* 设置单元格边框为深色 */
}

/* 表格单元格样式 */
.table th, .table td {
    white-space: nowrap; /* 不换行 */
    /* border: 2px solid #000000; 单元格边框加深 */
}

/* 固定表头样式 */
.table thead th {
    position: sticky; /* 固定位置 */
    top: 0; /* 固定在顶部 */
    background-color: #fd7e14; /* 表头背景颜色 */
    /* border: 2px solid #000000; 表头边框加深 */
    color: white; /* 表头字体颜色 */
    z-index: 1000; /* 提升层级 */

    border-top: 2px solid #000000 !important; /* 只显示上边的横线 */
    border-bottom: 2px solid #000000 !important; /* 只显示下边的横线 */
    border-left: 2px solid #000000 !important; /* 只显示下边的横线 */
    border-right: 2px solid #000000 !important; /* 只显示下边的横线 */
}



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

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

/* 基础表格主要内容行样式 */
.tableRow-style-important {
    color: #291800; /* 字体颜色 */
    /* background-color: #b3e5fc !important; 浅蓝色背景 */
    text-align: right; /* 右对齐 */
    font-size: 1.20rem; /* 字体大小 */
}

/* 基础表格行样式 */
.tableRow-style {
    color: #291800; /* 字体颜色 */
    text-align: right; /* 右对齐 */
    font-size: 1.20rem; /* 字体大小 */
}

/* 加粗并左对齐的表格行样式 */
.tableRowbold-style {
    color: #291800; /* 字体颜色 */
    font-weight: bold; /* 加粗 */
    text-align: left; /* 左对齐 */
    font-size: 1.20rem; /* 字体大小 */
}

/* 加粗并居中的表格行样式 */
.tableRowbold-style-center {
    color: #291800; /* 字体颜色 */
    font-weight: bold; /* 加粗 */
    text-align: center; /* 居中对齐 */
    font-size: 1.20rem; /* 字体大小 */
}

/* 重要的加粗表格行样式 */
.tableRowbold-style-important {
    /* color: orangered !important; 亮橙色字体 */
    /* background-color: #b3e5fc !important; 浅蓝色背景 */
    font-weight: bold; /* 加粗 */
    font-size: 1.20rem; /* 字体大小 */
}

.tableRow-style-important-o {
    color: #291800; /* 字体颜色 */
    background-color: #d4edda !important; /* 浅蓝色背景b3e5fc */
    text-align: right; /* 右对齐 */
    font-size: 1.20rem; /* 字体大小 */
}


/* 重要的加粗表格行样式 */
.tableRowbold-style-important-o {
    color: orangered !important; /* 亮橙色字体 */
    background-color: #d4edda !important; /* 浅蓝色背景b3e5fc */
    font-weight: bold; /* 加粗 */
    font-size: 1.20rem; /* 字体大小 */
}

/*常规行的样式设计*/

/* 单元格只显示横线条，不显示竖线条 */
td {
    border-top: 2px solid #000000 !important; /* 只显示上边的横线 */
    border-bottom: 2px solid #000000 !important; /* 只显示下边的横线 */
    border-left: 2px solid #000000 !important; /* 只显示左边的横线 */
    border-right: 2px solid #000000 !important; /* 只显示右边的横线 */

    /* border-left: none !important; 不显示左边的竖线 */
    /* border-right: none !important; 不显示右边的竖线 */
    padding: 3px; /* 单元格内边距 */
}

/* 链接 hover 时的效果 */
a {
    transition: color 0.3s ease, text-shadow 0.3s ease;
}

a:hover {
    color: #0056b3; /* 当鼠标悬停时改变颜色 */
    text-shadow: 0 0 5px rgba(0, 0, 0, 0.2); /* 添加文本阴影 */
}

/***********************************************************/

/* 详情和日志信息容器样式 */
.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; /* 灰色 */
}
/* //以上用于显示撤消按钮的样式 */


/* 以下内容用于定义单位时间核算表和项目分析表的表格样式，特别是表头两行的固定样式 */
/* 设置表格外层容器的样式，以确保表头滚动时保持可见 */
.hourlyReport_table {
    width: 100%;
    border-collapse: collapse;
}

/* 设置表头的基本样式 */
.hourlyReport_table thead th {
    position: sticky;
    background-color: #198754;
    color: white;
    border: 2px solid black !important; /* 确保边框在滚动时保持可见 */
    z-index: 10;
    top: 0;
    box-shadow: 0px 3px 5px rgba(0, 0, 0, 0.5); /* 增加清晰阴影效果 */
}

/* 第一行表头样式，优先级高于第二行 */
.hourlyReport_table .hourlyReport-header-row-1 th {
    top: 0;  /* 表头固定在最顶部 */
    z-index: 30;  /* 提高优先级，确保第一行表头在第二行表头之上 */
    height: 25px;  /* 第一行表头高度 */
    line-height: 25px;  /* 使文本垂直居中 */
    background-color: #198754;  /* 设置表头背景颜色 */
    border: 2px solid black !important; /* 强制显示黑色边框 */
    box-shadow: 0px 3px 5px rgba(0, 0, 0, 0.5);  /* 增加阴影效果 */
}

/* 第二行表头样式 */
.hourlyReport_table .hourlyReport-header-row-2 th {
    position: sticky;
    top: 40px;  /* 设置与第一行表头的距离 */
    z-index: 20; /* 确保第二行标题在其他行之上，但在第一行之下 */
    height: 20px; /* 根据需要调整第二行的高度 */
    line-height: 20px; /* 确保文本在单元格内垂直居中 */
    background-color: #198754;
    border: 2px solid black !important;
    box-shadow: 0px 3px 5px rgba(0, 0, 0, 0.5);  /* 增加阴影效果 */
}

/* 表格内单元格的基础样式 */
.hourlyReport_table th, .hourlyReport_table td {
    border: 2px solid black !important;
    padding: 8px;
    text-align: center;
}

/* 针对按钮的特殊样式 */
.hourlyReport_table #hourly_report_btn a {
    color: white;
    text-decoration: none;
    margin: 0 5px;
}

.hourlyReport_table #hourly_report_btn {
    font-size: 14px;
    text-align: right;
    display: inline-block;
}
/* 以上内容用于定义单位时间核算表和项目分析表的表格样式，特别是表头两行的固定样式 */

    /* 右上角关闭按钮基础样式 */
    .right-panel-close-btn {
    position: absolute;
    top: 8px;
    right: 15px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 1px solid #ccc;
    background-color: #f8f9fa;
    font-size: 1.1rem;
    color: #666;
    cursor: pointer;
    z-index: 10;

    display: flex;
    align-items: center;
    justify-content: center;

    transition: all 0.3s ease;
}

/* 鼠标悬停时的动态高亮效果 */
.right-panel-close-btn:hover {
    background-color: #e0e0e0;
    color: #d9534f;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}


/* 右侧面板按钮 */
.RightPanel-toggle-button {
    position: fixed;
    top: 25%;
    right: -8px; /* 靠近右侧边缘 */
    z-index: 3000;
    background: linear-gradient(135deg, #66b2ff, #0066cc); /* 渐变背景色 */
    border: none;
    border-radius: 15px 0px 0px 15px; /* 圆角 */
    width: 30px; /* 增加按钮宽度 */
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2); /* 阴影效果 */
    transition: background 0.3s ease, transform 0.3s ease; /* 背景和位置变化 */
}

#loading-spinner {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
}

.spinner {
    border: 4px solid rgba(0, 0, 0, 0.1); /* 背景色 */
    border-top: 4px solid #fff; /* 旋转的颜色 */
    border-radius: 50%;
    width: 30px;
    height: 30px;
    animation: spin 1s linear infinite;
}

.icon-btn {
    cursor: pointer;
    transition: color 0.2s;
}
.icon-btn:hover {
    opacity: 0.8;
}


/* 阿米巴详细数据显示页面中的预定，实际，预实切换开关按钮样式 */
.switch {
    position: relative;
    display: inline-block;
    width: 46px;
    height: 24px;
  }
  .switch input {
    opacity: 0;
    width: 0;
    height: 0;
  }
  .slider {
    position: absolute;
    cursor: pointer;
    top: 0; left: 0;
    right: 0; bottom: 0;
    background-color: orangered;
    transition: .4s;
    border-radius: 24px;
  }
  .slider:before {
    position: absolute;
    content: "";
    height: 18px; width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
  }
  input:checked + .slider {
    background-color: #2196F3;
  }

  input:checked + .slider:before {
    transform: translateX(22px);
  }

  .ai-card {
    border: 1px solid #ccc;
    border-radius: 12px;
    margin: 20px 0;
    overflow: hidden;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}
.ai-card-header {
    background-color: #f0f0f0;
    padding: 12px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    font-weight: bold;
}
.ai-card-body {
    padding: 15px;
    max-height: 500px;
    overflow-y: auto;
    background-color: #fff;
}
