@charset "UTF-8";
/* Clients page – single block .clients-page */
.clients-page {
  height: 100vh;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background-color: #f9f9f9;
  /* Fixed header – always visible when scrolling */
}
.clients-page > .clients-list-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10;
  flex-shrink: 0;
  background-color: #f9f9f9;
}
.clients-page main {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 4px 16px 12px;
  padding-top: 88px;
  padding-bottom: 88px;
  background-color: #f9f9f9;
}
.clients-page main > p[data-state=loading] {
  padding: 12px;
  color: #666;
  margin: 0;
}
.clients-page main > p[data-state=error] {
  padding: 12px;
  color: #c00;
  margin: 0;
}
.clients-page footer {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 10;
  flex-shrink: 0;
  padding: 16px;
  border-top: 1px solid #eee;
  background-color: #f9f9f9;
}
.clients-page footer a,
.clients-page footer button {
  display: block;
  width: 100%;
  padding: 14px;
  background: #333436;
  color: #fff;
  text-align: center;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 500;
  border: none;
  font-size: inherit;
  cursor: pointer;
}

/* Clients list header – single block .clients-list-header */
.clients-list-header {
  padding: 0px;
}
.clients-list-header > div:first-child {
  background: #ffffff;
  border-radius: 12px;
  padding: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}
