/* ============================================================================
   claim-report.css — MOBILE (Source-of-Truth) · เคลม/แจ้งปัญหาพัสดุ
   ----------------------------------------------------------------------------
   Rebuilt 2026-07-19 onto the shared AppShell (removed the page's bespoke sidebar
   + embedded pt-v3 tools panel). Desktop/tablet light-2026 relayout lives in
   claim-report.desktop.css (loaded via <link media="(min-width:768px)">) and never
   overrides this file's mobile truth. Reuses shared .card / .btn / .note / .badge.
   ============================================================================ */

/* base type — the shared design system does NOT set a body font-family; each page must
   (matches membership.css / profile.css) or the body falls back to the browser serif default. */
body { font-family: var(--fb, 'Prompt', sans-serif); color: var(--ink, #23201c); -webkit-font-smoothing: antialiased; }
button, input, select, textarea { font-family: inherit; }

/* the in-content title is desktop-only; mobile uses the shell's <header> title bar */
.pt-h { display: none; }

.page .lead {
  margin: 2px 2px 14px;
  color: var(--muted, #7b7167);
  font-size: 13.5px;
  line-height: 1.55;
}

/* one column on mobile; the desktop file switches to a 2-col grid */
.claim-grid { display: block; }
.claim-side > * + * { margin-top: 14px; }
.claim-grid > * + * { margin-top: 14px; }

/* ---- card heading with a soft accent icon ---- */
.ctitle {
  display: flex; align-items: center; gap: 10px;
  margin: 0 0 14px; font-family: var(--fd, 'Kanit', sans-serif);
  font-weight: 600; font-size: 16px; color: var(--ink, #23201c);
}
.ctitle .ci {
  width: 30px; height: 30px; border-radius: 9px; flex: none;
  display: grid; place-items: center; color: #fff;
  background: linear-gradient(140deg, var(--sun, #ff7a1a), var(--sun-deep, #ef5f06));
}
.ctitle .ci svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.ctitle .ccount { margin-left: auto; font-weight: 400; font-size: 12.5px; color: var(--muted, #9a8b7c); }

/* ---- form fields ---- */
.field { margin-bottom: 13px; }
.field label { display: block; margin-bottom: 6px; font-size: 12.5px; font-weight: 500; color: var(--ink-2, #4a443d); }
.fsel, .finp {
  width: 100%; box-sizing: border-box;
  font-family: inherit; font-size: 14px; color: var(--ink, #23201c);
  background: #F7F8FA; border: 1px solid #E8EAEF; border-radius: 12px;
  padding: 12px 14px; transition: border-color .12s, box-shadow .12s, background .12s;
}
.fsel { -webkit-appearance: none; appearance: none; padding-right: 38px;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%239a8b7c' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M6 9l6 6 6-6'/></svg>");
  background-repeat: no-repeat; background-position: right 12px center;
}
textarea.finp { resize: vertical; min-height: 92px; line-height: 1.55; }
.fsel:focus, .finp:focus { outline: none; background: #fff; border-color: var(--sun-deep, #ef5f06); box-shadow: 0 0 0 3px rgba(242, 86, 11, .12); }
.fsel:disabled { color: var(--muted, #9a8b7c); background: #F1F2F5; }

/* ---- evidence drop zone ---- */
.drop {
  display: flex; align-items: center; gap: 9px; cursor: pointer;
  border: 1.5px dashed #D8D2C8; border-radius: 12px; padding: 14px 15px;
  font-size: 13px; color: var(--ink-2, #4a443d); background: #FCFBF8;
  transition: border-color .12s, background .12s;
}
.drop:hover { border-color: var(--sun, #ff7a1a); background: #FFF7F0; }
.drop svg { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; color: var(--sun-deep, #ef5f06); }
.drop .fn { margin-left: auto; font-size: 11.5px; color: var(--muted, #9a8b7c); }
.vh { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); border: 0; }
.field .hint { margin: 7px 2px 0; font-size: 11px; line-height: 1.5; color: var(--muted, #9a8b7c); }

/* the primary submit uses shared .btn.btn-primary.btn-block; add breathing room */
.claim-new #cSend { margin-top: 4px; }
.claim-new .note { margin-top: 12px; }

/* ---- my-claims list ---- */
.clm-list > * + * { margin-top: 10px; }
.clm {
  border: 1px solid var(--line, #f0ebe3); border-radius: 13px;
  padding: 12px 14px; background: #fff;
}
.clmhd { display: flex; align-items: center; gap: 8px; margin-bottom: 5px; }
.clmhd b { font-size: 13.5px; color: var(--ink, #23201c); }
.clmdesc { font-size: 12.5px; color: var(--ink-2, #4a443d); line-height: 1.5; margin-bottom: 4px; }
.clmmeta { font-size: 11.5px; color: var(--muted, #9a8b7c); }
.clmmeta b { color: var(--ink, #23201c); font-weight: 600; }
.mono { font-family: var(--fn, 'Space Grotesk', monospace); }

/* status chips */
.st { margin-left: auto; flex: none; font-size: 11px; font-weight: 600; padding: 3px 9px; border-radius: 999px; white-space: nowrap; }
.st.warn { background: #FFF3E0; color: #B26A2E; }
.st.ok { background: #E7F7EF; color: #158055; }
.st.red { background: #FCE9E6; color: #D14A3F; }

/* ---- empty state ---- */
.empty { text-align: center; padding: 26px 16px 22px; }
.empty-img { width: 120px; height: 120px; object-fit: contain; opacity: .95; margin-bottom: 8px; }
.empty-t { font-weight: 600; font-size: 14.5px; color: var(--ink, #23201c); margin-bottom: 4px; }
.empty-d { font-size: 12.5px; color: var(--muted, #9a8b7c); line-height: 1.55; max-width: 300px; margin: 0 auto; }

/* ---- toast ---- */
.clm-toast {
  position: fixed; left: 50%; bottom: 88px; transform: translateX(-50%) translateY(16px);
  background: #23201c; color: #fff; font-size: 13px; padding: 11px 18px; border-radius: 12px;
  box-shadow: 0 12px 30px -10px rgba(0, 0, 0, .45); opacity: 0; pointer-events: none;
  transition: opacity .2s, transform .2s; z-index: 9999; max-width: 88vw; text-align: center;
}
.clm-toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
