.check-task-page {
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  max-width: 100%;
}

.check-task-page .issue-table {
  width: 100% !important;
  min-width: 0;
  max-width: 100% !important;
}

.check-task-page .issue-table .el-table__inner-wrapper {
  min-width: 0;
}

.check-task-page .issue-table .monthly-hidden-column {
  display: none !important;
  width: 0 !important;
  min-width: 0 !important;
  max-width: 0 !important;
  padding: 0 !important;
  border: 0 !important;
}

.check-task-page .issue-table .el-scrollbar__wrap {
  overflow-x: auto !important;
}

.check-task-page .issue-table .monthly-wrap-cell .cell {
  white-space: normal !important;
  overflow-wrap: anywhere;
  word-break: break-word;
  line-height: 1.45;
}

.check-task-page .issue-table .el-table__header-wrapper th:not(.monthly-hidden-column),
.check-task-page .issue-table .el-table__body-wrapper td:not(.monthly-hidden-column) {
  border-right: 1px solid #d8e0ea !important;
  border-bottom: 1px solid #d8e0ea !important;
}

.check-task-page .issue-table .el-table__header-wrapper th:not(.monthly-hidden-column) {
  border-top: 1px solid #d8e0ea !important;
  background: #f6f8fb;
}

.check-task-page .issue-table .monthly-photo-cell {
  vertical-align: middle;
}

.check-task-page .issue-table .monthly-photo-cell .cell {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
}

.monthly-record-photos {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  width: 100%;
  min-height: 88px;
}

.monthly-record-photos a {
  display: inline-flex;
  width: 100%;
  min-width: 88px;
  max-width: 112px;
  aspect-ratio: 1;
  height: auto;
  overflow: hidden;
  border: 1px solid #d0d5dd;
  border-radius: 4px;
  background: #f8fafc;
}

.monthly-record-photos img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.monthly-record-photos small,
.monthly-record-empty {
  color: #98a2b3;
  font-size: 12px;
}

.monthly-record-photos small {
  position: absolute;
  right: 2px;
  bottom: 2px;
  border-radius: 10px;
  padding: 1px 5px;
  background: rgba(16, 24, 40, .78);
  color: #fff;
  white-space: nowrap;
}

.monthly-status {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  border-radius: 4px;
  padding: 0 8px;
  font-size: 12px;
  white-space: nowrap;
}

.monthly-status-success { background: #ecfdf3; color: #17603a; }
.monthly-status-warning { background: #fff8e6; color: #8a5a00; }
.monthly-status-danger { background: #fef3f2; color: #b42318; }

.monthly-risk-match {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  border: 1px solid transparent;
  border-radius: 4px;
  padding: 0 8px;
  font-size: 12px;
  white-space: nowrap;
}

.monthly-risk-match-success { border-color: #a6f4c5; background: #ecfdf3; color: #17603a; }
.monthly-risk-match-warning { border-color: #fedf89; background: #fffaeb; color: #8a5a00; }
.monthly-risk-match-danger { border-color: #fecdca; background: #fef3f2; color: #b42318; }
.monthly-risk-match-muted { border-color: #d0d5dd; background: #f8fafc; color: #667085; }

.monthly-fund-input {
  box-sizing: border-box;
  width: 82px;
  height: 30px;
  border: 1px solid #cfd8e3;
  border-radius: 4px;
  padding: 0 7px;
  color: #1d2939;
  font: inherit;
  font-size: 12px;
}

.monthly-fund-input:focus { border-color: #1677ff; outline: 0; }
.monthly-fund-input.is-saved { border-color: #21844a; background: #ecfdf3; }

.check-task-page .monthly-operation-cell,
.check-task-page .monthly-operation-header {
  z-index: 3;
  background: #fff;
}

.check-task-page .issue-table.monthly-table-fits .monthly-operation-cell,
.check-task-page .issue-table.monthly-table-fits .monthly-operation-header {
  position: sticky !important;
  right: 0;
  box-shadow: -3px 0 6px rgba(16, 24, 40, .04);
}

.check-task-page .issue-table.monthly-table-fits .monthly-operation-header {
  z-index: 4;
  background: #f8fafc;
}

.check-task-page .issue-table:not(.monthly-table-fits) .monthly-operation-cell,
.check-task-page .issue-table:not(.monthly-table-fits) .monthly-operation-header {
  position: static !important;
  right: auto !important;
  box-shadow: none;
}

.monthly-record-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 4px;
  width: 100%;
  min-width: 0;
}

.monthly-record-action {
  min-width: 0;
  min-height: 30px;
  border: 1px solid #cfd8e3;
  border-radius: 4px;
  padding: 2px 5px;
  background: #fff;
  cursor: pointer;
  font: inherit;
  font-size: 12px;
  white-space: nowrap;
}

.monthly-record-action.success { border-color: #21844a; color: #17603a; }
.monthly-record-action.danger { border-color: #d92d20; color: #b42318; }
.monthly-record-action:disabled { border-color: #d0d5dd; color: #98a2b3; cursor: default; }

.monthly-review-overlay {
  position: fixed;
  inset: 0;
  z-index: 6200;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(16, 24, 40, .45);
}

.monthly-review-dialog {
  width: min(560px, 100%);
  max-height: calc(100vh - 40px);
  overflow: auto;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 18px 48px rgba(16, 24, 40, .22);
}

.monthly-review-dialog header,
.monthly-review-dialog footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 15px 18px;
  border-bottom: 1px solid #eaecf0;
}

.monthly-review-dialog header button {
  border: 0;
  background: transparent;
  color: #667085;
  cursor: pointer;
  font-size: 24px;
}

.monthly-review-body {
  display: grid;
  gap: 14px;
  padding: 18px;
}

.monthly-review-body p { margin: 0; color: #344054; }
.monthly-review-body label { display: grid; gap: 6px; color: #344054; font-size: 13px; }
.monthly-review-body label span { color: #b42318; }
.monthly-review-body textarea,
.monthly-review-body input { box-sizing: border-box; width: 100%; border: 1px solid #cfd8e3; border-radius: 4px; padding: 9px 10px; font: inherit; }
.monthly-review-error { color: #b42318; font-size: 12px; }
.monthly-review-dialog footer { justify-content: flex-end; border-top: 1px solid #eaecf0; border-bottom: 0; }
.monthly-review-dialog footer button { min-height: 32px; border: 1px solid #cfd8e3; border-radius: 4px; padding: 0 14px; background: #fff; cursor: pointer; }
.monthly-review-dialog footer .submit.success { border-color: #21844a; background: #21844a; color: #fff; }
.monthly-review-dialog footer .submit.danger { border-color: #d92d20; background: #d92d20; color: #fff; }

@media (max-width: 640px) {
  .monthly-review-overlay { align-items: end; padding: 0; }
  .monthly-review-dialog { width: 100%; max-height: 90vh; border-radius: 8px 8px 0 0; }
}
