/* civil-issue-log.css - 问题记录模态层（對齊桌面 ModuleIssueLogWindow）
 * 純客戶端，z-index 高於業務頁面覆蓋整屏。 */

.civil-issue-log-host { all: initial; }
.civil-issue-log-host * { all: revert; box-sizing: border-box; }

.civil-issue-log-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(15, 28, 45, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  font-family: "Segoe UI", "Microsoft YaHei", "PingFang SC", system-ui, sans-serif;
}

.civil-issue-log-modal {
  width: min(980px, 96vw);
  height: min(640px, 92vh);
  background: #ffffff;
  border-radius: 10px;
  box-shadow: 0 18px 50px rgba(8, 20, 38, 0.32);
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr) 180px auto;
  overflow: hidden;
  color: #17324d;
}

.civil-issue-log-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  border-bottom: 1px solid #e3eaf2;
  background: #f4f8fb;
}
.civil-issue-log-header h3 {
  margin: 0;
  font-size: 17px;
  font-weight: 700;
  color: #183b5b;
}
.civil-issue-log-close {
  border: none;
  background: transparent;
  font-size: 18px;
  line-height: 1;
  color: #6a7f93;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 4px;
}
.civil-issue-log-close:hover { background: #e1e9f1; color: #17324d; }

.civil-issue-log-note {
  padding: 8px 18px;
  font-size: 12px;
  color: #7a8c9e;
  background: #fbfdff;
  border-bottom: 1px solid #eef3f8;
}

.civil-issue-log-table-wrap {
  min-height: 0;
  overflow: auto;
  border-bottom: 1px solid #e3eaf2;
}
.civil-issue-log-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.civil-issue-log-table thead th {
  position: sticky;
  top: 0;
  z-index: 1;
  text-align: left;
  padding: 9px 12px;
  color: #38556f;
  background: #edf3f8;
  border-bottom: 1px solid #ccd9e6;
  white-space: nowrap;
}
.civil-issue-log-table tbody td {
  padding: 8px 12px;
  border-bottom: 1px solid #eef3f8;
  vertical-align: top;
}
.civil-issue-log-table tbody tr { cursor: pointer; }
.civil-issue-log-table tbody tr:hover { background: #f1f7fc; }
.civil-issue-log-table tbody tr.selected { background: #e3f0ff; }
.civil-issue-log-table tbody td:nth-child(4) { white-space: pre-wrap; word-break: break-word; }
.civil-issue-log-empty td {
  text-align: center;
  color: #8c9dad;
  padding: 28px !important;
}

.civil-issue-log-detail {
  width: 100%;
  border: none;
  border-top: 1px solid #eef3f8;
  padding: 12px 18px;
  font-family: "Cascadia Code", "Consolas", "Microsoft YaHei", monospace;
  font-size: 12.5px;
  line-height: 1.55;
  color: #2a3b50;
  background: #fafcff;
  resize: none;
  outline: none;
  white-space: pre;
  overflow: auto;
}

.civil-issue-log-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
  padding: 12px 18px;
  border-top: 1px solid #e3eaf2;
  background: #f7fafd;
}
.civil-issue-log-toolbar .button {
  border: 1px solid #b9c9db;
  border-radius: 5px;
  padding: 8px 16px;
  background: #ffffff;
  color: #17324d;
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
  min-width: 84px;
}
.civil-issue-log-toolbar .button:hover { background: #eef4fa; }
.civil-issue-log-toolbar .button.primary { background: #1769aa; border-color: #1769aa; color: #ffffff; }
.civil-issue-log-toolbar .button.primary:hover { background: #135b91; }
.civil-issue-log-toolbar .button.danger { color: #a52828; background: #fff1f2; border-color: #f4a7ac; }
.civil-issue-log-toolbar .button.danger:hover { background: #ffe3e6; }

@media (max-width: 720px) {
  .civil-issue-log-modal { height: 94vh; grid-template-rows: auto auto minmax(0, 1fr) 140px auto; }
  .civil-issue-log-toolbar { justify-content: stretch; }
  .civil-issue-log-toolbar .button { flex: 1 1 auto; min-width: 0; }
}
