:root {
  --bg: #f4f5f7;
  --card: #fff;
  --border: #d8dde6;
  --text: #1a1d26;
  --muted: #5c6578;
  --accent: #1a4f8b;
  --accent-soft: #e8f0fa;
  --warn: #b45309;
  --warn-bg: #fff7ed;
  --danger: #b91c1c;
  --ok: #166534;
  --ok-bg: #ecfdf5;
  --radius: 8px;
  --font: "Pretendard", "Noto Sans KR", "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  font-size: 15px;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

.topbar {
  background: #12263a;
  color: #fff;
  padding: 0.75rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.topbar .brand { font-weight: 700; font-size: 1.05rem; color: #fff; }
.topbar .brand span { font-weight: 400; opacity: 0.75; font-size: 0.85rem; margin-left: 0.5rem; }
.topbar nav { display: flex; gap: 0.75rem; flex-wrap: wrap; }
.topbar nav a {
  color: #c9d4e3;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  font-size: 0.92rem;
}
.topbar nav a.active, .topbar nav a:hover {
  background: rgba(255,255,255,0.12);
  color: #fff;
  text-decoration: none;
}

.wrap { max-width: 1100px; margin: 0 auto; padding: 1.25rem; }

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem;
}
.card .label { color: var(--muted); font-size: 0.82rem; }
.card .value { font-size: 1.6rem; font-weight: 700; margin-top: 0.2rem; }
.card .sub { font-size: 0.8rem; color: var(--muted); margin-top: 0.35rem; }

h1 { font-size: 1.35rem; margin: 0 0 0.75rem; }
h2 { font-size: 1.1rem; margin: 1.25rem 0 0.5rem; }
.muted { color: var(--muted); }
.note {
  background: var(--accent-soft);
  border: 1px solid #c5d6eb;
  border-radius: var(--radius);
  padding: 0.75rem 1rem;
  font-size: 0.9rem;
  margin: 0.75rem 0;
}
.warn-box {
  background: var(--warn-bg);
  border: 1px solid #fcd34d;
  border-radius: var(--radius);
  padding: 0.75rem 1rem;
  font-size: 0.9rem;
  margin: 0.75rem 0;
}
.ok-box {
  background: var(--ok-bg);
  border: 1px solid #86efac;
  border-radius: var(--radius);
  padding: 0.75rem 1rem;
  font-size: 0.9rem;
  margin: 0.75rem 0;
}

table.data {
  width: 100%;
  border-collapse: collapse;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  font-size: 0.9rem;
}
table.data th, table.data td {
  padding: 0.55rem 0.65rem;
  border-bottom: 1px solid var(--border);
  text-align: left;
  vertical-align: top;
}
table.data th {
  background: #eef1f6;
  font-weight: 600;
  white-space: nowrap;
}
table.data tr:last-child td { border-bottom: none; }
table.data tr:hover td { background: #f8fafc; }

.badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.1rem 0.4rem;
  border-radius: 999px;
  background: var(--warn-bg);
  color: var(--warn);
  border: 1px solid #fcd34d;
  margin-left: 0.25rem;
  vertical-align: middle;
}
.badge.pending {
  background: #f3e8ff;
  color: #6b21a8;
  border-color: #d8b4fe;
}
.badge.main {
  background: var(--ok-bg);
  color: var(--ok);
  border-color: #86efac;
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
  margin-bottom: 0.75rem;
}
.filters input[type="text"] {
  padding: 0.4rem 0.6rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  min-width: 200px;
}
.btn {
  display: inline-block;
  padding: 0.45rem 0.9rem;
  border-radius: 6px;
  border: 1px solid var(--accent);
  background: var(--accent);
  color: #fff;
  font-size: 0.9rem;
  cursor: pointer;
  font-family: inherit;
}
.btn:hover { filter: brightness(1.08); text-decoration: none; }
.btn.secondary {
  background: #fff;
  color: var(--accent);
}
.btn.danger { background: var(--danger); border-color: var(--danger); }

.form-grid {
  display: grid;
  gap: 0.85rem;
  max-width: 560px;
}
.form-grid label { display: block; font-weight: 600; font-size: 0.88rem; margin-bottom: 0.25rem; }
.form-grid input[type="text"],
.form-grid input[type="number"] {
  width: 100%;
  padding: 0.45rem 0.6rem;
  border: 1px solid var(--border);
  border-radius: 6px;
}
.form-grid .check { font-weight: 400; display: flex; align-items: center; gap: 0.4rem; }
.form-grid .hint { font-size: 0.8rem; color: var(--muted); margin-top: 0.2rem; }

.dl { display: grid; grid-template-columns: 120px 1fr; gap: 0.4rem 0.75rem; }
.dl dt { color: var(--muted); font-size: 0.88rem; }
.dl dd { margin: 0; }

.footer {
  margin-top: 2rem;
  padding: 1rem 0;
  color: var(--muted);
  font-size: 0.8rem;
  border-top: 1px solid var(--border);
}

.mono { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 0.85rem; }

/* bid-helper */
.bid-form { max-width: 640px; }
.bid-form select {
  width: 100%;
  padding: 0.45rem 0.6rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-family: inherit;
  background: #fff;
}
.bid-form .split-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}
.bid-form .btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}
@media (max-width: 520px) {
  .bid-form .split-2 { grid-template-columns: 1fr; }
}

