/* Customer directory only: preserve the desktop table and existing actions. */
@media (max-width:760px) {
  body .workspace .team-records-clinics .team-record-list tr {
    padding:0!important; overflow:hidden; border:1px solid #bdcfc3;
    border-radius:16px; background:var(--sf); box-shadow:0 3px 10px #07301f09;
    margin-bottom:16px;
  }
  body .workspace .team-records-clinics .team-record-list td {
    margin:0 16px; width:calc(100% - 32px)!important;
    padding:9px 0!important; grid-template-columns:112px minmax(0,1fr); gap:12px;
  }
  body .workspace .team-records-clinics .team-record-list .cellvalue { font-size:15px; line-height:1.6; }
  body .workspace .team-records-clinics .team-record-list .cellvalue small { font-size:14px; line-height:1.6; }
  body .workspace .team-records-clinics .team-record-list td[data-label="ติดต่อ"] { display:block!important; }
  body .workspace .team-records-clinics .team-record-list td[data-label="ติดต่อ"]::before { display:block; margin-bottom:4px; }
  body .workspace .team-records-clinics .team-record-list td::before { font-size:14px; line-height:1.6; }
  body .workspace .team-records-clinics .team-record-list td:first-child {
    width:100%!important; margin:0 0 8px; padding:16px!important;
    background:var(--sf2); border-bottom:1px solid var(--ln);
  }
  body .workspace .team-records-clinics .team-record-list td:first-child .btn {
    display:flex; justify-content:space-between; align-items:center; gap:12px;
    width:100%; min-height:44px; padding:0; border:0; border-radius:4px;
    background:transparent; box-shadow:none; color:var(--green);
    font-size:20px; font-weight:700; line-height:1.45; text-align:left;
    white-space:normal; overflow-wrap:anywhere;
  }
  body .workspace .team-records-clinics .team-record-list td:first-child .btn::after {
    content:"›"; flex-shrink:0; font-size:28px; font-weight:400;
  }
  body .workspace .team-records-clinics .team-record-list td:first-child small {
    display:block; margin-top:6px; font-size:14px; line-height:1.5;
  }
  body .workspace .team-records-clinics .team-record-list td[data-label="ติดต่อ"] .cellvalue:has(>small:only-child:empty)::before { content:"—"; }
  body .workspace .team-records-clinics .team-record-list td:last-child {
    width:100%!important; margin:8px 0 0; padding:14px 16px!important;
    border-top:1px solid var(--ln);
  }
  body .workspace .team-records-clinics .team-record-list td:last-child .toolbar {
    display:grid; grid-template-columns:1.4fr 1fr 1fr; align-items:stretch; gap:8px;
  }
  body .workspace .team-records-clinics .team-record-list td:last-child .btn {
    width:100%; height:100%; min-height:48px; padding:9px 8px;
    font-size:14px; line-height:1.45; margin:0;
  }
  body .workspace .team-records-clinics .team-record-list td:last-child .btn:not(.primary) { border-color:#8ca999; }
  body .workspace .team-records-clinics .clinic-list-pager {
    display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px;
    align-items:stretch; padding-top:16px; margin-top:4px; border-top:1px solid var(--ln);
  }
  body .workspace .team-records-clinics .clinic-list-pager > span {
    grid-column:1/-1; width:100%; font-size:14px; line-height:1.6; margin:0 0 2px;
  }
  body .workspace .team-records-clinics .clinic-list-pager > .btn {
    width:100%; min-height:48px; margin:0; padding:10px; font-size:15px;
    border-color:#8ca999; background:var(--sf2); color:var(--tx);
  }
  body .workspace .team-records-clinics .clinic-list-pager > .btn:disabled { opacity:.45; background:var(--sf); }
}
