:root{--mf-table-surface:#fff;--mf-table-soft:#f0f6f8;--mf-table-text:#173647;--mf-table-muted:#496575;--mf-table-line:#d7e4eb;--mf-table-accent:#087e8b;--mf-table-accent-soft:#e0f1f3;--mf-selection-bg:#96e4eb;--mf-selection-text:#062832}
html[data-theme="dark"]{--mf-table-surface:#0d1e2f;--mf-table-soft:#152c3e;--mf-table-text:#e0eaf4;--mf-table-muted:#afc4d2;--mf-table-line:#2a4356;--mf-table-accent:#77d7dc;--mf-table-accent-soft:#153c47;--mf-selection-bg:#a0e8e9;--mf-selection-text:#061f2c}
html body::selection,html body *::selection{background:var(--mf-selection-bg)!important;color:var(--mf-selection-text)!important;-webkit-text-fill-color:var(--mf-selection-text)!important;text-shadow:none!important}
.mf-table-toolbar{display:flex;align-items:center;flex-wrap:wrap;gap:10px;padding:14px 16px;background:var(--mf-table-surface);color:var(--mf-table-text);border-bottom:1px solid var(--mf-table-line);max-width:100%;font:400 13px/1.45 Inter,"IBM Plex Sans Arabic",sans-serif}.mf-table-search{display:flex;align-items:center;gap:9px;border:1px solid var(--mf-table-line);border-radius:8px;padding-inline:11px;min-width:180px;max-width:310px;flex:1;background:var(--mf-table-surface)}.mf-table-search>svg{width:17px;height:17px;flex-shrink:0;color:var(--mf-table-muted)}.mf-table-search input{min-width:0;width:100%;min-height:40px;border:0!important;outline:none!important;background:transparent!important;color:var(--mf-table-text)!important;padding:8px 0!important;font:inherit!important;box-shadow:none!important}.mf-table-search:focus-within{outline:2px solid var(--mf-table-accent);outline-offset:2px}.mf-table-search input::placeholder{color:var(--mf-table-muted)}.mf-table-toolbar svg,.mf-table-popover svg,.mf-table-heading svg,.mf-table-chip svg{fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round;flex-shrink:0}.mf-table-button{appearance:none;display:inline-flex;align-items:center;justify-content:center;gap:7px;min-height:40px;max-width:100%;padding:8px 11px;border:1px solid var(--mf-table-line);border-radius:8px;background:var(--mf-table-surface);color:var(--mf-table-text);font:600 12px/1.4 Inter,"IBM Plex Sans Arabic",sans-serif;text-decoration:none;cursor:pointer;white-space:normal}.mf-table-button>svg{width:17px;height:17px}.mf-table-button:hover,.mf-table-icon-button:hover{background:var(--mf-table-soft)}.mf-table-button:focus-visible,.mf-table-icon-button:focus-visible,.mf-table-heading-button:focus-visible,.mf-table-chip:focus-visible{outline:2px solid var(--mf-table-accent);outline-offset:2px}.mf-table-status{font-size:11px;color:var(--mf-table-muted);margin-inline-end:auto}.mf-table-reset{border-color:transparent;color:var(--mf-table-muted)}
:is(.mf-smart-table,.emr-table-wrap>table) thead th{background:var(--mf-table-soft)!important;color:var(--mf-table-text)!important;font-size:12px!important;font-weight:600!important;text-transform:none!important;letter-spacing:0!important;vertical-align:middle!important;border-bottom:1px solid var(--mf-table-line)!important;padding-block:10px!important}.mf-table-heading{display:flex;align-items:center;justify-content:space-between;gap:5px;min-height:34px}.mf-table-heading-button{display:inline-flex;align-items:center;gap:8px;min-height:34px;flex:1;text-align:start;font:inherit;letter-spacing:0;color:inherit;background:transparent;border:0;padding:3px 0;cursor:pointer}.mf-table-sort-indicator{display:inline-flex;color:var(--mf-table-muted)}.mf-table-sort-indicator svg{width:14px;height:14px}.mf-smart-table th[aria-sort="ascending"] .mf-table-sort-indicator,.mf-smart-table th[aria-sort="descending"] .mf-table-sort-indicator{color:var(--mf-table-accent)}.mf-table-icon-button{display:inline-flex;align-items:center;justify-content:center;min-width:32px;min-height:34px;border:0;border-radius:6px;background:transparent;color:var(--mf-table-muted);cursor:pointer;padding:7px}.mf-table-icon-button svg{width:15px;height:15px}.mf-filter-active{color:var(--mf-table-accent)!important;background:var(--mf-table-accent-soft)!important}.mf-smart-table[data-row-density="compact"] tbody td,.mf-smart-table[data-row-density="compact"] tbody th{padding-top:8px!important;padding-bottom:8px!important}#per-page-form[hidden],.mf-smart-table [hidden],.mf-table-chips[hidden],.mf-table-popover [hidden]{display:none!important}.mf-table-empty td{padding:26px 20px!important;text-align:center;color:var(--mf-table-muted);font-size:13px;white-space:normal!important}
.mf-table-chips{display:flex;flex-wrap:wrap;gap:7px;padding:10px 16px;background:var(--mf-table-surface);border-bottom:1px solid var(--mf-table-line)}.mf-table-chip{display:inline-flex;align-items:center;gap:6px;max-width:100%;border:1px solid var(--mf-table-line);border-radius:6px;background:var(--mf-table-accent-soft);color:var(--mf-table-text);font:500 12px/1.4 Inter,"IBM Plex Sans Arabic",sans-serif;padding:5px 8px;cursor:pointer}.mf-table-chip svg{width:13px;height:13px}.mf-table-chip span{overflow-wrap:anywhere}
.mf-table-popover{position:fixed;inset:auto;margin:0;z-index:1000;box-sizing:border-box;padding:17px;border:1px solid var(--mf-table-line);border-radius:12px;background:var(--mf-table-surface);color:var(--mf-table-text);box-shadow:0 14px 34px #03132035;overflow:auto;font:400 13px/1.5 Inter,"IBM Plex Sans Arabic",sans-serif;scrollbar-width:thin}.mf-table-popover::backdrop{background:transparent}.mf-table-popover-heading{display:flex;align-items:center;justify-content:space-between;gap:15px;margin-bottom:12px}.mf-table-popover-heading strong{font-size:14px;overflow-wrap:anywhere}.mf-table-sort-actions{display:grid;gap:3px;padding-bottom:13px;border-bottom:1px solid var(--mf-table-line);margin-bottom:15px}.mf-table-sort-actions .mf-table-button{justify-content:flex-start;border:0;text-align:start}.mf-table-filter-form{display:grid;gap:13px}.mf-table-filter-form label,.mf-table-view-label{display:grid;gap:7px;font-size:12px;font-weight:600}.mf-table-popover input:not([type="checkbox"]),.mf-table-popover select{display:block;width:100%;min-height:42px;padding:9px 10px;border:1px solid var(--mf-table-line);border-radius:7px;background:var(--mf-table-surface);color:var(--mf-table-text);font:400 13px/1.4 Inter,"IBM Plex Sans Arabic",sans-serif;box-sizing:border-box}.mf-table-popover input:focus,.mf-table-popover select:focus{outline:2px solid var(--mf-table-accent);outline-offset:2px}.mf-table-filter-actions{display:flex;justify-content:space-between;gap:9px;padding-top:3px}.mf-table-primary{background:var(--mf-table-accent);border-color:transparent;color:var(--mf-table-surface)}.mf-table-view-label{margin-block:14px}.mf-table-column-title{display:block;font-size:12px;border-top:1px solid var(--mf-table-line);padding-top:15px;margin-top:15px}.mf-table-column-choice{display:flex;align-items:center;gap:10px;padding-block:10px;cursor:pointer}.mf-table-column-choice input{width:17px;height:17px;accent-color:var(--mf-table-accent);flex-shrink:0}.mf-table-column-choice input:disabled{opacity:.45}.mf-table-loading .mf-table-toolbar{opacity:.65;pointer-events:none}
@media(max-width:640px){.mf-table-toolbar{padding:12px;gap:8px}.mf-table-search{max-width:none;min-width:130px;flex-basis:60%}.mf-table-status{order:5;flex-basis:100%}.mf-table-button{min-height:44px}.mf-table-heading-button,.mf-table-icon-button{min-height:40px}.mf-table-reset span{display:none}.mf-table-popover{padding:16px}.mf-table-search-submit span{display:none}.mf-table-chips{padding:10px 12px}}
@media print{.mf-table-toolbar,.mf-table-chips,.mf-table-popover,.mf-table-column-filter,.mf-table-sort-indicator{display:none!important}.mf-smart-table thead th{background:#f0f4f6!important;color:#172d3c!important}.mf-table-heading-button{color:#172d3c!important}}
