.psychologist-stats {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.psychologist-stats__card {
  background: #fff;
  border: 1px solid rgba(105, 126, 60, 0.14);
  border-radius: 16px;
  box-shadow: 0 10px 32px rgba(47, 67, 35, 0.06);
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 98px;
  padding: 18px 22px;
}

.psychologist-stats__value {
  color: #444854;
  font-family: "Bounded Variable", sans-serif !important;
  font-size: 40px;
  font-weight: 700;
  line-height: 1;
  margin-bottom: 10px;
  overflow-wrap: anywhere;
}

.psychologist-stats__label {
  color: rgba(68, 72, 84, 0.72);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.2;
}

.commission-session-note .block_item {
  align-items: center;
  display: flex;
  min-height: 72px;
}

.commission-session-note__trigger {
  align-items: center;
  appearance: none;
  background: none;
  border: 0;
  color: rgba(42, 42, 42, 0.72);
  cursor: pointer;
  display: inline-flex;
  font: inherit;
  font-size: 20px;
  font-weight: 600;
  gap: 14px;
  line-height: 1.25;
  padding: 0;
  text-align: left;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
  transition: color 0.2s ease;
}

.commission-session-note__trigger::before {
  align-items: center;
  border: 2px solid rgba(42, 42, 42, 0.44);
  border-radius: 50%;
  box-sizing: border-box;
  color: rgba(42, 42, 42, 0.56);
  content: "i";
  display: inline-flex;
  flex: 0 0 24px;
  font-family: Arial, sans-serif;
  font-size: 16px;
  font-weight: 700;
  height: 24px;
  justify-content: center;
  line-height: 1;
  text-decoration: none;
  width: 24px;
}

.commission-session-note__trigger:hover,
.commission-session-note__trigger:focus {
  color: #868b32;
  outline: 0;
}

.commission-session-note__trigger:focus-visible {
  outline: 2px solid rgba(157, 162, 71, 0.42);
  outline-offset: 4px;
}

body.commission-session-note-modal-locked {
  overflow: hidden;
}

.commission-session-note-modal {
  align-items: center;
  display: none;
  inset: 0;
  justify-content: center;
  padding: 24px;
  position: fixed;
  z-index: 10030;
}

.commission-session-note-modal.is-open {
  display: flex;
}

.commission-session-note-modal__backdrop {
  background: rgba(38, 40, 46, 0.58);
  inset: 0;
  position: absolute;
}

.commission-session-note-modal__dialog {
  background: #fff;
  border: 1px solid rgba(105, 126, 60, 0.14);
  border-radius: 16px;
  box-shadow: 0 24px 70px rgba(42, 42, 42, 0.2);
  box-sizing: border-box;
  max-height: calc(100vh - 48px);
  overflow: auto;
  padding: 30px 32px 32px;
  position: relative;
  width: min(760px, 100%);
  z-index: 1;
}

.commission-session-note-modal__close {
  appearance: none;
  background: #f7f7f4;
  border: 1px solid rgba(105, 126, 60, 0.14);
  border-radius: 50%;
  cursor: pointer;
  height: 38px;
  position: absolute;
  right: 18px;
  top: 18px;
  transition: background 0.2s ease, border-color 0.2s ease;
  width: 38px;
}

.commission-session-note-modal__close::before,
.commission-session-note-modal__close::after {
  background: rgba(42, 42, 42, 0.68);
  content: "";
  height: 2px;
  left: 11px;
  position: absolute;
  top: 18px;
  width: 14px;
}

.commission-session-note-modal__close::before {
  transform: rotate(45deg);
}

.commission-session-note-modal__close::after {
  transform: rotate(-45deg);
}

.commission-session-note-modal__close:hover,
.commission-session-note-modal__close:focus {
  background: #f1f1e8;
  border-color: rgba(157, 162, 71, 0.42);
  outline: 0;
}

.commission-session-note-modal__title {
  color: #2a2a2a;
  font-size: 26px;
  font-weight: 700;
  line-height: 1.2;
  margin: 0 48px 18px 0;
}

.commission-session-note-modal__content {
  color: rgba(42, 42, 42, 0.72);
  font-size: 18px;
  line-height: 1.45;
}

.commission-session-note-modal__content p {
  margin: 0 0 14px;
}

.commission-session-note-modal__content p:last-child {
  margin-bottom: 0;
}

.sitebar .menu .sm-li a.leads::before {
  background-image: url(icon.svg) !important;
}

/* Оплатить */

.block_item.commissions {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  justify-content: space-between;
}
.commissions button,
.row3 button {
  border: none;
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  padding: 14px 18px 15px;
  gap: 8px;

  min-width: 181px;
  min-height: 40px;

  background: #2e5fda;
  border-radius: 12px;

  /* Inside auto layout */
  flex: none;
  order: 0;
  flex-grow: 0;
  color: #fff;
}

.commissions button:hover,
.row3 button:hover {
  border: 1px solid #2e5fda;
  color: #2e5fda;
  background: white;
}

.row3 input {
  border: 0;
  -webkit-appearance: none;
  -moz-appearance: textfield;
  color: rgba(47, 67, 35, 0.75);
  max-width: 80px;
}

.row3 div.input {
  border-radius: 12px;
  border: 1px solid rgba(42, 42, 42, 0.3);
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  padding: 14px 18px 15px;
  gap: 0px;

  min-width: 61px;
  min-height: 40px;

  background: white;
  border-radius: 12px;

  /* Inside auto layout */
  flex: none;
  order: 0;
  flex-grow: 0;
  color: rgba(47, 67, 35, 0.75);
}

.row3 .column p {
  font-weight: 700 !important;
}

.item .row3 {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
}

.right_content .column {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.com-status {
  background: url(vec2.svg) no-repeat;
  background-position: calc(100% - 10px) center;
  font-weight: 700 !important;
  cursor: pointer;
}

.commission-status-1 .com-status {
  background-color: rgba(46, 95, 218, 0.15);
  border-color: rgba(46, 95, 218, 1);
  color: rgba(46, 95, 218, 1);
}

.commission-status-2 .com-status {
  background-color: rgba(255, 168, 1, 0.15);
  border-color: rgba(255, 168, 1, 1);
  color: rgba(255, 168, 1, 1);
}

.commission-status-3 .com-status {
  background-color: rgba(255, 0, 0, 0.15);
  border-color: rgba(255, 0, 0, 1);
  color: rgba(255, 0, 0, 1);
}

.commission-status-4 .com-status {
  background-color: rgba(56, 111, 0, 0.15);
  border-color: rgba(56, 111, 0, 1);
  color: rgba(56, 111, 0, 1);
}

.commission-status-5 .com-status {
  background-color: rgba(255, 0, 0, 0.15);
  border-color: rgba(255, 0, 0, 1);
  color: rgba(255, 0, 0, 1);
}
.commission-status-6 .com-status {
  background-color: rgba(255, 0, 0, 0.15);
  border-color: rgba(255, 0, 0, 1);
  color: rgba(255, 0, 0, 1);
}
.commission-status-7 .com-status {
  background-color: rgba(255, 0, 0, 0.15);
  border-color: rgba(255, 0, 0, 1);
  color: rgba(255, 0, 0, 1);
}
.commission-status-8 .com-status {
  background-color: rgba(255, 0, 0, 0.15);
  border-color: rgba(255, 0, 0, 1);
  color: rgba(255, 0, 0, 1);
}
.commission-status-9 .com-status {
  background-color: rgba(255, 0, 0, 0.15);
  border-color: rgba(255, 0, 0, 1);
  color: rgba(255, 0, 0, 1);
}
.commission-status-10 .com-status {
  background-color: rgba(255, 0, 0, 0.15);
  border-color: rgba(255, 0, 0, 1);
  color: rgba(255, 0, 0, 1);
}

section.lightpick {
  position: absolute;
  -webkit-box-shadow: 0px 4px 24px 0px rgba(0, 0, 0, 0.1019607843);
  -moz-box-shadow: 0px 4px 24px 0px rgba(0, 0, 0, 0.1019607843);
  box-shadow: 0px 4px 24px 0px rgba(0, 0, 0, 0.1019607843);
  border-radius: 12px;
  overflow: hidden;
}

/* MY */
.right_content .column {
  gap: 22px !important;
}
.block_item_row .block_item .sub_title {
  color: #2a2a2a;
  font-size: 18px;
  font-style: normal;
  font-weight: 500;
  line-height: normal;
}
.block_item .price_one_lead {
  gap: 10px;
  flex-wrap: nowrap !important;
}

.title-sort1-wrapper {
  display: -webkit-flex;
  display: flex;
  justify-content: space-between;
}

#sortDropdown {
  background-image: url("./select.svg");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: right;
  border-radius: 12px;
  border: 1px solid rgba(78, 71, 255, 0.2);
  background-size: 14px;
  background-position: 250px;
  transition: 0.3s;
  cursor: pointer;
  -webkit-background-size: 14px;
  -webkit-background-position: 250px;
}

#datePickerField {
  display: -webkit-flex;
  display: flex;
  width: 48px;
  height: 48px;
  padding: 10px;
  justify-content: center;
  align-items: center;
  gap: 10px;
  border-radius: 12px;
  border: 1px solid rgba(78, 71, 255, 0.2);
  background: none;
  background-image: url("./mage_calendar.svg");
  background-size: contain;
  background-repeat: no-repeat;
  background-size: 24px;
  background-position: center;
  cursor: pointer;
  color: transparent;
}