.company-switch {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}
.company-switch select {
  background: #1e3a56;
  color: #fff;
  border: 1px solid #3a5a7a;
  border-radius: 4px;
  padding: 0.3rem 0.5rem;
  font-size: 0.88rem;
  max-width: 220px;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  border: 0;
}

.badge.review {
  background: #fef2f2;
  color: #991b1b;
  border-color: #fca5a5;
}
.review-reason {
  display: inline-block;
  font-size: 0.75rem;
  color: #991b1b;
  margin-left: 0.2rem;
  font-weight: 500;
}

.topbar-right {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-wrap: wrap;
}
.company-switch { margin-left: 0; }
.company-label {
  font-size: 0.88rem;
  color: #c9d4e3;
}
.user-chip {
  font-size: 0.88rem;
  color: #e8eef6;
  background: rgba(255,255,255,0.1);
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
}
.logout-form { display: inline; margin: 0; }
.btn-logout {
  background: transparent;
  border: 1px solid #3a5a7a;
  color: #c9d4e3;
  border-radius: 4px;
  padding: 0.25rem 0.55rem;
  font-size: 0.82rem;
  cursor: pointer;
  font-family: inherit;
}
.btn-logout:hover {
  background: rgba(255,255,255,0.12);
  color: #fff;
}

.login-body {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg);
}
.login-wrap { width: 100%; max-width: 400px; padding: 1rem; }
.login-card h1 { margin-bottom: 0.25rem; }
.login-card .settings-form label { display: block; margin: 0.75rem 0 0.35rem; font-size: 0.9rem; }
.login-card .settings-form input[type="text"],
.login-card .settings-form input[type="password"] {
  width: 100%;
  padding: 0.5rem 0.65rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-family: inherit;
  margin-top: 0.25rem;
}
.login-card .btn { margin-top: 1rem; width: 100%; }
.alert.danger {
  background: #fef2f2;
  border: 1px solid #fca5a5;
  color: #991b1b;
  padding: 0.6rem 0.75rem;
  border-radius: var(--radius);
  margin: 0.75rem 0;
  font-size: 0.9rem;
}
.small { font-size: 0.82rem; }
.btn.primary {
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 0.55rem 1rem;
  font-size: 0.95rem;
  cursor: pointer;
  font-family: inherit;
}
.btn.primary:hover { filter: brightness(1.08); }

