.team-filters{display:flex;gap:12px;flex-wrap:wrap}.team-filters #teamSearch{flex:2 1 300px}.team-filters #teamDepartment{flex:1 1 210px;max-width:320px}.employee-card-info h2{display:grid;gap:1px;overflow-wrap:normal!important;word-break:normal;hyphens:none}.employee-card-info h2 span{display:block;white-space:normal;overflow-wrap:break-word}.employee-card-head{grid-template-columns:90px minmax(100px,1fr)!important;position:relative;padding-top:25px;align-items:start}.employee-card-head .presence-label{position:absolute!important;top:0;left:0;right:0;grid-column:auto!important;grid-row:auto!important;width:100%;max-width:none!important;font-size:11px;text-align:right;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;overflow-wrap:normal!important;word-break:normal}.employee-card-info{grid-column:2}.task-documents{display:grid;gap:7px;margin:14px 0;padding:11px;background:#f5f8fc;border:1px solid #dfe7f2;border-radius:8px}.task-documents button{display:block;text-align:left;white-space:normal;overflow-wrap:break-word;color:#3569ab;background:#fff}.task-documents small{color:#6d798a}.header-user{border:0;background:transparent;color:inherit;font-weight:600;white-space:nowrap;cursor:pointer}.header-user:hover{text-decoration:underline}.qr-print-card strong,.qr-print-card small{word-break:normal;hyphens:none;overflow-wrap:break-word}.qr-print-card small span{display:block;margin-top:2px}.metric{transition:transform .16s ease,box-shadow .16s ease,border-color .16s ease!important}.metric:hover,.metric:focus-visible{transform:translateY(-3px)!important;box-shadow:0 7px 20px #325b9133!important;border-color:#82a7d6!important}.metric.metric-opening{animation:metricPress .18s ease-out forwards!important}.route-order-open{margin:10px 16px 14px}@media(max-width:650px){.team-filters #teamDepartment{max-width:none}.employee-card-head{grid-template-columns:75px minmax(100px,1fr)!important}}

.team-filters{display:grid;grid-template-columns:minmax(260px,2fr) repeat(5,minmax(145px,1fr));align-items:center;gap:10px}.team-filters #teamSearch,.team-filters #teamDepartment{max-width:none;min-width:0;width:100%}.team-filters select{min-width:0;width:100%}@media(max-width:1300px){.team-filters{grid-template-columns:repeat(3,minmax(0,1fr))}.team-filters #teamSearch{grid-column:span 2}}@media(max-width:650px){.team-filters{grid-template-columns:1fr 1fr}.team-filters #teamSearch{grid-column:1/-1}}

.team-filters{grid-template-columns:minmax(240px,2fr) repeat(3,minmax(160px,1fr));align-items:end}.team-filters>label{margin:0;min-width:0}.team-filters #teamSearch{grid-column:auto;align-self:end;max-width:none}.team-filters label>select{display:block;margin-top:5px}.employee-card-head{padding-top:46px}.employee-card-head .presence-label{left:auto;right:0;width:auto;max-width:100%;display:flex;flex-direction:column;align-items:flex-end;gap:2px;line-height:1.35;white-space:normal;overflow:visible}.presence-label time{font-size:10px;color:var(--muted);font-weight:400}@media(max-width:1100px){.team-filters{grid-template-columns:repeat(3,minmax(0,1fr))}.team-filters #teamSearch{grid-column:1/-1}}@media(max-width:650px){.team-filters{grid-template-columns:1fr 1fr}.team-filters>label:last-child{grid-column:1/-1}}