.com_sort_1 {
  display: -webkit-flex;
  display: flex;
  gap: 10px;
}

.status-tabs {
  display: -webkit-flex;
  display: flex;
  justify-content: space-between;
  overflow-x: auto;
  padding: 0 0 30px 0;
  gap: 15px;
}

.status-tabs .tab {
  padding: 12px;
  color: #d2d2d2;
  font-size: 18px;
  font-style: normal;
  font-weight: 500;
  line-height: 140%; /* 25.2px */
  border-bottom: 1px solid #d2d2d2;
  cursor: pointer;
  transition: 0.3s;
  white-space: nowrap;
}

.status-tabs .tab.active {
  border-bottom: 1px solid #2e5fda;
  color: #5e5e5e;
  font-weight: 600;
}
.status-tabs .tab.active .count-new {
  background: #2e5fda;
}

.name {
  color: #2a2a2a;
  font-size: 18px;
  font-weight: 700 !important;
}

.block_item.leads .row1 .name span {
  color: #2a2a2a;
  font-size: 16px;
  font-weight: 400;
}

.block_item.leads .row1 .date {
  color: #2a2a2a;
  font-size: 18px;
  font-weight: 500;
}

.block_item_row .block_item .title {
  font-weight: 700 !important;
}

.block_item .transactions .item .row1 .name,
.block_item .transactions .item .row1 .value,
.row2 .phone {
  font-weight: 700 !important;
}

