/* รอบ 35: เจ้าหนี้ (/payables) + ส่วนเสริมหน้าผู้จำหน่าย/แดชบอร์ด + ใบสำคัญจ่าย
   - หน้าเจ้าหนี้ใช้โครงและคลาส dbt-* ของ credit.css (หน้าลูกหนี้) และ exp-pfseg ของ expenses.css (จ่ายจากไหน) ร่วมกัน
     ไฟล์นี้มีเฉพาะส่วนที่ต่าง (.ap-*) — ใช้ตัวแปรธีม จึงใช้กับโหมดมืดได้
   - ใบสำคัญจ่าย (.pv-print, Components/PayVoucher.razor): กระดาษ .dbt-paper ของ credit.css
     พิมพ์: html[data-print="pv"] = A4, html[data-print="pv-slip"] = สลิป 80mm (ผูกกับ :has(.pv-print) เท่านั้น) */

@media screen {
  /* ---------- หัว ---------- */
  .ap-tools { gap: 8px; }
  .ap-tabs button { display: inline-flex; align-items: center; gap: 6px; }
  .ap-tab-n {
    min-width: 20px; padding: 0 6px; border-radius: 999px; background: var(--warn-soft); color: var(--warn-text, #7a5300);
    font-size: .72rem; font-weight: 700; text-align: center; line-height: 1.5;
  }
  .ap-search { width: 230px; }
  .ap-add-btn { display: inline-flex; align-items: center; gap: 8px; min-height: 42px; white-space: nowrap; }
  .ap-branch select { max-width: 190px; }

  /* ---------- ตัวเลขสรุป (5 ช่อง) ---------- */
  .ap-stats { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .ap-st-soon strong { color: var(--ag1); }
  a.fit-stat.ap-st-po { color: inherit; text-decoration: none; transition: border-color .15s, background .15s; }
  a.fit-stat.ap-st-po:hover { border-color: var(--brand); background: var(--brand-tint); }
  a.fit-stat.ap-st-po:hover small { color: var(--brand-strong, var(--brand)); }

  /* ---------- แถบตัวกรอง ---------- */
  .ap-openonly { font-size: .86rem; font-weight: 600; }
  .ap-openonly input { width: 17px; height: 17px; }
  .ap-unbilled-hint { margin: 0; font-size: .84rem; min-width: 0; }

  /* ---------- ตาราง ---------- */
  .ap-c-pos { width: 64px; white-space: nowrap; }
  .ap-po-tag {
    display: inline-flex; min-width: 24px; justify-content: center; padding: 0 8px; border-radius: 999px;
    background: var(--info-soft, var(--chip)); color: var(--info-text, var(--ink)); font-size: .76rem; font-weight: 700;
  }
  .ap-billno { display: block; }
  .ap-invno { display: block; font-size: .74rem; font-weight: 500; max-width: 150px; overflow: hidden; text-overflow: ellipsis; }
  .ap-c-due { white-space: nowrap; font-size: .86rem; }
  .ap-c-due .dbt-late, .ap-c-due .ap-soon { margin-left: 6px; }
  .ap-soon {
    display: inline-flex; align-items: center; padding: 0 8px; border-radius: 999px; background: var(--warn-soft);
    color: var(--warn-text, #7a5300); font-size: .74rem; font-weight: 700; white-space: nowrap;
  }
  .ap-c-src { max-width: 190px; }
  .ap-c-src > * { margin: 1px 4px 1px 0; }
  .ap-doc-tag {
    display: inline-flex; padding: 0 8px; border-radius: 6px; background: var(--chip); color: var(--ink);
    font-size: .72rem; font-weight: 700; white-space: nowrap;
  }
  .ap-c-left .dbt-status { font-size: .72rem; }
  .ap-acc { display: block; margin-top: 2px; font-size: .74rem; max-width: 150px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .ap-ptable .dbt-c-method { white-space: nowrap; }
  .ap-c-ref { white-space: nowrap; font-size: .86rem; color: var(--muted); }
  .ap-c-make { width: 1%; text-align: right; white-space: nowrap; }
  .ap-make-btn { display: inline-flex; align-items: center; gap: 6px; }
  .ap-utable .dbt-row td { cursor: default; }

  /* ---------- ลิ้นชักผู้จำหน่าย ---------- */
  .drw:has(.ap-sup) { width: min(700px, 100%); }
  .ap-sup-note { white-space: pre-line; }
  /* รอบ 105: <SupplierDrawer> (ใช้ร่วมกับหน้าผู้จำหน่าย) — prefix sd- */
  .sd .drw-sec h3 { align-items: center; }
  .sd-more { margin-left: auto; font-size: .8rem; font-weight: 600; text-decoration: none; white-space: nowrap; }
  .sd-more:hover { text-decoration: underline; }
  .sd-bill { grid-template-columns: minmax(0, 1fr) 118px 130px; grid-template-areas: "main due amt" "sub sub sub"; cursor: default; }
  .sd-bill:hover { border-color: var(--line); }
  .sd-row {
    display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; padding: 8px 4px;
    color: var(--ink); text-decoration: none; border-radius: 10px;
  }
  a.sd-row:hover { background: var(--chip); }
  .sd-list .dbt-plist-amt { gap: 3px; }
  .sd-info { margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .sd-info > div { display: flex; flex-direction: column; gap: 2px; min-width: 0; padding: 8px 10px; border-radius: 12px; background: var(--brand-tint); }
  .sd-info > div.wide { grid-column: 1 / -1; }
  .sd-info dt { color: var(--muted); font-size: .74rem; }
  .sd-info dd { margin: 0; font-weight: 600; font-size: .9rem; overflow-wrap: anywhere; }
  .sup-open { padding: 0; border: 0; background: none; color: inherit; font: inherit; font-weight: 600; text-align: left; cursor: pointer; }
  .sup-open:hover { color: var(--brand); text-decoration: underline; }

  /* ---------- ป๊อปอัปจ่าย ---------- */
  .ap-alloc-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
  .ap-alloc-head small { font-weight: 500; font-size: .76rem; }
  .ap-alloc-head .link { font-size: .8rem; }
  .ap-alloc { display: flex; flex-direction: column; gap: 6px; max-height: 248px; overflow-y: auto; padding: 1px; }
  .ap-alloc-row {
    display: grid; grid-template-columns: auto minmax(0, 1fr) 150px; align-items: center; gap: 10px;
    padding: 7px 10px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface);
  }
  .ap-alloc-row.on { border-color: color-mix(in srgb, var(--brand) 55%, var(--line)); background: var(--brand-tint); }
  .ap-alloc-row > input[type="checkbox"] { width: 19px; height: 19px; accent-color: var(--brand); }
  .ap-alloc-bill { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 8px; min-width: 0; }
  .ap-alloc-bill strong { font-size: .9rem; }
  .ap-alloc-bill small { flex: 1 1 100%; font-size: .74rem; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .ap-alloc-bill .dbt-late { order: 1; }
  .ap-alloc-row input[type="number"] {
    width: 100%; min-height: 38px; padding: 6px 10px; text-align: right; font: inherit; font-weight: 700;
    border: 1px solid var(--line); border-radius: 10px; background: var(--surface); color: var(--ink);
  }
  .ap-pay .exp-pfseg button { min-height: 64px; }
  .ap-billform .form-grid { align-items: start; }

  /* ---------- หน้าผู้จำหน่าย ---------- */
  .sup-payable { color: var(--danger); font-weight: 700; text-decoration: none; white-space: nowrap; }
  .sup-payable:hover { text-decoration: underline; }
  .sup-ap-total {
    margin-left: auto; display: inline-flex; align-items: center; gap: 8px; padding: 5px 14px; border-radius: 999px;
    background: var(--danger-soft); color: var(--danger); font-size: .86rem; text-decoration: none; white-space: nowrap;
  }
  .sup-ap-total strong { font-size: .95rem; }
  .sup-ap-total:hover { box-shadow: 0 0 0 1px var(--danger) inset; }

  /* ---------- ใบสำคัญจ่าย (บนจอ) ---------- */
  .ap-docview .dbt-paper { max-width: 760px; }
}

/* ---------- ใบสำคัญจ่าย: ใช้ทั้งบนจอและตอนพิมพ์ ---------- */
.pv-paper .dbt-box-dates > div { align-items: baseline; }
.pv-paper .dbt-box-dates dt { flex: none; white-space: nowrap; }
.pv-paper .dbt-box-dates dd { min-width: 0; overflow-wrap: anywhere; }
.pv-printed { margin: 0; text-align: right; font-size: .78em; color: #777; }

/* แดชบอร์ด: 5 การ์ดงานที่รอ (คำสั่งซื้อ/บิลพัก/กะ/ลูกหนี้/เจ้าหนี้) → 3 + 2, 4 การ์ด → 2×2 */
.dash-task-tiles:has(> .ap-dash):has(> :nth-child(4)) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.dash-task-tiles:has(> .ap-dash):has(> :nth-child(5)) { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.dash-task-tiles:has(> .ap-dash):has(> :nth-child(5)) > * { grid-column: span 2; }
.dash-task-tiles:has(> .ap-dash):has(> :nth-child(5)) > :nth-child(n+4) { grid-column: span 3; }

/* จอคอมขนาดกลาง: หัวแน่น → ช่องค้นหาแคบลง, ซ่อนคอลัมน์ที่ดูได้ในลิ้นชัก */
@media screen and (min-width: 761px) and (max-width: 1500px) {
  .ap-search { width: 180px; }
  .ap-branch select { max-width: 150px; }
  .ap-btable .dbt-c-date { display: none; }
  .ap-ctable .dbt-c-due { display: none; }
  .ap-ptable .dbt-c-alloc { max-width: 130px; }
  .ap-stats .fit-stat strong { font-size: 1.15rem; }
}
@media screen and (min-width: 761px) and (max-width: 1180px) {
  .ap-c-src { display: none; }
  .ap-add-btn span { display: none; }
}

/* ---------- มือถือ ---------- */
@media screen and (max-width: 760px) {
  .ap-tabs { grid-template-columns: repeat(4, minmax(0, 1fr)) !important; }
  .ap-tabs button { padding-left: 4px; padding-right: 4px; font-size: .8rem; gap: 3px; }
  .ap-tabs button span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .ap-tab-n { padding: 0 4px; min-width: 16px; }
  .ap-branch { flex: 1 1 100%; }
  .ap-branch select { max-width: none; flex: 1 1 auto; }
  .ap-search { width: auto; flex: 1 1 0; min-width: 0; }
  .ap-add-btn { flex: none; }
  .ap-add-btn span { display: none; }

  /* 5 ช่องเรียงแถวเดียวเลื่อนข้าง (ไม่ดันรายการลงไปไกล) */
  .fit-stats.ap-stats {
    display: flex; gap: 8px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding: 0 16px; scrollbar-width: none;
    width: calc(100% + 32px); margin-left: -16px; margin-right: -16px; padding: 0 16px 2px;
  }
  .fit-stats.ap-stats::-webkit-scrollbar { display: none; }
  .ap-stats .fit-stat { flex: 0 0 43%; min-width: 0; scroll-snap-align: start; }

  .ap-openonly { font-size: .8rem; }
  .ap-unbilled-hint { flex: 1 1 100%; font-size: .78rem; }

  /* การ์ดเจ้าหนี้ */
  .ap-ctable .ap-c-pos { display: none !important; }

  /* การ์ดบิล */
  .ap-btable .dbt-c-cust { order: 1; flex: 1 1 0; min-width: 55% !important; }
  .ap-btable .ap-c-left { order: 2; flex: none; font-size: 1.04rem; }
  .ap-btable .dbt-c-no { order: 3; display: flex !important; align-items: baseline; gap: 6px; font-size: .8rem; }
  .ap-btable .ap-invno { max-width: 130px; }
  .ap-btable .ap-c-due { order: 4; flex: 1 1 auto; font-size: .8rem; }
  .ap-btable .dbt-c-date, .ap-btable .ap-c-total, .ap-btable .ap-c-paid { display: none !important; }
  .ap-btable .ap-c-src { order: 5; flex: 1 1 60%; max-width: none; }
  .ap-btable .dbt-c-act { order: 6; margin-left: auto; width: auto; }

  /* การ์ดจ่ายชำระ */
  .ap-ptable .dbt-c-method { display: flex !important; align-items: center; gap: 6px; }
  .ap-ptable .ap-acc { margin: 0; max-width: 120px; }

  /* การ์ดใบรับของที่ยังไม่มีบิล */
  .ap-utable .dbt-c-cust { order: 1; flex: 1 1 0; min-width: 55% !important; }
  .ap-utable .dbt-c-amt { order: 2; flex: none; font-size: 1.04rem; }
  .ap-utable .dbt-c-no { order: 3; font-size: .8rem; }
  .ap-utable .dbt-c-date { order: 4; font-size: .78rem; }
  .ap-utable .ap-c-ref { order: 5; flex: 1 1 auto; font-size: .78rem; }
  .ap-utable .ap-c-make { order: 6; flex: 1 1 100%; width: auto; }
  .ap-utable .ap-make-btn { width: 100%; justify-content: center; }

  /* ป๊อปอัปจ่าย */
  .ap-alloc { max-height: 210px; }
  .ap-alloc-row { grid-template-columns: auto minmax(0, 1fr) 118px; gap: 8px; padding: 6px 8px; }
  .ap-alloc-bill small { white-space: normal; }
  .ap-pay .exp-pfseg button { min-height: 60px; font-size: .74rem; }

  /* หน้าผู้จำหน่าย */
  .sup-ap-total { margin-left: 0; }

  /* รอบ 105: ลิ้นชักผู้จำหน่าย */
  .sd-bill { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "main amt" "due due" "sub sub"; }
  .sd-info { grid-template-columns: minmax(0, 1fr); }

  .ap-docview .dbt-paper { max-width: none; }
  .ap-docview .dbt-doc-actions .danger-text { flex: 1 1 100%; }
}

/* =====================================================================
   พิมพ์ใบสำคัญจ่าย: html[data-print="pv"] (A4) / html[data-print="pv-slip"] (80mm)
   ===================================================================== */
@page pv-a4 { size: A4; margin: 12mm; }
@media print {
  html[data-print="pv"]:has(.pv-print), html[data-print="pv"]:has(.pv-print) body,
  html[data-print="pv-slip"]:has(.pv-print), html[data-print="pv-slip"]:has(.pv-print) body {
    margin: 0 !important; padding: 0 !important; height: auto !important; overflow: visible !important;
    background: #fff !important; color: #111 !important;
  }
  html[data-print="pv"]:has(.pv-print), html[data-print="pv"]:has(.pv-print) body { page: pv-a4; }
  html[data-print="pv"]:has(.pv-print) body *:not(:has(.pv-print)):not(.pv-print):not(.pv-print *),
  html[data-print="pv-slip"]:has(.pv-print) body *:not(:has(.pv-print)):not(.pv-print):not(.pv-print *) { display: none !important; }
  html[data-print="pv"]:has(.pv-print) body *:has(.pv-print),
  html[data-print="pv-slip"]:has(.pv-print) body *:has(.pv-print) {
    display: block !important; position: static !important; inset: auto !important;
    margin: 0 !important; padding: 0 !important; border: 0 !important; border-radius: 0 !important;
    width: auto !important; max-width: none !important; min-width: 0 !important;
    height: auto !important; min-height: 0 !important; max-height: none !important;
    overflow: visible !important; background: none !important; box-shadow: none !important; transform: none !important;
    animation: none !important; zoom: 1 !important;
  }
  html[data-print="pv"] .pv-print, html[data-print="pv"] .pv-print *,
  html[data-print="pv-slip"] .pv-print, html[data-print="pv-slip"] .pv-print * { visibility: visible !important; }
  html[data-print="pv"] .pv-print, html[data-print="pv-slip"] .pv-print { display: block !important; position: static !important; }
  html[data-print="pv"] .dbt-paper, html[data-print="pv-slip"] .dbt-paper {
    max-width: none !important; margin: 0 !important; box-shadow: none !important; border-radius: 0 !important;
  }

  /* A4 */
  html[data-print="pv"] .dbt-paper { padding: 0 !important; font-size: 10.5pt; gap: 4.5mm; }

  /* สลิป 80mm: คอลัมน์เดียว ตัวเล็ก */
  html[data-print="pv-slip"] .dbt-paper { width: 72mm; padding: 0 !important; font-size: 11px; gap: 7px; }
  html[data-print="pv-slip"] .pv-a4-only { display: none !important; }
  html[data-print="pv-slip"] .dbt-dhead { flex-direction: column; align-items: center; text-align: center; gap: 4px; padding-bottom: 6px; border-bottom: 1px dashed #111; }
  html[data-print="pv-slip"] .dbt-shop { align-items: center; }
  html[data-print="pv-slip"] .dbt-shop-name { font-size: 1.3em; }
  html[data-print="pv-slip"] .dbt-dtitle { align-items: center; text-align: center; }
  html[data-print="pv-slip"] .dbt-dtitle strong { font-size: 1.15em; }
  html[data-print="pv-slip"] .dbt-party { grid-template-columns: minmax(0, 1fr); gap: 6px; }
  html[data-print="pv-slip"] .dbt-box { padding: 4px 0; border: 0; border-radius: 0; }
  html[data-print="pv-slip"] .dbt-box-dates { border-top: 1px dashed #111; padding-top: 6px; }
  html[data-print="pv-slip"] .dbt-lines th { background: none; border-top: 1px dashed #111; border-bottom: 1px dashed #111; padding: 3px 2px; }
  html[data-print="pv-slip"] .dbt-lines td { padding: 3px 2px; border-bottom: 0; }
  html[data-print="pv-slip"] .dbt-lines .c-no { display: none; }
  html[data-print="pv-slip"] .dbt-sum { width: 100%; }
  html[data-print="pv-slip"] .dbt-sum-row.total { border-width: 1px; border-style: dashed none; }
  html[data-print="pv-slip"] .dbt-stamp { font-size: 1.1em; padding: 2px 12px; }
  html[data-print="pv-slip"] .dbt-sign { gap: 14px; margin-top: 18px; }
  html[data-print="pv-slip"] .dbt-sign span { width: 100%; height: 28px; }
}

/* =====================================================================
   รอบ 36: เทียบ 3 ทาง (ใบสั่งซื้อ / ของที่รับ / บิล)
   - .ap-flags แถบลิงก์ใต้ตัวเลขสรุป (ใบรับรอตรวจ → /purchase-orders?view=grn, บิลยอดไม่ตรง → กรองแท็บบิล)
   - .ap-mm ป้ายสีเหลืองอำพัน "≠ ของที่รับ ±ส่วนต่าง" บนบิล (ตาราง/ลิ้นชัก), .ap-mm-ico ในป๊อปอัปจ่าย
   - .ap-mm-live / .ap-mm-ok ใต้ช่องจำนวนเงินของป๊อปอัปเพิ่มบิล, .ap-dash-flags บนการ์ดเจ้าหนี้ของแดชบอร์ด
   ===================================================================== */
@media screen {
  .fit > .ap-flags { flex: none; }
  .ap-flags { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; margin-top: -2px; }
  .ap-flag {
    display: inline-flex; align-items: center; gap: 6px; min-height: 30px; padding: 3px 12px; border-radius: 999px;
    border: 1px solid transparent; background: var(--warn-soft); color: var(--warn-text, #7a5300);
    font: inherit; font-size: .82rem; font-weight: 700; line-height: 1.3; text-decoration: none; white-space: nowrap; cursor: pointer;
    transition: border-color .15s, box-shadow .15s;
  }
  .ap-flag svg { flex: none; }
  .ap-flag:hover { border-color: currentColor; }
  .ap-flag.grn { background: var(--brand-tint); color: var(--brand-strong, var(--brand)); border-color: var(--brand-soft); }
  .ap-flag.grn:hover { border-color: var(--brand); }
  .ap-flag-go { margin-left: -2px; opacity: .75; }
  .ap-flag.mm.on { border-color: currentColor; box-shadow: 0 0 0 1px currentColor inset; }

  .dbt-chip.ap-chip-mm { --c: var(--warn-text, #7a5300); }

  .ap-mm {
    display: inline-flex; align-items: center; gap: 3px; padding: 0 7px; border-radius: 999px;
    background: var(--warn-soft); color: var(--warn-text, #7a5300); font-size: .72rem; font-weight: 700; line-height: 1.55;
    white-space: nowrap; cursor: help; font-variant-numeric: tabular-nums;
  }
  .ap-c-total .ap-mm-d { display: table; margin: 3px 0 0 auto; }
  .ap-mm-m { display: none; }
  .ap-grn-tag {
    display: inline-flex; padding: 0 8px; border-radius: 6px; background: var(--brand-tint); color: var(--brand-strong, var(--brand));
    box-shadow: 0 0 0 1px var(--brand-soft) inset; font-size: .72rem; font-weight: 700; white-space: nowrap;
  }
  .dbt-bill-sub .ap-mm { margin-left: 2px; }

  /* ป๊อปอัปจ่าย */
  .ap-alloc-bill .ap-mm-ico {
    order: 1; display: inline-flex; align-items: center; padding: 0 7px; border-radius: 999px;
    background: var(--warn-soft); color: var(--warn-text, #7a5300); font-size: .7rem; font-weight: 700; line-height: 1.55; cursor: help;
  }
  .ap-alloc-bill .ap-mm-ico::before { content: "≠"; margin-right: 3px; }
  .ap-mm-warn {
    display: flex; align-items: flex-start; gap: 8px; margin: 8px 0 0; padding: 8px 12px; border-radius: 10px;
    background: var(--warn-soft); color: var(--warn-text, #7a5300); font-size: .82rem; font-weight: 600; line-height: 1.4;
  }
  .ap-mm-warn svg { flex: none; margin-top: 1px; }

  /* ป๊อปอัปเพิ่มบิล */
  .ap-mm-live {
    display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 8px; margin-top: 4px; padding: 4px 10px; border-radius: 8px;
    background: var(--warn-soft); color: var(--warn-text, #7a5300); font-size: .78rem; font-weight: 600;
  }
  .ap-mm-live b { font-weight: 800; white-space: nowrap; }
  .ap-mm-ok { display: block; margin-top: 4px; color: var(--ok); font-size: .78rem; font-weight: 600; }
  .ap-mm-ok::before { content: "✓ "; }

  /* การ์ดเจ้าหนี้บนแดชบอร์ด */
  .ap-dash-flags { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 4px; min-width: 0; }
  .ap-dash-flag {
    min-width: 0; padding: 0 7px; border-radius: 999px; font-size: .7rem; font-weight: 700; line-height: 1.6;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
    background: color-mix(in srgb, var(--surface) 70%, transparent); color: var(--warn-text, #7a5300);
  }
  .ap-dash-flag.grn { color: var(--brand-strong, var(--brand)); }
}

@media screen and (max-width: 760px) {
  /* แถวเดียวเลื่อนข้างได้ (ไม่กินความสูง) */
  .ap-flags {
    flex-wrap: nowrap; gap: 6px; margin: 0 -16px; padding: 0 16px 1px; width: calc(100% + 32px);
    overflow-x: auto; scrollbar-width: none;
  }
  .ap-flags::-webkit-scrollbar { display: none; }
  .ap-flag { flex: none; min-height: 28px; padding: 2px 10px; font-size: .76rem; }
  .ap-btable .dbt-c-no .ap-mm-m { display: inline-flex; }
  .ap-mm-warn { font-size: .78rem; }
}

/* รอบ 121a: มีสิทธิ์จ่ายแต่ไม่มีสิทธิ์เห็นต้นทุน (stock.cost) — ยอดเงินถูกซ่อนจาก server */
.ap-hidden-note { margin: 0; background: var(--chip); color: var(--muted); font-size: .88rem; }
.dbt-chips.ap-chips-off { display: none; }
