/* Calendar's compact, semantic record-table treatment for Tasks. */
body.tasks-page #task-workspace{background:#fff}
body.tasks-page .task-records-table{min-width:0;background:#fff;border:0;border-radius:0}
body.tasks-page .task-records-scroll{width:100%;overflow-x:auto;overscroll-behavior-inline:contain;scrollbar-width:thin}
body.tasks-page .task-records-scroll:focus-visible{outline:2px solid #8db7f2;outline-offset:2px}
body.tasks-page .task-records-table table{width:100%;min-width:1200px;table-layout:fixed;border-collapse:collapse;background:#fff;text-align:left}
body.tasks-page .task-records-table .task-col-select{width:3%}
body.tasks-page .task-records-table .task-col-number{width:3%}
body.tasks-page .task-records-table .task-col-title{width:23%}
body.tasks-page .task-records-table .task-col-deadline{width:13%}
body.tasks-page .task-records-table .task-col-assignee{width:13%}
body.tasks-page .task-records-table .task-col-client{width:17%}
body.tasks-page .task-records-table .task-col-priority{width:9%}
body.tasks-page .task-records-table .task-col-progress{width:8%}
body.tasks-page .task-records-table .task-col-details{width:11%}
body.tasks-page .task-records-table :is(th,td){padding:8px;border-bottom:1px solid #e4e4e4;vertical-align:middle;text-align:left}
body.tasks-page .task-records-table th{background:#fafafa;color:#555;font-weight:600;border-top:1px solid #e4e4e4}
body.tasks-page .task-records-table th>button{width:100%;display:flex;align-items:center;gap:7px;justify-content:flex-start;min-height:36px;padding:0;border:0;background:transparent;color:inherit;font-weight:600;text-align:left;white-space:nowrap}
body.tasks-page .task-records-table th>button>span{color:#8a8a8a}
body.tasks-page .task-records-table th[aria-sort]:not([aria-sort=none])>button>span{color:#6841df}
body.tasks-page .task-records-table .task-records-filters th{padding-top:0;padding-bottom:8px;border-top:0}
body.tasks-page .task-records-table .task-records-filters :is(input,select){width:100%;min-width:0;max-width:100%;height:36px;min-height:36px;border:1px solid #dedee2;border-radius:6px;padding:6px 7px;background:#fff;color:#555;font-weight:500;box-shadow:none}
body.tasks-page .task-records-table input[type=checkbox]{width:16px;height:16px;accent-color:#276df5;vertical-align:middle;margin:0}
body.tasks-page .task-records-table td{height:50px;white-space:nowrap;color:#171719}
body.tasks-page .task-records-table tbody tr:nth-child(even){background:#fafafa}
body.tasks-page .task-records-table tbody tr:hover{background:#f5f8ff}
body.tasks-page .task-records-table td>strong{display:block;overflow:hidden;text-overflow:ellipsis;font-weight:500}
body.tasks-page .task-records-table .task-record-number{color:#7a7a7a}
body.tasks-page .task-records-table .task-record-owner{display:flex;align-items:center;gap:7px;min-width:0}
body.tasks-page .task-records-table .task-record-owner>span{display:grid;place-items:center;flex:0 0 28px;width:28px;height:28px;border-radius:50%;background:#eee8fb;color:#64509b;font-weight:600}
body.tasks-page .task-records-table .task-record-owner>b{min-width:0;overflow:hidden;text-overflow:ellipsis;font-weight:400}
body.tasks-page .task-records-table .task-record-client{display:block;overflow:hidden;text-overflow:ellipsis;color:#5d6069}
body.tasks-page .task-records-table .is-overdue{color:#bf3434}
body.tasks-page .task-records-table .task-record-priority{display:inline-flex;align-items:center;gap:5px;border:1px solid #e0e0e4;background:#fafafa;border-radius:16px;padding:2px 8px;color:#5d6069}
body.tasks-page .task-records-table .task-record-priority>i{width:5px;height:5px;border-radius:50%;background:currentColor;flex:none}
body.tasks-page .task-records-table .task-record-priority.high{color:#9b650d;background:#fff9ee;border-color:#f2d799}
body.tasks-page .task-records-table .task-record-priority.urgent{color:#bc3434;background:#fff4f4;border-color:#f3c2c2}
body.tasks-page .task-records-table .task-record-priority.low{color:#367355;background:#f2fbf5;border-color:#c8e7d4}
body.tasks-page .task-records-table .task-record-progress{display:flex;align-items:center;gap:6px;color:#6c6e76}
body.tasks-page .task-records-table .task-record-progress>i{display:block;width:34px;height:4px;background:#e7e9ee;border-radius:8px;overflow:hidden;flex:none}
body.tasks-page .task-records-table .task-record-progress>i>b{display:block;height:100%;background:#276df5;border-radius:8px}
body.tasks-page .task-records-table td>a{color:#6b3fe5;text-decoration:none;font-weight:500;white-space:nowrap}
body.tasks-page .task-records-table td>a:hover{text-decoration:underline}
body.tasks-page .task-records-table .task-records-empty{padding:26px 16px;height:auto;color:#73757e;text-align:center;white-space:normal}
body.tasks-page .task-records-table>footer{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:14px 24px;color:#555}
body.tasks-page .task-records-table>footer small{color:#7a7a7a}
body.tasks-page .task-records-table>footer>div,body.tasks-page .task-records-table>footer label,body.tasks-page .task-records-table>footer nav{display:flex;align-items:center;gap:12px}
body.tasks-page .task-records-table>footer label{color:#7a7a7a;white-space:nowrap}
body.tasks-page .task-records-table>footer select{height:36px;border:1px solid #e0e0e4;border-radius:6px;padding:4px 8px;background:#fff;color:#555}
body.tasks-page .task-records-table>footer nav button{display:grid;place-items:center;border:0;background:transparent;width:36px;height:36px;padding:0;color:#276df5;font-size:24px!important;line-height:1!important}
body.tasks-page .task-records-table>footer nav button:disabled{opacity:.35;cursor:default}
body.tasks-page .task-records-table .task-column-clear{color:#6b3fe5;padding:0;border:0;background:transparent;font-weight:500}
body.tasks-page .task-records-table :is(button,input,select,a):focus-visible{outline:2px solid #8db7f2;outline-offset:2px}
@media(max-width:760px){body.tasks-page .task-records-table>footer{padding:14px 0;align-items:flex-start;flex-wrap:wrap;gap:10px}body.tasks-page .task-records-table>footer>div{width:100%;justify-content:space-between}body.tasks-page .task-records-table>footer label{gap:8px}}
body.tasks-page .task-records-table [hidden]{display:none!important}
/* Anchor screen-reader-only column labels inside the scroll container. */
body.tasks-page .task-records-scroll{position:relative}
body.tasks-page .task-records-table .sr-only{top:0;left:0}
/* Standalone Calendar-style table: compact top-right filters, no tab/header panel. */
body.tasks-page #task-workspace{padding-top:0;padding-bottom:0;background:#fff}
body.tasks-page #task-workspace :is(.task-legacy-header,.applied-filters){display:none!important}
body.tasks-page .task-table-toolbar{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:22px 24px;background:#fff}
body.tasks-page .task-table-toolbar h2{display:flex;align-items:center;gap:10px;margin:0;white-space:nowrap}
body.tasks-page .task-table-toolbar h2>span{font-size:14px!important;line-height:1.45!important;color:#7542df;background:#f8f4ff;border:1px solid #e4d6ff;border-radius:14px;padding:1px 7px;font-weight:500;letter-spacing:0}
body.tasks-page .task-table-top-controls{display:flex;align-items:center;justify-content:flex-end;gap:8px;min-width:0}
body.tasks-page .task-table-top-controls>select{height:36px;min-height:36px;width:138px;border:1px solid #e0e0e4;border-radius:6px;padding:5px 8px;background:#fff;color:#555;font-weight:500}
body.tasks-page .task-table-top-controls>select[data-task-toolbar-filter=priority]{width:124px}
body.tasks-page .task-toolbar-search{display:flex;align-items:center;gap:7px;height:36px;min-width:0;width:165px;padding:0 9px;border:1px solid #e0e0e4;border-radius:6px;color:#85858c;background:#fff}
body.tasks-page .task-toolbar-search input{border:0;outline:0;min-width:0;width:100%;height:34px;background:transparent;color:#555;padding:0}
body.tasks-page .task-table-top-controls .add-task{height:36px;min-height:36px;padding:0 14px;white-space:nowrap;border-radius:20px;box-shadow:none}
body.tasks-page .task-records-table .task-col-title{width:21%}
body.tasks-page .task-records-table .task-col-assignee{width:12%}
body.tasks-page .task-records-table .task-col-client{width:16%}
body.tasks-page .task-records-table .task-col-status{width:12%}
body.tasks-page .task-records-table .task-record-status{display:inline-flex;align-items:center;gap:5px;border:1px solid #e0e0e4;background:#fafafa;border-radius:16px;padding:2px 8px;color:#64666d;white-space:nowrap}
body.tasks-page .task-records-table .task-record-status i{width:5px;height:5px;border-radius:50%;background:currentColor;flex:none}
body.tasks-page .task-records-table .task-record-status.in_progress{color:#5f4fa3;background:#f7f4ff;border-color:#ded7f0}
body.tasks-page .task-records-table .task-record-status.done{color:#187849;background:#f0fbf5;border-color:#bbe4cf}
body.tasks-page .task-records-table .task-record-status.todo{color:#9b650d;background:#fff9ee;border-color:#f2d799}
@media(max-width:1100px){body.tasks-page .task-table-toolbar{align-items:flex-start;flex-direction:column;gap:14px;padding-left:0;padding-right:0}body.tasks-page .task-table-top-controls{width:100%;justify-content:flex-start;flex-wrap:wrap}}
@media(max-width:760px){body.tasks-page .task-table-top-controls{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:8px}body.tasks-page .task-table-top-controls>select,body.tasks-page .task-table-top-controls>select[data-task-toolbar-filter=priority],body.tasks-page .task-toolbar-search{width:100%}body.tasks-page .task-table-top-controls .add-task{justify-self:end;grid-column:2}body.tasks-page .task-table-toolbar{padding-top:16px;padding-bottom:16px}}
body.tasks-page .task-table-top-controls .add-task{flex:none;min-width:102px;width:auto;overflow:visible}