header.header .container {
  width: 90%;
}

.sitebar .menu .sm-li a {
  white-space: nowrap;
}

.row3-grid-wrapper .row3,
.commission-status-1 {
  display: contents;
}

.row3-grid-wrapper {
  display: -ms-grid;
  display: grid;
  grid-template-columns: repeat(3, max-content);
  justify-content: space-between;
  gap: 13px 22px;
}

.row3-grid-wrapper .column:nth-child(3n) {
  max-width: 280px;
  width: 100%;
}
.tab-new {
  display: flex;
  align-items: center;
  gap: 10px;
}
.count-new {
  background: rgba(46, 95, 218, 0.3);

  border-radius: 50%;

  min-width: 18.325px;
  min-height: 18.325px;
  width: 1.6em;
  height: 1.6em;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  line-height: 1px;
  text-align: center;
}
.count-new3{
  width: 1.9em;
  height: 1.9em;
}
.saved {
  background: url(./saved.svg) no-repeat;
  background-position: left;
  background-size: 17px;
  padding: 0 0 0 27px;
  text-transform: lowercase;
  color: #d4d4d4;
  transition: 0.3s;
  font-size: 16px;
  font-style: normal;
  font-weight: 500;
}
@media (max-width: 1100px) {
  .com-status option {
    font-size: 12px;
  }
  .right_content:has(.block_item) {
    width: 70% !important;
  }
  .menu-header ul.menu {
    gap: 16px;
    flex-wrap: wrap;
    justify-content: end;
  }
  .menu-header ul li {
    margin: 0;
    padding: 0;
  }
  header.header .container {
    width: 90%;
    gap: 30px;
  }
}

