.td-states{display:inline-flex;gap:6px;flex-wrap:wrap;vertical-align:middle;margin-left:8px}.td-state{display:inline-block;padding:6px 9px;border-radius:18px;font-size:.85rem;font-weight:600;border:1px solid transparent}.td-inactive{background:#e9ecef;color:#525b65}.td-pending{background:#dbeafe;color:#173e80;border-color:#7da8df}.td-active{background:#ffe88a;color:#594100;border-color:#caa331}.td-finished{background:#d4f5df;color:#165b30;border-color:#78b88d}.td-doctor{margin-top:6px}.td-consult{display:inline-block;padding:13px 18px;background:#20678c;color:#fff;border-radius:8px;text-decoration:none;font-weight:700;min-width:140px;text-align:center}.td-consult:focus-visible,.td-state:focus-visible{outline:3px solid #173e80;outline-offset:3px}#patientDetail{margin-top:20px}#patientDetail textarea{min-height:250px}@media(max-width:700px){.td-states{margin-left:0;margin-top:8px}}

/* Compact clinic inbox only; no behavior changes. */
main .card{padding:16px;margin-bottom:14px}
main .card h2{font-size:21px;margin:0 0 12px}
main #doctors,main #summary{font-size:13px;line-height:1.4}
main #summary p{margin:6px 0}
main .card>p{font-size:13px;margin:10px 0}
main table{table-layout:fixed;font-size:12px;min-width:920px}
main table th,main table td{white-space:normal;overflow-wrap:anywhere;padding:7px 6px;line-height:1.35}
main table th:nth-child(1){width:13%}main table th:nth-child(2){width:12%}main table th:nth-child(3){width:10%}main table th:nth-child(4){width:15%}main table th:nth-child(5){width:7%}main table th:nth-child(6){width:12%}main table th:nth-child(7){width:21%}main table th:nth-child(8){width:10%}
main .td-states{margin:0;gap:4px}
main .td-state{padding:3px 6px;font-size:11px;border-radius:12px;line-height:1.3}
main .td-doctor{margin-top:4px;font-size:11px;white-space:normal}
main .td-consult,main button[data-detail-id]{font-size:12px;padding:8px 9px;min-width:0;max-width:100%;white-space:normal;box-sizing:border-box;line-height:1.3}
@media(max-width:700px){main .td-consult,main button[data-detail-id]{min-height:44px}}
