:root {
  --bg: #f7f8fb;
  --card: #ffffff;
  --ink: #19223a;
  --muted: #5f6b88;
  --line: #d8deec;
  --accent: #165dff;
  --ok: #0ea35a;
  --warn: #f08a00;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: radial-gradient(circle at top right, #e6eeff 0%, var(--bg) 44%);
  color: var(--ink);
  font-family: 'Microsoft YaHei', 'PingFang SC', 'Noto Sans SC', 'Noto Sans KR', sans-serif;
}

.app {
  width: min(720px, 100%);
  margin: 0 auto;
  padding: 20px 16px 28px;
}

.app.appWide {
  width: min(1480px, 100%);
}

.header {
  margin-bottom: 14px;
}

.badge {
  display: inline-block;
  margin: 0;
  padding: 4px 10px;
  border-radius: 999px;
  background: #eaf0ff;
  color: #1742b3;
  font-size: 12px;
  font-weight: 700;
}

h1 {
  margin: 12px 0 6px;
  font-size: 22px;
  line-height: 1.3;
}

.subtitle {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.panel {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px;
  display: grid;
  gap: 10px;
  margin-bottom: 16px;
}

.row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.label {
  color: var(--muted);
  font-size: 13px;
}

input {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 10px;
  padding: 9px 10px;
  width: 190px;
  font-size: 14px;
}

.sectionTitle {
  font-size: 16px;
  margin: 0 0 10px;
}

.tableWrap {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  overflow: auto;
}

.jobsTable {
  width: 100%;
  min-width: 1320px;
  border-collapse: collapse;
}

.jobsTable thead th {
  text-align: left;
  font-size: 13px;
  color: #415074;
  background: #f2f5fc;
  padding: 12px 10px;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}

.jobsTable tbody td {
  font-size: 13px;
  padding: 11px 10px;
  border-bottom: 1px solid #edf1fb;
  vertical-align: top;
}

.jobsTable tbody tr:last-child td {
  border-bottom: none;
}

.idLink {
  color: #1547c3;
  text-decoration: none;
  font-weight: 700;
}

.subStatus {
  margin-top: 6px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.detailLine {
  color: #425071;
  line-height: 1.45;
  white-space: normal;
}

.detailLine + .detailLine {
  margin-top: 4px;
}

.emptyTable {
  text-align: center;
  color: var(--muted);
  padding: 24px 10px !important;
}

.buttonGrid {
  display: grid;
  gap: 10px;
  grid-template-columns: 1fr;
}

.actionRow {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: stretch;
}

.actionBtn {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 10px;
  background: #fff;
  text-align: left;
  cursor: pointer;
}

.actionBtn .ko {
  display: block;
  margin-top: 2px;
  font-size: 13px;
  color: var(--muted);
}

.actionBtn .zh {
  display: block;
  font-weight: 700;
  color: var(--ink);
}

.actionBtn .dateLine {
  display: block;
  margin-top: 6px;
  font-size: 12px;
  color: #4c5a79;
}

.actionBtn.current {
  border-color: #9db7ff;
  background: #edf3ff;
}

.actionBtn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.cancelBtn {
  border: 1px solid #ffd4d4;
  background: #fff7f7;
  color: #b84141;
  border-radius: 12px;
  padding: 0 12px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

.cancelBtn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.message {
  min-height: 22px;
  margin: 12px 2px 0;
  font-size: 14px;
}

.message.ok {
  color: var(--ok);
}

.message.error {
  color: #d23b3b;
}

.message.info {
  color: var(--warn);
}

.photoPanel {
  padding: 10px;
}

.garmentImage {
  width: 100%;
  max-height: 420px;
  border-radius: 12px;
  object-fit: cover;
  background: #f1f3f8;
  display: none;
}

.imageFallback {
  margin: 0;
  text-align: center;
  padding: 28px 0;
  color: var(--muted);
}

.listGrid {
  display: grid;
  gap: 12px;
}

.listCard {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
}

.thumb {
  display: block;
  width: 100%;
  height: 190px;
  object-fit: cover;
  background: #eef2fb;
}

.thumbEmpty {
  display: grid;
  place-items: center;
  color: var(--muted);
  font-size: 13px;
}

.cardBody {
  padding: 12px;
}

.topLine {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.meta {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.statusBadge {
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 10px;
}

.statusBadge.done {
  color: #0d7d44;
  background: #dcf6e8;
}

.statusBadge.progress {
  color: #8b5a08;
  background: #fff1d9;
}

.statusBadge.notStarted {
  color: #4d5977;
  background: #e9edf7;
}

.openBtn {
  display: inline-block;
  margin-top: 10px;
  text-decoration: none;
  font-size: 13px;
  color: #1547c3;
  font-weight: 700;
}

@media (max-width: 560px) {
  .row {
    flex-direction: column;
    align-items: flex-start;
  }

  input {
    width: 100%;
  }

  .actionRow {
    grid-template-columns: 1fr;
  }

  .cancelBtn {
    min-height: 42px;
  }
}
