.workq{min-width:0}.workq-tabs{display:flex;align-items:center;gap:5px;flex-wrap:wrap;margin-bottom:17px}.button.workq-tab{display:flex;gap:8px;min-height:38px;padding:8px 13px;border-color:transparent;background:transparent;box-shadow:none;color:var(--app-muted);font-size:12px}.button.workq-tab.is-active{background:var(--app-accent-soft,#eff5e9);border-color:var(--app-border,#dbe6d2);color:var(--app-accent-strong,#397544)}.workq-tab-count{padding:1px 6px;min-width:22px;text-align:center;border-radius:6px;background:#e9eee5;color:#596a51;font-size:10px;font-variant-numeric:tabular-nums}.is-active>.workq-tab-count{background:#dcebcf;color:#397544}.workq-filters{display:grid;grid-template-columns:minmax(220px,1fr) minmax(160px,.55fr) minmax(150px,.45fr) auto;align-items:end;gap:12px;padding:14px 16px;border:1px solid var(--app-border);border-radius:15px;background:var(--app-surface,#fff)}.workq-filters .field{margin:0;min-width:0}.workq-filters .field>label{font-size:11px;margin-bottom:6px}.workq-filters .field input,.workq-filters .field select{font-size:12px;min-height:39px;padding:9px 11px;border-radius:9px}.workq-filters>.button{min-height:39px}.workq-status-line{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:40px;padding:7px 2px}.workq-sync,.workq-timezone{font-size:10px;line-height:1.6;color:var(--app-muted);margin:0}.workq-sync{display:flex;gap:7px;align-items:center}.workq-sync.is-loading:before{content:'';display:block;width:11px;height:11px;border:1.5px solid #dbe5d3;border-top-color:#7b9e66;border-radius:50%;animation:workq-spin .75s linear infinite;flex-shrink:0}.workq-errors:empty{display:none}.workq-errors:not(:empty){margin:0 0 15px}.workq-errors>.button{margin-top:8px}.workq-results{min-width:0}.workq-group{margin:0 0 21px}.workq-group-heading{display:flex;gap:8px;align-items:center;font-size:13px;font-weight:600;line-height:1.5;margin:0 0 9px;color:var(--app-text,#26382b)}.workq-group-count{font-size:10px;color:var(--app-muted);font-weight:450}.workq-group[data-workq-group=overdue]>.workq-group-heading{color:#a05f3c}.workq-group-list{border:1px solid var(--app-border,#dce5d5);border-radius:15px;background:var(--app-surface,#fff);overflow:hidden}.workq-row{display:grid;grid-template-columns:minmax(0,1fr) 108px minmax(165px,auto);align-items:center;gap:14px;position:relative;min-height:108px;padding:0 17px 0 0;border-bottom:1px solid #e9eee3;transition:background .15s ease;min-width:0}.workq-row:last-child{border-bottom:0}.workq-row:hover{background:#fbfcf8}.workq-row.is-overdue{box-shadow:inset 3px 0 #d7a179}.workq-row-link{display:flex;flex-direction:column;justify-content:center;align-items:flex-start;gap:7px;min-width:0;align-self:stretch;padding:15px 17px;color:var(--app-text,#26382b);text-decoration:none;border-radius:3px}.workq-row-link:hover{text-decoration:none;color:var(--app-text,#26382b)}.workq-row-link:focus-visible{outline:2px solid #dca360;outline-offset:-3px}.workq-labels{display:flex;gap:8px;align-items:center;flex-wrap:wrap}.workq-kind{font-size:9px;color:var(--app-accent-strong,#397544);font-weight:500;line-height:1.4}.workq-automatic{display:inline-flex;align-items:center;gap:4px;font-size:9px;color:#8e947f;line-height:1.4}.workq-automatic:before{content:'';width:4px;height:4px;border-radius:50%;background:#b4bf9e}.workq-title{font-size:13px;font-weight:550;line-height:1.45;overflow-wrap:anywhere}.workq-client{display:flex;align-items:baseline;gap:13px;flex-wrap:wrap;font-size:12px;line-height:1.5;min-width:0}.workq-client-name{overflow-wrap:anywhere;color:#53654c}.workq-phone{color:#606b5b;white-space:nowrap;font-size:12px;font-variant-numeric:tabular-nums}.workq-phone>strong{color:#111;font-weight:650}.workq-meta{display:flex;align-items:center;gap:9px;flex-wrap:wrap;color:var(--app-muted,#788571);font-size:9px;line-height:1.5}.workq-meta>span:not(:first-child):before{content:'·';display:inline-block;margin-right:9px;color:#b2bbaa}.workq-state{color:#60854e}.workq-due{display:flex;flex-direction:column;gap:5px;align-items:flex-start;font-variant-numeric:tabular-nums}.workq-due-day{font-size:10px;color:var(--app-muted);line-height:1.5}.workq-due-time{font-size:17px;line-height:1.3;font-weight:550;letter-spacing:.1px}.is-overdue .workq-due-time{color:#a36542}.workq-due.is-unscheduled>.workq-due-time{font-size:10px;font-weight:450;letter-spacing:0;color:#86917e;line-height:1.5}.workq-actions{display:flex;align-items:center;justify-content:flex-end;gap:6px;flex-wrap:wrap;max-width:260px}.workq-actions>.button{font-size:10px;min-height:32px;padding:6px 9px;box-shadow:none;white-space:nowrap}.button.workq-primary{background:var(--clinic-orange,#ed9b4d);border-color:var(--clinic-orange,#ed9b4d);color:#55391d;box-shadow:none;font-weight:550}.button.workq-primary:hover{background:#e99342;border-color:#e99342;color:#493017}.button.workq-done{color:#487442;background:#f0f6e9;border-color:#d7e5c9}.workq-row-errors:empty{display:none}.workq-row-errors:not(:empty){grid-column:1/-1;padding:0 16px 12px}.workq-row-errors>.error{font-size:11px;line-height:1.6}.workq-row.is-busy .workq-actions{opacity:.65}.workq-empty{padding:35px 25px;border:1px solid var(--app-border);border-radius:16px;background:var(--app-surface)}.workq-empty h2{font-size:20px;font-weight:550;line-height:1.4;margin:0 0 10px}.workq-empty p{font-size:12px;line-height:1.8;color:var(--app-muted);margin:0}.workq-rules{margin-top:22px;padding:15px 0;border-top:1px solid var(--app-border);color:var(--app-muted)}.workq-rules>summary{font-size:11px;line-height:1.7;cursor:pointer;color:#617855}.workq-rules-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px 25px;padding-top:17px}.workq-rules-list article>strong{font-size:11px;line-height:1.5;font-weight:550;color:#536b47}.workq-rules-list article>p,.workq-rules-note{font-size:11px;line-height:1.8;margin:5px 0 0}.workq-rules-note{grid-column:1/-1;border-top:1px solid var(--app-border);padding-top:10px}.workq-schedule{width:min(520px,calc(100vw - 28px));border:1px solid var(--app-border);border-radius:20px;padding:24px;max-height:90dvh;overflow:auto;background:var(--app-surface,#fff);color:var(--app-text)}.workq-schedule::backdrop{background:#35482c33;backdrop-filter:blur(5px)}.workq-schedule h2{font-size:22px;line-height:1.4;font-weight:550;margin:0 0 9px}.workq-schedule-caption{font-size:12px;color:var(--app-muted);line-height:1.7;margin:0 0 20px}.workq-schedule-fields{display:grid;grid-template-columns:1fr 1fr;gap:15px}.workq-schedule-fields .field{margin:0}.workq-schedule-errors:empty{display:none}.workq-schedule-errors:not(:empty){margin-top:15px}.workq-schedule .dialog-actions{margin-top:24px;display:flex;gap:8px;justify-content:flex-end;align-items:center}.workq-schedule .dialog-actions>.text-button{margin-right:auto}.workq [hidden]{display:none!important}@keyframes workq-spin{to{transform:rotate(360deg)}}
@media(max-width:1100px){.workq-row{grid-template-columns:minmax(0,1fr) 90px 160px;gap:9px}.workq-actions{max-width:160px}.workq-filters{grid-template-columns:minmax(180px,1fr) 155px 145px auto;gap:9px}.workq-row-link{padding:14px}}
@media(max-width:780px){.workq-filters{grid-template-columns:1fr 1fr}.workq-filters>.field:first-child{grid-column:1/-1}.workq-filters>.button{grid-column:1/-1;min-height:39px}.workq-row{grid-template-columns:minmax(0,1fr) 92px;gap:0 10px;padding-right:13px}.workq-row-link{padding:15px 14px}.workq-actions{grid-column:1/-1;max-width:none;justify-content:flex-start;padding:0 0 13px 14px}.workq-actions:empty{display:none}.workq-actions>.button{min-height:36px;font-size:11px}.workq-title{font-size:14px}.workq-client{gap:7px 11px}.workq-phone{font-size:13px}.workq-due-time{font-size:18px}.workq-status-line{align-items:flex-start}.workq-timezone{white-space:nowrap}.workq-rules-list{grid-template-columns:1fr}.workq-tab-count{font-size:11px}.button.workq-tab{font-size:12px;padding:8px 10px}}
@media(max-width:500px){.workq-tabs{gap:3px;margin-bottom:13px}.button.workq-tab{min-height:38px;padding:7px 9px;font-size:11px}.workq-filters{padding:13px;gap:10px;border-radius:13px}.workq-filters .field input,.workq-filters .field select{font-size:16px;min-height:44px}.workq-filters .field>label{font-size:11px}.workq-status-line{padding:10px 1px;gap:8px}.workq-sync{font-size:10px;max-width:77%}.workq-timezone{font-size:9px}.workq-group-list{border-radius:13px}.workq-row{grid-template-columns:minmax(0,1fr) 78px;padding-right:10px}.workq-row-link{padding:14px 12px}.workq-client{flex-direction:column;gap:2px}.workq-title{font-size:13px}.workq-due-time{font-size:17px}.workq-due-day{font-size:10px}.workq-meta{gap:5px;font-size:9px}.workq-meta>span:not(:first-child):before{margin-right:5px}.workq-actions{padding-left:12px}.workq-schedule{padding:19px}.workq-schedule-fields{grid-template-columns:1fr}.workq-schedule .dialog-actions{flex-wrap:wrap}.workq-schedule .dialog-actions>.text-button{flex-basis:100%;text-align:left;justify-content:flex-start}.workq-schedule-fields input{font-size:16px}}
.workq-schedule [hidden]{display:none!important}.workq-preparation{font-size:11px;line-height:1.8;color:var(--app-muted);margin:0 0 14px;max-width:720px}.workq-complete-note{flex-basis:100%;font-size:9px;line-height:1.5;color:var(--app-muted);text-align:right}
@media(max-width:780px){.workq-complete-note{text-align:left}}
@media(prefers-reduced-motion:reduce){.workq-row{transition:none}.workq-sync.is-loading:before{animation:none}}

/* Keep a task's deadline and actions together. The same tracks are used by
   every row, including tasks without a completion button. */
.workq{width:100%;max-width:1240px;container:work-queue / inline-size}
.workq-group-list{border-radius:9px}
.workq-row{
 grid-template-columns:minmax(0,1fr) 400px;
 grid-template-areas:"main due" "main actions";
 align-items:start;gap:8px 24px;
 min-height:112px;padding:15px 18px;
 border-bottom-color:var(--app-border,#e1e5eb)
}
.workq-row:hover{background:#fafbfc}
.workq-row-link{
 grid-area:main;align-self:stretch;justify-content:flex-start;
 padding:0;gap:6px;border-radius:4px
}
.workq-row-link:focus-visible{outline-color:var(--app-accent,#2d7a52);outline-offset:5px}
.workq-labels{gap:8px}
.workq-kind,.workq-automatic{font-size:10px}
.workq-title{font-size:14px;line-height:1.45}
.workq-client{font-size:12px;gap:5px 12px}
.workq-client-name{color:var(--app-text,#202a35)}
.workq-phone{font-size:13px;color:var(--app-muted,#657180)}
.workq-meta{font-size:10px;gap:8px}
.workq-event{display:flex;align-items:baseline;flex-wrap:wrap;gap:4px 10px;margin:1px 0;line-height:1.5}
.workq-event-label{font-size:10px;color:var(--app-muted,#657180)}
.workq-event-date{display:inline-flex;align-items:baseline;flex-wrap:wrap;gap:8px;font-size:12px;color:var(--app-text,#202a35);font-variant-numeric:tabular-nums}
.workq-event-time{padding:1px 6px;border-radius:4px;background:var(--app-bg,#f3f5f7);color:var(--app-text,#202a35);font-size:12px;font-weight:650;white-space:nowrap}
.workq-due{
 grid-area:due;display:flex;flex-direction:row;align-items:baseline;
 justify-content:flex-start;gap:8px;min-width:0;padding:0;
 min-height:19px
}
.workq-due-day{font-size:11px;color:var(--app-muted,#657180)}
.workq-due-time{font-size:14px;line-height:1.4;font-weight:600}
.workq-due.is-unscheduled>.workq-due-time{font-size:10px;line-height:1.5;color:var(--app-muted,#657180)}
.workq-actions{
 grid-area:actions;display:flex;align-items:center;justify-content:flex-start;
 gap:7px;flex-wrap:wrap;max-width:none;min-width:0;padding:0
}
.workq-actions>.button{min-height:33px;padding:7px 10px;font-size:11px;line-height:1.4;border-radius:6px}
.workq-complete-note{flex-basis:100%;max-width:380px;font-size:10px;line-height:1.55;text-align:left;color:var(--app-muted,#657180)}
.workq-row-errors:not(:empty){padding:0;grid-area:auto;grid-column:1/-1}
.workq-preparation{
 max-width:none;margin:0 0 14px;padding:8px 11px;
 border:1px solid var(--app-border,#e1e5eb);border-radius:6px;
 background:var(--app-surface,#fff);color:var(--app-muted,#657180);
 font-size:11px;line-height:1.6
}
.workq-filters{border-radius:9px}
.workq-rules{margin-top:17px;padding-top:12px}

@container work-queue (max-width:950px){
 .workq-row{grid-template-columns:minmax(0,1fr) 145px;grid-template-areas:"main due" "actions actions";gap:12px 18px;padding:15px 16px}
 .workq-due{flex-direction:column;gap:3px;align-items:flex-start}
 .workq-actions{border-top:1px solid #edf0f3;padding-top:11px}
 .workq-complete-note{flex-basis:auto;flex:1 1 220px;max-width:none;margin-left:5px}
 .workq-filters{grid-template-columns:minmax(0,1fr) minmax(130px,.65fr) minmax(130px,.6fr);gap:10px}
 .workq-filters>.button{grid-column:1/-1;justify-self:start}
}
@container work-queue (max-width:560px){
 .workq-row{grid-template-columns:minmax(0,1fr);grid-template-areas:"main" "due" "actions";gap:10px;padding:14px}
 .workq-due{flex-direction:row;align-items:baseline;gap:8px}
 .workq-actions{gap:7px}
 .workq-actions>.button{min-height:36px;white-space:normal}
 .workq-complete-note{flex-basis:100%;margin-left:0}
 .workq-client{flex-direction:row;gap:5px 10px}
 .workq-filters{grid-template-columns:1fr 1fr;padding:12px}
 .workq-filters>.field:first-child{grid-column:1/-1}
 .workq-filters>.button{justify-self:stretch}
 .workq-preparation{padding:8px 10px}
}
