/* screens-sam.css · ENDPOINT ซอฟต์แวร์และสถานะ License (lane E2 · 13-endpoint.md §3–§4 · 20-licence-allocation.md §7–§8 · DESIGN-TOKENS.md)
   /endpoints/software · /endpoints/software/{id} · /endpoints/queue · /endpoints/rules · /endpoints/licences · /endpoints/trueup(/{id})
   สีจากตัวแปรของชุดสีเท่านั้น · ตัวอักษร ≥ 12px · สถานะมีไอคอน/ข้อความเสมอ (ไม่ใช้สีอย่างเดียว) · ไม่มี style ในหน้า (CSP)
   ใช้ร่วม: .ao-kpis/.ao-kpi (screens-assetops) · .la-filter/.la-cards/.la-pol-* (screens-licalloc) */

.sam-tabs { margin-bottom: 12px; }
.sam .ao-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; gap: 8px 16px; }
.sam .ao-head .actions { margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.sam-kpis { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.sam-table td, .sam-table th { vertical-align: top; }
.sam-table th[scope="row"] { font-weight: 500; text-align: start; background: transparent; overflow-wrap: anywhere; }
/* ลิงก์ในเนื้อข้อความ/ตารางมีเส้นใต้เสมอ (ไม่แยกด้วยสีอย่างเดียว · axe link-in-text-block) */
.sam td a:not(.btn), .sam th a:not(.btn), .sam .muted a, .sam .ao-kpi-l a, .sam .empty a, .sam .notice a { text-decoration: underline; text-underline-offset: 3px; }
.sam-check { display: inline-flex; align-items: center; gap: 6px; }
.sam-pol-none { background: var(--surf2); color: var(--ink2); }
.sam-mixed, .sam-mixed-chip { background: var(--p3-bg); color: var(--ink); }
.sam-mixed .ico, .sam-mixed-chip .ico { width: 15px; height: 15px; }
.sam-probe th[scope="row"] { box-shadow: inset 3px 0 0 var(--vendor-fg); }
.sam-suggest { display: inline-block; padding: 2px 8px; border-radius: var(--r-md); background: var(--surf2); color: var(--ink); font-size: 13px; }
.sam-choice { display: flex; flex-wrap: wrap; gap: 8px 20px; margin: 0 0 12px; padding: 8px 12px; border: 1px solid var(--line); border-radius: var(--r-md); }
.sam-choice legend { padding: 0 4px; font-weight: 600; }
.sam-choice label { display: inline-flex; align-items: center; gap: 6px; }
.sam-new { margin: 8px 0 12px; }
.sam-new summary { cursor: pointer; font-weight: 500; }
.sam-names { margin: 0; padding-inline-start: 20px; display: grid; gap: 2px; overflow-wrap: anywhere; }
.sam-csv { width: 100%; font-family: var(--font-mono); font-size: 13px; }
.sam-sample { margin: 4px 0 12px; padding: 8px 12px; border-radius: var(--r-md); background: var(--surf2); color: var(--ink); font-family: var(--font-mono);
  font-size: 13px; white-space: pre-wrap; overflow-wrap: anywhere; }

@media (max-width: 900px) {
  .sam-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* จอแคบ: ตัวเลขยาว (มูลค่าส่วนขาดเป็นบาท) ใช้เต็มแถว ไม่ดันหน้ากว้างเกินจอ · ช่อง KPI หดได้ */
.sam .ao-kpi { min-width: 0; }
.sam-kpis:has(.sam-kpi-wide) { grid-template-columns: repeat(5, minmax(0, 1fr)) minmax(0, 1.6fr); }
.sam-kpi-wide .ao-kpi-v { white-space: nowrap; }
@media (max-width: 900px) {
  .sam-kpis:has(.sam-kpi-wide) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 480px) {
  .sam-kpis .sam-kpi-wide { grid-column: 1 / -1; }
}

/* ออกรายงานที่ลงนาม (M14 lane P2) */
.sam-issue { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin: 8px 0 12px; }
.sam-issue .note { flex: 1 1 18rem; min-width: 0; }