.clients-list-header > div:first-child > div:nth-child(2) {
  flex: 1;
  position: relative;
}
.clients-list-header > div:first-child > div:nth-child(2) > span {
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.clients-list-header a {
  display: flex;
  align-items: center;
}
.clients-list-header input {
  width: 100%;
  padding: 10px 10px 10px 36px;
  border-radius: 8px;
  border: 1px solid #ddd;
  font-size: 14px;
}
.clients-list-header button {
  background: none;
  border: none;
  padding: 8px;
  cursor: pointer;
}

.clients-list-header__count-row {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 6px;
  margin: 4px 0 0;
  padding: 0;
  min-width: 0;
  background-color: #f9f9f9;
}
.clients-list-header__count-row .clients-message-modal__close {
  position: static;
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  background: #e0e0e0;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: none;
  cursor: pointer;
  color: #333;
  margin-right: 20px;
}
.clients-list-header__count-row .clients-message-modal__close:hover {
  background: #d0d0d0;
}

.clients-list-header__count {
  margin-left: 20px;
  padding: 0;
  font-size: 9px;
  color: #666;
  flex-shrink: 0;
  white-space: nowrap;
}

/* Scrollable tags area – sits between count and X, hides scrollbar */
.clients-list-header__tags-scroll {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 6px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  flex: 1;
  min-width: 0;
  scrollbar-width: none;
  justify-content: flex-end;
}

.clients-list-header__tags-scroll::-webkit-scrollbar {
  display: none;
}

/* Client card – single block .client-card, only <p> and <h>, data-* for variants */
.client-card {
  background: #ffffff;
  border-radius: 12px;
  padding: 14px 16px;
  margin-bottom: 12px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}
.client-card h2 {
  margin: 0;
  font-weight: 700;
  font-size: 16px;
  color: #333;
}
.client-card > div:first-of-type {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
}
.client-card > div:first-of-type .client-level-1,
.client-card > div:first-of-type .client-level-2,
.client-card > div:first-of-type .client-level-3 {
  margin: 0;
  border-radius: 999px;
  padding: 2px 10px;
  font-size: 11px;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 0;
  position: relative;
  margin-right: 16px;
  line-height: 1.4;
}
.client-card > div:first-of-type .client-level-1 {
  background: #f0f1f3;
  color: #333;
}
.client-card > div:first-of-type .client-level-1::after {
  content: "";
  width: 14px;
  height: 14px;
  position: absolute;
  right: -16px;
  top: 50%;
  transform: translateY(-50%);
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23333' stroke-width='2'%3E%3Cpath d='M9 18l6-6-6-6'/%3E%3C/svg%3E") center/contain no-repeat;
}
.client-card > div:first-of-type .client-level-2 {
  background: #e5e5e5;
  color: #333;
}
.client-card > div:first-of-type .client-level-2::after {
  content: "";
  width: 14px;
  height: 14px;
  position: absolute;
  right: -16px;
  top: 50%;
  transform: translateY(-50%);
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23333' stroke-width='2'%3E%3Cpath d='M9 18l6-6-6-6'/%3E%3C/svg%3E") center/contain no-repeat;
}
.client-card > div:first-of-type .client-level-3 {
  background: #E0AA3E;
  color: #000;
}
.client-card > div:first-of-type .client-level-3::after {
  content: "";
  width: 14px;
  height: 14px;
  position: absolute;
  right: -16px;
  top: 50%;
  transform: translateY(-50%);
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2'%3E%3Cpath d='M9 18l6-6-6-6'/%3E%3C/svg%3E") center/contain no-repeat;
}
.client-card > div:nth-child(2) {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  min-height: 24px;
}
.client-card > div:nth-child(2) p {
  margin: 0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  color: #333;
}
.client-card > div:nth-child(2) p svg {
  flex-shrink: 0;
}
.client-card > div:nth-child(3) {
  display: flex;
  gap: 6px;
  flex-wrap: nowrap;
  margin-bottom: 0;
  align-items: center;
}
.client-card .reservation-badge-came,
.client-card .reservation-badge-no-show,
.client-card .reservation-badge-cancelled {
  margin: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  border-radius: 999px;
  padding: 2px 6px 2px 4px;
  font-size: 10px;
  font-weight: 500;
}
.client-card .reservation-badge-came::before {
  content: "";
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #28a745 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='8' height='8' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center/8px 8px no-repeat;
  display: inline-block;
  flex-shrink: 0;
}
.client-card .reservation-badge-came {
  background: #d4edda;
  color: #5d5d5d;
}
.client-card .reservation-badge-no-show::before {
  content: "";
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #dc3545 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='8' height='8' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cline x1='18' y1='6' x2='6' y2='18'/%3E%3Cline x1='6' y1='6' x2='18' y2='18'/%3E%3C/svg%3E") center/8px 8px no-repeat;
  display: inline-block;
  flex-shrink: 0;
}
.client-card .reservation-badge-no-show {
  background: #f8d7da;
  color: #5d5d5d;
}
.client-card .reservation-badge-cancelled::before {
  content: "";
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #6c757d url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='8' height='8' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='4' stroke-linecap='round'%3E%3Cline x1='6' y1='12' x2='18' y2='12'/%3E%3C/svg%3E") center/8px 8px no-repeat;
  display: inline-block;
  flex-shrink: 0;
}
.client-card .reservation-badge-cancelled {
  background: #e2e3e5;
  color: #5d5d5d;
}
.client-card > div:nth-child(4),
.client-card .client-card-note {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  font-size: 12px;
  color: #555;
  margin-top: 4px;
  background: #f5f5f5;
  border-radius: 8px;
  padding: 10px 12px;
}
.client-card > div:nth-child(4) p,
.client-card .client-card-note p {
  margin: 0;
  display: inline-flex;
  align-items: flex-start;
  gap: 6px;
  min-width: 0;
}
.client-card > div:nth-child(4) p svg,
.client-card .client-card-note p svg {
  flex-shrink: 0;
}
.client-card .client-card-note-text {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-width: 0;
}

.client-card-header-right {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.client-card-details-btn {
  background: none;
  border: none;
  padding: 4px;
  cursor: pointer;
  color: #333;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.client-card-details-btn:hover {
  color: #000;
}

/* Client list item – single block .client-list-item, only <p> and <h>, data-* for variants */
.client-list-item h2 {
  margin: 0;
}
.client-list-item p[data-tier] {
  margin: 0 0 0 8px;
  background: #E0AA3E;
  color: #000;
  border-radius: 4px;
  padding: 2px 8px;
  font-size: 12px;
  display: inline-block;
}
.client-list-item p[data-badge] {
  margin: 0;
  border-radius: 4px;
  padding: 2px 8px;
  font-size: 12px;
  color: #fff;
  display: inline-block;
}
.client-list-item p[data-badge=came] {
  background: #28a745;
}
.client-list-item p[data-badge=no_show] {
  background: #dc3545;
}
.client-list-item p[data-badge=cancelled] {
  background: #6c757d;
}
.client-list-item p[data-tier] + div {
  margin-top: 4px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.client-list-item p[data-note] {
  margin-top: 4px;
  font-size: 12px;
  color: #555;
}

/* Clients message page – single block .clients-message-page */
.clients-message-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background-color: #fff;
  padding: 16px;
}
.clients-message-page a {
  display: block;
  width: 100%;
  padding: 14px;
  background: #333436;
  color: #fff;
  text-align: center;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 500;
  border: none;
  font-size: inherit;
  cursor: pointer;
}

.clients-message-page__trigger {
  display: block;
  width: 100%;
  padding: 14px;
  background: #333436;
  color: #fff;
  text-align: center;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 500;
  border: none;
  font-size: inherit;
  cursor: pointer;
}

/* Clients message modal – same UI as design: white box, title, red warning, close button */
.clients-message-modal {
  position: relative;
  text-align: center;
  padding-top: 8px;
}

.clients-message-modal__close {
  position: absolute;
  top: -12px;
  right: -12px;
  width: 28px;
  height: 28px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.clients-message-modal__close:hover {
  background: rgba(0, 0, 0, 0.06);
}

.clients-message-modal__title {
  margin: 0 0 16px;
  font-size: 20px;
  font-weight: 700;
  color: #4e4e4e;
  line-height: 1.35;
}

.clients-message-modal__warning {
  margin: 0 0 24px;
  font-size: 14px;
  color: #c00;
  line-height: 1.4;
  font-weight: bold;
}

.clients-message-modal__btn {
  display: block;
  width: auto;
  min-width: 265px;
  margin-left: auto;
  margin-right: auto;
  padding: 4px 10px;
  background: #333436;
  color: #fff;
  font-size: 16px;
  font-weight: bold;
  border: none;
  border-radius: 10px;
  cursor: pointer;
}

.clients-message-modal__btn:hover {
  background: #444648;
}

/* Clients filter page – .clients-filter-page */
.clients-filter-page {
  height: 100vh;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background-color: #f9f9f9;
  /* Fixed header – always visible when scrolling */
}
.clients-filter-page > .clients-filter-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10;
  flex-shrink: 0;
  background-color: #f9f9f9;
}
.clients-filter-page .clients-filter-page__main {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 12px 16px;
  padding-top: 72px; /* space for fixed header */
  padding-bottom: 76px; /* space for fixed footer */
  background-color: #f9f9f9;
}
.clients-filter-page footer {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 10;
  flex-shrink: 0;
  padding: 16px;
  border-top: 1px solid #eee;
  background-color: #f9f9f9;
}
.clients-filter-page footer button {
  display: block;
  width: 100%;
  padding: 14px;
  background: #333436;
  color: #fff;
  text-align: center;
  border-radius: 8px;
  border: none;
  font-weight: 500;
  font-size: inherit;
  cursor: pointer;
}
.clients-filter-page footer button:hover {
  background: #444648;
}

/* Clients filter header – single block .clients-filter-header */
.clients-filter-header {
  padding: 12px;
}
.clients-filter-header > div {
  background: #ffffff;
  border-radius: 12px;
  padding: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}
.clients-filter-header > div > div {
  flex: 1;
  text-align: center;
  font-weight: 600;
  font-size: 16px;
  color: #333436;
}
.clients-filter-header > div > span {
  color: #c00;
  font-size: 14px;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
}
.clients-filter-header a {
  display: flex;
  align-items: center;
}

.clients-filter-header__clear-btn {
  color: #c00;
  font-size: 14px;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
}

.clients-filter-header__clear-btn:hover {
  text-decoration: underline;
}

/* Clients filter visits block */
.clients-filter-visits-block {
  background: #ffffff;
  border-radius: 12px;
  padding: 14px 16px;
  margin-bottom: 12px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}
.clients-filter-visits-block > div:first-of-type {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 16px;
  color: #333;
  margin-bottom: 10px;
}
.clients-filter-visits-block > div:first-of-type svg {
  flex-shrink: 0;
}
.clients-filter-visits-block > div:last-of-type {
  display: flex;
  gap: 8px;
  align-items: center;
}
.clients-filter-visits-block input {
  flex: 1;
  min-width: 0;
  box-sizing: border-box;
  padding: 10px;
  border-radius: 8px;
  border: 1px solid #ddd;
  font-size: 14px;
}

/* Clients filter dossier block */
.clients-filter-dossier-block {
  background: #ffffff;
  border-radius: 12px;
  padding: 14px 16px;
  margin-bottom: 12px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}
.clients-filter-dossier-block > div:first-of-type {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 16px;
  color: #333;
  margin-bottom: 10px;
}
.clients-filter-dossier-block > div:first-of-type svg {
  flex-shrink: 0;
}
.clients-filter-dossier-block > div:last-of-type {
  display: flex;
  gap: 0px;
  align-items: center;
  flex-wrap: nowrap;
}
.clients-filter-dossier-block button {
  border: none;
  border-radius: 0;
  padding: 6px 10px;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
  flex: 1;
  text-align: center;
}
.clients-filter-dossier-block button:first-child {
  border-radius: 8px 0 0 8px;
}
.clients-filter-dossier-block button:last-child {
  border-radius: 0 8px 8px 0;
}
.clients-filter-dossier-block button[data-selected=true] {
  box-shadow: 0 0 0 2px #333436;
  position: relative;
  z-index: 1;
}
.clients-filter-dossier-block .reservation-state-normal,
.clients-filter-dossier-block .client-level-1 {
  background: #f0f1f3;
  color: #333;
}
.clients-filter-dossier-block .reservation-state-silver,
.clients-filter-dossier-block .client-level-2 {
  background: #e5e5e5;
  color: #333;
}
.clients-filter-dossier-block .reservation-state-gold,
.clients-filter-dossier-block .client-level-3 {
  background: #E0AA3E;
  color: #000;
}

/* Clients filter tags – active filters below header */
.clients-filter-tags {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  padding: 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.clients-filter-tags__tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
  border-radius: 4px;
  background: #eee;
  color: #333;
  font-size: 10px;
  font-weight: 500;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06);
}
.clients-filter-tags__tag svg {
  flex-shrink: 0;
  stroke: #333;
}

/* Dossier/level tag colors – match client card levels */
.clients-filter-tags__tag--level-1 {
  background: #f0f1f3;
  color: #333;
  border-color: #e0e1e3;
}

.clients-filter-tags__tag--level-2 {
  background: #e5e5e5;
  color: #333;
  border-color: #d5d5d5;
}

.clients-filter-tags__tag--level-3 {
  background: #E0AA3E;
  color: #0c0c0c;
  border-color: #c9942e;
}
.clients-filter-tags__tag--level-3 .clients-filter-tags__tag-close {
  color: #0c0c0c;
}
.clients-filter-tags__tag--level-3 .clients-filter-tags__tag-close svg {
  stroke: #0c0c0c;
}

.clients-filter-tags__tag-value {
  white-space: nowrap;
}

.clients-filter-tags__tag-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  margin: 0;
  margin-left: 2px;
  width: 16px;
  height: 16px;
  min-width: 16px;
  min-height: 16px;
  border: none;
  background: transparent;
  color: #333;
  cursor: pointer;
  border-radius: 50%;
}