@media (max-width: 900px) {
  .psychologist-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .psychologist-stats__card {
    min-height: 92px;
    padding: 18px 20px;
  }

  .psychologist-stats__value {
    font-size: 34px;
  }
}

@media (max-width: 860px) {
  .right_content:has(.block_item) {
    width: 100% !important;
  }
  .sm-li {
    display: none;
  }
  .sm-li.active {
    display: block !important;
  }
  .menu {
    margin: 0 !important;
  }
  .sitebar .user_info {
    -webkit-flex-direction: column;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
  }
  .menu-header {
    z-index: 1001;
  }
}

@media (max-width: 768px) {
  .block_item.commissions {
    -webkit-flex-wrap: wrap;
    flex-wrap: wrap;
  }
  .row3-grid-wrapper {
    display: -webkit-flex;
    display: flex;
    flex-direction: column;
    margin-top: 10px;
  }
  .row3-grid-wrapper .column:nth-child(1) {
    order: 0;
  }
  .row3-grid-wrapper .column:nth-child(2) {
    order: 2;
  }
  .row3-grid-wrapper .column:nth-child(3) {
    order: 4;
    max-width: none;
    width: 100%;
  }
  .row3-grid-wrapper .column:nth-child(4) {
    order: 1;
  }
  .row3-grid-wrapper .column:nth-child(5) {
    order: 3;
  }
  .row3-grid-wrapper .column:nth-child(6) {
    order: 5;
  }
}

@media (max-width: 600px) {
  .psychologist-stats {
    grid-template-columns: 1fr;
  }

  .commission-session-note .block_item {
    min-height: 64px;
  }

  .commission-session-note__trigger {
    font-size: 18px;
  }

  .commission-session-note-modal {
    align-items: flex-end;
    padding: 12px;
  }

  .commission-session-note-modal__dialog {
    border-radius: 14px;
    max-height: calc(100vh - 24px);
    padding: 26px 22px 24px;
  }

  .commission-session-note-modal__title {
    font-size: 22px;
    margin-right: 42px;
  }

  .commission-session-note-modal__content {
    font-size: 16px;
  }

  .psychologist-stats__card {
    min-height: 86px;
    padding: 16px 18px;
  }

  .psychologist-stats__value {
    font-size: 32px;
    margin-bottom: 8px;
  }

  .psychologist-stats__label {
    font-size: 15px;
  }

  .com_sort_1 {
    display: contents;
  }
  .title-sort1-wrapper {
    display: grid;
    grid-template-columns: repeat(2, auto);
    justify-content: space-between;
  }
  #sortDropdown {
    grid-column: 1/-1;
    margin-top: 20px;
    background-position: 97%;
  }
  .block_item_row .block_item .title {
    font-size: 42px;
  }
  .commissions button {
    width: 100%;
  }
  .right_content .column {
    width: 100%;
  }
  .block_item .transactions .item .row1 {
    -webkit-flex-wrap: wrap;
    flex-wrap: wrap;
  }
  header.header .container {
    width: 100%;
  }
}
@media (max-width: 600px) {
  .com_sort_1 {
    display: contents;
  }
  .title-sort1-wrapper .title {
    order: 0;
  }
  .title-sort1-wrapper .date-filter {
    order: 1;
    justify-self: end;
  }
  .title-sort1-wrapper #sortDropdown {
    order: 2;
  }
  .title-sort1-wrapper {
    display: grid;
    grid-template-columns: repeat(2, auto);
    justify-content: space-between;
  }

  #sortDropdown {
    grid-column: 1/-1;
    margin: 20px 0 0 0;
    background-position: 97%;
  }
  .block_item_row .block_item .title {
    font-size: 42px;
  }
  .commissions button {
    width: 100%;
  }
  .right_content .column {
    width: 100%;
  }
  .block_item .transactions .item .row1 {
    flex-wrap: wrap;
  }
  header.header .container {
    width: 100%;
  }
}
@media (max-width: 500px) {
  .lightpick__month {
    width: 300px;
    min-width: 300px;
  }
}

