@font-face{font-family:'TM Mulish';src:url(/static/assets/Mulish-Regular.ttf) format('truetype');font-weight:400;font-display:swap;}
@font-face{font-family:'TM Mulish';src:url(/static/assets/Mulish-SemiBold.ttf) format('truetype');font-weight:600;font-display:swap;}
@font-face{font-family:'TM Mulish';src:url(/static/assets/Mulish-Bold.ttf) format('truetype');font-weight:700;font-display:swap;}
@font-face{font-family:'TM Akrobat';src:url(/static/assets/Akrobat-Bold.ttf) format('truetype');font-weight:700;font-display:swap;}






#tm-workspace{--tm-bg:light-dark(#f5f7f7,#11191b);--tm-surface:light-dark(#ffffff,#1a2426);--tm-side:light-dark(#f9fbfa,#152023);--tm-ink:light-dark(#243732,#e1ebe7);--tm-muted:light-dark(#68776f,#a0b0a9);--tm-line:light-dark(#e6ebe8,#2d3b36);--tm-soft:light-dark(#eef3f0,#263731);--tm-green:light-dark(#28614d,#9bceb7);--tm-green-fill:light-dark(#28614d,#abd9c0);--tm-on-green:light-dark(#ffffff,#183728);--tm-selected:light-dark(#e7efea,#2c4439);--tm-red:light-dark(#a95746,#edaa97);--tm-red-bg:light-dark(#fbefeb,#3f2c25);--tm-amber:light-dark(#80602a,#dac18c);--tm-amber-bg:light-dark(#f6f1e6,#3b3526);--tm-purple:light-dark(#6f638e,#b5acd5);--tm-purple-bg:light-dark(#f0edf6,#302c41);--tm-blue:light-dark(#4e6e87,#a0bfd4);--tm-blue-bg:light-dark(#edf3f7,#273741);--tm-shadow:light-dark(0 16px 70px #1a34222b,0 16px 70px #0008);position:relative;isolation:isolate;background:var(--tm-bg);color:var(--tm-ink);font:14px/1.5 'Inter','Segoe UI',sans-serif;width:100%;min-height:840px;border-radius:14px;overflow:clip;text-align:left;color-scheme:inherit}
#tm-workspace *{box-sizing:border-box}#tm-workspace button,#tm-workspace input,#tm-workspace select,#tm-workspace textarea{font:inherit;color:inherit}#tm-workspace button{border:0;background:none}#tm-workspace button:not(:disabled),#tm-workspace [data-open-task],#tm-workspace [data-employee]{touch-action:manipulation}#tm-workspace button:disabled{opacity:.45}#tm-workspace h1,#tm-workspace h2,#tm-workspace h3,#tm-workspace p{margin:0}#tm-workspace h1{font-size:28px;font-weight:600;letter-spacing:-1px;line-height:1.25}#tm-workspace h2{font-size:16px;font-weight:600;letter-spacing:-.3px}#tm-workspace h3{font-size:14px;font-weight:600}#tm-workspace .tm-icon{width:18px;height:18px;stroke-width:1.7;flex-shrink:0}#tm-workspace .tm-sm{font-size:12px}#tm-workspace .tm-muted{color:var(--tm-muted)}#tm-workspace .tm-flex{display:flex;align-items:center;gap:10px}#tm-workspace .tm-between{display:flex;align-items:center;justify-content:space-between;gap:16px}#tm-workspace .tm-shell{display:grid;grid-template-columns:208px minmax(0,1fr);min-height:840px}#tm-workspace .tm-sidebar{background:var(--tm-side);border-right:1px solid var(--tm-line);padding:27px 14px 18px;display:flex;flex-direction:column;gap:26px}#tm-workspace .tm-brand{display:flex;align-items:center;gap:11px;padding:0 12px 6px;color:var(--tm-green)}#tm-workspace .tm-brand-mark{width:33px;height:33px;position:relative;flex-shrink:0;display:grid;grid-template-columns:repeat(2,12px);grid-template-rows:repeat(2,12px);gap:3px;transform:rotate(-4deg)}#tm-workspace .tm-brand-mark span{background:var(--tm-green);border-radius:3px}#tm-workspace .tm-brand-mark span:nth-child(2){opacity:.35}#tm-workspace .tm-brand-mark span:nth-child(3){opacity:.65}#tm-workspace .tm-brand-name{font-size:14px;font-weight:650;letter-spacing:1.2px;line-height:1.25}#tm-workspace .tm-brand-note{font-size:11px;letter-spacing:1px;color:var(--tm-muted);margin-top:5px}#tm-workspace .tm-nav{display:flex;flex-direction:column;gap:5px}#tm-workspace .tm-nav button{display:flex;align-items:center;gap:11px;width:100%;padding:10px 12px;border-radius:7px;font-size:13px;text-align:left;color:var(--tm-muted);transition:background .15s}#tm-workspace .tm-nav button:hover{background:var(--tm-soft);color:var(--tm-ink)}#tm-workspace .tm-nav button[aria-current=page]{background:var(--tm-selected);color:var(--tm-green);font-weight:600}#tm-workspace .tm-nav-count{margin-left:auto;min-width:21px;text-align:center;font-size:11px;background:var(--tm-surface);border-radius:5px;padding:1px 4px;color:var(--tm-green)}#tm-workspace .tm-nav-label{font-size:11px;letter-spacing:1.3px;color:var(--tm-muted);padding:0 12px 8px;text-transform:uppercase}#tm-workspace .tm-sidebar-bottom{margin-top:auto;padding:10px 10px 0;border-top:1px solid var(--tm-line)}#tm-workspace .tm-sidebar-bottom button{padding:9px 0;display:flex;align-items:center;gap:10px;color:var(--tm-muted);font-size:12px}#tm-workspace .tm-side-version{font-size:11px;color:var(--tm-muted);letter-spacing:.3px;margin-top:15px}#tm-workspace .tm-topbar{height:71px;background:var(--tm-surface);border-bottom:1px solid var(--tm-line);display:flex;align-items:center;justify-content:space-between;padding:0 30px;gap:18px}#tm-workspace .tm-clinic{display:flex;align-items:center;gap:9px;min-width:140px}#tm-workspace .tm-clinic select{background:transparent;border:0;outline-offset:4px;font-size:12px;max-width:170px}#tm-workspace .tm-clinic select option{background:var(--tm-surface);color:var(--tm-ink)}#tm-workspace .tm-global-search{display:flex;align-items:center;gap:9px;color:var(--tm-muted);max-width:310px;width:100%}#tm-workspace .tm-global-search input{width:100%;background:transparent;border:0;font-size:12px;outline-offset:6px}#tm-workspace input::placeholder,#tm-workspace textarea::placeholder{color:var(--tm-muted)}#tm-workspace .tm-key{font:10px 'Segoe UI',sans-serif;border:1px solid var(--tm-line);border-radius:4px;padding:0 4px;white-space:nowrap}#tm-workspace .tm-top-actions{display:flex;align-items:center;gap:15px;flex-shrink:0;padding-right:12px}#tm-workspace .tm-icon-button{position:relative;display:inline-flex;align-items:center;justify-content:center;width:32px;height:32px;border-radius:6px;color:var(--tm-muted)}#tm-workspace .tm-icon-button:hover{background:var(--tm-soft);color:var(--tm-ink)}#tm-workspace .tm-notification-dot{position:absolute;top:5px;right:6px;width:5px;height:5px;background:var(--tm-red);border-radius:50%;box-shadow:0 0 0 2px var(--tm-surface)}#tm-workspace .tm-avatar{width:29px;height:29px;border-radius:50%;background:var(--tm-selected);color:var(--tm-green);font-size:11px;font-weight:600;display:inline-flex;align-items:center;justify-content:center;flex-shrink:0;letter-spacing:-.1px}#tm-workspace .tm-avatar.blue{background:var(--tm-blue-bg);color:var(--tm-blue)}#tm-workspace .tm-avatar.purple{background:var(--tm-purple-bg);color:var(--tm-purple)}#tm-workspace .tm-avatar.amber{background:var(--tm-amber-bg);color:var(--tm-amber)}#tm-workspace .tm-profile{display:flex;align-items:center;gap:7px}#tm-workspace .tm-main{padding:30px 32px 28px;min-width:0}#tm-workspace .tm-eyebrow{font-size:11px;color:var(--tm-muted);margin-bottom:7px}#tm-workspace .tm-subtitle{color:var(--tm-muted);font-size:12px;margin-top:8px}#tm-workspace .tm-page-heading{display:flex;justify-content:space-between;align-items:center;gap:16px;margin-bottom:27px}#tm-workspace .tm-button{display:inline-flex;align-items:center;justify-content:center;gap:7px;padding:8px 12px;border:1px solid var(--tm-line);border-radius:7px;background:var(--tm-surface);font-size:12px;font-weight:500;white-space:nowrap;min-height:35px}#tm-workspace .tm-button:hover{background:var(--tm-soft)}#tm-workspace .tm-button.primary{color:var(--tm-on-green);background:var(--tm-green-fill);border-color:var(--tm-green-fill)}#tm-workspace .tm-button.primary:hover{filter:brightness(.94)}#tm-workspace .tm-button .tm-icon{width:15px;height:15px}#tm-workspace .tm-text-button{color:var(--tm-green);font-size:12px;padding:4px 0;display:inline-flex;align-items:center;gap:6px}#tm-workspace .tm-summary-strip{display:flex;gap:0;margin:0 0 27px;flex-wrap:wrap}#tm-workspace .tm-stat{min-width:140px;padding-right:26px;margin-right:26px;border-right:1px solid var(--tm-line)}#tm-workspace .tm-stat:last-child{border:0}#tm-workspace .tm-stat-value{font-size:25px;font-weight:550;letter-spacing:-.8px;line-height:1.35;font-variant-numeric:tabular-nums}#tm-workspace .tm-stat-label{font-size:11px;color:var(--tm-muted);margin-top:3px;display:flex;align-items:center;gap:6px}#tm-workspace .tm-small-dot{width:5px;height:5px;border-radius:50%;background:var(--tm-muted);display:inline-block}#tm-workspace .tm-small-dot.red{background:var(--tm-red)}#tm-workspace .tm-small-dot.green{background:var(--tm-green)}#tm-workspace .tm-main-grid{display:grid;grid-template-columns:minmax(0,1fr) 240px;gap:23px;align-items:start}#tm-workspace .tm-panel{background:var(--tm-surface);border:1px solid var(--tm-line);border-radius:10px;min-width:0;overflow:clip}#tm-workspace .tm-panel-heading{padding:19px 20px 15px}#tm-workspace .tm-tabs{display:flex;align-items:center;gap:21px;border-bottom:1px solid var(--tm-line);padding:0 20px;flex-wrap:wrap}#tm-workspace .tm-tabs button{position:relative;padding:13px 0 12px;font-size:12px;color:var(--tm-muted);white-space:nowrap}#tm-workspace .tm-tabs button.selected{color:var(--tm-green);font-weight:550}#tm-workspace .tm-tabs button.selected:after{position:absolute;content:'';height:2px;background:var(--tm-green);bottom:-1px;left:0;right:0;border-radius:2px}#tm-workspace .tm-tab-num{font-size:11px;background:var(--tm-soft);padding:1px 5px;border-radius:4px;margin-left:5px}#tm-workspace .tm-task-tools{padding:12px 20px;display:flex;align-items:center;justify-content:space-between;gap:12px;border-bottom:1px solid var(--tm-line)}#tm-workspace .tm-inline-select{border:0;background:transparent;font-size:11px;color:var(--tm-muted);max-width:170px}#tm-workspace .tm-inline-select option{color:var(--tm-ink);background:var(--tm-surface)}#tm-workspace .tm-group-title{padding:13px 20px 6px;font-size:11px;font-weight:550;letter-spacing:.6px;color:var(--tm-muted);text-transform:uppercase;display:flex;align-items:center;gap:7px}#tm-workspace .tm-group-title.overdue{color:var(--tm-red)}#tm-workspace .tm-task-row{display:flex;align-items:flex-start;gap:10px;padding:14px 20px;border-bottom:1px solid var(--tm-line);transition:background .15s}#tm-workspace .tm-task-row:hover{background:var(--tm-side)}#tm-workspace .tm-task-row:last-child{border-bottom:0}#tm-workspace .tm-check{border:1.4px solid var(--tm-line);background:var(--tm-surface);border-radius:50%;width:17px;height:17px;display:inline-flex;align-items:center;justify-content:center;flex-shrink:0;margin-top:3px;padding:0!important;color:var(--tm-green)}#tm-workspace .tm-check:hover{border-color:var(--tm-green)}#tm-workspace .tm-check.checked{background:var(--tm-green-fill);color:var(--tm-on-green);border-color:var(--tm-green-fill)}#tm-workspace .tm-check .tm-icon{width:12px;height:12px;stroke-width:2}#tm-workspace .tm-task-info{flex:1;min-width:0}#tm-workspace .tm-task-title{font-size:12px;font-weight:500;padding:0!important;text-align:left;line-height:1.5;display:block}#tm-workspace .tm-task-title:hover{color:var(--tm-green)}#tm-workspace .tm-task-meta{display:flex;align-items:center;gap:8px;font-size:11px;color:var(--tm-muted);margin-top:5px;flex-wrap:wrap}#tm-workspace .tm-task-meta .tm-icon{width:12px;height:12px}#tm-workspace .tm-meta-divider{color:var(--tm-line)}#tm-workspace .tm-task-end{display:flex;align-items:center;gap:10px;flex-shrink:0;margin-top:2px}#tm-workspace .tm-task-end .tm-avatar{width:24px;height:24px;font-size:11px}#tm-workspace .tm-badge{font-size:11px;display:inline-flex;align-items:center;gap:5px;border-radius:5px;padding:3px 7px;white-space:nowrap;line-height:1.45;color:var(--tm-muted);background:var(--tm-soft)}#tm-workspace .tm-badge.green{color:var(--tm-green);background:var(--tm-selected)}#tm-workspace .tm-badge.red{color:var(--tm-red);background:var(--tm-red-bg)}#tm-workspace .tm-badge.amber{color:var(--tm-amber);background:var(--tm-amber-bg)}#tm-workspace .tm-badge.purple{color:var(--tm-purple);background:var(--tm-purple-bg)}#tm-workspace .tm-badge .tm-icon{width:11px;height:11px}#tm-workspace .tm-panel-footer{padding:13px 20px;border-top:1px solid var(--tm-line)}#tm-workspace .tm-activity{padding:19px 18px}#tm-workspace .tm-activity h2{font-size:13px;margin-bottom:23px}#tm-workspace .tm-activity-item{position:relative;display:flex;gap:10px;padding-bottom:24px}#tm-workspace .tm-activity-item:not(:last-child):after{content:'';position:absolute;left:12px;top:30px;bottom:3px;width:1px;background:var(--tm-line)}#tm-workspace .tm-activity-icon{width:26px;height:26px;border-radius:50%;background:var(--tm-soft);color:var(--tm-green);display:flex;align-items:center;justify-content:center;flex-shrink:0}#tm-workspace .tm-activity-icon .tm-icon{width:13px;height:13px}#tm-workspace .tm-activity-text{font-size:11px;line-height:1.65}#tm-workspace .tm-activity-time{font-size:11px;color:var(--tm-muted);margin-top:3px}#tm-workspace .tm-activity-file{border:1px solid var(--tm-line);border-radius:5px;padding:6px 8px;margin-top:8px;display:flex;align-items:center;gap:5px;font-size:11px;max-width:100%;word-break:break-word}#tm-workspace .tm-quick-links{margin-top:19px;padding:18px}#tm-workspace .tm-quick-links h2{font-size:13px;margin-bottom:12px}#tm-workspace .tm-quick-link{display:flex;align-items:center;gap:10px;width:100%;padding:10px 0;font-size:11px;text-align:left}#tm-workspace .tm-quick-link .tm-icon{color:var(--tm-muted);width:16px;height:16px}#tm-workspace .tm-quick-link .tm-chevron{margin-left:auto;width:12px;height:12px}#tm-workspace .tm-footnote{display:flex;align-items:center;gap:6px;font-size:11px;color:var(--tm-muted);margin-top:20px}#tm-workspace .tm-table-wrap{overflow:auto}#tm-workspace .tm-table{width:100%;border-collapse:collapse;font-size:12px}#tm-workspace .tm-table th{text-align:left;color:var(--tm-muted);font-weight:400;font-size:11px;padding:12px 18px;background:var(--tm-side);white-space:nowrap;border-bottom:1px solid var(--tm-line)}#tm-workspace .tm-table td{padding:17px 18px;border-bottom:1px solid var(--tm-line);vertical-align:middle}#tm-workspace .tm-table tr:last-child td{border-bottom:0}#tm-workspace .tm-table tbody tr:hover{background:var(--tm-side)}#tm-workspace .tm-person-name{font-weight:500;font-size:12px;text-align:left;padding:0}#tm-workspace .tm-person-sub{font-size:11px;color:var(--tm-muted);margin-top:3px}#tm-workspace .tm-toolbar{display:flex;gap:9px;align-items:center;flex-wrap:wrap;padding:16px 18px;border-bottom:1px solid var(--tm-line)}#tm-workspace .tm-field{background:var(--tm-surface);border:1px solid var(--tm-line);border-radius:6px;padding:8px 10px;font-size:12px;width:100%;outline-offset:3px}#tm-workspace .tm-filter-input{display:flex;align-items:center;gap:7px;max-width:280px;flex:1;min-width:160px}#tm-workspace .tm-filter-input .tm-icon{color:var(--tm-muted);width:15px;height:15px}#tm-workspace .tm-filter-input input{width:100%;border:0;background:transparent;outline-offset:4px;font-size:12px}#tm-workspace .tm-empty{padding:45px 20px;color:var(--tm-muted);text-align:center;font-size:12px}#tm-workspace .tm-module-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}#tm-workspace .tm-module{padding:21px;display:flex;flex-direction:column;gap:15px}#tm-workspace .tm-module-icon{width:38px;height:38px;display:flex;align-items:center;justify-content:center;background:var(--tm-soft);color:var(--tm-green);border-radius:9px}#tm-workspace .tm-module p{font-size:11px;color:var(--tm-muted);min-height:34px;line-height:1.6}#tm-workspace .tm-module-bottom{border-top:1px solid var(--tm-line);padding-top:12px;display:flex;justify-content:space-between;align-items:center;font-size:11px;color:var(--tm-muted)}#tm-workspace .tm-section-space{margin-bottom:20px}#tm-workspace .tm-permissions{display:grid;grid-template-columns:210px minmax(0,1fr);min-height:440px}#tm-workspace .tm-role-list{padding:12px;border-right:1px solid var(--tm-line)}#tm-workspace .tm-role{display:block;width:100%;padding:12px 11px!important;text-align:left;border-radius:6px;margin-bottom:5px}#tm-workspace .tm-role.selected{background:var(--tm-selected);color:var(--tm-green)}#tm-workspace .tm-role-title{font-size:12px;font-weight:500}#tm-workspace .tm-role-sub{font-size:11px;color:var(--tm-muted);margin-top:3px}#tm-workspace .tm-permission-main{padding:23px;min-width:0}#tm-workspace .tm-permission-row{display:grid;grid-template-columns:minmax(120px,1fr) 70px 80px 65px;gap:8px;align-items:center;padding:15px 0;border-bottom:1px solid var(--tm-line);font-size:12px}#tm-workspace .tm-permission-row.header{font-size:11px;color:var(--tm-muted);padding-top:20px}#tm-workspace .tm-permission-row input{accent-color:var(--tm-green);width:14px;height:14px;justify-self:center}#tm-workspace .tm-setting-layout{display:grid;grid-template-columns:minmax(0,1fr) 250px;gap:20px}#tm-workspace .tm-setting-row{padding:18px 21px;border-bottom:1px solid var(--tm-line);display:flex;align-items:center;justify-content:space-between;gap:16px}#tm-workspace .tm-setting-row:last-child{border-bottom:0}#tm-workspace .tm-switch{position:relative;display:inline-flex;align-items:center;flex-shrink:0}#tm-workspace .tm-switch input{appearance:none;-webkit-appearance:none;width:32px;height:19px;border-radius:12px;background:var(--tm-line);position:relative;margin:0;transition:background .2s}#tm-workspace .tm-switch input:checked{background:var(--tm-green-fill)}#tm-workspace .tm-switch input:after{content:'';position:absolute;width:13px;height:13px;border-radius:50%;background:var(--tm-surface);top:3px;left:3px;transition:transform .2s}#tm-workspace .tm-switch input:checked:after{transform:translateX(13px);background:var(--tm-on-green)}#tm-workspace .tm-channel{padding:20px;border-bottom:1px solid var(--tm-line)}#tm-workspace .tm-channel:last-child{border:0}#tm-workspace .tm-file-icon{width:32px;height:38px;border:1px solid var(--tm-line);border-radius:5px;display:flex;align-items:center;justify-content:center;font-size:11px;font-weight:600;background:var(--tm-side);color:var(--tm-green);flex-shrink:0}#tm-workspace .tm-file-icon.pdf{color:var(--tm-red);background:var(--tm-red-bg);border-color:transparent}#tm-workspace .tm-file-icon.xls{background:var(--tm-selected);border-color:transparent}#tm-workspace .tm-overlay{position:absolute;inset:0;z-index:10;background:light-dark(#1c302d40,#0008);display:flex;align-items:flex-start;justify-content:flex-end;padding:20px;backdrop-filter:blur(2px)}#tm-workspace .tm-dialog{width:500px;max-width:100%;background:var(--tm-surface);border:1px solid var(--tm-line);border-radius:12px;box-shadow:var(--tm-shadow);padding:25px;position:relative;max-height:none}#tm-workspace .tm-dialog.wide{width:600px}#tm-workspace .tm-dialog-top{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:22px}#tm-workspace .tm-dialog h2{font-size:21px;line-height:1.4;letter-spacing:-.4px;padding-right:15px}#tm-workspace .tm-dialog-meta{display:grid;grid-template-columns:118px minmax(0,1fr);gap:13px;font-size:12px;margin:24px 0}#tm-workspace .tm-dialog-label{color:var(--tm-muted);display:flex;align-items:center;gap:7px;font-size:11px}#tm-workspace .tm-dialog-label .tm-icon{width:14px;height:14px}#tm-workspace .tm-dialog-rule{height:1px;background:var(--tm-line);margin:22px 0}#tm-workspace .tm-dialog-description{font-size:12px;line-height:1.8;color:var(--tm-muted);margin-top:10px}#tm-workspace .tm-form-group{margin-bottom:17px}#tm-workspace .tm-form-group label{display:block;font-size:11px;color:var(--tm-muted);margin-bottom:7px}#tm-workspace .tm-form-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px}#tm-workspace .tm-comment{display:flex;gap:10px;margin:15px 0;font-size:11px}#tm-workspace .tm-dialog-footer{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-top:24px;flex-wrap:wrap}#tm-workspace .tm-form-error{font-size:11px;color:var(--tm-red);margin:10px 0}#tm-workspace .tm-toast{position:absolute;z-index:20;bottom:23px;left:50%;transform:translateX(-50%);padding:11px 17px;background:var(--tm-ink);color:var(--tm-surface);font-size:12px;border-radius:7px;box-shadow:var(--tm-shadow);max-width:90%;display:flex;align-items:center;gap:8px}#tm-workspace .tm-avatar.large{width:55px;height:55px;font-size:18px}#tm-workspace .tm-detail-block{padding:16px;border:1px solid var(--tm-line);border-radius:7px;background:var(--tm-side);margin-top:15px}#tm-workspace .tm-faux-document{margin-top:20px;min-height:180px;background:var(--tm-side);border:1px solid var(--tm-line);padding:24px;border-radius:6px}#tm-workspace .tm-faux-document-line{height:6px;background:var(--tm-line);margin:12px 0;border-radius:2px}#tm-workspace .tm-faux-document-line:nth-child(3n){width:75%}#tm-workspace .tm-count-notice{font-size:11px;color:var(--tm-muted);padding:15px 18px;border-top:1px solid var(--tm-line)}
@media(max-width:1200px){#tm-workspace .tm-shell{grid-template-columns:190px minmax(0,1fr)}#tm-workspace .tm-main{padding:27px 25px}#tm-workspace .tm-main-grid{grid-template-columns:minmax(0,1fr) 215px;gap:17px}#tm-workspace .tm-task-row{padding:14px 16px}#tm-workspace .tm-task-end .tm-badge{display:none}#tm-workspace .tm-global-search{max-width:230px}}
@media(max-width:900px){#tm-workspace .tm-main-grid{grid-template-columns:minmax(0,1fr)}#tm-workspace .tm-right-column{display:grid;grid-template-columns:1fr 1fr;gap:17px}#tm-workspace .tm-right-column .tm-quick-links{margin-top:0}#tm-workspace .tm-activity-item{padding-bottom:17px}#tm-workspace .tm-task-end .tm-badge{display:inline-flex}#tm-workspace .tm-module-grid{grid-template-columns:repeat(2,minmax(0,1fr))}#tm-workspace .tm-setting-layout{grid-template-columns:minmax(0,1fr)}#tm-workspace .tm-topbar{padding:0 22px}#tm-workspace .tm-permissions{grid-template-columns:180px minmax(0,1fr)}}
@media(max-width:800px){#tm-workspace .tm-shell{grid-template-columns:64px minmax(0,1fr)}#tm-workspace .tm-sidebar{padding:25px 8px 15px}#tm-workspace .tm-brand{padding:0 7px;gap:0}#tm-workspace .tm-brand-name,#tm-workspace .tm-brand-note,#tm-workspace .tm-nav-text,#tm-workspace .tm-nav-count,#tm-workspace .tm-nav-label,#tm-workspace .tm-side-version,#tm-workspace .tm-sidebar-bottom span{display:none}#tm-workspace .tm-nav button{justify-content:center;padding:12px 5px}#tm-workspace .tm-sidebar-bottom{padding:9px 0}#tm-workspace .tm-sidebar-bottom button{justify-content:center;width:100%}#tm-workspace .tm-topbar{padding:0 16px}#tm-workspace .tm-top-actions{padding-right:0;gap:8px}#tm-workspace .tm-global-search{max-width:210px}#tm-workspace .tm-key{display:none}#tm-workspace .tm-main{padding:24px 19px}#tm-workspace h1{font-size:25px}#tm-workspace .tm-stat{min-width:110px;margin-right:18px;padding-right:18px}#tm-workspace .tm-permissions{grid-template-columns:1fr}#tm-workspace .tm-role-list{display:flex;overflow:auto;border-right:0;border-bottom:1px solid var(--tm-line)}#tm-workspace .tm-role{min-width:150px}#tm-workspace .tm-module{padding:17px}}
@media(max-width:560px){#tm-workspace .tm-shell{grid-template-columns:52px minmax(0,1fr)}#tm-workspace .tm-sidebar{padding-left:4px;padding-right:4px}#tm-workspace .tm-brand{padding:0 5px}#tm-workspace .tm-brand-mark{width:29px;height:29px;grid-template-columns:repeat(2,11px);grid-template-rows:repeat(2,11px)}#tm-workspace .tm-main{padding:20px 12px}#tm-workspace .tm-topbar{padding:0 10px;height:60px;gap:7px}#tm-workspace .tm-global-search{display:none}#tm-workspace .tm-clinic{min-width:0}#tm-workspace .tm-clinic select{max-width:140px;font-size:11px}#tm-workspace .tm-profile .tm-chevron{display:none}#tm-workspace .tm-page-heading{align-items:flex-start;gap:8px;flex-wrap:wrap;margin-bottom:22px}#tm-workspace h1{font-size:24px}#tm-workspace .tm-subtitle{font-size:11px;line-height:1.6}#tm-workspace .tm-stat{min-width:0;flex:1;padding-right:8px;margin-right:8px}#tm-workspace .tm-stat-value{font-size:22px}#tm-workspace .tm-stat-label{font-size:11px;gap:4px}#tm-workspace .tm-task-row{padding:13px 12px;gap:8px}#tm-workspace .tm-task-title{font-size:12px}#tm-workspace .tm-task-end .tm-badge{display:none}#tm-workspace .tm-task-end{gap:3px}#tm-workspace .tm-task-end .tm-avatar{width:21px;height:21px;font-size:11px}#tm-workspace .tm-tabs{padding:0 12px;gap:16px}#tm-workspace .tm-tabs button{font-size:11px}#tm-workspace .tm-task-tools{padding:11px 12px}#tm-workspace .tm-right-column{grid-template-columns:1fr}#tm-workspace .tm-right-column .tm-quick-links{display:none}#tm-workspace .tm-group-title{padding-left:12px}#tm-workspace .tm-module-grid{grid-template-columns:1fr}#tm-workspace .tm-permission-main{padding:16px 12px}#tm-workspace .tm-permission-row{grid-template-columns:minmax(70px,1fr) 46px 50px 45px;font-size:11px;gap:5px}#tm-workspace .tm-permission-row.header{font-size:11px}#tm-workspace .tm-overlay{padding:10px}#tm-workspace .tm-dialog{padding:20px 16px}#tm-workspace .tm-dialog h2{font-size:18px}#tm-workspace .tm-dialog-meta{grid-template-columns:90px 1fr;gap:11px}#tm-workspace .tm-form-grid{grid-template-columns:1fr;gap:0}#tm-workspace .tm-field{font-size:16px}#tm-workspace .tm-table th,#tm-workspace .tm-table td{padding-left:12px;padding-right:12px}#tm-workspace .tm-button{font-size:11px;min-height:36px}#tm-workspace .tm-panel-heading{padding:16px}#tm-workspace .tm-setting-row{padding:16px}#tm-workspace .tm-topbar .tm-icon-button{width:28px}}
@media(prefers-reduced-motion:reduce){#tm-workspace *{transition:none!important}}

#tm-workspace .tm-shell{min-height:inherit}
#tm-workspace .tm-role-title,#tm-workspace .tm-permission-row>span{overflow-wrap:anywhere;min-width:0}
@media(max-width:560px){#tm-workspace .tm-permission-row{grid-template-columns:minmax(0,1fr) 44px 48px 44px;gap:4px}#tm-workspace .tm-permission-row.header{font-size:11px}}
@media(pointer:coarse){#tm-workspace .tm-nav button,#tm-workspace .tm-icon-button{min-height:44px}#tm-workspace .tm-task-title{min-height:36px}#tm-workspace .tm-check{min-width:24px;min-height:24px}}

#tm-workspace{--tm-bg:#f8f6f4;--tm-surface:#ffffff;--tm-side:#ffffff;--tm-ink:#351c0c;--tm-muted:#756b64;--tm-line:#e9e3de;--tm-soft:#f4f0ed;--tm-green:#5e1616;--tm-green-fill:#5e1616;--tm-on-green:#ffffff;--tm-selected:#f4eaea;--tm-red:#5e1616;--tm-red-bg:#f4eaea;--tm-amber:#351c0c;--tm-amber-bg:#eee4dc;--tm-purple:#351c0c;--tm-purple-bg:#f4f0ed;--tm-blue:#351c0c;--tm-blue-bg:#eee8e2;--tm-shadow:0 16px 70px #351c0c24;font-family:'TM Mulish',Arial,sans-serif;color-scheme:light;border-radius:10px}
#tm-workspace .tm-shell{grid-template-columns:232px minmax(0,1fr)}
#tm-workspace h1,#tm-workspace h2{font-family:'TM Akrobat','Arial Narrow',sans-serif;font-weight:700;letter-spacing:0;line-height:1.2}
#tm-workspace h1{font-size:34px}#tm-workspace h2{font-size:22px}#tm-workspace h3{font-family:'TM Mulish',Arial,sans-serif;font-size:13px;font-weight:700}
#tm-workspace .tm-sidebar{padding-top:32px;gap:27px}
#tm-workspace .tm-brand{display:block;padding:14px 12px 23px;color:var(--tm-ink);background:#fff}
#tm-workspace .tm-real-logo{width:100%;height:auto;display:block;max-width:180px;margin:0 auto}
#tm-workspace .tm-brand-note{font-size:9px;letter-spacing:1.1px;margin-top:19px;text-align:center;color:#756b64}
#tm-workspace .tm-nav button[aria-current=page]{background:var(--tm-selected);color:#5e1616;box-shadow:inset 2px 0 #5e1616}
#tm-workspace .tm-nav button{font-size:12px;border-radius:5px;padding-top:11px;padding-bottom:11px}
#tm-workspace .tm-button{border-radius:5px;font-size:12px;font-weight:600}
#tm-workspace .tm-avatar{background:#eee4dc;color:#351c0c;font-family:'TM Mulish',Arial,sans-serif;font-weight:700}
#tm-workspace .tm-panel{border-radius:8px;box-shadow:0 2px 4px #351c0c03}
#tm-workspace .tm-topbar{padding-right:30px}
#tm-workspace .tm-top-actions{padding-right:5px}
#tm-workspace .tm-workspace-label{font-size:12px;font-weight:600;white-space:nowrap}
#tm-workspace .tm-mobile-logo{display:none}
#tm-workspace .tm-stat-value{font-family:'TM Akrobat',sans-serif;font-size:34px;font-weight:700;letter-spacing:0}
#tm-workspace .tm-stat-label{font-size:11px}
#tm-workspace .tm-stat{border-color:#d8cac0}
#tm-workspace .tm-tabs button.selected:after{height:2px}
#tm-workspace .tm-activity h2,#tm-workspace .tm-quick-links h2{font-size:20px}
#tm-workspace .tm-priority-label{font-size:10px;font-weight:600;color:#5e1616}
#tm-workspace .tm-task-count{font-size:11px;color:var(--tm-muted);padding:12px 20px 0}
#tm-workspace .tm-scope-tabs{gap:24px}
#tm-workspace .tm-advanced-filters{padding:20px;background:#faf8f6;border-bottom:1px solid var(--tm-line)}
#tm-workspace .tm-filter-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px}
#tm-workspace .tm-filter-grid>label{font-size:11px;color:var(--tm-muted);min-width:0}
#tm-workspace .tm-filter-grid .tm-field{margin-top:7px;font-size:11px;min-width:0;max-width:100%;height:36px}
#tm-workspace .tm-filter-lower{display:flex;align-items:flex-end;gap:22px;flex-wrap:wrap;margin-top:19px}
#tm-workspace .tm-clinic-filter,#tm-workspace .tm-rule-actions{border:0;padding:0;margin:0;display:flex;gap:16px;flex-wrap:wrap}
#tm-workspace .tm-clinic-filter legend,#tm-workspace .tm-rule-actions legend{font-size:11px;color:var(--tm-muted);margin-bottom:9px}
#tm-workspace .tm-clinic-filter label,#tm-workspace .tm-direct-filter,#tm-workspace .tm-rule-actions label{font-size:12px;display:flex;align-items:center;gap:7px}
#tm-workspace input[type=checkbox]{accent-color:#5e1616}
#tm-workspace .tm-direct-filter{align-self:center;margin-top:20px}
#tm-workspace .tm-filter-lower>.tm-text-button{margin-left:auto}
#tm-workspace .tm-rule-actions{margin:18px 0 22px;gap:12px 22px}
#tm-workspace .tm-rule-actions label{width:calc(50% - 12px)}
#tm-workspace .tm-extra-details{margin-top:20px}
#tm-workspace .tm-extra-details summary{font-size:12px;color:#5e1616;padding:7px 0}
#tm-workspace .tm-extra-details .tm-dialog-meta{margin-top:13px}
#tm-workspace .tm-attachment{display:flex;align-items:center;gap:11px;width:100%;padding:13px 0;text-align:left;border-bottom:1px solid var(--tm-line);font-size:12px}
#tm-workspace .tm-attachment>.tm-icon{margin-left:auto;color:var(--tm-muted);width:14px}
#tm-workspace .tm-access-heading{padding:21px;display:flex;align-items:center;justify-content:space-between;gap:15px;flex-wrap:wrap}
#tm-workspace .tm-user-select{display:block;border:0;background:transparent;font-size:14px;font-weight:600;max-width:230px;padding:3px 0;color:var(--tm-ink)}
#tm-workspace .tm-grants-table{min-width:750px;font-size:11px}
#tm-workspace .tm-grants-table td{padding:18px 14px}
#tm-workspace .tm-grants-table td:first-child{min-width:150px}
#tm-workspace .tm-grants-table td:nth-child(2){max-width:230px}
#tm-workspace .tm-grants-table td:nth-child(3){min-width:150px;max-width:180px}
#tm-workspace .tm-grant-actions{display:flex;flex-wrap:wrap;gap:3px 7px;color:#756b64;font-size:11px}
#tm-workspace .tm-grant-actions span:not(:last-child):after{content:' ·';color:#b2a499}
#tm-workspace .tm-grant-clinics{display:flex;gap:4px;flex-wrap:wrap}
#tm-workspace .tm-role-template-grid{padding:0 22px 22px;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:15px}
#tm-workspace .tm-role-template-grid .tm-detail-block{margin:0}
#tm-workspace .tm-channel-matrix{min-width:570px}
#tm-workspace .tm-channel-matrix th:not(:first-child),#tm-workspace .tm-channel-matrix td:not(:first-child){text-align:center;width:90px}
#tm-workspace .tm-channel-matrix th .tm-icon{display:block;margin:0 auto 7px;width:16px}
#tm-workspace .tm-channel-check{width:16px;height:16px}
#tm-workspace .tm-channel-footer{padding:18px 21px;display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap;border-top:1px solid var(--tm-line)}
#tm-workspace .tm-dialog h2{font-size:27px}
#tm-workspace .tm-form-group label{font-size:12px}
@media(max-width:1200px){#tm-workspace .tm-shell{grid-template-columns:210px minmax(0,1fr)}#tm-workspace .tm-workspace-label{font-size:11px}#tm-workspace .tm-filter-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:900px){#tm-workspace .tm-global-search{max-width:200px}#tm-workspace .tm-role-template-grid{grid-template-columns:1fr}}
@media(max-width:800px){#tm-workspace .tm-shell{grid-template-columns:64px minmax(0,1fr)}#tm-workspace .tm-brand{display:none}#tm-workspace .tm-sidebar{padding-top:24px}#tm-workspace .tm-workspace-label{display:none}#tm-workspace .tm-mobile-logo{display:block;width:155px;height:auto;flex-shrink:0;margin:0 12px 0 0}#tm-workspace .tm-filter-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:560px){#tm-workspace .tm-shell{grid-template-columns:52px minmax(0,1fr)}#tm-workspace .tm-mobile-logo{width:140px;margin:0}#tm-workspace .tm-topbar{padding:0 12px}#tm-workspace h1{font-size:31px}#tm-workspace .tm-filter-grid{grid-template-columns:1fr 1fr}#tm-workspace .tm-filter-grid input[type=date]{font-size:12px;padding:7px 5px}#tm-workspace .tm-scope-tabs{gap:14px}#tm-workspace .tm-scope-tabs button{font-size:11px}#tm-workspace .tm-scope-tabs .tm-tab-num{display:none}#tm-workspace .tm-role-template-grid{padding:0 14px 14px}#tm-workspace .tm-rule-actions label{width:100%}#tm-workspace .tm-advanced-filters{padding:15px 12px}#tm-workspace .tm-filter-lower{gap:15px}#tm-workspace .tm-filter-lower>.tm-text-button{margin-left:0}#tm-workspace .tm-priority-label{display:none}#tm-workspace .tm-task-end .tm-badge{display:none}#tm-workspace .tm-workspace-label{display:none}}
@media(max-width:380px){#tm-workspace .tm-filter-grid{grid-template-columns:1fr}#tm-workspace .tm-mobile-logo{width:133px}#tm-workspace .tm-global-search{display:none}}


/* Application sizing and real-data forms. Original approved style retained above. */
html,body{margin:0;min-height:100%;background:#f8f6f4}button,input,select,textarea{font:inherit}button,a,input,select,textarea{touch-action:manipulation}button{cursor:pointer}button:disabled{opacity:.5;cursor:default}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:2px solid #5e1616;outline-offset:3px}#tm-workspace{border-radius:0;min-height:100vh}#tm-workspace .tm-shell{min-height:100vh;height:auto;max-height:none}#tm-workspace .tm-sidebar{position:sticky;top:0;height:100vh;box-sizing:border-box}#tm-workspace .tm-main{min-height:calc(100vh - 80px);box-sizing:border-box}.tm-login{max-width:380px;margin:10vh auto;padding:38px;background:white;border:1px solid #e9e3de;border-radius:8px}.tm-login img{display:block;width:240px;max-width:100%;margin:0 auto 24px}.tm-login .tm-brand-note{text-align:center;color:#756b64;font-size:10px;letter-spacing:1px}.tm-login h1{margin:30px 0 10px}.tm-login label{display:block;margin:18px 0;font-size:13px}.tm-login .tm-field{width:100%;margin-top:8px;box-sizing:border-box}.tm-login button{width:100%;justify-content:center}#login-error,#form-error,#detail-error{color:#5e1616;font-size:13px}.tm-muted{color:#756b64}#tm-workspace .tm-page-heading{display:flex;align-items:center;gap:12px;justify-content:space-between;margin-bottom:28px;flex-wrap:wrap}#tm-workspace .tm-page-heading h1{margin:0 0 8px}#tm-workspace .tm-page-subtitle{color:#756b64;font-size:13px;margin:0}#tm-workspace .tm-task-row{background:white;border:0;border-bottom:1px solid #e9e3de;padding:18px 22px;display:flex;width:100%;gap:14px;align-items:center;text-align:left;color:#351c0c}#tm-workspace .tm-task-row:hover{background:#faf8f6}#tm-workspace .tm-task-main{display:flex;flex-direction:column;gap:8px;flex:1;min-width:0}#tm-workspace .tm-task-title{font-size:13px;font-weight:600;overflow-wrap:anywhere}#tm-workspace .tm-task-meta{font-size:11px;color:#756b64}#tm-workspace .tm-task-end{display:flex;gap:14px;align-items:center}#tm-workspace .tm-task-status-dot{width:14px;height:14px;border:1px solid #cdcccc;border-radius:50%;flex-shrink:0}#tm-workspace .tm-task-status-dot.done{background:#5e1616;border-color:#5e1616}#tm-workspace .tm-task-due{font-size:11px;color:#756b64;white-space:nowrap}#tm-workspace .tm-task-due.overdue{color:#5e1616}#tm-workspace .tm-event{display:flex;flex-direction:column;gap:6px;padding:14px 0;background:none;border:0;border-bottom:1px solid #e9e3de;text-align:left;width:100%;color:#351c0c;font-size:12px}#tm-workspace small{display:block;font-size:11px;color:#756b64;margin-top:6px}#tm-workspace .tm-empty{padding:45px 25px;text-align:center;color:#756b64;font-size:13px}#tm-workspace .tm-pagination{display:flex;align-items:center;justify-content:space-between;font-size:12px}#tm-workspace .tm-task-tools{display:flex;justify-content:space-between;align-items:center;padding:18px 22px;font-size:12px}#tm-workspace .tm-data-table{border-collapse:collapse;width:100%;font-size:12px}#tm-workspace .tm-data-table th{background:#faf8f6;color:#756b64;font-weight:600;text-align:left;padding:16px 20px}#tm-workspace .tm-data-table td{padding:18px 20px;border-bottom:1px solid #e9e3de}#tm-workspace .tm-table-wrap{overflow-x:auto}#tm-workspace .tm-user-list,#tm-workspace .tm-settings{padding:24px;margin-top:24px}#tm-workspace .tm-user-row{display:flex;align-items:center;gap:20px;padding:15px 0;border-bottom:1px solid #e9e3de;font-size:12px}#tm-workspace .tm-user-row>div{flex:1}#tm-workspace .tm-module-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}#tm-workspace .tm-audit-row{display:flex;justify-content:space-between;gap:15px;font-size:12px}.tm-loading{text-align:center;padding:100px 20px;color:#756b64}#editor{border:1px solid #d8cac0;border-radius:10px;width:min(680px,90vw);max-height:88vh;overflow-y:auto;padding:30px;color:#351c0c;font-family:'TM Mulish',Arial,sans-serif;box-shadow:0 20px 100px #351c0c33}#editor::backdrop{background:#351c0c55}#editor h2{font-family:'TM Akrobat',sans-serif;font-size:30px;margin:12px 0 22px}#editor h3{font-size:14px;margin-top:26px}.tm-editor-heading,.tm-editor-footer,.tm-detail-actions{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}.tm-editor-footer{justify-content:flex-end;margin-top:30px}.tm-form-group,#editor form>label{display:block;margin:15px 0;font-size:12px}.tm-field{border:1px solid #d8cac0;border-radius:5px;background:white;padding:10px 12px;color:#351c0c;box-sizing:border-box;max-width:100%}#editor .tm-field{display:block;width:100%;margin-top:8px}.tm-textarea{min-height:100px;height:auto;resize:vertical}.tm-form-grid{display:grid;grid-template-columns:1fr 1fr;gap:0 18px}.tm-detail-description{white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.7;font-size:13px}.tm-dialog-meta{background:#f8f6f4;padding:14px 18px;font-size:12px;border-radius:6px}.tm-detail-actions{justify-content:flex-start;margin:22px 0}.tm-comment{padding:14px 0;border-bottom:1px solid #e9e3de;font-size:12px}.tm-comment p{white-space:pre-wrap}.tm-check-row{display:flex;gap:10px;align-items:center;font-size:12px;margin:12px 0}.tm-upload{display:block;font-size:12px;color:#5e1616;margin:16px 0}.tm-upload input{display:block;margin-top:10px}.tm-attachment{display:flex;align-items:center;gap:10px;font-size:12px;color:#5e1616;padding:12px 0;text-decoration:none}.tm-attachment svg{width:18px;height:18px}.tm-icon-button{border:0;background:none;color:#756b64;padding:7px}.tm-icon{width:18px;height:18px;flex-shrink:0}.tm-button{display:inline-flex;align-items:center;justify-content:center;gap:8px;border:1px solid #d8cac0;border-radius:5px;padding:10px 14px;background:white;color:#351c0c;font-size:12px;font-weight:600}.tm-button-primary{background:#5e1616!important;border-color:#5e1616!important;color:white!important}.tm-text-button{background:none;border:0;color:#5e1616;font-size:12px;padding:5px}.tm-clinic-filter,.tm-rule-actions{border:0;display:flex;gap:14px;flex-wrap:wrap;padding:0;margin:20px 0;font-size:12px}.tm-clinic-filter legend,.tm-rule-actions legend{margin-bottom:10px;color:#756b64}.tm-clinic-filter label,.tm-rule-actions label{display:flex;align-items:center;gap:7px}input[type=checkbox]{accent-color:#5e1616}.tm-toast{position:fixed;bottom:24px;left:50%;transform:translateX(-50%);padding:14px 22px;border-radius:6px;background:#351c0c;color:white;font:13px 'TM Mulish',Arial,sans-serif;z-index:1000;box-shadow:0 8px 30px #351c0c33}.tm-toast.error{background:#5e1616}.tm-profile-name{font-size:12px}@media(max-width:800px){.tm-profile-name{display:none}#tm-workspace .tm-task-end{flex-direction:column;gap:6px}#tm-workspace .tm-module-grid{grid-template-columns:1fr}}@media(max-width:560px){.tm-form-grid{grid-template-columns:1fr}#editor{padding:20px}#tm-workspace .tm-task-row{padding:15px 12px}#tm-workspace .tm-main{padding:20px 12px}.tm-login{margin:5vh 14px;padding:26px}#tm-workspace .tm-task-end .tm-badge{display:none}}
