/* One compact horizontal record per line, matching the patient directory. */
/* Page-specific legacy rules must not restore table padding inside card cells. */
@media screen{#screen-app.screen .page :is(#supplies-table,#inventory-table,#entregas-history,#providers-table,#equipment-table,#maintenance-table,#waste-table,#staff-table,#convenios-table,#convenios-table-page,#audit-log-table,#my-clinic-links-table,#supply-quotes-dashboard,#os-table,#continuidad-table,#abonos-os-table,#labcost-table,#caja-table,#ant-table,#cobros-content,#profit-content,#cc-content,#ccp-content) 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}
}