/* Equal card tracks reserve the phone slot even when no number is specified. */
:is(#teamCards,.employee-profile){grid-template-columns:repeat(auto-fill,minmax(min(100%,250px),1fr));gap:12px;align-items:stretch;grid-auto-rows:1fr}
:is(#teamCards,.employee-profile) .employee-card{padding:12px;height:100%;min-width:0;display:flex;flex-direction:column}
:is(#teamCards,.employee-profile) .employee-card-head{display:grid;grid-template-columns:64px minmax(0,1fr)!important;grid-template-rows:minmax(88px,auto);column-gap:12px;row-gap:6px;align-items:start;padding:0;min-height:0}
:is(#teamCards,.employee-profile) .employee-avatar{grid-column:1;grid-row:1;width:64px;height:88px;flex-basis:64px;margin:0;object-fit:contain}
:is(#teamCards,.employee-profile) .employee-card-info{grid-column:2;grid-row:1;padding:0;min-width:0}
:is(#teamCards,.employee-profile) .employee-full-name{margin:0 0 6px;font-size:16px;line-height:1.35;overflow:hidden;word-break:normal;overflow-wrap:normal}
:is(#teamCards,.employee-profile) .employee-full-name>span{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;word-break:normal;overflow-wrap:normal}
:is(#teamCards,.employee-profile) .employee-card-info>small{display:block;overflow-wrap:anywhere}
:is(#teamCards,.employee-profile) .employee-id{margin-top:8px}
:is(#teamCards,.employee-profile) .employee-card>p{margin:8px 0;line-height:1.4}
:is(#teamCards,.employee-profile) .employee-phones{height:26px;min-height:26px;max-height:26px;overflow:auto;display:flex;flex-direction:column;gap:4px;margin-top:auto;margin-bottom:6px}
:is(#teamCards,.employee-profile) .employee-phones a{flex:none;line-height:22px;white-space:nowrap;font-size:13px}
:is(#teamCards,.employee-profile) .employee-actions{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:6px;align-items:center;min-height:48px;margin-top:0;padding-top:8px;border-top:1px solid #dce3eb}
:is(#teamCards,.employee-profile) .employee-action-primary{min-width:0}
:is(#teamCards,.employee-profile) .employee-action-primary button{font-size:12px;white-space:normal}
:is(#teamCards,.employee-profile) .employee-actions small{line-height:normal}
:is(#teamCards,.employee-profile) .employee-actions .presence-label{display:flex;flex-direction:column;align-items:flex-end;gap:3px;margin:0;min-width:0;font-size:10px;line-height:1.3;text-align:right;white-space:nowrap}
:is(#teamCards,.employee-profile) .presence-label time{font-size:9px}
:is(#teamCards,.employee-profile) .employee-card-head.employee-full-width-name{grid-template-rows:88px auto}
:is(#teamCards,.employee-profile) .employee-full-width-name .employee-card-info{grid-column:1/-1;grid-row:2}
:is(#teamCards,.employee-profile){align-items:start;grid-auto-rows:auto}:is(#teamCards,.employee-profile) .employee-card{height:auto;min-height:0;display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);align-content:start;gap:4px 10px}:is(#teamCards,.employee-profile) .employee-card>*{grid-column:1/-1}:is(#teamCards,.employee-profile) .employee-phones{grid-column:1;height:auto;min-height:0;max-height:none;overflow:visible;display:flex;flex-direction:column;gap:2px;margin:4px 0 6px}:is(#teamCards,.employee-profile) .employee-email{grid-column:2;align-self:start;grid-row:auto;font-size:12px;overflow-wrap:anywhere;min-width:0;margin-top:4px}:is(#teamCards,.employee-profile) .employee-card-head{grid-template-rows:auto;grid-template-columns:48px minmax(0,1fr)!important;gap:8px}:is(#teamCards,.employee-profile) .employee-avatar{width:48px;height:60px;flex-basis:48px}:is(#teamCards,.employee-profile) .employee-full-name{font-size:14px;margin-bottom:3px}:is(#teamCards,.employee-profile) .employee-full-name>span{display:inline;white-space:normal}:is(#teamCards,.employee-profile) .employee-full-name>span+span:before{content:' '}:is(#teamCards,.employee-profile) .employee-card>p{margin:2px 0;font-size:11px}:is(#teamCards,.employee-profile) .employee-specializations{margin:4px 0;padding:6px 0}:is(#teamCards,.employee-profile) .employee-specializations h3{margin-bottom:4px;font-size:12px}:is(#teamCards,.employee-profile) .employee-actions{padding-top:6px;min-height:38px}:is(#teamCards,.employee-profile) .employee-actions button{padding:5px 10px;min-height:32px}:is(#teamCards,.employee-profile) .employee-full-width-name .employee-card-info{grid-column:2;grid-row:1}
:is(#teamCards,.employee-profile){align-items:stretch;grid-auto-rows:1fr}:is(#teamCards,.employee-profile) .employee-card{height:100%;grid-template-rows:96px 14px 34px 52px minmax(44px,auto) 40px;align-content:stretch}:is(#teamCards,.employee-profile) .employee-card-head,:is(#teamCards,.employee-profile) .employee-card-head.employee-full-width-name{grid-template-columns:72px minmax(0,1fr)!important;grid-template-rows:96px;min-height:96px}:is(#teamCards,.employee-profile) .employee-avatar{width:72px;height:96px;flex-basis:72px}:is(#teamCards,.employee-profile) .employee-card-head .employee-card-info{grid-column:2;grid-row:1}:is(#teamCards,.employee-profile) .employee-card-info{max-height:96px;overflow:hidden}:is(#teamCards,.employee-profile) .employee-full-name{display:block;line-height:1.35;max-height:58px;overflow:hidden}:is(#teamCards,.employee-profile) .employee-card>p{height:34px;overflow:hidden;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}:is(#teamCards,.employee-profile) .employee-specializations{grid-row:4;min-width:0;margin:0;padding:5px 0;overflow:visible}:is(#teamCards,.employee-profile) .employee-specialization-values{margin:0;font-size:12px}:is(#teamCards,.employee-profile) .employee-phones,:is(#teamCards,.employee-profile) .employee-email{grid-row:5}:is(#teamCards,.employee-profile) .employee-actions{grid-row:6;align-self:end}.employee-specializations-view{position:relative;min-width:0}.employee-specializations-view summary{cursor:pointer;font-size:12px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;list-style:none;padding-right:16px}.employee-specializations-view summary:after{content:'▾';position:absolute;right:0;top:0;color:var(--muted)}.employee-specializations-view[open]{z-index:25}.employee-specializations-view ul{position:absolute;left:0;top:100%;width:min(340px,78vw);max-height:240px;overflow:auto;margin:6px 0 0;padding:6px 12px;background:white;border:1px solid var(--line);border-radius:8px;box-shadow:0 8px 24px #17223526;list-style:none}.employee-specializations-view li{padding:7px 0;border-bottom:1px solid var(--line);font-size:12px;line-height:1.4}.employee-specializations-view li:last-child{border-bottom:0}
.employee-specializations-view ul{width:100%;min-width:0;overflow-wrap:anywhere}




.order-employee-profile{width:min(430px,calc(100vw - 24px));padding:16px;box-sizing:border-box;border:1px solid var(--line);border-radius:12px}.order-employee-profile .employee-profile{display:block}.order-employee-profile .employee-card{box-shadow:none;border:0;margin:0}.employee-profile-close{display:block;margin:12px 0 0 auto}.order-employee-profile .employee-full-name{white-space:normal}

.order-employee-profile .employee-action-primary{display:flex;align-items:center;gap:6px}
.order-employee-profile .employee-action-primary button{margin:0;min-height:32px;white-space:nowrap}


label.employee-online-filter {
 display: inline-flex !important;
 align-items: center;
 gap: 6px;
 width: auto;
 min-width: 0;
 min-height: 36px;
 margin: 0;
 white-space: nowrap;
}
label.employee-online-filter input[type=checkbox] {
 width: 16px;
 height: 16px;
 min-height: 0;
 margin: 0;
}
label.employee-online-filter input[type=checkbox] {
 appearance: none;
 flex: 0 0 16px;
 border: 1px solid var(--muted, #667085);
 border-radius: 50%;
 background: transparent;
 cursor: pointer;
}
label.employee-online-filter input[type=checkbox]:checked {
 border-color: #168451;
 background: radial-gradient(circle, #168451 0 4px, transparent 4.5px);
}
label.employee-online-filter input[type=checkbox]:focus-visible {
 outline: 2px solid var(--blue, #3569ab);
 outline-offset: 2px;
}

@media (min-width: 901px) {
 .team-filters {
  grid-template-columns: minmax(0, 2fr) repeat(3, minmax(0, 1fr)) auto;
  align-items: end;
 }
 .team-filters #teamSearch { grid-column: auto; }
}