.clients-filter-tags__tag-close:hover {
  background: rgba(0, 0, 0, 0.06);
}

.clients-filter-tags__tag-close svg {
  width: 10px;
  height: 10px;
}

.clients-filter-tags__clear {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 3px 6px;
  border: none;
  border-radius: 4px;
  background: #e8e8e8;
  cursor: pointer;
  color: #333;
}

.clients-filter-tags__clear:hover {
  background: #d0d0d0;
}

/* Client details page */
.client-details-page {
  height: 100vh;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background-color: #f9f9f9;
}

.client-details-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10;
  flex-shrink: 0;
  background-color: #f9f9f9;
  padding: 0;
}
.client-details-header > div {
  position: relative;
  background: #ffffff;
  border-radius: 12px;
  padding: 12px;
  display: flex;
  align-items: center;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}
.client-details-header a {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}
.client-details-header h1 {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  color: #333;
  text-align: center;
  pointer-events: none;
}

.client-details-main {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 16px;
  padding-top: 64px; /* space for fixed header */
}

/* Client details body – separate input cards */
.client-details-body {
  display: flex;
  flex-direction: column;
  gap: 12px;
  position: relative;
  padding-bottom: 80px;
}
.client-details-body::after {
  content: "";
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 62px;
  background-color: #f9f9f9;
  border-top: 1px solid #eee;
  z-index: 9;
  pointer-events: none;
}
.client-details-body > div {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0px 7px;
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}
.client-details-body > div > svg:first-child {
  flex-shrink: 0;
}
.client-details-body input {
  flex: 1;
  min-width: 0;
  padding: 8px 0;
  border: none;
  font-size: 16px;
  color: #6d6d6d;
  background: transparent;
}
.client-details-body input::placeholder {
  color: #999;
}
.client-details-body input:focus {
  outline: none;
}
.client-details-body button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  padding: 0;
  border: none;
  background: transparent;
  color: #666;
  cursor: pointer;
  flex-shrink: 0;
}
.client-details-body button:hover {
  color: #333;
}
.client-details-body {
  /* Rating block: column layout, no white background */
}
.client-details-body > div:nth-child(3) {
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  background: transparent;
  box-shadow: none;
}
.client-details-body > div:nth-child(3) h2 {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  color: #333;
}
.client-details-body {
  /* Same Swiper structure as NotesModal – circles */
}
.client-details-body .swiper_numbers {
  width: 250px;
  margin-left: 10px;
}
.client-details-body .swiper_numbers .swiper-wrapper {
  display: flex;
  justify-content: flex-start;
}
.client-details-body .swiper_numbers .swiper-slide {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(0, 0, 0, 0.15);
  text-align: center;
  padding: 0;
  border-radius: 50%;
  background: transparent;
  color: #333;
}
.client-details-body .swiper_numbers .swiper-slide-active {
  background: #1f1f1f;
  color: #fff;
  border-color: #1f1f1f;
}
.client-details-body {
  /* Rating buttons – clickable 1–5 circles */
}
.client-details-body .client-details-rating-buttons {
  display: flex;
  gap: 5px;
  justify-content: flex-start;
  margin-left: 10px;
}
.client-details-body .client-details-rating-btn {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(0, 0, 0, 0.15);
  text-align: center;
  padding: 0;
  border-radius: 50%;
  background: transparent;
  color: #333;
  font-size: inherit;
  cursor: pointer;
}
.client-details-body .client-details-rating-btn[data-selected=true] {
  background: #1f1f1f;
  color: #fff;
  border-color: #1f1f1f;
}
.client-details-body {
  /* Points block: star + value, then input */
}
.client-details-body > div:nth-child(4) {
  flex-direction: column;
  align-items: stretch;
  gap: 10px;
  padding: 10px 8px;
}
.client-details-body > div:nth-child(4) p {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 16px;
  color: #333;
}
.client-details-body > div:nth-child(4) p svg {
  flex-shrink: 0;
}
.client-details-body > div:nth-child(4) input {
  padding: 2px 12px;
  border-radius: 15px;
  background: #f5f5f5;
  border: 1px solid rgba(0, 0, 0, 0.08);
  margin-bottom: 10px;
}
.client-details-body .client-details-points-label {
  font-weight: 700;
}
.client-details-body .client-details-points-input {
  text-align: center;
  padding: 2px 12px;
  border-radius: 15px;
  background: #f5f5f5;
  border: 1px solid rgba(0, 0, 0, 0.08);
  margin-bottom: 10px;
}
.client-details-body {
  /* Посещения block: 2x2 grid, same badge classNames as ClientCard */
}
.client-details-body > div:nth-child(5) {
  flex-direction: column;
  align-items: stretch;
  gap: 10px;
  padding: 10px 8px;
}
.client-details-body > div:nth-child(5) h2 {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  color: #333;
}
.client-details-body > div:nth-child(5) > div {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.client-details-body .reservation-badge-came,
.client-details-body .reservation-badge-no-show,
.client-details-body .reservation-badge-cancelled,
.client-details-body .reservation-badge-total {
  margin: 0;
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  gap: 4px;
  border-radius: 999px;
  padding: 3px 8px 3px 4px;
  font-size: 10px;
  width: 100%;
  box-sizing: border-box;
}
.client-details-body .reservation-badge-value {
  margin-left: auto;
}
.client-details-body .reservation-badge-came::before {
  content: "";
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #28a745 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='8' height='8' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center/8px 8px no-repeat;
  display: inline-block;
  flex-shrink: 0;
}
.client-details-body .reservation-badge-came {
  background: #d4edda;
  color: #333;
  font-size: 12px;
}
.client-details-body .reservation-badge-no-show::before {
  content: "";
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #dc3545 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='8' height='8' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cline x1='18' y1='6' x2='6' y2='18'/%3E%3Cline x1='6' y1='6' x2='18' y2='18'/%3E%3C/svg%3E") center/8px 8px no-repeat;
  display: inline-block;
  flex-shrink: 0;
}
.client-details-body .reservation-badge-no-show {
  background: #f8d7da;
  color: #333;
  font-size: 11px;
}
.client-details-body .reservation-badge-cancelled::before {
  content: "";
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #6c757d url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='8' height='8' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='4' stroke-linecap='round'%3E%3Cline x1='6' y1='12' x2='18' y2='12'/%3E%3C/svg%3E") center/8px 8px no-repeat;
  display: inline-block;
  flex-shrink: 0;
}
.client-details-body .reservation-badge-cancelled {
  background: #e2e3e5;
  color: #333;
  font-size: 11px;
}
.client-details-body .reservation-badge-total::before {
  content: "";
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #6c757d url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='8' height='8' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round'%3E%3Crect x='3' y='4' width='18' height='18' rx='2' ry='2'/%3E%3Cline x1='16' y1='2' x2='16' y2='6'/%3E%3Cline x1='8' y1='2' x2='8' y2='6'/%3E%3Cline x1='3' y1='10' x2='21' y2='10'/%3E%3C/svg%3E") center/8px 8px no-repeat;
  display: inline-block;
  flex-shrink: 0;
}
.client-details-body .reservation-badge-total {
  background: #e2e3e5;
  color: #333;
  font-size: 11px;
}
.client-details-body {
  /* Textarea for client note */
}
.client-details-body > textarea {
  padding: 12px 14px;
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
  border: none;
  font-size: 15px;
  color: #333;
  resize: none;
  min-height: 140px;
  font-family: inherit;
}
.client-details-body > textarea::placeholder {
  color: #999;
}
.client-details-body > textarea:focus {
  outline: none;
}
.client-details-body {
  /* Запази button – full-width dark pill */
}
.client-details-body > button[type=button]:last-of-type {
  display: block;
  width: 100%;
  padding: 9px;
  background: #333436;
  color: #fff;
  text-align: center;
  border-radius: 8px;
  border: none;
  font-weight: 500;
  font-size: inherit;
  cursor: pointer;
  height: auto !important;
  flex-shrink: 0;
  margin-top: 20px;
}
.client-details-body > button[type=button]:last-of-type:hover {
  background: #444648;
}

/* Досие block inside client-details-body – column layout override */
.client-details-dossier-block {
  flex-direction: column !important;
  align-items: stretch !important;
  gap: 0 !important;
  padding: 14px 16px !important;
}
.client-details-dossier-block > div:first-of-type {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 16px;
  color: #333;
  margin-bottom: 10px;
}
.client-details-dossier-block > div:first-of-type svg {
  flex-shrink: 0;
}
.client-details-dossier-block > div:last-of-type {
  display: flex;
  gap: 0;
  align-items: center;
  flex-wrap: nowrap;
}
.client-details-dossier-block > div:last-of-type button {
  min-height: 0;
  padding: 4px 10px;
  font-size: 14px;
  line-height: 1.3;
}
.client-details-dossier-block button {
  border: none;
  border-radius: 0;
  padding: 6px 10px;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
  width: auto !important;
  height: auto !important;
  background: transparent;
  flex: 1;
  text-align: center;
}
.client-details-dossier-block button:first-child {
  border-radius: 8px 0 0 8px;
}
.client-details-dossier-block button:last-child {
  border-radius: 0 8px 8px 0;
}
.client-details-dossier-block button[data-selected=true] {
  box-shadow: 0 0 0 2px #333436;
  position: relative;
  z-index: 1;
}
.client-details-dossier-block .client-level-1,
.client-details-dossier-block .reservation-state-normal {
  background: #f0f1f3;
  color: #333;
}
.client-details-dossier-block .client-level-2,
.client-details-dossier-block .reservation-state-silver {
  background: #e5e5e5;
  color: #333;
}
.client-details-dossier-block .client-level-3,
.client-details-dossier-block .reservation-state-gold {
  background: #E0AA3E;
  color: #000;
}

/* Success/error message above Save button */
.client-details-save-message {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 54px;
  text-align: center;
  font-size: 14px;
  font-weight: 500;
}

.client-details-save-message--success {
  color: #155724;
}

.client-details-save-message--error {
  color: #721c24;
}

/* Save button sticks to bottom (details page) – matches filter page footer */
.client-details-save-btn {
  position: fixed;
  bottom: 10px;
  left: 16px;
  right: 16px;
  z-index: 10;
  margin: 0 !important;
  border-radius: 8px !important;
  width: auto !important;
}

/*# sourceMappingURL=clients.css.map */