@media (max-width: 400px) {
  .lightpick__month {
    width: 250px;
    min-width: 250px;
  }
  .lightpick__month-title > .lightpick__select-months {
    font-size: 18px;
  }
  .lightpick__month-title > .lightpick__select {
    font-size: 18px;
  }
  .lightpick__day {
    height: auto;
  }
  .lightpick__day.is-today {
    padding: 0;
  }
}

@media (max-width: 375px) and (orientation: portrait) {
  .block_item_row .block_item .sub_title {
    font-size: 16px;
  }
  .menu-header ul.menu {
    gap: 8px;
    justify-content: space-around;
  }

  .title-sort1-wrapper .title,
  .title-sort1-wrapper #sortDropdown {
    justify-self: start;
  }
}

.drag-handle {
    cursor: move;
    width: 30px;
    text-align: center;
    user-select: none;
}

.emoji-input {
    width: 50px;
    text-align: center;
}

#status-table tr.ui-sortable-helper {
    background: #f9f9f9;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

#status-table td.drag-handle, #status-table th.drag-handle { width:10px }

.right_content.comissions .psychologist-page-views {
  margin-top: 32px;
  padding: 30px 34px 34px;
}

.psychologist-page-views__header {
  align-items: center;
  display: flex;
  gap: 24px;
  justify-content: space-between;
}

.psychologist-page-views__title {
  color: #000;
  font-size: 34px;
  font-weight: 800;
  line-height: 1.15;
}

.psychologist-page-views__nav {
  align-items: center;
  border: 1px solid #d7d7d7;
  border-radius: 4px;
  display: grid;
  grid-template-columns: 48px 150px 48px;
  min-height: 48px;
  overflow: hidden;
}

.psychologist-page-views__nav-button {
  align-items: center;
  appearance: none;
  background: #fff;
  border: 0;
  cursor: pointer;
  display: flex;
  font: inherit;
  height: 48px;
  justify-content: center;
  padding: 0;
  position: relative;
}

.psychologist-page-views__nav-button::before {
  border-color: #a7a7a7;
  border-style: solid;
  border-width: 0 1.5px 1.5px 0;
  content: "";
  height: 12px;
  transform: rotate(135deg);
  width: 12px;
}

.psychologist-page-views__nav-button--next::before {
  transform: rotate(-45deg);
}

.psychologist-page-views__nav-button.is-disabled {
  cursor: default;
  opacity: 0.35;
  pointer-events: none;
}

.psychologist-page-views.is-loading {
  opacity: 0.72;
  pointer-events: none;
}

.psychologist-page-views__range {
  align-items: center;
  align-self: stretch;
  border-left: 1px solid #d7d7d7;
  border-right: 1px solid #d7d7d7;
  color: #000;
  display: flex;
  font-size: 18px;
  font-weight: 500;
  justify-content: center;
  line-height: 1;
}

.psychologist-page-views__metrics {
  align-items: center;
  display: flex;
  gap: 24px;
  margin-top: 28px;
}

.psychologist-page-views__metric {
  align-items: center;
  border-radius: 999px;
  color: #008ff5;
  display: inline-flex;
  flex-wrap: wrap;
  font-size: 20px;
  gap: 10px;
  line-height: 1.2;
  max-width: 100%;
  padding: 14px 28px;
}

.psychologist-page-views__metric.is-active {
  background: #f4f4f4;
  color: #000;
  font-weight: 800;
}

.psychologist-page-views__metric b {
  color: #858585;
  font-weight: 500;
}

