.filter-panel {
  display: grid;
  grid-template-columns: 2fr repeat(3, minmax(150px, 0.55fr)) auto;
  gap: 10px;
  margin-bottom: 14px;
}
.search-box {
  height: 43px;
  background: #fff;
  border: 1px solid #d9dfe8;
  border-radius: 8px;
  display: flex;
  align-items: center;
  padding: 0 13px;
  gap: 9px;
}
.search-box span {
  font-size: 20px;
  color: #7f8da0;
  margin: 0;
}
.search-box input {
  border: 0;
  box-shadow: none;
  padding: 0;
}
.filter-panel select {
  height: 43px;
}
.filter-reset {
  border: 0;
  background: none;
  color: #667085;
  font-weight: 600;
}
.list-toolbar {
  min-height: 60px;
  padding: 10px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
}
.list-toolbar > span {
  color: var(--muted);
  font-size: 13px;
}
.inquiry-row {
  cursor: pointer;
}
.inquiry-row:hover {
  background: #f5f8fc;
}
.row-person {
  display: flex;
  flex-direction: column;
  font-weight: 700;
}
.row-person small {
  font-size: 12px;
  font-weight: 500;
  color: #98a2b3;
  margin-top: 3px;
}
.status-pill,
.service-chip {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 10px;
  border-radius: 13px;
  font-weight: 700;
  font-size: 12px;
  white-space: nowrap;
}
.status-pill.s1 {
  color: #245fb6;
  background: #e7f0ff;
}
.status-pill.s2 {
  color: #9c6208;
  background: #fff0d7;
}
.status-pill.s3 {
  color: #147653;
  background: #e3f4eb;
}
.status-pill.s4 {
  color: #a53c46;
  background: #fce8ea;
}
.service-chip {
  color: #69450c;
  background: #fff0db;
}
.empty-row td {
  text-align: center;
  padding: 38px;
  color: #98a2b3;
}
.back-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
  color: #8a96a8;
  font-size: 13px;
}
.back-row button {
  border: 0;
  background: none;
  padding: 0;
  color: #385f92;
  font-weight: 700;
}
.detail-head {
  align-items: center;
}
.detail-head h1 {
  font-size: 26px;
  margin-top: 10px;
}
.detail-layout {
  display: grid;
  grid-template-columns: minmax(560px, 1.7fr) minmax(300px, 0.75fr);
  gap: 18px;
}
.detail-main,
.detail-side {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.detail-card,
.process-card,
.settings-card,
.form-card {
  padding: 22px;
}
.detail-card > h2 {
  padding-bottom: 15px;
  border-bottom: 1px solid var(--line);
}
.info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 34px;
}
.info-grid dl {
  display: grid;
  grid-template-columns: 110px 1fr;
  margin: 0;
  padding: 13px 0;
  border-bottom: 1px solid #edf0f4;
}
.info-grid dt {
  color: #7b8798;
}
.info-grid dd {
  margin: 0;
  font-weight: 600;
}
.info-grid a {
  color: #2d63a7;
  text-decoration: none;
}
.message {
  padding: 18px;
  background: #f7f9fc;
  border-radius: 8px;
  line-height: 1.85;
  white-space: pre-wrap;
}
.memo-compose textarea {
  min-height: 90px;
}
.memo-compose > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 9px;
}
.memo-compose span {
  font-size: 12px;
  color: #98a2b3;
}
.memo-item {
  display: flex;
  gap: 11px;
  border-top: 1px solid var(--line);
  margin-top: 18px;
  padding-top: 17px;
}
.memo-item small {
  color: #98a2b3;
  font-weight: 500;
  margin-left: 7px;
}
.memo-item p {
  margin: 7px 0 0;
  color: #596579;
  line-height: 1.6;
}
.process-card label {
  font-size: 13px;
  margin-top: 15px;
}
.process-card select,
.process-card textarea {
  margin-top: 7px;
}
.process-card .primary {
  margin-top: 14px;
}
.history-card {
  padding-bottom: 14px;
}
.history-card ol {
  list-style: none;
  padding: 0 22px;
  margin: 0;
}
.history-card li {
  display: flex;
  gap: 12px;
  position: relative;
  padding: 7px 0 17px;
}
.history-card li:not(:last-child):before {
  content: "";
  position: absolute;
  left: 5px;
  top: 17px;
  bottom: -4px;
  border-left: 1px solid #dbe2eb;
}
.history-card li > i {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #4281dc;
  margin-top: 4px;
  z-index: 1;
}
.history-card strong {
  font-size: 13px;
}
.history-card p {
  margin: 4px 0;
  color: #667085;
  font-size: 13px;
}
.history-card span {
  color: #98a2b3;
  font-size: 12px;
}
.audit-card {
  padding: 16px 18px;
  border: 1px dashed #cbd4e0;
  border-radius: 9px;
  color: #7a8798;
  font-size: 12px;
  line-height: 1.7;
}
