/* Tables: base, dense (dashboard) and spreadsheet-like (patient management). */
.table-wrap{overflow-x:auto;border:1px solid var(--line);border-radius:var(--radius);box-shadow:var(--shadow)}
table{border-collapse:collapse;width:100%;font-size:14px}
th{font-size:12px;text-transform:uppercase;letter-spacing:.04em;color:var(--muted);font-weight:600;text-align:left;background:var(--table-head-bg);white-space:nowrap}
th,td{padding:9px 12px;border-bottom:1px solid var(--line);vertical-align:middle}
tbody tr:last-child td{border-bottom:0}
td.is-number,th.is-number{text-align:right;font-variant-numeric:tabular-nums}
td.tabular{font-variant-numeric:tabular-nums;white-space:nowrap}
td.cell-name b{display:block;font-weight:600}
td.cell-name small{color:var(--muted);font-size:12.5px;font-variant-numeric:tabular-nums}
td.cell-service{min-width:120px}

table.table-dense{font-size:13.5px}
table.table-dense th,table.table-dense td{padding:8px 10px}
table.table-dense td.cell-name{min-width:190px}
table.table-compact th{white-space:normal;line-height:1.25}

table.table-sheet{font-size:13.5px;border-collapse:separate;border-spacing:0}
table.table-sheet th{text-transform:none;letter-spacing:0;font-size:13px;font-weight:700;color:var(--ink);padding:11px 7px;border-bottom:1px solid var(--line)}
table.table-sheet td{padding:11px 7px}
table.table-sheet th:first-child,table.table-sheet td:first-child{padding-left:16px}
table.table-sheet th:last-child,table.table-sheet td:last-child{padding-right:16px}
table.table-sheet tbody tr:hover td{background:var(--surface-2)}
table.table-sheet td.cell-name{min-width:150px}
table.table-sheet td.cell-name small{display:block;overflow-wrap:anywhere}

/* column header that sorts on click */
.sort-button{all:unset;cursor:pointer;display:inline-flex;gap:5px;align-items:center;font:inherit;font-weight:700}
.sort-button:hover{color:var(--accent)}
.sort-button:focus-visible{outline:2px solid var(--accent);outline-offset:3px;border-radius:4px}

/* cells filled in by staff */
.cell-input{border:1px solid var(--line);border-radius:8px;background:var(--surface);padding:5px 7px;font:inherit;font-size:13px;color:var(--ink);box-sizing:border-box}
.cell-input:hover,.cell-input:focus{border-color:var(--accent)}
.cell-input.is-date{width:122px}
.cell-input.is-notes{width:100%;min-width:150px}
.phone-fix{display:flex;flex-direction:column;gap:4px;align-items:flex-start}
.phone-input{width:102px;border:1px solid var(--axis);border-radius:10px;padding:4px 7px;font-size:13px;background:var(--surface)}
