/* Administrative workspace extensions of the TDesk design system. */
.ws-person { display: inline-flex; align-items: center; gap: 12px; color: var(--td-ink); }
.ws-person strong { display: block; font-size: 13px; font-weight: 600; }
.ws-person small, .ws-activity-table td > small { display: block; margin-top: 4px; font-size: 11px; color: var(--td-muted); }
a.ws-person:hover strong { color: var(--td-blue); }
.ws-customer-brief { display: flex; gap: 24px; align-items: center; justify-content: space-between; margin-bottom: 28px; padding: 26px 30px; background: var(--td-mist); border-radius: 20px; }
.ws-customer-brief > div { display: flex; align-items: center; gap: 18px; min-width:0; max-width:100%; }
.ws-customer-brief > div > div { min-width:0; flex:1; }
.ws-customer-brief > .text-link { min-width:0; max-width:100%; }
.ws-customer-brief :is(h2,p), .ws-team-summary :is(h2,p), .ws-automation-intro :is(h2,p) { overflow-wrap:anywhere; }
.ws-customer-brief h2, .ws-team-summary h2, .ws-automation-intro h2 { font-size: 20px; }
.ws-customer-brief p, .ws-team-summary p, .ws-automation-intro p { margin-top: 7px; font-size: 13px; color: var(--td-muted); }
.ws-brief-icon { display: grid; flex: 0 0 auto; place-items: center; width: 56px; height: 60px; border-radius: 18px 18px 6px 18px; background: white; color: var(--td-blue); font-size: 23px; }
.ws-toolbar { padding: 22px 24px; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap; }
.ws-search { width: min(100%,390px); min-width:0; max-width:100%; }
.ws-search input { min-width: 0; width: 100%; background: transparent; border: 0; outline: none; font-size: 14px; }
.ws-filter .field { display: flex; align-items: center; gap: 12px; margin: 0; }
.ws-filter .field label { white-space: nowrap; margin: 0; font-size: 12px; color: var(--td-muted); }
.ws-filter .form-select { min-width: 150px; font-size: 13px; }
.ws-filter .field-error:empty { display:none; }
.ws-customer-table { min-width: 800px; }
/* Keep absolute screen-reader labels inside their horizontally scrolling table. */
.td-admin:is([data-page="customers"],[data-page="roles"],[data-page="activity-log"]) .table-wrap { position:relative; }
.ws-customer-table th:first-child, .ws-customer-table td:first-child, .ws-activity-table th:first-child, .ws-activity-table td:first-child { padding-left: 26px; }
.ws-table-footer { display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:16px; padding:20px 26px; font-size:12px; border-top:1px solid var(--td-line); }
.ws-table-footer .form-actions { margin:0; }
.ws-table-footer p { max-width: 50ch; }
.ws-dialog-close { position:absolute; top:16px; right:16px; }
.admin-dialog > h2 { margin: 0 45px 12px 0; font-size:26px; }
.admin-dialog > form, .admin-dialog > p + form { margin-top: 24px; }
.ws-profile-layout { display:grid; grid-template-columns:300px minmax(0,1fr); gap:24px; align-items:start; }
.ws-profile-card { overflow:hidden; }
.ws-profile-cover { height:116px; position:relative; background: var(--td-mist); background-image:radial-gradient(circle at 88% 18%, transparent 39px, #dfe7fc 40px, #dfe7fc 41px, transparent 42px); }
.ws-profile-monogram { position:absolute; left:26px; bottom:-28px; width:80px; height:86px; border:6px solid white; border-radius:28px 28px 10px 28px; display:grid; place-items:center; background:var(--td-mint); font-size:26px; font-weight:650; }
.ws-profile-content { padding:50px 26px 28px; }
.ws-profile-content h2 { font-size:21px; }
.ws-profile-content > p { margin-top:10px; font-size:13px; }
.ws-profile-content .row-between { align-items:flex-start; gap:8px; flex-wrap:wrap; }
.ws-profile-email { margin-top:12px; display:inline-block; font-size:12px; overflow-wrap:anywhere; }
.ws-detail-list { margin:28px 0 24px; padding:20px 0; border-block:1px solid var(--td-line); }
.ws-detail-list > div { display:flex; justify-content:space-between; gap:10px; font-size:12px; }
.ws-detail-list > div + div { margin-top:17px; }
.ws-detail-list dt { color:var(--td-muted); font-weight:400; }
.ws-detail-list dd { text-align:right; margin:0; font-weight:500; }
.ws-tags { display:flex; flex-wrap:wrap; gap:8px; }
.ws-tags span { background:var(--td-mist); border-radius:6px; padding:5px 9px; font-size:11px; }
.ws-profile-stats { display:grid; grid-template-columns:repeat(3,1fr); gap:24px; padding:24px 28px; border:1px solid var(--td-line); background:white; border-radius:20px; }
.ws-profile-stats > div + div { border-left:1px solid var(--td-line); padding-left:24px; }
.ws-profile-stats span { display:block; font-size:12px; color:var(--td-muted); }
.ws-profile-stats strong { display:block; margin-top:12px; font-size:30px; font-weight:650; line-height:1.2; }
.ws-profile-stats strong small { font-size:13px; color:var(--td-muted); font-weight:400; }
.ws-profile-stats>div { min-width:0; display:flex; flex-direction:column; justify-content:space-between; }
.ws-conversation-list { padding:0 26px 14px; }
.ws-conversation-list > a { display:flex; align-items:center; gap:14px; padding:20px 0; color:var(--td-ink); }
.ws-conversation-list > a + a { border-top:1px solid var(--td-line); }
.ws-conversation-list > a > div { flex:1; }
.ws-conversation-list strong { font-size:13px; font-weight:600; }
.ws-conversation-list small { display:block; font-size:11px; color:var(--td-muted); margin-top:7px; }
.ws-conversation-list > a:hover strong { color:var(--td-blue); }
.ws-conversation-symbol { display:grid; width:36px; height:40px; place-items:center; flex:0 0 auto; background:var(--td-mist); color:var(--td-blue); border-radius:10px; }
.ws-timeline { list-style:none; margin:0; padding:0; }
.ws-timeline li { display:flex; gap:14px; position:relative; padding-bottom:28px; }
.ws-timeline li:not(:last-child)::before { content:''; width:1px; background:var(--td-line); position:absolute; left:7px; top:17px; bottom:3px; }
.ws-timeline li:last-child { padding-bottom:0; }
.ws-timeline-dot { position:relative; width:15px; height:15px; flex:0 0 auto; margin-top:3px; border:4px solid var(--td-mist); border-radius:50%; background:var(--td-blue); }
.ws-timeline-dot--mint { background:#287556; border-color:var(--td-mint); }
.ws-timeline-dot--lavender { background:#7954af; border-color:var(--td-lavender); }
.ws-timeline strong { font-size:12px; font-weight:600; }
.ws-timeline p { font-size:12px; color:var(--td-muted); margin:7px 0; }
.ws-timeline time { font-size:10px; color:var(--td-muted); }
.ws-team-summary { display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:24px; padding:28px 30px; background:var(--td-mist); border-radius:20px; }
.ws-team-summary > div { display:flex; gap:24px; align-items:center; min-width:0; max-width:100%; }
.ws-team-summary > div > div { min-width:0; max-width:100%; }
.ws-avatar-stack { display:flex; padding-right:10px; }
.ws-avatar-stack .avatar { width:44px; height:48px; border:3px solid var(--td-mist); margin-right:-10px; }
.ws-team-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:24px; }
.ws-team-card { padding:26px; }
.ws-team-card > .row-between > .avatar { width:50px; height:54px; border-radius:17px 17px 7px 17px; font-size:16px; }
.ws-team-card h2 { margin-top:22px; font-size:19px; }
.ws-team-card > p { margin-top:6px; font-size:12px; color:var(--td-muted); }
.ws-team-group { display:inline-flex; align-items:center; gap:8px; font-size:11px; margin-top:18px; color:var(--td-muted); }
.ws-team-group i { font-size:12px; }
.ws-capacity { margin:22px 0; }
.ws-capacity .row-between { margin-bottom:12px; font-size:11px; }
.ws-capacity .row-between > span, .ws-capacity strong span { color:var(--td-muted); font-weight:400; }
.ws-team-card .text-link { font-size:12px; }
.ws-invites { margin-top:24px; }
.ws-invite-row { display:flex; justify-content:space-between; flex-wrap:wrap; gap:16px; padding:16px 0; }
.ws-invite-row + .ws-invite-row { border-top:1px solid var(--td-line); }
.ws-invite-row strong, .ws-invite-row small { display:block; }
.ws-invite-row strong { font-size:13px; }
.ws-invite-row small { font-size:11px; color:var(--td-muted); margin-top:5px; }
.ws-role-summary { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:18px; margin-bottom:28px; }
.ws-role-pill { display:flex; flex-wrap:wrap; align-items:center; gap:14px; padding:22px; background:white; border:1px solid var(--td-line); border-radius:16px; }
.ws-role-pill strong, .ws-role-pill small { display:block; }
.ws-role-pill strong { font-size:14px; }
.ws-role-pill small { color:var(--td-muted); font-size:11px; margin-top:5px; }
.ws-role-pill .status { margin-left:auto; }
.ws-role-lavender { background:var(--td-lavender)!important; color:var(--td-ink)!important; }
.ws-role-mint { background:var(--td-mint)!important; color:var(--td-ink)!important; }
.ws-permission-table { min-width:850px; }
.ws-permission-table thead th:nth-child(n+3), .ws-permission-table td { text-align:center; }
.ws-permission-table tbody th { font-size:12px; font-weight:500; }
.ws-permission-table td { padding-block:8px; }
.ws-permission-table .ws-permission-group { padding-top:25px; padding-left:26px; vertical-align:top; font-weight:600; color:var(--td-ink); }
.ws-permission-check { display:inline-flex; align-items:center; justify-content:center; min-width:44px; min-height:44px; cursor:pointer; }
.ws-permission-check input { width:18px; height:18px; accent-color:var(--td-blue); cursor:pointer; }
.ws-permission-check input:disabled { cursor:default; }
.ws-form-feedback:not(:empty) { margin:0 26px 24px; }
.ws-policy-callout { display:flex; align-items:center; gap:20px; margin-bottom:28px; }
.ws-policy-callout h2 { font-size:19px; }
.ws-policy-callout p { margin-top:8px; font-size:13px; }
.ws-policy-callout .stat-icon { background:white; flex-shrink:0; }
.ws-sla-card { padding:26px; }
.ws-sla-card h2 { font-size:19px; margin-top:24px; }
.ws-sla-card > p { color:var(--td-muted); font-size:12px; margin-top:8px; }
.ws-sla-card dl { margin:28px 0; }
.ws-sla-card dl > div { display:flex; justify-content:space-between; align-items:center; gap:16px; }
.ws-sla-card dl > div + div { margin-top:18px; }
.ws-sla-card dt { color:var(--td-muted); font-weight:400; font-size:12px; }
.ws-sla-card dd { margin:0; font-size:15px; font-weight:600; }
.ws-sla-icon--mint { background:var(--td-mint)!important; color:var(--td-ink)!important; }
.ws-sla-icon--lavender { background:var(--td-lavender)!important; color:var(--td-ink)!important; }
.ws-sla-footer { display:flex; justify-content:space-between; align-items:center; gap:12px; flex-wrap:wrap; border-top:1px solid var(--td-line); padding-top:20px; }
.ws-sla-footer > span { font-size:11px; color:var(--td-muted); }
.ws-sla-footer .td-button { padding:8px 12px; font-size:12px; }
.ws-sla-lower { display:grid; grid-template-columns:1fr 1fr; gap:24px; margin-top:28px; }
.ws-schedule { margin-bottom:20px; }
.ws-schedule > div { display:flex; justify-content:space-between; gap:14px; padding:14px 0; font-size:13px; border-bottom:1px solid var(--td-line); }
.ws-schedule strong { font-weight:500; }
.ws-schedule span { color:var(--td-muted); }
.ws-sla-lower .text-link { display:inline-block; margin-top:18px; font-size:12px; }
.ws-escalation { list-style:none; padding:0; margin:0 0 20px; }
.ws-escalation li { display:flex; gap:14px; align-items:start; }
.ws-escalation li + li { margin-top:18px; }
.ws-escalation li > span { display:grid; place-items:center; width:27px; height:27px; border-radius:8px; font-size:11px; background:var(--td-mist); color:var(--td-blue); flex:0 0 auto; }
.ws-escalation strong { font-size:12px; font-weight:600; }
.ws-escalation p { font-size:12px; margin-top:5px; color:var(--td-muted); }
.ws-automation-intro { display:flex; align-items:center; justify-content:space-between; gap:24px; padding:32px; background:var(--td-mist); border-radius:22px; }
.ws-automation-intro > div { min-width:0; max-width:100%; }
.ws-automation-intro p { max-width:60ch; }
.ws-rule-diagram { display:flex; align-items:center; padding-inline:20px; }
.ws-rule-diagram i { width:46px; height:50px; display:grid; place-items:center; border-radius:15px 15px 6px 15px; background:white; color:var(--td-blue); font-size:20px; }
.ws-rule-diagram i:last-child { background:var(--td-mint); color:#245b46; }
.ws-rule-diagram > span { width:24px; height:2px; background:#c8d3f4; }
.ws-demo-note { margin:20px 0!important; font-size:12px; color:var(--td-muted); display:flex; align-items:center; gap:10px; }
.ws-rule { padding:26px; }
.grid-2:has(>.ws-rule){align-items:stretch}
.ws-rule{display:flex;flex-direction:column;min-width:0}
.ws-rule-footer{margin-top:auto}
.ws-rule-title>div{min-width:0;overflow-wrap:anywhere}
.ws-rule-title { display:flex; gap:14px; align-items:center; }
.ws-rule-title h2 { font-size:16px; }
.ws-rule-category { display:block; color:var(--td-muted); font-size:11px; margin-top:6px; }
.ws-rule-flow { margin:26px 0; padding:18px; background:#f8faff; border-radius:12px; }
.ws-rule-flow > div { display:flex; gap:16px; align-items:start; font-size:12px; }
.ws-rule-flow > div + div { margin-top:16px; }
.ws-rule-flow > div > span { width:36px; flex-shrink:0; color:var(--td-muted); }
.ws-rule-flow strong { font-weight:500; }
.ws-rule-footer { display:flex; justify-content:space-between; align-items:center; gap:12px; }
.ws-rule-state { font-size:11px; color:var(--td-muted); }
.ws-rule-footer .td-button { font-size:12px; }
.ws-switch { display:inline-flex; position:relative; align-items:center; flex:0 0 auto; width:48px; height:44px; cursor:pointer; }
.ws-switch input { position:absolute; opacity:0; width:100%; height:100%; cursor:pointer; }
.ws-switch > span { width:44px; height:25px; border-radius:20px; background:#c2cbda; transition:background 180ms; pointer-events:none; }
.ws-switch > span::after { content:''; position:absolute; top:12px; left:4px; width:19px; height:19px; border-radius:50%; background:white; transition:transform 180ms; }
.ws-switch input:checked + span { background:var(--td-blue); }
.ws-switch input:checked + span::after { transform:translateX(17px); }
.ws-switch input:focus-visible + span { outline:3px solid var(--td-blue); outline-offset:4px; }
.ws-settings-layout { display:grid; grid-template-columns:210px minmax(0,740px); gap:32px; align-items:start; }
.ws-settings-nav { display:flex; flex-direction:column; gap:8px; }
.ws-settings-nav a { display:flex; align-items:center; gap:12px; min-height:48px; padding:12px 16px; border-radius:12px; font-size:13px; font-weight:500; color:var(--td-muted); }
.ws-settings-nav a i { width:17px; text-align:center; }
.ws-settings-nav a:hover { background:white; color:var(--td-blue); }
.ws-settings-nav a.is-active { background:#e8eeff; color:var(--td-blue); font-weight:600; }
.ws-profile-form-avatar { display:flex; align-items:center; gap:18px; margin-bottom:28px; }
.ws-profile-form-avatar > .avatar { width:64px; height:68px; border-radius:22px 22px 8px 22px; font-size:21px; }
.ws-profile-form-avatar strong, .ws-profile-form-avatar small { display:block; }
.ws-profile-form-avatar strong { font-size:15px; }
.ws-profile-form-avatar small { font-size:12px; color:var(--td-muted); margin-top:7px; }
.ws-preference-row { display:flex; align-items:center; justify-content:space-between; gap:20px; padding:23px 0; border-bottom:1px solid var(--td-line); }
.ws-preference-row:first-child { padding-top:0; }
.ws-preference-row h3 { font-size:14px; }
.ws-preference-row p { font-size:12px; color:var(--td-muted); margin-top:7px; }
.ws-settings-panel .ws-preference-row + p { margin-top:22px; }
.ws-settings-panel { scroll-margin-top:24px; }
.no-js [data-settings-panel][hidden] { display:block!important; }
.no-js .ws-settings-panel + .ws-settings-panel { margin-top:24px; }
.ws-activity-table { min-width:760px; }
.ws-activity-table td > strong { font-weight:500; }
.ws-log-note { display:flex; align-items:start; gap:14px; margin-top:24px; font-size:12px; }
.ws-log-note > i { margin-top:4px; }
body.ws-compact .data-table td { padding-top:10px; padding-bottom:10px; }
body.ws-reduce-motion *, body.ws-reduce-motion *::before, body.ws-reduce-motion *::after { animation:none!important; transition:none!important; scroll-behavior:auto!important; }
@media (max-width:1200px) {
  .ws-team-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .ws-profile-layout { grid-template-columns:260px minmax(0,1fr); }
  .ws-profile-layout .grid-2 { grid-template-columns:1fr; }
  .ws-role-summary { grid-template-columns:1fr; gap:12px; }
  .ws-role-pill { padding:16px 20px; }
  .ws-settings-layout { grid-template-columns:180px minmax(0,1fr); gap:24px; }
  .ws-sla-card { padding:22px; }
  .ws-rule-title h2 { font-size:15px; }
  .ws-rule-diagram { padding:0; }
}
@media (max-width:800px) {
  .ws-customer-brief { flex-direction:column; align-items:start; padding:24px; }
  .ws-customer-brief > div { width:100%; }
  .ws-profile-layout { grid-template-columns:1fr; }
  .ws-profile-content { padding:48px 24px 24px; }
  .ws-detail-list { display:grid; grid-template-columns:1fr 1fr; gap:16px 24px; }
  .ws-detail-list > div + div { margin:0; }
  .ws-profile-stats { gap:16px; padding:24px; }
  .ws-profile-stats > div + div { padding-left:16px; }
  .ws-sla-lower { grid-template-columns:1fr; }
  .ws-settings-layout { grid-template-columns:1fr; gap:20px; }
  .ws-settings-nav { flex-direction:row; flex-wrap:wrap; gap:6px; }
  .ws-settings-nav a { font-size:12px; padding:10px 12px; }
  .ws-automation-intro { padding:26px; }
  .ws-rule-diagram { display:none; }
  .ws-policy-callout { align-items:flex-start; }
  .ws-rule { padding:22px; }
}
@media (max-width:540px) {
  .ws-toolbar { padding:18px; gap:12px; }
  .ws-search { width:100%; }
  .ws-filter { width:100%; }
  .ws-filter .field { justify-content:space-between; }
  .ws-filter .form-select { width:65%; }
  .ws-table-footer { padding:18px; }
  .ws-team-grid { grid-template-columns:1fr; gap:16px; }
  .ws-team-summary { padding:24px; }
  .ws-team-summary > div { align-items:flex-start; flex-direction:column; gap:18px; }
  .ws-team-summary > div { width:100%; }
  .ws-team-summary h2 { font-size:19px; }
  .ws-customer-brief > div { align-items:flex-start; }
  .ws-customer-brief h2 { font-size:18px; }
  .ws-brief-icon { width:44px; height:48px; font-size:19px; }
  .ws-detail-list { grid-template-columns:1fr; }
  .ws-profile-stats { padding:20px 16px; gap:10px; }
  .ws-profile-stats > div + div { padding-left:10px; }
  .ws-profile-stats span { font-size:10px; }
  .ws-profile-stats strong { font-size:25px; }
  .ws-profile-stats strong small { display:block; font-size:10px; margin-top:3px; }
  .ws-conversation-list { padding-inline:20px; }
  .ws-conversation-list > a { flex-wrap:wrap; }
  .ws-conversation-list > a > div { flex:1 0 calc(100% - 55px); }
  .ws-conversation-list > a > .status { margin-left:50px; }
  .ws-policy-callout { gap:14px; }
  .ws-policy-callout h2 { font-size:17px; }
  .ws-policy-callout > .stat-icon { display:none; }
  .ws-rule-title { gap:10px; }
  .ws-rule-title .stat-icon { width:38px; height:42px; font-size:15px; }
  .ws-settings-nav a { flex:1 1 44%; }
  .ws-schedule > div { font-size:12px; }
}
