/* Workspace, CRM and scheduling. Extends the shared portal design system. */
:root {
  --crm-blue: #356ee5;
  --crm-ink: #172e46;
  --crm-muted: #8190a1;
  --crm-line: #e5ebf2;
}
body {
  background: #f2f5f9;
  color: var(--crm-ink);
}
.crm-sidebar {
  background: #fff;
  border-right: 1px solid var(--crm-line);
  padding: 24px 16px;
  display: flex;
  flex-direction: column;
}
.crm-sidebar .brand {
  padding: 0 12px 22px;
}
.workspace-label {
  display: flex;
  gap: 10px;
  align-items: center;
  margin: 0 4px 24px;
  padding: 12px 9px;
  border: 1px solid var(--crm-line);
  border-radius: 14px;
}
.workspace-square {
  display: grid;
  place-items: center;
  background: #e8f0ff;
  color: #3369ca;
  border-radius: 10px;
  width: 34px;
  height: 36px;
  font-weight: 750;
}
.workspace-label b {
  font-size: 12px;
}
.workspace-label small {
  display: block;
  font-size: 10px;
  color: #91a0af;
  margin-top: 4px;
}
.crm-sidebar .work-label {
  color: #99a5b3;
  letter-spacing: 0.09em;
  font-size: 9px;
  padding: 6px 13px;
  text-transform: uppercase;
}
.nav-section {
  margin-bottom: 14px;
}
.crm-sidebar .nav-link {
  border-radius: 10px;
  padding: 10px 13px;
  font-size: 12px;
  gap: 11px;
  color: #65758a;
}
.crm-sidebar .nav-link.active {
  background: #eaf1ff;
  color: #2f65d5;
  box-shadow: none;
}
.nav-blue-dot {
  width: 6px;
  height: 6px;
  border-radius: 100%;
  background: #3c74e0;
  margin-left: auto;
}
.nav-bottom {
  margin-top: auto;
}
.team-presence {
  border-top: 1px solid var(--crm-line);
  padding: 18px 12px 0;
  display: flex;
  gap: 9px;
  align-items: center;
}
.presence-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #44ad8a;
}
.team-presence b {
  font-size: 11px;
}
.team-presence small {
  font-size: 10px;
  color: #8a9aac;
  display: block;
  margin-top: 4px;
}
.crm-topbar {
  background: #fff;
  border-bottom: 1px solid var(--crm-line);
  box-shadow: none;
  gap: 20px;
}
.workspace-breadcrumb {
  font-size: 11px;
  color: #8a98a9;
}
.workspace-breadcrumb span {
  margin: 0 10px;
  color: #c1cad5;
}
.crm-header-search {
  display: flex;
  gap: 7px;
  align-items: center;
}
.crm-header-search input {
  border: 0;
  background: transparent;
  width: 140px;
  font-size: 11px;
}
.crm-header-search svg {
  width: 16px;
  color: #9babb9;
}
.staff-switcher {
  display: flex;
  align-items: center;
  gap: 10px;
  border-left: 1px solid var(--crm-line);
  padding-left: 18px;
}
.staff-switcher .avatar {
  width: 34px;
  height: 34px;
  font-size: 11px;
}
.staff-switcher small {
  display: block;
  font-size: 9px;
  color: #95a0ae;
}
.staff-switcher select {
  background: none;
  border: 0;
  padding: 4px 17px 0 0;
  font-size: 11px;
  font-weight: 650;
  width: 155px;
}
.page-head h1 {
  font-size: 29px;
  letter-spacing: -1px;
}
.page-head p {
  font-size: 12px;
}
.breadcrumb {
  font-size: 10px;
}
.header-date {
  font-size: 11px;
  display: flex;
  gap: 6px;
  align-items: center;
  color: #728197;
}
.header-date svg {
  width: 15px;
}
.overline {
  font-size: 9px;
  letter-spacing: 0.12em;
  font-weight: 650;
  color: #7a8fa8;
}
.ops-summary {
  display: grid;
  grid-template-columns: 1.3fr 1fr 0.5fr;
  min-height: 205px;
  background: #e8eff9;
  border: 1px solid #e0e8f2;
  border-radius: 20px;
  margin: 20px 0;
  overflow: hidden;
}
.ops-summary-copy {
  padding: 27px 28px;
}
.ops-summary-copy h2 {
  font-size: 25px;
  letter-spacing: -0.7px;
  line-height: 1.32;
  margin: 14px 0 20px;
}
.ops-summary-copy h2 span {
  font-weight: 450;
  color: #687e99;
  font-size: 20px;
}
.summary-links {
  display: flex;
  gap: 10px;
}
.btn.dark {
  background: #213c59;
  color: white;
  border-color: #213c59;
}
.summary-photo {
  position: relative;
  overflow: hidden;
  margin: 12px 0;
  border-radius: 16px;
}
.summary-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
}
.summary-photo:after {
  content: "";
  position: absolute;
  inset: 50% 0 0;
  background: linear-gradient(transparent, #203c5677);
}
.summary-photo span {
  position: absolute;
  bottom: 17px;
  left: 15px;
  right: 10px;
  color: white;
  font-size: 8px;
  letter-spacing: 0.13em;
  z-index: 1;
}
.today-work {
  display: flex;
  flex-direction: column;
  padding: 32px 22px;
  justify-content: center;
}
.today-work small {
  font-size: 8px;
  letter-spacing: 0.12em;
  color: #7790ac;
}
.today-work strong {
  font-size: 59px;
  line-height: 1.15;
  font-weight: 400;
  letter-spacing: -3px;
  color: #294b75;
  margin-top: 12px;
}
.today-work > span {
  font-size: 10px;
  color: #7990a8;
  margin-bottom: 14px;
}
.today-work .btn {
  justify-content: flex-start;
  padding: 0;
  background: transparent;
  border: 0;
  font-size: 10px;
}
.ops-kpis {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin: 20px 0;
}
.ops-kpis > a {
  display: flex;
  flex-direction: column;
  min-height: 145px;
  background: white;
  border: 1px solid var(--crm-line);
  border-radius: 17px;
  padding: 18px;
  color: inherit;
  overflow: hidden;
  position: relative;
}
.ops-kpis > a.warm {
  background: #fff9f1;
}
.ops-kpis > a.cool {
  background: #edf4fe;
}
.ops-kpis > a > span {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 10px;
  color: #74899f;
}
.ops-kpis svg {
  width: 15px;
}
.ops-kpis strong {
  font-size: 33px;
  letter-spacing: -1.3px;
  line-height: 1.2;
  margin: 15px 0 12px;
}
.ops-kpis strong small {
  font-size: 9px;
  font-weight: 450;
  color: #8b9bae;
  letter-spacing: 0;
  margin-left: 8px;
}
.micro-track {
  height: 3px;
  background: #eaf0f8;
  margin-top: auto;
  border-radius: 3px;
}
.micro-track i {
  display: block;
  background: #7199e9;
  height: 100%;
}
.mini-tags {
  font-size: 8px;
  color: #b69062;
}
.rating-lines {
  display: flex;
  gap: 5px;
  height: 20px;
  align-items: flex-end;
  position: absolute;
  right: 16px;
  bottom: 17px;
}
.rating-lines i {
  width: 6px;
  background: #8bace9;
  border-radius: 4px;
}
.tiny-channels {
  display: flex;
  gap: 5px;
  align-items: center;
  font-size: 8px;
  margin-top: auto;
  color: #8ba0b3;
}
.tiny-channels b {
  background: #edf2fb;
  color: #6788b4;
  padding: 4px 6px;
  border-radius: 5px;
}
.ops-main-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.85fr) minmax(255px, 1fr);
  gap: 18px;
  align-items: start;
}
.ops-main-grid .panel {
  border-radius: 18px;
  border: 1px solid var(--crm-line);
  padding: 22px;
  box-shadow: 0 5px 14px #233d6610;
}
.panel-head h2 {
  font-size: 15px;
  letter-spacing: -0.25px;
}
.ops-main-grid .panel-head {
  margin-bottom: 19px;
}
.chart-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.chart-heading h2 {
  font-size: 17px;
  margin-top: 7px;
}
.segmented {
  display: flex;
  gap: 3px;
  border-radius: 8px;
  background: #f1f4f9;
  padding: 3px;
  align-items: center;
}
.segmented .btn {
  border: 0;
  padding: 7px 10px;
  font-size: 10px;
  background: none;
  border-radius: 6px;
  color: #7a8c9f;
  min-height: 0;
}
.segmented .chosen {
  background: white;
  color: #3262b8;
  box-shadow: 0 2px 5px #29456612;
}
.ops-chart {
  width: 100%;
  height: auto;
  display: block;
  margin: 20px 0 2px;
}
.chart-foot {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-size: 9px;
  color: #91a0b1;
}
.chart-foot .dot {
  background: #4d7fe6;
}
.focus-list > a {
  display: flex;
  gap: 14px;
  align-items: center;
  padding: 17px 0;
  border-bottom: 1px solid #edf1f6;
  color: inherit;
}
.focus-list > a:last-child {
  border: 0;
  padding-bottom: 0;
}
.focus-order {
  font-size: 11px;
  color: #aab8c5;
}
.grow {
  flex: 1;
  min-width: 0;
}
.focus-meta {
  display: flex;
  gap: 10px;
  align-items: center;
  font-size: 9px;
  color: #95a4b4;
  margin-bottom: 6px;
}
.focus-list h3 {
  font-size: 12px;
  margin: 0;
}
.focus-list p {
  font-size: 10px;
  color: #98a6b5;
  margin: 6px 0 0;
}
.focus-list .avatar {
  width: 28px;
  height: 28px;
  font-size: 10px;
}
.focus-list svg {
  width: 13px;
  color: #a4b3c2;
}
.due-flag {
  font-size: 10px;
  color: #7890a7;
  white-space: nowrap;
}
.late,
.late-text {
  color: #bd6959;
}
.workload-list > a {
  display: flex;
  gap: 10px;
  align-items: center;
  color: inherit;
  margin: 17px 0;
}
.workload-list .avatar {
  width: 32px;
  height: 32px;
  font-size: 11px;
}
.workload-list h3 {
  font-size: 11px;
  margin: 0 0 8px;
}
.workload-list b {
  font-size: 13px;
  color: #758da6;
}
.workload-track {
  height: 4px;
  background: #edf1f8;
  border-radius: 4px;
  overflow: hidden;
}
.workload-track i {
  display: block;
  height: 100%;
  background: #96b6ed;
}
.workload-list + .note {
  font-size: 9px;
  margin-top: 20px;
}
.next-session-panel {
  overflow: hidden;
}
.next-session > img {
  width: 100%;
  height: 110px;
  object-fit: cover;
  border-radius: 11px;
}
.next-session-content {
  position: relative;
  padding-top: 16px;
}
.next-session-content h3 {
  font-size: 16px;
  margin-right: 54px;
}
.next-session-content p {
  font-size: 11px;
  color: #899caf;
  margin: 10px 55px 16px 0;
  line-height: 1.5;
}
.day-square {
  position: absolute;
  right: 0;
  top: 16px;
  text-align: center;
  background: #f0f5fc;
  padding: 9px;
  border-radius: 9px;
}
.day-square strong {
  display: block;
  font-size: 23px;
  font-weight: 450;
}
.day-square span {
  font-size: 7px;
}
.next-session-content .btn {
  width: 100%;
  font-size: 10px;
}
.quick-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.quick-grid .btn {
  flex-direction: column;
  align-items: flex-start;
  padding: 13px;
  background: #f7f9fc;
  border: 0;
  font-size: 9px;
  white-space: normal;
  text-align: left;
  line-height: 1.5;
}
.quick-grid svg {
  width: 18px;
  color: #7698c6;
  margin-bottom: 5px;
}
.crm-context {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
  border-bottom: 1px solid var(--crm-line);
  margin: 10px 0 22px;
  padding-bottom: 12px;
}
.crm-context .btn {
  font-size: 11px;
  background: transparent;
  border: 0;
  padding: 8px 13px;
}
.crm-context .selected {
  background: #e7eefb;
  color: #3569ca;
}
.crm-pill {
  display: inline-flex;
  align-items: center;
  font-size: 9px;
  padding: 5px 8px;
  border-radius: 6px;
  white-space: nowrap;
  background: #edf2f8;
  color: #7890aa;
  line-height: 1;
}
.crm-pill.progress {
  background: #eaf1ff;
  color: #527ccb;
  height: auto;
}
.crm-pill.review {
  background: #fff2db;
  color: #b18b48;
}
.crm-pill.done,
.crm-pill.closed,
.crm-pill.active {
  background: #e8f6ef;
  color: #50957c;
}
.crm-pill.suspended {
  background: #faeee9;
  color: #b88470;
}
.board-toolbar {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 22px;
}
.board-toolbar label {
  font-size: 10px;
  color: #8a9aaf;
  display: flex;
  gap: 10px;
  align-items: center;
}
.board-toolbar select {
  max-width: 200px;
  font-size: 11px;
}
.board-hint {
  margin-left: auto;
  display: flex;
  gap: 8px;
  font-size: 10px;
  color: #95a4b5;
}
.board-hint svg {
  width: 14px;
}
.kanban {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  align-items: start;
  margin-bottom: 20px;
}
.kanban-column {
  background: #eaf0f6;
  border: 1px solid #e4eaf1;
  border-radius: 15px;
  padding: 12px;
  min-height: 350px;
}
.kanban-column > header {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 2px 1px 15px;
}
.kanban-column h2 {
  font-size: 11px;
  flex: 1;
}
.kanban-column > header > b {
  font-size: 10px;
  font-weight: 500;
  color: #8b9aab;
  background: #dfe7f1;
  padding: 3px 6px;
  border-radius: 5px;
}
.column-dot {
  width: 6px;
  height: 6px;
  background: #a1b3c8;
  border-radius: 50%;
}
.progress .column-dot {
  background: #5884d8;
}
.review .column-dot {
  background: #d5ad69;
}
.done .column-dot {
  background: #6baf93;
}
.kanban-column.progress {
  height: auto;
  overflow: visible;
}
.crm-task {
  background: #fff;
  border: 1px solid #e2e9f2;
  border-radius: 11px;
  margin-bottom: 10px;
  box-shadow: 0 3px 7px #344b6910;
  overflow: hidden;
}
.crm-task.priority-high {
  border-top: 2px solid #d7a378;
}
.crm-task > a {
  display: block;
  padding: 14px;
  color: inherit;
}
.card-topline {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.task-type {
  font-size: 9px;
  color: #879bb4;
}
.priority-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #a4b7d2;
}
.priority-dot.high {
  background: #d59764;
}
.crm-task h3 {
  font-size: 12px;
  line-height: 1.6;
  margin: 12px 0 8px;
}
.task-context {
  font-size: 9px;
  color: #94a2b2;
  line-height: 1.5;
}
.task-mini-tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  font-size: 8px;
  color: #8d9dad;
  margin-top: 16px;
}
.task-mini-tags > span {
  display: flex;
  align-items: center;
  gap: 4px;
  background: #f4f6fa;
  padding: 4px 5px;
  border-radius: 4px;
}
.task-mini-tags svg {
  width: 11px;
}
.task-mini-tags .urgent-word {
  color: #b88e64;
  background: #faf2e8;
}
.task-card-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 14px;
  padding-top: 10px;
  border-top: 1px solid #f0f3f7;
  font-size: 9px;
  color: #94a6b9;
}
.task-card-bottom svg {
  width: 13px;
}
.small-owner {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 10px;
}
.small-owner .avatar {
  width: 24px;
  height: 24px;
  font-size: 8px;
}
.column-empty {
  border: 1px dashed #cbd7e5;
  border-radius: 9px;
  color: #9eaec0;
  font-size: 10px;
  text-align: center;
  padding: 24px 12px;
}
.column-add {
  width: 100%;
  border: 1px dashed #cad6e4;
  background: none;
  font-size: 10px;
  margin-top: 4px;
  color: #8a9db5;
}
.drag-over {
  outline: 2px solid #5d8ae7;
  outline-offset: -2px;
  background: #e2ebfe !important;
}
.queue-intro,
.team-summary {
  display: flex;
  gap: 25px;
  align-items: center;
  padding: 26px;
  border-radius: 18px;
  background: #e9eff9;
  border: 1px solid #dde7f4;
  margin-bottom: 24px;
}
.queue-intro h2,
.team-summary h2 {
  font-size: 22px;
  line-height: 1.3;
  margin-top: 9px;
  letter-spacing: -0.5px;
}
.queue-count {
  font-size: 52px;
  letter-spacing: -2px;
  color: #416894;
}
.queue-count small {
  font-size: 10px;
  display: block;
  letter-spacing: 0;
  color: #8d9fb4;
}
.queue-filter {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-left: auto;
  max-width: 330px;
}
.queue-filter .btn {
  font-size: 10px;
  background: #ffffff66;
  border: 0;
}
.team-summary > div:last-child {
  margin-left: auto;
  display: flex;
  flex-direction: column;
}
.team-summary strong {
  font-size: 42px;
  font-weight: 450;
}
.team-summary span {
  font-size: 11px;
  color: #8397af;
}
.team-avatar-row {
  display: flex;
  padding-left: 8px;
}
.team-avatar-row .avatar {
  margin-left: -8px;
  border: 3px solid #e9eff9;
  width: 45px;
  height: 45px;
}
.staff-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.staff-card {
  display: block;
  padding: 22px;
  border: 1px solid var(--crm-line);
  border-radius: 18px;
  background: white;
  color: inherit;
  transition:
    transform 0.2s,
    box-shadow 0.2s;
}
.staff-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px #2943630d;
}
.staff-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 24px;
}
.staff-card .avatar {
  width: 45px;
  height: 45px;
  font-size: 16px;
}
.staff-card h2 {
  font-size: 17px;
  margin-bottom: 8px;
}
.staff-card p {
  font-size: 11px;
  color: #8396ac;
  line-height: 1.5;
  min-height: 34px;
}
.staff-role {
  display: inline-block;
  background: #f2f5fa;
  border-radius: 5px;
  padding: 5px 8px;
  font-size: 9px;
  margin: 15px 0;
}
.staff-card-bottom {
  border-top: 1px solid #edf1f6;
  padding-top: 17px;
  display: flex;
  gap: 12px;
  justify-content: space-between;
  font-size: 9px;
  color: #8a9eb5;
}
.staff-profile {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 26px;
}
.staff-profile .avatar {
  width: 64px;
  height: 64px;
  font-size: 24px;
}
.staff-profile h2 {
  margin: 10px 0;
  font-size: 22px;
}
.staff-profile p {
  font-size: 12px;
  color: #8196ad;
  margin-bottom: 14px;
}
.rights-list {
  list-style: none;
  padding: 0;
}
.rights-list li {
  display: flex;
  gap: 8px;
  align-items: center;
  font-size: 12px;
  margin: 13px 0;
}
.rights-list svg {
  width: 14px;
  color: #679e8b;
}
.scope-link {
  display: block;
  text-align: left;
  white-space: normal;
  font-size: 11px;
  margin-bottom: 8px;
  background: #f2f5f9;
  border: 0;
}
.scope-picker {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5px;
  max-height: 310px;
  overflow: auto;
  padding-top: 12px;
}
.check-option {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  padding: 10px;
  border-radius: 8px;
  font-size: 11px;
  line-height: 1.5;
  background: #f7f9fc;
  margin: 4px 0;
}
.check-option input {
  width: 15px;
  height: 15px;
  accent-color: #477cdd;
  flex-shrink: 0;
  margin-top: 1px;
}
.check-option[hidden],
[data-scope][hidden] {
  display: none;
}
.task-comments article {
  background: #f6f8fb;
  border-radius: 12px;
  padding: 16px;
  margin: 10px 0;
  font-size: 12px;
}
.task-comments time {
  font-size: 9px;
  color: #8d9fb2;
  float: right;
}
.task-comments p {
  line-height: 1.7;
  margin-top: 9px;
  white-space: pre-wrap;
}
.task-event-photo {
  width: 100%;
  height: 150px;
  object-fit: cover;
  border-radius: 12px;
  margin-bottom: 16px;
}
.calendar-toolbar {
  display: flex;
  gap: 18px;
  align-items: center;
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.month-title {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-right: auto;
}
.month-title h2 {
  font-size: 20px;
  text-transform: capitalize;
  min-width: 185px;
  text-align: center;
}
.month-title .btn {
  font-size: 23px;
  color: #8399b2;
}
.calendar-toolbar > select {
  width: 210px;
  font-size: 11px;
}
.calendar-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 260px;
  gap: 20px;
  align-items: start;
}
.calendar-board {
  border: 1px solid var(--crm-line);
  border-radius: 16px;
  background: white;
  overflow: hidden;
}
.weekdays,
.calendar-days {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
}
.weekdays {
  background: #f8fafc;
  padding: 16px 0;
  text-align: center;
}
.weekdays b {
  font-size: 10px;
  color: #8d9fb3;
  font-weight: 500;
}
.calendar-day {
  min-height: 118px;
  padding: 8px 5px;
  border-top: 1px solid #edf1f5;
  border-right: 1px solid #edf1f5;
  min-width: 0;
}
.calendar-day:nth-child(7n) {
  border-right: 0;
}
.calendar-day.other-month {
  background: #fafbfd;
}
.day-label {
  display: flex;
  width: 25px;
  height: 25px;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  color: #647e9b;
  border-radius: 7px;
  margin-bottom: 5px;
}
.selected-day {
  background: #f2f6ff;
}
.selected-day .day-label {
  background: #497cdf;
  color: #fff;
}
.other-month .day-label {
  color: #bcc6d3;
}
.calendar-event {
  border: 0;
  border-left: 2px solid #7ba1e9;
  background: #eaf1ff;
  border-radius: 4px;
  padding: 6px 5px;
  width: 100%;
  text-align: left;
  margin-top: 4px;
  color: #4f76ad;
  cursor: pointer;
  overflow: hidden;
}
.calendar-event span {
  display: block;
  font-size: 8px;
  margin-bottom: 4px;
}
.calendar-event b {
  font-size: 9px;
  font-weight: 500;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.4;
  word-break: break-word;
}
.calendar-event.completed {
  background: #e9f5f0;
  border-color: #7bb498;
  color: #5f937d;
}
.calendar-event.cancelled {
  opacity: 0.6;
  text-decoration: line-through;
}
.week .calendar-day {
  min-height: 350px;
}
.calendar-legend {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  padding: 16px;
  font-size: 9px;
  color: #8a9db4;
  border-top: 1px solid var(--crm-line);
}
.calendar-legend > span {
  display: flex;
  gap: 5px;
  align-items: center;
}
.legend-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
}
.legend-dot.blue {
  background: #7ba1e9;
}
.legend-dot.green {
  background: #7bb498;
}
.day-agenda {
  background: white;
  border: 1px solid var(--crm-line);
  border-radius: 17px;
  padding: 20px;
}
.day-agenda > h2 {
  font-size: 25px;
  margin: 10px 0;
}
.day-agenda > p {
  font-size: 11px;
  color: #8a9cb0;
}
.agenda-card {
  border: 1px solid var(--crm-line);
  border-radius: 11px;
  overflow: hidden;
  margin: 20px 0;
}
.agenda-card > img {
  width: 100%;
  height: 105px;
  object-fit: cover;
}
.agenda-card > div {
  padding: 14px;
}
.agenda-time {
  font-size: 12px;
  display: inline-block;
  margin-right: 8px;
  color: #466eab;
}
.agenda-card h3 {
  font-size: 14px;
  line-height: 1.4;
  margin: 14px 0 8px;
}
.agenda-card p {
  font-size: 10px;
  color: #8a9cb1;
  line-height: 1.6;
}
.agenda-card small {
  font-size: 9px;
  color: #8a9cb1;
}
.agenda-actions {
  display: flex;
  gap: 8px;
  margin-top: 14px;
  flex-wrap: wrap;
}
.agenda-actions .btn {
  font-size: 9px;
  padding: 7px 9px;
}
.empty-agenda {
  font-size: 12px;
  line-height: 1.8;
  color: #91a1b5;
  padding: 30px 0;
}
.day-agenda .field {
  margin-top: 18px;
  font-size: 10px;
}
.day-agenda select {
  font-size: 10px;
}
.day-agenda .note {
  font-size: 9px;
  line-height: 1.7;
  margin-top: 24px;
}
.day-agenda > #calendar-create {
  width: 100%;
  font-size: 10px;
}
.crm-task[draggable="true"] {
  cursor: grab;
}
.crm-task[draggable="true"]:active {
  cursor: grabbing;
}
@media (min-width: 1450px) {
  .main {
    max-width: 1450px;
    margin-left: auto;
    margin-right: auto;
  }
}
@media (max-width: 1200px) {
  .workspace-breadcrumb {
    display: none;
  }
  .ops-kpis strong small {
    display: block;
    margin: 6px 0 0;
  }
  .ops-summary {
    grid-template-columns: 1.3fr 0.9fr 0.5fr;
  }
  .ops-summary-copy {
    padding: 23px;
  }
  .ops-summary-copy h2 {
    font-size: 23px;
  }
  .ops-summary-copy h2 span {
    font-size: 17px;
  }
  .summary-links {
    flex-wrap: wrap;
  }
  .kanban {
    gap: 8px;
  }
  .kanban-column {
    padding: 8px;
  }
  .crm-task > a {
    padding: 11px;
  }
  .board-hint {
    display: none;
  }
  .staff-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .calendar-layout {
    grid-template-columns: minmax(0, 1fr) 230px;
  }
  .calendar-day {
    padding: 7px 3px;
  }
  .day-agenda {
    padding: 16px;
  }
}
@media (max-width: 900px) {
  .ops-main-grid {
    grid-template-columns: 1fr;
  }
  .ops-main-grid > aside {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: start;
  }
  .ops-summary {
    grid-template-columns: 1.3fr 1fr;
  }
  .today-work {
    display: none;
  }
  .calendar-layout {
    grid-template-columns: 1fr;
  }
  .day-agenda {
    display: block;
  }
  .agenda-card {
    display: flex;
    max-width: 540px;
  }
  .agenda-card > img {
    width: 140px;
    height: auto;
    object-fit: cover;
  }
  .day-agenda .field {
    max-width: 400px;
  }
  .day-agenda > #calendar-create {
    width: auto;
  }
  .crm-header-search {
    display: none;
  }
  .kanban {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 600px) {
  .crm-topbar {
    gap: 7px;
    padding: 12px 16px;
  }
  .staff-switcher {
    padding-left: 8px;
    gap: 7px;
  }
  .staff-switcher select {
    width: 143px;
    font-size: 10px;
  }
  .staff-switcher small {
    font-size: 8px;
  }
  .crm-topbar .top-right {
    gap: 8px;
  }
  .staff-switcher .avatar {
    width: 29px;
    height: 29px;
  }
  .page-head h1 {
    font-size: 25px;
    line-height: 1.2;
  }
  .header-date {
    display: none;
  }
  .ops-summary {
    display: block;
    margin: 16px 0;
  }
  .ops-summary-copy {
    padding: 24px;
  }
  .ops-summary-copy h2 {
    font-size: 23px;
  }
  .summary-photo {
    margin: 0 12px 12px;
    height: 125px;
  }
  .ops-kpis {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }
  .ops-kpis > a {
    padding: 14px;
    min-height: 143px;
  }
  .ops-kpis > a > span {
    font-size: 9px;
    gap: 5px;
  }
  .ops-kpis strong {
    font-size: 30px;
  }
  .ops-kpis strong small {
    font-size: 8px;
  }
  .tiny-channels {
    flex-wrap: wrap;
  }
  .rating-lines {
    right: 14px;
    bottom: 14px;
  }
  .ops-main-grid > aside {
    display: flex;
    flex-direction: column;
  }
  .ops-main-grid > aside > .panel {
    width: 100%;
  }
  .ops-main-grid .panel {
    padding: 18px;
  }
  .chart-heading {
    align-items: flex-start;
    flex-direction: column;
  }
  .chart-heading .segmented {
    align-self: flex-end;
  }
  .chart-foot {
    font-size: 8px;
    flex-direction: column;
  }
  .focus-list > a {
    gap: 8px;
  }
  .focus-list h3 {
    font-size: 11px;
  }
  .focus-list .avatar,
  .focus-list > a > svg {
    display: none;
  }
  .focus-meta {
    font-size: 8px;
    gap: 6px;
  }
  .focus-order {
    font-size: 9px;
  }
  .crm-context {
    gap: 4px;
  }
  .crm-context .btn {
    font-size: 10px;
    padding: 7px 9px;
  }
  .board-toolbar {
    flex-wrap: wrap;
    gap: 12px;
  }
  .board-toolbar select {
    max-width: 180px;
  }
  .kanban {
    grid-template-columns: 1fr;
    gap: 18px;
  }
  .kanban-column {
    padding: 14px;
    min-height: 120px;
  }
  .crm-task > a {
    padding: 16px;
  }
  .crm-task h3 {
    font-size: 14px;
  }
  .task-context {
    font-size: 11px;
  }
  .task-mini-tags {
    font-size: 10px;
  }
  .kanban-column h2 {
    font-size: 14px;
  }
  .queue-intro,
  .team-summary {
    padding: 20px;
    gap: 16px;
    flex-wrap: wrap;
  }
  .queue-intro h2,
  .team-summary h2 {
    font-size: 20px;
  }
  .queue-count {
    font-size: 42px;
  }
  .queue-filter {
    margin-left: 0;
  }
  .team-summary > div:last-child {
    margin: 0;
  }
  .team-avatar-row .avatar {
    width: 34px;
    height: 34px;
  }
  .staff-grid {
    grid-template-columns: 1fr;
  }
  .staff-profile {
    align-items: flex-start;
    gap: 12px;
  }
  .staff-profile h2 {
    font-size: 19px;
  }
  .staff-profile p {
    overflow-wrap: anywhere;
  }
  .staff-profile .avatar {
    width: 45px;
    height: 45px;
    flex-shrink: 0;
    font-size: 16px;
  }
  .scope-picker {
    grid-template-columns: 1fr;
  }
  .task-comments time {
    float: none;
    display: block;
    margin-top: 7px;
  }
  .calendar-toolbar {
    gap: 12px;
  }
  .month-title {
    width: 100%;
    justify-content: space-between;
  }
  .month-title h2 {
    font-size: 19px;
  }
  .calendar-toolbar > select {
    width: 160px;
    flex: 1;
    min-width: 130px;
  }
  .calendar-day {
    min-height: 80px;
    padding: 5px 2px;
  }
  .calendar-event {
    padding: 4px 2px;
    border-left-width: 1px;
  }
  .calendar-event span {
    font-size: 7px;
  }
  .calendar-event b {
    font-size: 7px;
  }
  .day-label {
    font-size: 9px;
    width: 22px;
    height: 22px;
  }
  .week .calendar-day {
    min-height: 180px;
  }
  .calendar-legend {
    font-size: 8px;
    gap: 10px;
    padding: 12px;
  }
  .agenda-card > img {
    width: 95px;
  }
  .calendar-board {
    border-radius: 12px;
  }
  .team-summary .team-avatar-row {
    display: none;
  }
  .task-event-photo {
    height: 140px;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
.calendar-toolbar > select,
.board-toolbar select {
  border: 1px solid #dce5f1;
  border-radius: 9px;
  padding: 11px;
  background: #fff;
  color: #677f9c;
  font-family: inherit;
}
.crm-sidebar {
  overflow-y: auto;
}
.ops-summary .btn {
  font-size: 11px;
}
.btn:focus-visible,
button:focus-visible,
a:focus-visible,
select:focus-visible {
  outline: 3px solid #89aff0;
  outline-offset: 2px;
}
