/* Presentation only: no task or customer records are removed when sections collapse. */
#tasks .hero{margin-bottom:20px;gap:16px}
#tasks .task-toolbar{margin-bottom:14px;gap:12px;flex-wrap:wrap}
#tasks .task-tabs{margin:0}
#tasks .task-list{padding:0 18px;overflow:hidden}
#tasks .task-focus-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:17px 0 10px}
#tasks .task-focus-heading h2{margin:0;font-size:14px}
#tasks .task-focus-heading>span{font-size:12px;color:#718180;white-space:nowrap}
#tasks .task-focus-row{display:grid;grid-template-columns:minmax(140px,1fr) minmax(115px,auto) auto;gap:14px;align-items:center;padding:13px 0;min-height:64px;border-bottom:1px solid #edf1ef;cursor:default}
#tasks .task-focus-title{min-width:0}
#tasks .task-name{display:block;background:none;padding:2px 0;color:#182526;text-align:left;font-size:14px;line-height:1.45;font-weight:800;overflow-wrap:anywhere;max-width:100%}
#tasks .task-name:hover{color:#4361ee;text-decoration:underline}
#tasks .task-focus-title small{display:block;color:#718180;font-size:11px;line-height:1.5;overflow-wrap:anywhere}
#tasks .task-focus-date{text-align:right;display:grid;gap:4px}
#tasks .task-focus-date time{font-size:12px;color:#51625e;white-space:nowrap}
#tasks .task-focus-state{font-size:11px;color:#718180}
#tasks .task-focus-state.overdue{color:#b44d3e;font-weight:700}
#tasks .task-focus-actions{display:flex;gap:6px;justify-content:flex-end;flex-wrap:wrap}
#tasks .task-focus-actions button{background:#f1f4ff;color:#4361ee;border:1px solid #dce3ff;border-radius:6px;padding:7px 10px;margin:0;font-size:12px;font-weight:700;white-space:nowrap;min-height:34px}
#tasks .task-focus-actions .task-complete{background:#fff;border-color:#dce5e2;color:#53635f}
#tasks .task-focus-row.done .task-name{color:#64736f;text-decoration:none;font-weight:600}
#tasks .task-focus-empty{padding:18px 0 22px;margin:0;font-size:13px;color:#718180}
#tasks .task-upcoming{border-top:1px solid #e5ece9;margin:4px -18px 0;padding:0 18px;background:#fafbff}
#tasks .task-upcoming-toggle{display:flex;width:100%;align-items:center;justify-content:space-between;gap:12px;background:none;color:#43586c;padding:16px 0;font-size:13px;font-weight:700;text-align:left}
#tasks .task-upcoming-toggle b{display:inline-block;margin-left:6px;padding:2px 8px;background:#eaf0ff;border-radius:20px;color:#4361ee;font-size:11px}
#tasks .task-upcoming-toggle small{font-size:11px;color:#718180;font-weight:400}
#tasks [hidden]{display:none!important}
#tasks .task-history-more{display:block;margin:14px auto;padding:9px 16px;background:#f1f4ff;border-radius:6px;font-weight:700;color:#4361ee}
#tasks .task-care-toggle{display:block;background:none;color:#637991;font-size:11px;margin:10px 0;padding:4px 0;text-align:left;text-decoration:underline}
#tasks button:focus-visible{outline:2px solid #4361ee;outline-offset:3px}
@media(max-width:1150px){#tasks .task-focus-row{grid-template-columns:minmax(130px,1fr) auto}#tasks .task-focus-actions{grid-column:1/-1;justify-content:flex-start}#tasks .task-focus-row{gap:8px 14px}}
@media(max-width:600px){#tasks .hero{align-items:flex-start;flex-direction:column;margin-bottom:16px}#tasks h1{font-size:24px}#tasks .hero .muted{font-size:12px}#tasks #open-task{padding:9px 12px;font-size:12px}#tasks .task-list{padding:0 12px}#tasks .task-toolbar{align-items:flex-start}#tasks .task-schedule-filter{width:100%}#tasks .task-focus-row{grid-template-columns:minmax(0,1fr);gap:7px;padding:12px 0}#tasks .task-focus-date{text-align:left;display:flex;align-items:center;gap:10px;flex-wrap:wrap}#tasks .task-focus-actions{grid-column:1;gap:8px}#tasks .task-focus-actions button{min-height:40px;padding:8px 12px}#tasks .task-upcoming{margin-left:-12px;margin-right:-12px;padding:0 12px}#tasks .task-upcoming-toggle{min-height:48px}#tasks .task-name{font-size:13px}#tasks .task-history-more{min-height:42px}}
