@media screen{
table.stitch-directory-table>tbody>tr.stitch-directory-card>td{padding:0!important;height:auto!important;min-height:0!important;border:0!important;border-radius:0!important;background:transparent!important;font-size:var(--directory-cell-size,12px)!important;line-height:1.5!important;white-space:normal!important}
table.stitch-directory-table{display:block!important;width:100%!important;min-width:0!important;max-width:100%;border:0!important;border-collapse:separate!important;border-spacing:0!important;background:transparent!important;color:var(--ink,#0b1c30);font-family:'Plus Jakarta Sans',sans-serif;font-size:12px!important}
.stitch-directory-table>thead{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
.stitch-directory-table.has-header-actions>thead{position:static;width:auto;height:auto;overflow:visible;clip-path:none;white-space:normal;display:block;margin-bottom:10px}
.stitch-directory-table.has-header-actions>thead>tr{display:flex;flex-wrap:wrap;gap:8px;background:none!important}
.stitch-directory-table.has-header-actions>thead th{padding:6px!important;border:0!important;background:none!important;color:var(--ink3,#65718a)!important}
.stitch-directory-table>tbody{display:grid!important;grid-template-columns:minmax(0,1fr);gap:11px;background:transparent!important;padding:10px}
.stitch-directory-table>tbody>tr.stitch-directory-card{display:grid;grid-template-columns:minmax(170px,1.5fr) repeat(calc(var(--directory-columns) - 2),minmax(0,1fr)) minmax(90px,auto);align-items:center;gap:12px 17px;min-width:0;background:#fff!important;border:0!important;border-radius:13px;box-shadow:0 2px 4px #0b1c3008;padding:15px 18px}
.stitch-directory-table>tbody>tr.stitch-directory-card>td{display:block;min-width:0;max-width:none!important;width:auto!important;padding:0!important;border:0!important;background:transparent!important;white-space:normal!important;text-align:left!important;overflow-wrap:anywhere;line-height:1.5;font-family:'Plus Jakarta Sans',sans-serif!important;font-size:12px!important;overflow:visible!important;text-overflow:clip!important}
.stitch-directory-table .stitch-directory-card>td::before{content:attr(data-card-label);display:block;margin-bottom:5px;font:9px/1.4 'JetBrains Mono',monospace;letter-spacing:.5px;text-transform:uppercase;color:#6d7a77}
.stitch-directory-table .stitch-directory-card>td:first-child{--directory-cell-size:15px;font-family:'Space Grotesk',sans-serif!important;font-size:15px!important;font-weight:700;color:#0b1c30}
.stitch-directory-table .stitch-directory-card>td.stitch-directory-actions{grid-column:-2/-1;justify-self:end;align-self:center;min-width:0}
.stitch-directory-table .stitch-directory-actions::before{display:none!important}
.stitch-directory-actions .row-actions{display:flex;gap:6px;flex-wrap:wrap;justify-content:flex-end;align-items:center}
.stitch-directory-actions :is(button,a){max-width:100%;white-space:normal!important;font-family:'Plus Jakarta Sans',sans-serif!important;font-size:12px!important;line-height:1.25!important;border-radius:10px!important;min-height:38px;padding:9px 13px!important}
.stitch-directory-actions .stitch-directory-primary{display:inline-flex;align-items:center;justify-content:center;gap:5px;background:var(--teal2,#1d72c9)!important;color:#fff!important;border:0!important;font-weight:600!important;box-shadow:none!important}
.stitch-directory-card :is(.pill,.badge){max-width:100%;white-space:normal;line-height:1.4}
.stitch-directory-card td>img{max-width:80px;max-height:64px;object-fit:contain}
.stitch-directory-table>tbody>tr.stitch-directory-detail{display:block;min-width:0}
.stitch-directory-detail>td{display:block;width:auto!important;max-width:100%;border:0!important;border-radius:10px}
.stitch-directory-table :is(tr,td)[hidden]{display:none!important}
.stitch-directory-table>tfoot{display:block;padding:12px;font-weight:700}
@media(max-width:1100px){
 .stitch-directory-table>tbody>tr.stitch-directory-card{grid-template-columns:minmax(150px,1.5fr) repeat(2,minmax(0,1fr));gap:10px 14px}
 .stitch-directory-table .stitch-directory-card>td.stitch-directory-actions{grid-column:1/-1;justify-self:end}
}
@media(max-width:650px){
 .stitch-directory-table>tbody{padding:8px;gap:10px}
 .stitch-directory-table>tbody>tr.stitch-directory-card{grid-template-columns:repeat(2,minmax(0,1fr));padding:14px;gap:12px}
 .stitch-directory-table .stitch-directory-card>td:first-child{grid-column:1/-1;font-size:15px!important}
 .stitch-directory-table .stitch-directory-card>td.stitch-directory-actions{grid-column:1/-1;justify-self:stretch}
 .stitch-directory-actions .row-actions{justify-content:flex-end}
 .stitch-directory-actions :is(button,a){min-height:44px}
}
}
@media print{
 table.stitch-directory-table{display:table!important;border-collapse:collapse!important}
 .stitch-directory-table>thead{position:static;display:table-header-group;width:auto;height:auto;clip-path:none;overflow:visible}
 .stitch-directory-table>tbody{display:table-row-group!important;padding:0}
 .stitch-directory-table>tbody>tr.stitch-directory-card{display:table-row;box-shadow:none;padding:0}
 .stitch-directory-table>tbody>tr.stitch-directory-card>td{display:table-cell;padding:6px!important}
 .stitch-directory-table .stitch-directory-card>td::before{display:none}
}

/* Same surface, spacing and typography as Clinic's approved patient cards. */
@media screen{
 :root{--labs-record-card:#fff;--labs-record-ink:#0b1c30;--labs-record-muted:#65718a;--labs-record-line:#d9e5ed;--labs-record-canvas:#f5f6f8;--labs-record-primary:#087f73}
 html[data-theme=dark]{--labs-record-card:#172433;--labs-record-ink:#e5edf7;--labs-record-muted:#b3c6da;--labs-record-line:#344b60;--labs-record-canvas:#0d1724;--labs-record-primary:#087f73}
 body :is(#screen-app,.lab-trace-dialog) table.stitch-directory-table{display:block!important;width:100%!important;min-width:0!important;table-layout:auto!important;background:transparent!important;color:var(--labs-record-ink)!important}
 body :is(#screen-app,.lab-trace-dialog) table.stitch-directory-table>thead{display:block!important;position:absolute!important;width:1px!important;height:1px!important;overflow:hidden!important;clip-path:inset(50%)!important}
 body :is(#screen-app,.lab-trace-dialog) table.stitch-directory-table.has-header-actions>thead{position:static!important;width:auto!important;height:auto!important;overflow:visible!important;clip-path:none!important}
 body :is(#screen-app,.lab-trace-dialog) table.stitch-directory-table>tbody{display:grid!important;padding:10px!important;margin:0!important;gap:11px!important;box-shadow:none!important;background:transparent!important;border-radius:0!important}
 body :is(#screen-app,.lab-trace-dialog) table.stitch-directory-table>tbody>tr.stitch-directory-card{display:grid!important;grid-template-columns:repeat(auto-fit,minmax(130px,1fr));gap:12px 17px!important;align-items:center;border:0!important;border-radius:13px!important;box-shadow:0 2px 4px #0b1c3008!important;padding:15px 18px!important;background:var(--labs-record-card)!important;color:var(--labs-record-ink)!important}
 body :is(#screen-app,.lab-trace-dialog) table.stitch-directory-table>tbody>tr.stitch-directory-card>td{display:block!important;min-width:0!important;width:auto!important;max-width:100%!important;height:auto!important;padding:0!important;border:0!important;border-radius:0!important;background:transparent!important;color:var(--labs-record-ink)!important;white-space:normal!important;overflow-wrap:anywhere!important;font-size:12px!important;line-height:1.5!important}
 body :is(#screen-app,.lab-trace-dialog) table.stitch-directory-table .stitch-directory-card>td::before{color:var(--labs-record-muted)!important}
 body :is(#screen-app,.lab-trace-dialog) table.stitch-directory-table .stitch-directory-card>td:first-child{font-size:15px!important}
 body :is(#screen-app,.lab-trace-dialog) table.stitch-directory-table .stitch-directory-actions{display:flex!important;flex-wrap:wrap;gap:6px;justify-content:flex-end;grid-column:auto;justify-self:stretch}
 body :is(#screen-app,.lab-trace-dialog) table.stitch-directory-table .stitch-directory-actions :is(button,a){min-width:38px;min-height:38px;background:var(--labs-record-card);color:var(--labs-record-ink);border:1px solid var(--labs-record-line);box-sizing:border-box}
 body :is(#screen-app,.lab-trace-dialog) table.stitch-directory-table .stitch-directory-primary{background:var(--labs-record-primary)!important;color:#fff!important}
 body :is(#screen-app,.lab-trace-dialog) .stitch-directory-card :is(small,time,.labs-olab-patient,.labs-olab-work strong,.labs-olab-clinic){color:var(--labs-record-ink)!important;white-space:normal!important;overflow:visible!important;text-overflow:clip!important}
 body :is(#screen-app,.lab-trace-dialog) .stitch-directory-card :is(small,.labs-olab-clinic small){display:block;color:var(--labs-record-muted)!important}
 body :is(#screen-app,.lab-trace-dialog) .stitch-directory-card :is(.labs-olab-work,.labs-olab-clinic){max-width:100%;white-space:normal!important}
 body :is(#screen-app,.lab-trace-dialog) .stitch-directory-card:focus-visible{outline:3px solid var(--labs-record-primary);outline-offset:2px}
 body :is(#screen-app,.lab-trace-dialog) table.stitch-directory-table>tbody>tr.stitch-directory-detail{display:block;background:transparent!important}
 body :is(#screen-app,.lab-trace-dialog) table.stitch-directory-table>tbody>tr[hidden]{display:none!important}
 body :is(#screen-app,.lab-trace-dialog) :is(.otable-wrap,.labs-olab-grid-scroll,.lt-scroll):has(>table.stitch-directory-table){display:block!important;overflow:visible!important;background:var(--labs-record-canvas)!important;border:0!important;min-width:0!important;width:auto!important}
 body #screen-app #orders-table-wrap:has(table.stitch-directory-table){overflow:visible!important;background:var(--labs-record-canvas)!important;border:1px solid var(--labs-record-line)!important;border-radius:0!important}
 #clients-list:has(table.stitch-directory-table)>.olab-mcards{display:none!important}
 body #screen-app #orders-table-wrap table.stitch-directory-table>tbody>tr.stitch-directory-card{grid-template-columns:repeat(4,minmax(0,1fr));cursor:pointer}
 body #screen-app #orders-table-wrap .stitch-directory-card>td:nth-child(2){order:-2;grid-column:span 2;font:700 15px/1.4 'Space Grotesk',sans-serif!important}
 body #screen-app #orders-table-wrap .stitch-directory-card>td:first-child{order:-1}
 body #screen-app #orders-table-wrap .stitch-directory-card>td:nth-child(7){order:-1}
 body #screen-app #orders-table-wrap .stitch-directory-card>td:nth-child(5){grid-column:span 2}
 @media(max-width:650px){
  body :is(#screen-app,.lab-trace-dialog) table.stitch-directory-table>tbody>tr.stitch-directory-card{grid-template-columns:repeat(2,minmax(0,1fr))!important;padding:14px!important}
  body :is(#screen-app,.lab-trace-dialog) table.stitch-directory-table .stitch-directory-actions{grid-column:1/-1!important}
  body :is(#screen-app,.lab-trace-dialog) table.stitch-directory-table .stitch-directory-actions :is(button,a){min-width:44px;min-height:44px}
 }
}

@media screen{body :is(#screen-app,.lab-trace-dialog) table.stitch-directory-table>tbody>tr.stitch-directory-detail:is([style*="display:none"],[style*="display: none"]){display:none!important}}

@media screen{
 body #screen-app #orders-table-wrap .stitch-directory-card .labs-olab-patient{display:block!important;-webkit-line-clamp:unset!important}
 body #screen-app #orders-table-wrap .stitch-directory-card .labs-row-action.is-primary{width:auto!important}
 body :is(#screen-app,.lab-trace-dialog) table.stitch-directory-table .stitch-directory-detail>td{background:var(--labs-record-card)!important;color:var(--labs-record-ink)!important}
}

@media screen{
 body #page-clients #clients-list>.otable-wrap:has(table.stitch-directory-table){display:block!important;overflow:visible!important;background:var(--labs-record-canvas)!important;border:0!important;box-shadow:none!important}
 body #page-clients #clients-list table.stitch-directory-table .stitch-directory-card>td{padding:0!important;min-height:0!important;border:0!important;background:transparent!important;color:var(--labs-record-ink)!important}
 body #page-clients #clients-list .stitch-directory-card{grid-template-columns:24px minmax(0,2fr) repeat(3,minmax(0,1fr)) auto}
 body #page-clients #clients-list .stitch-directory-card>td:nth-child(2){font-size:15px!important;font-weight:700}
 body #page-clients #clients-list .stitch-directory-card>td:first-child::before{display:none}
 @media(max-width:650px){body #page-clients #clients-list .stitch-directory-card>td:first-child{grid-column:auto}body #page-clients #clients-list .stitch-directory-card>td:nth-child(2){grid-column:2/-1}}
}

@media screen and (min-width:1101px){
 body #screen-app #orders-table-wrap table.stitch-directory-table>tbody>tr.stitch-directory-card{grid-template-columns:repeat(6,minmax(0,1fr))}
 body #screen-app #orders-table-wrap .stitch-directory-card>td:nth-child(2){grid-area:1/1/2/3}
 body #screen-app #orders-table-wrap .stitch-directory-card>td:nth-child(1){grid-area:1/3/2/4}
 body #screen-app #orders-table-wrap .stitch-directory-card>td:nth-child(3){grid-area:1/4/2/5}
 body #screen-app #orders-table-wrap .stitch-directory-card>td:nth-child(4){grid-area:1/5/2/6}
 body #screen-app #orders-table-wrap .stitch-directory-card>td:nth-child(7){grid-area:1/6/2/7}
 body #screen-app #orders-table-wrap .stitch-directory-card>td:nth-child(5){grid-area:2/1/3/4}
 body #screen-app #orders-table-wrap .stitch-directory-card>td:nth-child(6){grid-area:2/4/3/6}
 body #screen-app #orders-table-wrap .stitch-directory-card>td:nth-child(8){grid-area:2/6/3/7}
}

@media screen{html[data-theme=dark] body #screen-app #page-orders #orders-table-wrap .stitch-directory-actions button:not(.stitch-directory-primary){background:#203449!important;color:#e5edf7!important;border-color:#53728c!important}html[data-theme=dark] body #screen-app #orders-table-wrap .labs-olab-number{color:#67dfb8!important}}
