/* 에러 페이지 — 404 / 500 등 공통 — 레거시 WMS 디자인 톤 */

.errorShell {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, #f4f6fa 0%, #e8ecf3 100%);
  padding: 32px 16px;
}

.errorCard {
  background: #fff;
  border: 1px solid #d4dae3;
  border-radius: 8px;
  padding: 40px 36px 32px;
  width: min(560px, 100%);
  text-align: center;
  box-shadow: 0 10px 30px rgba(20, 30, 60, .08), 0 1px 3px rgba(20, 30, 60, .04);
}

.errorIcon {
  color: #5b6b85;
  margin-bottom: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 84px;
  height: 84px;
  border-radius: 50%;
  background: #f0f3f8;
  border: 1px solid #dde3ec;
}

/* 404 = 회색, 401/403 = 노랑, 500+ = 빨강 톤 */
.errorCard:has(.errorCode:where()) .errorIcon { color: #5b6b85; }
.errorShell h1.errorCode { line-height: 1; }

.errorCode {
  font-size: 56px;
  font-weight: 700;
  color: #1f2a44;
  letter-spacing: -0.04em;
  margin: 8px 0 6px;
  line-height: 1;
}

.errorMessage {
  font-size: 15px;
  color: #4a5468;
  margin: 0 0 24px;
  line-height: 1.5;
}

.errorActions {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin-bottom: 8px;
}
.errorActions .btnNormal,
.errorActions .btnSubmit {
  height: 36px;
  min-width: 120px;
  padding: 0 18px;
  font-size: 13px;
  justify-content: center;
  align-items: center;
  display: inline-flex;
  box-sizing: border-box;
}
.errorActions .btnNormal > span,
.errorActions .btnSubmit > span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  line-height: 1;
}

/* ============ DEV 정보 영역 ============ */
.errorDev {
  margin-top: 28px;
  text-align: left;
  border: 1px solid #f0c060;
  background: #fff8e6;
  border-radius: 6px;
  overflow: hidden;
}
.errorDev summary {
  padding: 10px 14px;
  cursor: pointer;
  font-size: 12px;
  font-weight: 600;
  color: #7a5a10;
  user-select: none;
  display: flex;
  align-items: center;
  gap: 8px;
  list-style: none;
}
.errorDev summary::-webkit-details-marker { display: none; }
.errorDev summary::before {
  content: '▸';
  display: inline-block;
  transition: transform 120ms ease;
  color: #b38a20;
  font-size: 10px;
}
.errorDev[open] summary::before {
  transform: rotate(90deg);
}
.errorDev .devTag {
  display: inline-block;
  background: #b38a20;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 3px;
  letter-spacing: 0.04em;
}
.errorDev .devBody {
  padding: 12px 14px 14px;
  background: #fffcf4;
  border-top: 1px dashed #f0c060;
}
.errorDev .devKv {
  margin: 0 0 10px;
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 6px 12px;
}
.errorDev .devKv:last-child { margin-bottom: 0; }
.errorDev .devKv dt {
  font-size: 11px;
  font-weight: 600;
  color: #7a5a10;
  padding-top: 2px;
}
.errorDev .devKv dd {
  margin: 0;
  font-size: 12px;
  color: #2a2418;
  word-break: break-all;
}
.errorDev code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12px;
  background: #fff;
  border: 1px solid #f0e0a8;
  border-radius: 3px;
  padding: 1px 6px;
  display: inline-block;
  max-width: 100%;
  word-break: break-all;
}
.errorDev .devStack {
  margin: 0;
  background: #1f2937;
  color: #f3f4f6;
  border: 1px solid #1f2937;
  border-radius: 4px;
  padding: 10px 12px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 11.5px;
  line-height: 1.55;
  max-height: 280px;
  overflow: auto;
  white-space: pre;
}