/* 회사 서류 보관함 */
.doc-vault { margin: 0.75rem 0 1.25rem; padding: 0.9rem 1rem; overflow-x: auto; }
.doc-vault-summary { margin-bottom: 0.75rem; font-size: 0.92rem; }
.doc-missing-count { color: var(--warn); font-weight: 600; }
.doc-ok-count { color: #15803d; font-weight: 600; }
.doc-table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
.doc-table th, .doc-table td {
  text-align: left; vertical-align: top;
  padding: 0.65rem 0.5rem; border-bottom: 1px solid var(--border);
}
.doc-table th { color: var(--muted); font-weight: 600; font-size: 0.8rem; }
.doc-row-missing { background: #fffbeb; }
.doc-row-ok { background: #f0fdf4; }
.doc-actions { margin-top: 0.35rem; display: flex; gap: 0.35rem; flex-wrap: wrap; }
.doc-upload-form { display: flex; flex-direction: column; gap: 0.35rem; min-width: 12rem; }
.doc-upload-form input[type="file"] { font-size: 0.82rem; }
.doc-note {
  padding: 0.3rem 0.45rem; border: 1px solid var(--border);
  border-radius: 4px; font-family: inherit; font-size: 0.85rem;
}
.badge {
  display: inline-block; font-size: 0.72rem; font-weight: 600;
  padding: 0.12rem 0.4rem; border-radius: 999px; margin-left: 0.25rem;
  vertical-align: middle;
}
.badge-req { background: #fee2e2; color: #991b1b; }
.badge-opt { background: #e5e7eb; color: #374151; }
.badge-ok { background: #dcfce7; color: #166534; margin-left: 0; }
.badge-miss { background: #ffedd5; color: #9a3412; margin-left: 0; }
.doc-file-cell .small { font-size: 0.8rem; }

/* ---- 투찰 워크플로 상태 ---- */
.wf-inline { display: inline-block; margin: 0; }
.wf-select {
  font-family: inherit; font-size: 0.82rem;
  padding: 0.2rem 0.35rem; border-radius: 6px;
  border: 1px solid var(--border, #d1d5db); background: #fff;
}
.wf-note-preview {
  margin-top: 0.25rem; font-size: 0.75rem; color: #6b7280;
  max-width: 140px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.wf-meta .wf-who { font-size: 0.85rem; font-weight: 600; }
.wf-meta .small, .muted.small { font-size: 0.75rem; }
.wf-form { display: flex; flex-direction: column; gap: 0.75rem; }
.wf-status-btns { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.wf-chip {
  display: inline-flex; align-items: center; gap: 0.25rem;
  padding: 0.35rem 0.7rem; border-radius: 999px;
  border: 1px solid #d1d5db; background: #fff;
  font-size: 0.85rem; cursor: pointer; user-select: none;
}
.wf-chip input { margin: 0; }
.wf-chip.active, .wf-chip:has(input:checked) {
  border-color: #2563eb; background: #eff6ff; font-weight: 600;
}
.wf-chip.wf-new { border-color: #93c5fd; }
.wf-chip.wf-reviewing { border-color: #fbbf24; }
.wf-chip.wf-will_bid { border-color: #a78bfa; }
.wf-chip.wf-bid_done { border-color: #86efac; }
.wf-chip.wf-skip { border-color: #d1d5db; color: #6b7280; }
.wf-note-label { display: flex; flex-direction: column; gap: 0.3rem; font-size: 0.9rem; }
.wf-note-label textarea {
  font-family: inherit; font-size: 0.9rem;
  padding: 0.45rem 0.6rem; border: 1px solid #d1d5db; border-radius: 6px;
  resize: vertical; min-height: 2.5rem;
}
.wf-form-actions { display: flex; align-items: center; gap: 0.75rem; flex-wrap: wrap; }
.wf-dash a.card, a.wf-card-link {
  text-decoration: none; color: inherit; transition: box-shadow .15s;
}
.wf-dash a.card:hover, a.wf-card-link:hover {
  box-shadow: 0 2px 8px rgba(0,0,0,.08); text-decoration: none;
}
.wf-select.wf-new { background: #eff6ff; }
.wf-select.wf-reviewing { background: #fffbeb; }
.wf-select.wf-will_bid { background: #f5f3ff; }
.wf-select.wf-bid_done { background: #f0fdf4; }
.wf-select.wf-skip { background: #f3f4f6; color: #6b7280; }

.pwd-link {
  font-size: 0.82rem;
  color: #c9d4e3;
  border: 1px solid #3a5a7a;
  border-radius: 4px;
  padding: 0.25rem 0.55rem;
}
.pwd-link:hover {
  background: rgba(255,255,255,0.12);
  color: #fff;
  text-decoration: none;
}
.password-form label { display: block; margin: 0.75rem 0 0.35rem; font-size: 0.9rem; }
.password-form input[type="password"] {
  width: 100%;
  padding: 0.5rem 0.65rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-family: inherit;
  margin-top: 0.25rem;
}
.password-form .btn { margin-top: 1rem; }

/* ========== PWA / mobile shell ========== */
:root {
  --tab-h: 56px;
  --tab-inset: 10px;
  --tab-bottom: 8px;
  --safe-b: env(safe-area-inset-bottom, 0px);
  --safe-t: env(safe-area-inset-top, 0px);
}

html { -webkit-text-size-adjust: 100%; }
body {
  padding-bottom: calc(var(--tab-h) + var(--safe-b) + var(--tab-bottom) + 12px);
  min-height: 100dvh;
}

.topbar {
  padding-top: calc(0.75rem + var(--safe-t));
  position: sticky;
  top: 0;
  z-index: 30;
}
.topbar .topnav { display: flex; gap: 0.75rem; flex-wrap: wrap; }
.topbar .brand span { display: inline; }

/* Bottom tab bar — phone */
.tabbar {
  display: none;
  position: fixed;
  left: var(--tab-inset);
  right: var(--tab-inset);
  bottom: calc(var(--tab-bottom) + var(--safe-b));
  z-index: 40;
  height: var(--tab-h);
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: 0 8px 28px rgba(18, 38, 58, 0.12);
  padding: 4px;
  gap: 2px;
}
.tabbar .tab {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  min-height: 48px;
  border-radius: 12px;
  color: var(--muted);
  text-decoration: none;
  font-size: 0.72rem;
  font-weight: 600;
  -webkit-tap-highlight-color: transparent;
}
.tabbar .tab:hover { text-decoration: none; color: var(--text); }
.tabbar .tab.on {
  background: var(--accent-soft);
  color: var(--accent);
}
.tabbar .tab-ico {
  font-size: 1.15rem;
  line-height: 1;
  font-style: normal;
}
.tabbar .tab-lbl { letter-spacing: -0.02em; }

/* Install banner */
.pwa-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin: 0.75rem 1.25rem 0;
  max-width: 1100px;
  margin-left: auto;
  margin-right: auto;
  padding: 0.75rem 1rem;
  background: var(--accent-soft);
  border: 1px solid #c5d6eb;
  border-radius: var(--radius);
}
.pwa-banner-text {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  font-size: 0.88rem;
}
.pwa-banner-text strong { color: var(--accent); font-size: 0.92rem; }
.pwa-banner-actions { display: flex; gap: 0.4rem; align-items: center; flex-wrap: wrap; }
.btn.sm, .btn-ghost.sm {
  padding: 0.4rem 0.75rem;
  font-size: 0.85rem;
  min-height: 40px;
}
.btn-ghost {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--muted);
  border-radius: 6px;
  cursor: pointer;
  font-family: inherit;
}
.btn-ghost:hover { background: #fff; color: var(--text); }

.pwa-sheet {
  position: fixed; inset: 0; z-index: 60;
  background: rgba(18, 38, 58, 0.45);
  display: flex; align-items: flex-end; justify-content: center;
}
.pwa-sheet[hidden] { display: none !important; }
.pwa-sheet-panel {
  width: 100%; max-width: 480px;
  background: #fff;
  border-radius: 20px 20px 0 0;
  padding: 1.25rem 1.25rem calc(1.5rem + var(--safe-b));
  box-shadow: 0 -8px 32px rgba(0,0,0,.12);
}
.pwa-sheet-panel h3 { margin: 0 0 0.75rem; }
.inst-steps { margin: 0.5rem 0 1rem; padding-left: 1.25rem; }
.inst-steps li { margin-bottom: 0.55rem; line-height: 1.45; }
#pwa-toast {
  position: fixed; left: 50%; bottom: calc(var(--tab-h) + var(--safe-b) + 28px);
  transform: translateX(-50%);
  background: #12263a; color: #fff;
  padding: 0.65rem 1.1rem; border-radius: 20px;
  font-size: 0.88rem; opacity: 0; pointer-events: none;
  transition: opacity .2s; z-index: 70;
  max-width: min(90vw, 420px); text-align: center;
}
#pwa-toast.on { opacity: 1; }

/* Login mobile */
.login-body {
  padding: calc(1rem + var(--safe-t)) 1rem calc(1.5rem + var(--safe-b));
  align-items: flex-start;
}
@media (min-height: 640px) {
  .login-body { align-items: center; }
}
.login-brand { text-align: center; margin-bottom: 0.5rem; }
.login-icon {
  width: 72px; height: 72px; border-radius: 18px;
  display: block; margin: 0 auto 0.75rem;
  box-shadow: 0 4px 14px rgba(26, 79, 139, 0.25);
}
.login-card .login-submit {
  min-height: 48px; font-size: 1rem; width: 100%; margin-top: 1rem;
}
.login-card .lg-install {
  width: 100%; margin-top: 0.65rem; min-height: 44px;
}
.login-card .install-hint { text-align: center; margin: 0.5rem 0 0; }
.login-card .settings-form input[type="text"],
.login-card .settings-form input[type="password"] {
  min-height: 44px; font-size: 1rem;
}

/* Phone layout */
@media (max-width: 768px) {
  body { font-size: 16px; }
  .topbar {
    padding: calc(0.55rem + var(--safe-t)) 0.85rem 0.55rem;
    gap: 0.5rem;
  }
  .topbar .topnav { display: none; }
  .topbar .brand span { display: none; }
  .topbar-right {
    gap: 0.35rem;
    width: 100%;
    margin-left: 0;
    justify-content: flex-end;
  }
  .pwd-link { display: none; }
  .company-switch select { max-width: 140px; font-size: 0.82rem; }
  .user-chip { max-width: 6.5rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .wrap { padding: 0.85rem 0.85rem 1rem; }
  .tabbar { display: flex; }
  .pwa-banner { margin: 0.65rem 0.85rem 0; }
  .cards { grid-template-columns: repeat(2, 1fr); gap: 0.55rem; }
  .card .value { font-size: 1.35rem; }
  table.data { font-size: 0.85rem; display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .filters input[type="text"] { min-width: 0; flex: 1; min-height: 44px; }
  .btn, .btn.primary, .btn.secondary { min-height: 44px; }
  .dl { grid-template-columns: 96px 1fr; }
  .footer { margin-bottom: 0.5rem; }
}

/* Desktop: top nav, no bottom tabs */
@media (min-width: 769px) {
  body { padding-bottom: 0; }
  .tabbar { display: none; }
  #pwa-toast { bottom: 28px; }
}

/* Standalone (installed) — slightly tighter chrome */
html.standalone .pwa-banner { display: none !important; }

/* ---------- 공고 목록: 추천금액 + 빠른 처리 ---------- */
.notice-list .lbl-m { display: none; }
.notice-list .c-amt { white-space: nowrap; }
.amt-primary { font-weight: 700; color: #1a4f8b; font-size: 0.98rem; }
.amt-sub { font-size: 0.76rem; color: #475569; margin-top: 0.1rem; }
.amt-none { font-weight: 600; color: #9a3412; font-size: 0.85rem; }
.badge.nobase-badge { background: #ffedd5; color: #9a3412; }
.qa { display: flex; flex-wrap: wrap; gap: 0.3rem; align-items: center; }
.qa-btn {
  border: 1px solid #cbd5e1; background: #fff; color: #334155; border-radius: 6px;
  padding: 0.35rem 0.6rem; font-size: 0.85rem; font-weight: 600; cursor: pointer; min-height: 34px;
}
.qa-btn:hover { background: #f1f5f9; }
.qa-btn.qa-bid.on { background: #16a34a; border-color: #16a34a; color: #fff; }
.qa-btn.qa-will.on { background: #7c3aed; border-color: #7c3aed; color: #fff; }
.qa-btn.qa-skip.on { background: #6b7280; border-color: #6b7280; color: #fff; }
.qa-more { font-size: 0.75rem; padding: 0.2rem; border: 1px solid #e2e8f0; border-radius: 4px; color: #64748b; max-width: 5.5rem; }
tr.nrow.busy { opacity: 0.55; }
tr.nrow.fade-out { opacity: 0; transition: opacity 0.35s; }
tr.wf-row-skip td { color: #9ca3af; }
tr.wf-row-bid_done td.c-title { box-shadow: inset 3px 0 0 #16a34a; }
.wf-badge { display: inline-block; font-size: 0.7rem; padding: 0.05rem 0.4rem; border-radius: 999px; margin-left: 0.25rem; background: #eff6ff; color: #1e40af; vertical-align: middle; }
.wf-badge.wf-new { display: none; }
.wf-badge.wf-reviewing { background: #fffbeb; color: #92400e; }
.wf-badge.wf-will_bid { background: #f5f3ff; color: #5b21b6; }
.wf-badge.wf-bid_done { background: #dcfce7; color: #166534; }
.wf-badge.wf-skip { background: #f3f4f6; color: #6b7280; }
.detail-actions .wf-badge.wf-new { display: inline-block; }
.qa-toast {
  position: fixed; left: 50%; bottom: calc(76px + env(safe-area-inset-bottom)); transform: translateX(-50%);
  background: #1e293b; color: #fff; padding: 0.55rem 1rem; border-radius: 8px; font-size: 0.88rem; z-index: 60;
  box-shadow: 0 4px 14px rgba(0,0,0,0.2);
}
.qa-toast.bad { background: #b91c1c; }

/* 상세: 나라장터 버튼·투찰보조 카드 */
.detail-actions { display: flex; flex-wrap: wrap; gap: 0.6rem; align-items: center; margin: 0.25rem 0 0.5rem; }
.g2b-btn { font-size: 1rem; padding: 0.6rem 1.1rem; }
.bid-card .primary-amt { border-color: #1a4f8b; background: #f3f7fc; }
.bid-card .value.big { font-size: 1.45rem; font-weight: 700; color: #1a4f8b; }
table.data.kv th { width: 9rem; white-space: nowrap; }
table.data.kv td.muted { font-size: 0.8rem; }

/* 모바일: 공고 목록 카드형 */
@media (max-width: 768px) {
  table.data.notice-list { display: block; overflow: visible; border: none; background: transparent; }
  .notice-list thead { display: none; }
  .notice-list tbody { display: flex; flex-direction: column; gap: 0.6rem; }
  .notice-list tr.nrow {
    display: grid; grid-template-columns: 1fr auto; gap: 0.2rem 0.6rem;
    background: #fff; border: 1px solid #e2e8f0; border-radius: 10px; padding: 0.7rem 0.8rem;
  }
  .notice-list tr.nrow td { display: block; border: none; padding: 0; background: transparent !important; }
  .notice-list .c-title { grid-column: 1 / -1; order: 1; font-size: 0.98rem; }
  .notice-list .c-title .ntitle { font-weight: 700; }
  .notice-list .c-close { order: 2; font-size: 0.8rem; color: #475569; }
  .notice-list .c-agency { order: 3; grid-column: 1 / -1; font-size: 0.8rem; color: #475569; }
  .notice-list .c-amt { order: 4; grid-column: 1 / -1; white-space: normal; margin-top: 0.2rem; }
  .notice-list .c-act { order: 5; grid-column: 1 / -1; margin-top: 0.35rem; }
  .notice-list .c-meta { order: 6; grid-column: 1 / -1; font-size: 0.72rem; display: flex !important; gap: 0.4rem; align-items: baseline; }
  .notice-list .c-meta .wf-when { display: inline; }
  .notice-list .lbl-m { display: inline; color: #94a3b8; margin-right: 0.3rem; font-size: 0.72rem; }
  .amt-primary { font-size: 1.08rem; }
  .qa-btn { flex: 1 1 0; min-height: 42px; font-size: 0.92rem; }
  .qa-more { max-width: none; min-height: 42px; }
  tr.wf-row-bid_done td.c-title { box-shadow: none; }
  tr.nrow.wf-row-bid_done { border-left: 4px solid #16a34a; }
}
.est-tag { display: inline-block; font-size: 0.72rem; font-weight: 700; padding: 0.05rem 0.35rem; border-radius: 4px; background: #fef3c7; color: #92400e; vertical-align: middle; }
.amt-primary.est { color: #92400e; }
@media (max-width: 768px) {
  .filters input[type="text"] { flex: 1 1 100%; min-width: 0; order: -1; }
}

/* v4: 금액 근거 라벨, 공고문 조건 배지, 적합/부적합, 직접확인 */
.basis-tag { display: inline-block; font-size: 0.7rem; font-weight: 700; padding: 0.05rem 0.35rem; border-radius: 4px; vertical-align: middle; }
.basis-api { background: #dcfce7; color: #166534; }
.basis-doc { background: #dbeafe; color: #1e40af; }
.basis-est { background: #fef3c7; color: #92400e; }
.cond-badges { margin-top: 0.25rem; display: flex; flex-wrap: wrap; gap: 0.25rem; }
.cbadge { font-size: 0.7rem; padding: 0.05rem 0.4rem; border-radius: 999px; background: #f1f5f9; color: #334155; border: 1px solid #e2e8f0; white-space: nowrap; }
.badge.fit { background: #dcfce7; color: #166534; }
.badge.unfit { background: #fee2e2; color: #991b1b; }
.badge.manual { background: #fee2e2; color: #b91c1c; font-weight: 700; }
.snippet { font-family: ui-monospace, monospace; font-size: 0.8rem; background: #f8fafc; border-left: 3px solid #93c5fd; padding: 0.35rem 0.5rem; white-space: pre-wrap; word-break: break-all; margin: 0.25rem 0; }
.cond-table td { vertical-align: top; font-size: 0.85rem; }
.cond-table td.cat { white-space: nowrap; font-weight: 600; }
.admin-table td, .admin-table th { padding: 0.35rem 0.5rem; }
.tmp-pw { font-family: ui-monospace, monospace; background: #fef9c3; padding: 0.3rem 0.6rem; border-radius: 4px; }
