/* ComponentERP beta, T2794 B2 Tasks & communications (TK-1..TK-10, CR-21): styles for tasks.js. */
.tk-link{border:0;background:none;padding:0;min-height:0;font:inherit;font-size:inherit;color:var(--blue);cursor:pointer;text-decoration:underline;text-underline-offset:2px}
.tk-link:hover{text-decoration-thickness:2px}
.tk-link.danger-text{color:light-dark(#a92e30,#ffb0b0)}
.tk-label{display:inline-block;min-width:76px;margin-right:8px;color:var(--muted);font-size:11px;text-transform:uppercase;letter-spacing:.04em}
.tk-who{margin:0 0 10px;font-weight:600}
.tk-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
.tk-grid .check.field{margin-top:22px!important}
.tk-nav{display:flex;justify-content:space-between;gap:12px;margin:0 0 10px;padding:6px 8px;border:1px solid var(--line);border-radius:6px;background:var(--stripe);font-size:12px}
.tk-identity{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px 18px;padding:10px 12px;margin-bottom:10px;border:1px solid var(--line);border-radius:6px;background:var(--panel)}
.tk-identity>div{min-width:0;overflow-wrap:anywhere}
.tk-identity .warningtext{grid-column:1/-1;margin:0}
.tk-facts{margin:0 0 12px}
.tk-call{display:grid;grid-template-columns:minmax(150px,200px) minmax(0,1fr);gap:14px}
.tk-checks{display:flex;flex-direction:column;gap:6px}
.tk-checks .tk-duration{margin-top:4px}
.tk-notes{display:flex;flex-direction:column;gap:8px}
.tk-notes textarea,.tk-dialog>.field textarea,.tk-email textarea{min-height:76px}
.tk-email-body{white-space:pre-line;max-height:200px;overflow:auto;border:1px solid var(--line);border-radius:6px;padding:10px;margin:8px 0 10px;background:var(--panel)}
.tk-files,.tk-more{margin:10px 0 0;font-size:12px}
.tk-dialog .form-help{margin:10px 0 0}
#editform .dialogfoot:has([data-tk-act]){flex-wrap:wrap;justify-content:flex-end;row-gap:8px}
#editform .dialogfoot [data-tk-act],#editform .dialogfoot:has([data-tk-act]) button{white-space:nowrap;width:auto;flex:0 0 auto}
.task-type.good{color:var(--good)}
.task-type.bad{color:light-dark(#a92e30,#ffb0b0)}
.tk-picker{margin-bottom:10px}
.tk-picker-list{max-height:220px;overflow:auto;border:1px solid var(--line);border-radius:6px;padding:4px 8px;margin-top:6px}
.tk-picker-list .muted{margin:6px 0}
.tk-pick{display:flex!important;flex-wrap:wrap;align-items:baseline;gap:4px 8px;padding:6px 0;border-bottom:1px solid var(--line)}
.tk-pick:last-child{border-bottom:0}
.tk-pick small{color:var(--muted);flex-basis:100%;padding-left:24px}
.tk-company-card h2{display:flex;align-items:center;gap:8px}
.tk-company-card h2 button{margin-left:auto}
.tk-company-list{max-height:240px}
.tk-dash-tools{display:flex;align-items:center;gap:14px;flex-wrap:wrap}
.tk-search-form .grid{grid-template-columns:repeat(auto-fill,minmax(190px,1fr))}
.tk-radio-row{display:flex;flex-wrap:wrap;gap:10px 28px;margin:8px 0 4px}
.tk-radios{display:flex;flex-wrap:wrap;align-items:center;gap:6px 14px;border:0;padding:0;margin:0}
.tk-radios legend{float:left;margin-right:6px;font-size:12px;font-weight:600;color:var(--muted)}
.tk-results{margin-top:12px}
.tk-result-head{display:flex;justify-content:space-between;align-items:center;gap:12px;margin:0 0 6px;font-size:12px;color:var(--muted)}
.tk-pager{display:inline-flex;align-items:center;gap:6px}
.tk-results-table tbody tr{cursor:pointer}
.tk-results-table td{vertical-align:top}
.tk-overdue{color:light-dark(#a92e30,#ffb0b0);font-weight:600}
.tk-clip{display:inline-block;max-width:260px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;vertical-align:bottom}
@media (max-width:760px){
 #editform .dialogfoot:has([data-tk-act]){flex-wrap:wrap;justify-content:flex-end}
}
/* T2827: page content follows the width #content has (container "main", base.css), not the viewport; the @media copy keeps dialogs/menus outside #content on the viewport */
@container main (max-width:736px){
 .tk-grid,.tk-identity,.tk-call{grid-template-columns:1fr}
 .tk-nav{flex-direction:column}
 .tk-search-form .grid{grid-template-columns:1fr}
}
@media (max-width:760px){.tk-grid:where(:not(#content *)),.tk-identity:where(:not(#content *)),.tk-call:where(:not(#content *)){grid-template-columns:1fr}.tk-nav:where(:not(#content *)){flex-direction:column}.tk-search-form .grid:where(:not(#content *)){grid-template-columns:1fr}}
.tk-count{font-weight:400;color:var(--muted);font-size:12px}
