/* Start page, section covers and TOR matrix of the offline POC package. Look follows the ONDE New UI (proposal/theme-concept/new). */
@font-face { font-family: 'K2D New'; font-weight: 400; src: url('lib/admin/fonts/K2D-Regular.woff') format('woff'), url('lib/admin/fonts/K2D-Regular.ttf') format('truetype'); }
@font-face { font-family: 'K2D New'; font-weight: 500 700; src: url('lib/admin/fonts/K2D-Bold.woff') format('woff'), url('lib/admin/fonts/K2D-Bold.ttf') format('truetype'); }
:root { --brand: #0a6b52; --brand-strong: #06493a; --brand-tint: #eaf5ee; --brand-line: #cfe6d8; --text: #111827; --muted: #5b6472; --line: #e5e7eb; --soft: #f7f8f9;
  --ok: #067647; --ok-bg: #dcfae6; --bad: #b42318; --bad-bg: #fee4e2;
  --shadow: 0 1px 2px rgba(16, 24, 40, .06), 0 4px 12px -6px rgba(6, 73, 58, .14);
  --grad: linear-gradient(120deg, #06493a 0%, #0a6b52 55%, #14946f 100%); --glow: radial-gradient(circle at 92% -20%, rgba(255, 255, 255, .22), transparent 42%);
  --font: 'IBM Plex Sans Thai', 'K2D New', 'K2D', Tahoma, sans-serif; }
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--soft); color: var(--text); }
body { font-family: var(--font); font-size: 16px; line-height: 1.6; }
a { color: var(--brand); text-decoration: none; } a:hover { color: var(--brand-strong); text-decoration: underline; }
.hd { background: #fff; border-bottom: 1px solid var(--line); box-shadow: 0 8px 24px -18px rgba(6, 73, 58, .5); }
.hd-in { max-width: 1200px; margin: 0 auto; padding: 8px 16px; display: flex; align-items: center; gap: 16px; min-height: 56px; }
.hd img { height: 36px; }
.hd .sys { padding-left: 16px; border-left: 1px solid var(--line); font-size: 14px; font-weight: 600; color: var(--brand-strong); }
.hd .tag { margin-left: auto; border: 1px solid var(--line); border-radius: 6px; padding: 0 8px; font-size: 12px; color: var(--muted); white-space: nowrap; }
.wrap { max-width: 1200px; margin: 0 auto; padding: 24px 16px 48px; }
.crumb { font-size: 12px; color: var(--muted); margin-bottom: 8px; }
.crumb a { color: var(--muted); }
h1 { font-weight: 600; font-size: 24px; color: var(--text); margin: 0 0 4px; line-height: 1.3; }
.sub { color: var(--muted); font-size: 14px; margin: 0 0 16px; }
.acts { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0 32px; }
.btn { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px; border-radius: 6px; border: 1px solid var(--line); background: #fff;
  color: var(--text); text-decoration: none; font-size: 14px; font-weight: 500; font-family: var(--font); cursor: pointer; box-shadow: 0 1px 2px rgba(16, 24, 40, .06); }
.btn:hover { border-color: var(--brand); color: var(--brand); text-decoration: none; }
.btn-onde { background: linear-gradient(135deg, #14946f, #0a6b52 60%, #06493a); border-color: var(--brand); color: #fff; box-shadow: 0 4px 12px -4px rgba(6, 73, 58, .55); }
.btn-onde:hover { background: linear-gradient(135deg, #0a6b52, #06493a); color: #fff; }
a:focus-visible, .btn:focus-visible { outline: none; box-shadow: 0 0 0 3px rgba(10, 107, 82, .35); }
h2 { font-weight: 600; font-size: 18px; color: var(--text); margin: 0 0 4px; }
.h2-sub { color: var(--muted); font-size: 14px; margin: 0 0 12px; }
.grp { margin-bottom: 32px; }
.grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.card { display: flex; flex-direction: column; gap: 4px; background: #fff; border: 1px solid rgba(6, 73, 58, .08); border-radius: 6px; padding: 16px; box-shadow: var(--shadow);
  text-decoration: none; color: var(--text); min-height: 150px; transition: box-shadow .2s, border-color .2s; }
.card:hover { border-color: var(--brand); text-decoration: none; box-shadow: 0 8px 20px -8px rgba(6, 73, 58, .35); }
.card .no { font-size: 24px; font-weight: 600; line-height: 1.2; color: var(--brand-strong); font-variant-numeric: tabular-nums; }
.card .pts { margin-left: auto; font-size: 12px; font-weight: 600; color: var(--ok); background: var(--ok-bg); border-radius: 999px; padding: 2px 12px; white-space: nowrap; }
.card .top { display: flex; align-items: center; gap: 8px; }
.card .nm { font-size: 16px; font-weight: 600; line-height: 1.4; }
.card .meta { margin-top: auto; color: var(--muted); font-size: 12px; }
.keys { background: #fff; border: 1px solid var(--line); border-radius: 6px; padding: 12px 16px; color: var(--muted); font-size: 14px; }
.keys kbd { font-family: var(--font); font-size: 12px; border: 1px solid var(--line); border-bottom-width: 2px; border-radius: 4px; padding: 1px 6px; color: var(--text); background: var(--soft); }

/* section cover: ordered steps */
.steps { background: #fff; border: 1px solid rgba(6, 73, 58, .08); border-radius: 6px; box-shadow: var(--shadow); }
.step { display: flex; gap: 16px; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.step:last-child { border-bottom: 0; }
.step .n { flex: 0 0 32px; height: 32px; border-radius: 50%; background: var(--grad); color: #fff; text-align: center; line-height: 32px; font-size: 14px; font-weight: 600; }
.step .b { flex: 1; min-width: 0; }
.step .tt { font-size: 16px; font-weight: 600; }
.step .tg { display: flex; gap: 8px; font-size: 14px; color: var(--muted); margin-top: 4px; line-height: 1.4; }
.chip { flex: 0 0 auto; color: var(--brand-strong); background: var(--brand-tint); border-radius: 6px; padding: 0 8px; font-size: 12px; font-weight: 600; white-space: nowrap; height: 24px; line-height: 24px; }
.step .hint { font-size: 14px; color: var(--ok); margin-top: 4px; }
.pn { display: flex; justify-content: space-between; gap: 8px; margin-top: 16px; flex-wrap: wrap; }

/* TOR matrix */
.kpis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-bottom: 24px; }
.kpi { background: #fff; border: 1px solid rgba(6, 73, 58, .08); border-radius: 6px; box-shadow: var(--shadow); padding: 16px; }
.kpi .l { color: var(--muted); font-size: 14px; }
.kpi .v { font-size: 32px; font-weight: 600; line-height: 1.2; color: var(--brand-strong); font-variant-numeric: tabular-nums; }
.tbl-wrap { overflow-x: auto; background: #fff; border: 1px solid rgba(6, 73, 58, .08); border-radius: 6px; box-shadow: var(--shadow); }
table.mx { width: 100%; border-collapse: collapse; font-size: 14px; }
table.mx th { background: linear-gradient(180deg, #f4faf7, #eaf5ee); color: #3b5b50; font-weight: 600; font-size: 12px; text-align: left; padding: 8px 12px; border-bottom: 1px solid var(--brand-line); }
table.mx td { padding: 8px 12px; border-bottom: 1px solid var(--line); vertical-align: top; line-height: 1.45; }
table.mx tr.top td { background: var(--brand-tint); color: var(--brand-strong); font-size: 14px; font-weight: 600; }
table.mx tr.mid td { background: var(--soft); }
table.mx td.no { white-space: nowrap; font-variant-numeric: tabular-nums; }
table.mx td.sc a { display: inline-block; margin: 0 8px 2px 0; white-space: nowrap; }
table.mx td.st { white-space: nowrap; }
.ok { color: var(--ok); } .gap { color: var(--bad); }

@media (max-width: 991px) { .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 575px) {
  .grid, .kpis { grid-template-columns: 1fr; }
  h1 { font-size: 18px; }
  .hd .sys { display: none; }
  .hd .tag { display: none; }
  .step { gap: 12px; padding: 12px; }
  .step .tg { flex-direction: column; gap: 2px; }
  .chip { align-self: flex-start; }
}