.psychologist-page-views__chart {
  column-gap: 18px;
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  margin-top: 34px;
  min-height: 330px;
  position: relative;
}

.psychologist-page-views__axis-title {
  color: #000;
  font-size: 20px;
  font-weight: 800;
  left: -4px;
  line-height: 1;
  position: absolute;
  top: calc(50% - 20px);
  transform: rotate(-90deg) translateX(-50%);
  transform-origin: left top;
}

.psychologist-page-views__axis {
  color: #6f7378;
  display: flex;
  flex-direction: column;
  font-size: 18px;
  font-weight: 500;
  justify-content: space-between;
  padding: 0 18px 42px 42px;
  text-align: right;
}

.psychologist-page-views__plot {
  display: grid;
  grid-template-columns: repeat(7, minmax(52px, 1fr));
  min-height: 330px;
  position: relative;
}

.psychologist-page-views__plot::before {
  background: repeating-linear-gradient(
    to bottom,
    #d9d9d9 0,
    #d9d9d9 1px,
    transparent 1px,
    transparent var(--axis-grid-step)
  );
  bottom: 42px;
  content: "";
  left: 0;
  position: absolute;
  right: 0;
  top: 0;
}

.psychologist-page-views__day {
  cursor: default;
  display: grid;
  grid-template-rows: minmax(0, 1fr) 42px;
  min-width: 0;
  position: relative;
  z-index: 1;
}

.psychologist-page-views__bar-area {
  align-items: flex-end;
  display: flex;
  justify-content: center;
  min-height: 0;
  padding: 0 10px;
}

.psychologist-page-views__bar {
  background: #9da247;
  border-radius: 6px 6px 0 0;
  height: var(--bar-height);
  max-width: 68px;
  min-height: 0;
  width: 64%;
}

.psychologist-page-views__day.is-zero .psychologist-page-views__bar {
  border-radius: 999px;
  height: 4px;
  min-height: 4px;
}

.psychologist-page-views__day:hover .psychologist-page-views__bar {
  background: #868b32;
}

.psychologist-page-views__day.is-future .psychologist-page-views__bar {
  background: #d8dbc2;
}

.psychologist-page-views__day.is-future:hover .psychologist-page-views__bar {
  background: #c4c8a3;
}

.psychologist-page-views__day-label {
  align-items: flex-end;
  color: #6f7378;
  display: flex;
  font-size: 18px;
  font-weight: 600;
  justify-content: center;
  line-height: 1;
  padding-top: 18px;
  text-align: center;
  white-space: nowrap;
}

.psychologist-page-views__day.is-future .psychologist-page-views__day-label {
  color: #bdbdbd;
}

@media (max-width: 768px) {
  .right_content.comissions .psychologist-page-views {
    padding: 24px 20px 28px;
  }

  .psychologist-page-views__header {
    align-items: flex-start;
    display: grid;
    gap: 18px;
    grid-template-columns: 1fr;
  }

  .psychologist-page-views__title {
    font-size: 28px;
  }

  .psychologist-page-views__nav {
    justify-self: start;
  }

  .psychologist-page-views__chart {
    grid-template-columns: 70px minmax(500px, 1fr);
    min-height: 280px;
    overflow-x: auto;
  }

  .psychologist-page-views__axis {
    font-size: 16px;
    padding-left: 30px;
  }

  .psychologist-page-views__plot {
    min-height: 280px;
  }
}

@media (max-width: 520px) {
  .right_content.comissions .psychologist-page-views {
    margin-top: 22px;
    padding: 22px 16px 24px;
  }

  .psychologist-page-views__title {
    font-size: 24px;
  }

  .psychologist-page-views__nav {
    grid-template-columns: 42px 136px 42px;
    min-height: 44px;
  }

  .psychologist-page-views__nav-button {
    height: 44px;
  }

  .psychologist-page-views__range,
  .psychologist-page-views__day-label,
  .psychologist-page-views__axis {
    font-size: 15px;
  }

  .psychologist-page-views__metric {
    font-size: 18px;
    padding: 12px 22px;
  }
}
