/* PBWASH Address Book compact Apple-like page.
   This page file is loaded after legacy styles to quarantine address-book rules
   and stop staff-polish.css from being the final source of truth. */

.app-shell .main .crm-address-page {
  display: block;
  width: 100%;
  min-height: auto;
  margin: 0;
  background: var(--pb-color-bg-app, #f6f8fc);
  color: var(--pb-color-text, #111827);
}

/* Match the archive selector to the adjacent compact title action. */
.app-shell .main .crm-address-page .crm-page-title .crm-title-actions .crm-bulk-toggle-btn {
  width: var(--pb-control-height, 34px) !important;
  min-width: var(--pb-control-height, 34px) !important;
  max-width: var(--pb-control-height, 34px) !important;
  height: var(--pb-control-height, 34px) !important;
  min-height: var(--pb-control-height, 34px) !important;
  max-height: var(--pb-control-height, 34px) !important;
  overflow: hidden;
}

.app-shell .main:has(.crm-address-page) {
  padding-top: 14px;
}

.app-shell .main:has(.crm-address-page) .topline {
  display: none;
  margin: 0;
}

.app-shell .main .crm-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: nowrap;
  gap: 14px;
  width: 100%;
  min-height: 56px;
  height: 56px;
  padding: 10px 22px;
  border: 0;
  border-bottom: 1px solid var(--pb-color-border-subtle, #e6edf6);
  border-radius: 0;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: none;
  overflow: visible;
  backdrop-filter: blur(16px);
}

.app-shell .main .crm-brand {
  display: inline-flex;
  align-items: center;
  min-width: 0;
  gap: 10px;
  color: var(--pb-color-text, #111827);
  font-size: 14px;
  font-weight: 600;
  line-height: 20px;
}

.app-shell .main .crm-brand-mark {
  display: inline-grid;
  place-items: center;
  width: 32px;
  min-width: 32px;
  height: 32px;
  border-radius: 10px;
  background: var(--pb-color-accent-soft, #eef4ff);
  color: var(--pb-color-accent, #2f6bff);
  font-size: 12px;
  font-weight: 700;
  box-shadow: none;
}

.app-shell .main .crm-divider {
  width: 1px;
  height: 22px;
  background: var(--pb-color-border-subtle, #e6edf6);
}

.app-shell .main .crm-tab.active {
  position: relative;
  color: var(--pb-color-text, #111827);
  font-weight: 650;
}

.app-shell .main .crm-tab.active::after {
  bottom: -18px;
  height: 2px;
  border-radius: 999px;
  background: var(--pb-color-accent, #2f6bff);
}

.app-shell .main .crm-top-actions {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  flex: 0 0 auto;
  gap: 8px;
}

.app-shell .main .crm-add-client-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: auto;
  min-width: 0;
  min-height: var(--pb-control-height, 34px);
  height: var(--pb-control-height, 34px);
  padding: 6px 12px;
  border: 1px solid var(--pb-color-border, #dde5f0);
  border-radius: var(--pb-radius-md, 12px);
  background: var(--pb-color-bg-elevated, #fff);
  color: var(--pb-color-text, #111827);
  font-size: 13px;
  font-weight: 600;
  line-height: 18px;
  box-shadow: none;
}

.app-shell .main .crm-add-client-btn:hover {
  border-color: var(--pb-color-border-hover, #c8d4e3);
  background: var(--pb-color-bg-hover, #f7faff);
}

.app-shell .main .crm-user-chip {
  display: inline-grid;
  place-items: center;
  width: 32px;
  min-width: 32px;
  height: 32px;
  border: 1px solid var(--pb-color-border, #dde5f0);
  border-radius: 999px;
  background: var(--pb-color-bg-elevated, #fff);
  color: var(--pb-color-text-muted, #64748b);
  font-size: 12px;
  font-weight: 650;
}

.app-shell .main .crm-address-content {
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: none;
  height: auto;
  min-height: auto;
  margin: 0;
  padding: 8px 22px 24px;
  gap: 10px;
}

.app-shell .main .crm-page-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: auto;
  min-height: 0;
  margin: 0;
  padding: 0;
}

.app-shell .main .crm-page-title h1 {
  display: inline-flex;
  align-items: flex-end;
  gap: 10px;
  margin: 0;
  color: var(--pb-color-text-strong, #0f172a);
  font-size: 22px;
  font-weight: 650;
  line-height: 28px;
  letter-spacing: -0.02em;
}

.app-shell .main .crm-page-title h1 span {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 3px 8px;
  border-radius: 999px;
  background: var(--pb-color-bg-soft, #f8fafd);
  color: var(--pb-color-text-muted, #64748b);
  font-size: 12px;
  font-weight: 600;
  line-height: 16px;
  letter-spacing: 0;
}

.app-shell .main .crm-title-actions {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  flex: 0 0 auto;
  gap: 8px;
  min-width: 0;
}

.app-shell .main .crm-mobile-controls {
  display: none;
}

.app-shell .main .crm-title-actions .crm-bulk-toggle-btn {
  color: var(--pb-color-text-muted, #64748b);
}

.app-shell .main .crm-title-actions .crm-bulk-toggle-btn.active {
  color: #ef4444;
  border-color: rgba(239, 68, 68, 0.22);
  background: rgba(254, 242, 242, 0.9);
}

.app-shell .main .crm-title-actions .crm-bulk-del-btn {
  display: inline-grid;
  place-items: center;
  width: var(--pb-control-height, 34px);
  min-width: var(--pb-control-height, 34px);
  height: var(--pb-control-height, 34px);
  min-height: var(--pb-control-height, 34px);
  padding: 0;
  border: 1px solid rgba(239, 68, 68, 0.24);
  border-radius: var(--pb-radius-md, 12px);
  background: rgba(254, 242, 242, 0.94);
  color: #dc2626;
  font-size: 11px;
  font-weight: 750;
  line-height: 14px;
  letter-spacing: 0;
  box-shadow: none;
}

.app-shell .main .crm-title-actions .crm-bulk-del-btn .action-svg {
  width: 15px;
  height: 15px;
  stroke: currentColor;
}

.app-shell .main .crm-title-actions .crm-bulk-del-btn:hover {
  border-color: rgba(239, 68, 68, 0.36);
  background: rgba(254, 226, 226, 0.96);
}

.app-shell .main .crm-title-actions .notification-bell,
.app-shell .main .crm-title-actions .connection-indicator {
  width: 34px;
  min-width: 34px;
  height: 34px;
  min-height: 34px;
  box-shadow: none;
}

.app-shell .main .crm-title-actions .notification-bell svg {
  width: 17px;
  height: 17px;
}

.app-shell .main .crm-filter-row {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) 132px minmax(150px, 170px) 40px;
  align-items: center;
  gap: 8px;
  width: 100%;
  margin: 0;
  padding: 0;
}

.app-shell .main .crm-filter-row > *,
.app-shell .main .crm-filter-row > label,
.app-shell .main .crm-filter-row > div,
.app-shell .main .crm-filter-row > button {
  align-self: center;
  margin: 0;
}

.app-shell .main .crm-search-box {
  position: relative;
  display: flex;
  align-items: center;
  min-width: 0;
  width: 100%;
  min-height: 40px;
  height: 40px;
  padding: 0 12px 0 34px;
  border: 1px solid var(--pb-color-border, #dde5f0);
  border-radius: var(--pb-radius-md, 12px);
  background: var(--pb-color-bg-control, rgba(255, 255, 255, 0.94));
  box-shadow: none;
}

.app-shell .main .crm-search-box:focus-within {
  outline: 0;
  border-color: rgba(141, 158, 179, 0.38);
  background: #fff;
  box-shadow:
    0 0 0 2px rgba(47, 107, 255, 0.045),
    0 6px 18px rgba(15, 23, 42, 0.055);
}

.app-shell .main .crm-search-box input {
  width: 100%;
  min-width: 0;
  height: 38px;
  min-height: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--pb-color-text, #111827);
  font-size: 13px;
  font-weight: 500;
  line-height: 18px;
  box-shadow: none;
}

.app-shell .main .crm-search-box input:focus,
.app-shell .main .crm-search-box input:focus-visible {
  outline: 0;
  box-shadow: none;
}

.app-shell .main .crm-search-box input::placeholder {
  color: var(--pb-color-placeholder, #94a3b8);
  font-weight: 500;
}

.app-shell .main .crm-search-box > span {
  position: absolute;
  left: 11px;
  top: 50%;
  display: grid;
  place-items: center;
  width: 16px;
  height: 16px;
  transform: translateY(-50%);
  color: var(--pb-color-text-tertiary, #8792a6);
}

.app-shell .main .crm-search-box .action-svg {
  width: 16px;
  height: 16px;
}

.app-shell .main .crm-status-filters {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: center;
  justify-content: stretch;
  width: 132px;
  min-width: 132px;
  gap: 3px;
  min-height: 40px;
  height: 40px;
  padding: 3px;
  border: 1px solid var(--pb-color-border, #dde5f0);
  border-radius: var(--pb-radius-md, 12px);
  background: rgba(255, 255, 255, 0.72);
  box-shadow: none;
  overflow: hidden;
}

.app-shell .main .crm-status-filters button,
.app-shell .main .crm-filter-btn,
.app-shell .main .crm-sort-select select,
.app-shell .main .crm-page-size select {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  min-height: 32px;
  height: 32px;
  padding: 0 10px;
  border: 1px solid transparent;
  border-radius: 9px;
  background: transparent;
  color: var(--pb-color-text-muted, #64748b);
  font-size: 12px;
  font-weight: 600;
  line-height: 16px;
  box-shadow: none;
}

.app-shell .main .crm-status-filters button {
  flex: 1 1 0;
  width: auto;
  padding: 0 8px;
  white-space: nowrap;
}

.app-shell .main .crm-filter-btn,
.app-shell .main .crm-sort-select select,
.app-shell .main .crm-page-size select {
  height: 40px;
  min-height: 40px;
  border-color: var(--pb-color-border, #dde5f0);
  border-radius: var(--pb-radius-md, 12px);
  background: var(--pb-color-bg-control, rgba(255, 255, 255, 0.94));
  color: var(--pb-color-text, #111827);
}

.app-shell .main .crm-status-filters button:hover,
.app-shell .main .crm-filter-btn:hover,
.app-shell .main .crm-sort-select select:hover,
.app-shell .main .crm-page-size select:hover {
  border-color: var(--pb-color-border-hover, #c8d4e3);
  background: var(--pb-color-bg-hover, #f7faff);
}

.app-shell .main .crm-status-filters button.active {
  border-color: rgba(47, 107, 255, 0.18);
  background: var(--pb-color-accent-soft, #eef4ff);
  color: var(--pb-color-accent, #2f6bff);
}

.app-shell .main .crm-filter-btn {
  width: 144px;
  justify-content: space-between;
  white-space: nowrap;
}

.app-shell .main .crm-filter-btn .action-svg {
  width: 15px;
  height: 15px;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.app-shell .main .crm-sort-select {
  display: block;
  min-width: 150px;
  width: 100%;
}

.app-shell .main .crm-sort-select select {
  width: 100%;
  padding: 0 34px 0 14px;
  appearance: none;
  -webkit-appearance: none;
  background-color: var(--pb-control-bg, #fff);
  background-image: linear-gradient(45deg, transparent 50%, currentColor 50%), linear-gradient(135deg, currentColor 50%, transparent 50%);
  background-position: calc(100% - 18px) 50%, calc(100% - 13px) 50%;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
}

.app-shell .main .crm-page-size select {
  min-width: 154px;
  padding: 0 34px 0 14px;
  appearance: none;
  -webkit-appearance: none;
  text-align: left;
  background-color: var(--pb-control-bg, #fff);
  background-image: linear-gradient(45deg, transparent 50%, currentColor 50%), linear-gradient(135deg, currentColor 50%, transparent 50%);
  background-position: calc(100% - 18px) 50%, calc(100% - 13px) 50%;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
}

.app-shell .main .crm-sort-dir-btn {
  display: inline-grid;
  place-items: center;
  align-content: center;
  justify-content: center;
  width: 40px;
  min-width: 40px;
  max-width: 40px;
  height: 40px;
  min-height: 40px;
  padding: 0;
  text-align: center;
  font-size: 13px;
  line-height: 1;
}

.app-shell .main .crm-client-list {
  display: grid;
  gap: 6px;
  width: 100%;
}

.app-shell .main .crm-client-card {
  position: relative;
  width: 100%;
  min-width: 0;
  border: 1px solid var(--pb-color-border, #dde5f0);
  border-radius: var(--pb-radius-xl, 16px);
  background: var(--pb-color-bg-elevated, #fff);
  box-shadow: none;
  overflow: hidden;
}

.app-shell .main .crm-client-card:hover {
  border-color: var(--pb-color-border-hover, #c8d4e3);
}

.app-shell .main .crm-client-card.expanded {
  border-color: rgba(47, 107, 255, 0.22);
  box-shadow: var(--pb-shadow-card, 0 8px 24px rgba(15, 23, 42, 0.045));
}

.app-shell .main .crm-client-card .client-directory-row,
.app-shell .main .crm-client-card.expanded .client-directory-row {
  display: grid;
  grid-template-columns: 44px 32px minmax(170px, 1fr) minmax(150px, auto) auto auto;
  align-items: center;
  gap: 8px;
  width: 100%;
  min-height: 54px;
  height: auto;
  padding: 7px 16px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--pb-color-text, #111827);
  box-shadow: none;
  cursor: pointer;
}

.app-shell .main .crm-client-card .client-directory-row:hover {
  background: var(--pb-color-bg-hover, #f7faff);
}

.app-shell .main .crm-client-index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: stretch;
  min-width: 0;
  padding-right: 10px;
  border-right: 1px solid var(--pb-color-border-subtle, #e6edf6);
  color: var(--pb-color-text-muted, #64748b);
  font-size: 14px;
  font-weight: 650;
  line-height: 18px;
  white-space: nowrap;
}

.app-shell .main .crm-client-card .crm-avatar,
.app-shell .main .crm-expanded-person .crm-avatar {
  position: relative;
  display: grid;
  place-items: center;
  width: 34px;
  min-width: 34px;
  height: 34px;
  border-radius: 999px;
  background: linear-gradient(145deg, #f2edff, #eef4ff);
  color: #6653d9;
  font-size: 13px;
  font-weight: 650;
  line-height: 1;
  box-shadow: none;
}

.app-shell .main .crm-client-mobile-avatar {
  display: none;
}

.app-shell .main .crm-client-card .crm-client-status-avatar {
  position: relative;
  display: grid;
  place-items: center;
  justify-self: center;
  width: 24px;
  min-width: 24px;
  height: 24px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #2f6bff;
  box-shadow: none;
}

.app-shell .main .crm-client-card .crm-client-status-avatar.active {
  color: #22a354;
}

.app-shell .main .crm-client-card .crm-client-status-avatar.vip {
  color: #7c52e0;
}

.app-shell .main .crm-client-card .crm-client-status-avatar.blocked {
  color: #dc2626;
}

.app-shell .main .crm-client-card .crm-client-status-avatar.duplicate {
  color: #ea580c;
}

.app-shell .main .crm-client-card .crm-client-status-avatar.archived {
  color: #6b7280;
}

.app-shell .main .crm-client-card .crm-client-status-avatar .status-avatar-svg {
  width: 21px;
  height: 21px;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.app-shell .main .crm-address-page .crm-client-card .client-directory-row > .crm-avatar {
  justify-self: center;
}

.app-shell .main .crm-address-page .crm-client-card .client-directory-row > .crm-client-status-avatar::after,
.app-shell .main .crm-address-page .crm-client-card .client-directory-row > .crm-avatar::after {
  content: "";
  position: absolute;
  top: 50%;
  right: -8px;
  width: 1px;
  height: 30px;
  background: var(--pb-color-border-subtle, #e6edf6);
  transform: translateY(-50%);
}

.app-shell .main .crm-avatar i {
  position: absolute;
  right: 0;
  bottom: 2px;
  width: 8px;
  height: 8px;
  border: 2px solid #fff;
  border-radius: 999px;
  background: var(--pb-color-success, #238b45);
}

.app-shell .main .crm-avatar.muted {
  background: #eef2f7;
  color: var(--pb-color-text-tertiary, #8792a6);
}

.app-shell .main .crm-avatar.muted i {
  background: #9aa5b5;
}

.app-shell .main .crm-address-page .crm-client-identity {
  position: relative;
  min-width: 0;
  align-self: center;
  padding-left: 8px;
  padding-right: 16px;
}

.app-shell .main .crm-address-page .crm-client-identity::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 0;
  width: 1px;
  height: 30px;
  background: var(--pb-color-border-subtle, #e6edf6);
  transform: translateY(-50%);
}

.app-shell .main .crm-address-page .crm-client-identity small {
  display: none;
}

.app-shell .main .crm-client-identity strong {
  display: block;
  overflow: hidden;
  color: var(--pb-color-text-strong, #0f172a);
  font-size: 14px;
  font-weight: 650;
  line-height: 18px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.app-shell .main .crm-client-identity small {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 1px;
  overflow: hidden;
  color: var(--pb-color-text-muted, #64748b);
  font-size: 12px;
  font-weight: 500;
  line-height: 16px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.app-shell .main .crm-row-number {
  color: var(--pb-color-text-tertiary, #8792a6);
  font-size: 11px;
  font-weight: 600;
}

.app-shell .main .crm-client-phone {
  display: inline-flex;
  align-items: center;
  align-self: center;
  overflow: hidden;
  color: var(--pb-color-text-muted, #64748b);
  font-size: 13px;
  font-weight: 500;
  line-height: 18px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.app-shell .main .crm-client-card .crm-status-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: center;
  gap: 5px;
  min-height: 22px;
  padding: 3px 8px;
  border: 1px solid var(--pb-color-success-border, #cdeed8);
  border-radius: 999px;
  background: var(--pb-color-success-soft, #eaf8ef);
  color: var(--pb-color-success, #238b45);
  font-size: 11px;
  font-weight: 600;
  line-height: 14px;
  white-space: nowrap;
}

.app-shell .main .crm-client-card .crm-status-pill.archived {
  border-color: var(--pb-color-border, #dde5f0);
  background: var(--pb-color-bg-soft, #f8fafd);
  color: var(--pb-color-text-muted, #64748b);
}

.app-shell .main .crm-client-card .crm-status-pill.vip {
  gap: 4px;
  min-width: 34px;
  min-height: 24px;
  padding: 3px 8px;
  border-color: rgba(245, 158, 11, 0.28);
  background: rgba(255, 247, 237, 0.92);
  color: #b45309;
}

.app-shell .main .crm-client-card .crm-status-pill.vip .action-svg {
  width: 13px;
  height: 13px;
  stroke-width: 2;
}

.app-shell .main .crm-client-card .crm-status-pill i {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: currentColor;
}

.app-shell .main .crm-client-card .client-row-more {
  position: static;
  top: auto;
  right: auto;
  transform: none;
  grid-column: 5;
  grid-row: 1;
  display: inline-grid;
  place-items: center;
  place-self: center end;
  align-self: center;
  justify-self: end;
  width: 38px;
  min-width: 38px;
  height: 38px;
  min-height: 38px;
  border: 1px solid var(--pb-color-border, #dde5f0);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.86);
  color: #66748a;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.03);
  backdrop-filter: blur(10px);
  line-height: 1;
}

.app-shell .main .crm-client-card .client-row-more-placeholder {
  border: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
  pointer-events: none;
}

.app-shell .main .crm-client-card .client-row-more .action-svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.app-shell .main .crm-client-card .client-expanded-card {
  display: grid;
  gap: 8px;
  padding: 0 18px 12px;
  background: transparent;
  overflow: visible;
}

.app-shell .main .crm-expanded-shell {
  display: grid;
  gap: 0;
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.app-shell .main .crm-expanded-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 54px;
  padding: 10px 12px;
  border-bottom: 1px solid var(--pb-color-border-subtle, #e6edf6);
}

.app-shell .main .crm-expanded-person {
  display: inline-flex;
  align-items: center;
  min-width: 0;
  gap: 10px;
}

.app-shell .main .crm-expanded-title {
  min-width: 0;
}

.app-shell .main .crm-expanded-title h2 {
  overflow: hidden;
  margin: 0;
  color: var(--pb-color-text-strong, #0f172a);
  font-size: 15px;
  font-weight: 650;
  line-height: 20px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.app-shell .main .crm-expanded-title p {
  overflow: hidden;
  margin: 1px 0 0;
  color: var(--pb-color-text-muted, #64748b);
  font-size: 12px;
  font-weight: 500;
  line-height: 16px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.app-shell .main .crm-expanded-head-meta {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  flex: 0 0 auto;
  gap: 8px;
  min-width: 0;
}

.app-shell .main .crm-expanded-phone {
  overflow: hidden;
  max-width: 180px;
  color: var(--pb-color-text-muted, #64748b);
  font-size: 13px;
  font-weight: 500;
  line-height: 18px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.app-shell .main .crm-card-floating-actions {
  position: static;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  min-height: 38px;
  margin: 0;
  padding: 0;
  pointer-events: auto;
}

.app-shell .main .crm-card-floating-actions.crm-row-actions {
  justify-self: end;
  align-self: center;
  gap: 6px;
  min-height: 34px;
  cursor: default;
}

.app-shell .main .client-directory-row:has(.crm-action-menu[open]) {
  grid-template-columns: 34px 24px minmax(0, 1fr) minmax(0, 1fr) 62px;
}

.app-shell .main .client-directory-row:has(.crm-action-menu[open]) > .crm-status-pill {
  display: none;
}

.app-shell .main .client-directory-row:has(.crm-action-menu[open]) .crm-row-actions {
  grid-column: 5;
  max-width: 100%;
}

.app-shell .main .crm-card-floating-actions > * {
  pointer-events: auto;
}

.app-shell .main .crm-card-floating-actions .action-icon-btn,
.app-shell .main .crm-action-menu summary.action-icon-btn,
.app-shell .main .crm-vehicle-panel .btn-add-compact,
.app-shell .main .inline-confirm-zone .action-icon-btn {
  display: inline-grid;
  place-items: center;
  width: 38px;
  min-width: 38px;
  max-width: 38px;
  height: 38px;
  min-height: 38px;
  max-height: 38px;
  padding: 0;
  border: 1px solid rgba(219, 228, 240, 0.9);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.86);
  color: #66748a;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.03);
  backdrop-filter: blur(10px);
  transition: background-color 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease, color 0.16s ease, transform 0.16s ease;
}

.app-shell .main .crm-card-floating-actions .action-icon-btn:hover,
.app-shell .main .crm-action-menu summary.action-icon-btn:hover,
.app-shell .main .crm-vehicle-panel .btn-add-compact:hover {
  border-color: rgba(191, 205, 225, 0.95);
  background: rgba(248, 251, 255, 0.96);
  color: #3f63f4;
  box-shadow: 0 6px 18px rgba(55, 82, 130, 0.11);
  transform: translateY(-1px);
}

.app-shell .main .crm-card-floating-actions .action-icon-btn.danger,
.app-shell .main .inline-confirm-zone .action-icon-btn.danger {
  color: var(--pb-color-danger, #dc2626);
}

.app-shell .main .crm-card-floating-actions .action-svg,
.app-shell .main .crm-vehicle-panel .btn-add-compact .action-svg,
.app-shell .main .inline-confirm-zone .action-svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.app-shell .main .crm-action-menu {
  position: relative;
}

.app-shell .main .crm-action-menu summary {
  list-style: none;
}

.app-shell .main .crm-action-menu summary::-webkit-details-marker {
  display: none;
}

.app-shell .main .crm-action-menu-popover {
  position: absolute;
  top: calc(var(--pb-icon-button-size, 34px) + 6px);
  right: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: repeat(3, var(--pb-icon-button-size, 34px));
  gap: 6px;
  min-width: 0;
  padding: 6px;
  border: 1px solid var(--pb-color-border, #dde5f0);
  border-radius: var(--pb-radius-md, 12px);
  background: var(--pb-color-bg-elevated, #fff);
  box-shadow: var(--pb-shadow-popover, 0 14px 34px rgba(15, 23, 42, 0.14));
}

.app-shell .main .crm-row-actions .crm-action-menu {
  position: static;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.app-shell .main .crm-row-actions .crm-action-menu-popover {
  position: static;
  top: auto;
  right: auto;
  z-index: auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.app-shell .main .crm-row-actions .action-icon-btn,
.app-shell .main .crm-row-actions summary.action-icon-btn {
  width: 26px;
  min-width: 26px;
  max-width: 26px;
  height: 26px;
  min-height: 26px;
  max-height: 26px;
}

.app-shell .main .crm-row-actions .action-svg {
  width: 13px;
  height: 13px;
}

.app-shell .main .crm-expanded-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: stretch;
  min-height: 0;
  gap: 0;
  border-top: 1px solid var(--pb-color-border-subtle, #e6edf6);
}

.app-shell .main .crm-expanded-grid.is-editing {
  grid-template-columns: 1fr;
}

.app-shell .main .crm-profile-summary,
.app-shell .main .profile-summary.crm-profile-summary {
  display: grid;
  grid-template-columns: 1fr;
  align-content: start;
  min-height: 0;
  margin: 0;
  padding: 12px 18px;
  gap: 0;
  border: 0;
  background: transparent;
}

.app-shell .main .crm-profile-summary p,
.app-shell .main .crm-profile-summary p:first-child,
.app-shell .main .crm-profile-summary p:last-child,
.app-shell .main .crm-profile-summary p:nth-child(2n),
.app-shell .main .crm-profile-summary p:nth-last-child(-n + 2) {
  display: grid;
  grid-column: auto;
  grid-template-columns: 24px minmax(140px, 0.55fr) minmax(0, 1fr);
  align-items: center;
  column-gap: 14px;
  min-height: 42px;
  margin: 0;
  padding: 4px 0;
  border: 0;
  border-bottom: 1px solid rgba(230, 237, 246, 0.9);
  background: transparent;
}

.app-shell .main .crm-profile-summary p:nth-last-child(-n + 2) {
  border-bottom: 1px solid rgba(230, 237, 246, 0.9);
}

.app-shell .main .crm-profile-summary p:last-child {
  border-bottom: 0;
}

.app-shell .main .crm-profile-summary span {
  color: var(--pb-color-text-tertiary, #8792a6);
  font-size: 11px;
  font-weight: 550;
  line-height: 14px;
  text-transform: none;
  letter-spacing: 0;
}

.app-shell .main .crm-profile-summary .crm-profile-icon {
  display: inline-grid;
  place-items: center;
  width: 20px;
  height: 20px;
  color: var(--pb-color-text-muted, #64748b);
}

.app-shell .main .crm-profile-summary .crm-profile-icon .action-svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  stroke-width: 1.8;
}

.app-shell .main .crm-profile-summary strong {
  overflow-wrap: anywhere;
  margin: 0;
  color: var(--pb-color-text, #111827);
  font-size: 13px;
  font-weight: 600;
  line-height: 17px;
}

.app-shell .main .crm-profile-inline-edit p,
.app-shell .main .crm-profile-inline-edit p:first-child,
.app-shell .main .crm-profile-inline-edit p:last-child,
.app-shell .main .crm-profile-inline-edit p:nth-child(2n),
.app-shell .main .crm-profile-inline-edit p:nth-last-child(-n + 2) {
  grid-template-columns: 24px 190px minmax(0, 1fr);
}

.app-shell .main .crm-profile-inline-edit input:not([type="hidden"]),
.app-shell .main .crm-profile-inline-edit select,
.app-shell .main .crm-profile-inline-edit textarea {
  grid-column: 3;
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  height: 32px;
  min-height: 32px;
  margin: 0;
  padding: 5px 10px;
  border: 1px solid var(--pb-color-border, #dde5f0);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.96);
  color: var(--pb-color-text, #111827);
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  line-height: 18px;
  box-shadow: none;
}

.app-shell .main .crm-profile-inline-edit textarea {
  min-height: 44px;
  height: 44px;
  resize: vertical;
}

.app-shell .main .crm-profile-inline-edit select {
  appearance: none;
  padding-right: 34px;
  background-image: linear-gradient(45deg, transparent 50%, var(--pb-color-text-muted, #64748b) 50%),
    linear-gradient(135deg, var(--pb-color-text-muted, #64748b) 50%, transparent 50%);
  background-position: calc(100% - 18px) 50%, calc(100% - 13px) 50%;
  background-repeat: no-repeat;
  background-size: 5px 5px, 5px 5px;
}

.app-shell .main .crm-profile-inline-edit strong {
  grid-column: 3;
}

.app-shell .main .crm-profile-inline-edit input:not([type="hidden"]):focus,
.app-shell .main .crm-profile-inline-edit input:not([type="hidden"]):focus-visible,
.app-shell .main .crm-profile-inline-edit select:focus,
.app-shell .main .crm-profile-inline-edit select:focus-visible,
.app-shell .main .crm-profile-inline-edit textarea:focus,
.app-shell .main .crm-profile-inline-edit textarea:focus-visible {
  outline: 0;
  border-color: rgba(47, 107, 255, 0.34);
  background: #fff;
  box-shadow:
    0 0 0 2px rgba(47, 107, 255, 0.055),
    0 4px 12px rgba(15, 23, 42, 0.04);
}

.app-shell .main .crm-address-page #crmClientList.crm-client-list .crm-profile-inline-edit textarea#adminClientComment {
  min-width: 0 !important;
  max-width: 100% !important;
  overflow: auto !important;
  text-overflow: clip !important;
  white-space: normal !important;
}

@media (min-width: 768px) {
  .app-shell .main .crm-address-page #crmClientList.crm-client-list .crm-profile-inline-edit textarea#adminClientComment {
    grid-column: 3 !important;
    height: 42px !important;
    min-height: 42px !important;
    padding: 4px 10px !important;
  }
}

@media (max-width: 767px) {
  .app-shell .main .crm-address-page #crmClientList.crm-client-list .crm-profile-inline-edit textarea#adminClientComment {
    grid-column: 2 !important;
    grid-row: 2 !important;
    height: 38px !important;
    min-height: 38px !important;
    margin: 0 !important;
    padding: 0 0 2px !important;
    border: 0 !important;
    border-bottom: 1px solid #dde5f0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    color: #111827 !important;
    font-size: 15px !important;
    font-weight: 550 !important;
    line-height: 18px !important;
    box-shadow: none !important;
  }

  .app-shell .main .crm-address-page #crmClientList.crm-client-list .crm-profile-inline-edit textarea#adminClientComment:focus,
  .app-shell .main .crm-address-page #crmClientList.crm-client-list .crm-profile-inline-edit textarea#adminClientComment:focus-visible {
    border-bottom-color: #007aff !important;
    outline: 0 !important;
  }
}

.app-shell .main .crm-address-page input:not([type="checkbox"]):not([type="radio"]):focus,
.app-shell .main .crm-address-page input:not([type="checkbox"]):not([type="radio"]):focus-visible,
.app-shell .main .crm-address-page textarea:focus,
.app-shell .main .crm-address-page textarea:focus-visible,
.app-shell .main .crm-address-page select:focus,
.app-shell .main .crm-address-page select:focus-visible {
  outline: 0;
  border-color: rgba(47, 107, 255, 0.34);
  background-color: #fff;
  box-shadow:
    0 0 0 2px rgba(47, 107, 255, 0.055),
    0 4px 12px rgba(15, 23, 42, 0.04);
}

.app-shell .main .crm-address-page .crm-search-box input:focus,
.app-shell .main .crm-address-page .crm-search-box input:focus-visible {
  border-color: transparent;
  background: transparent;
  box-shadow: none;
}

.app-shell .main .crm-profile-edit {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-content: start;
  gap: 10px 14px;
}

.app-shell .main .crm-profile-edit label {
  display: grid;
  gap: 5px;
  min-width: 0;
  margin: 0;
  color: var(--pb-color-text-tertiary, #8792a6);
  font-size: 11px;
  font-weight: 600;
  line-height: 14px;
}

.app-shell .main .crm-profile-edit input,
.app-shell .main .crm-profile-edit select,
.app-shell .main .crm-profile-edit textarea {
  width: 100%;
  min-width: 0;
  min-height: 34px;
  padding: 7px 10px;
  border: 1px solid var(--pb-color-border, #dde5f0);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.94);
  color: var(--pb-color-text, #111827);
  font-size: 13px;
  font-weight: 600;
  line-height: 18px;
  box-shadow: none;
}

.app-shell .main .crm-profile-edit textarea {
  min-height: 58px;
  resize: vertical;
}

.app-shell .main .crm-profile-edit input[readonly] {
  background: var(--pb-color-bg-soft, #f8fafd);
  color: var(--pb-color-text-muted, #64748b);
  cursor: not-allowed;
}

.app-shell .main .crm-vehicle-panel {
  display: grid;
  align-content: start;
  min-width: 0;
  gap: 6px;
  grid-column: 1 / -1;
  padding: 8px 18px 10px;
  border: 0;
  border-top: 1px solid var(--pb-color-border-subtle, #e6edf6);
  background: transparent;
}

.app-shell .main .crm-vehicle-panel .vehicle-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 28px;
  gap: 8px;
  margin: 0;
}

.app-shell .main .crm-vehicle-panel h3 {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  color: var(--pb-color-text, #111827);
  font-size: 13px;
  font-weight: 650;
  line-height: 17px;
}

.app-shell .main .crm-vehicle-panel h3 span,
.app-shell .main .crm-client-sections summary small {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  padding: 2px 6px;
  border-radius: 999px;
  background: var(--pb-color-bg-soft, #f8fafd);
  color: var(--pb-color-text-muted, #64748b);
  font-size: 11px;
  font-weight: 600;
  line-height: 14px;
}

.app-shell .main .crm-vehicle-panel .btn-add-compact {
  width: 28px;
  min-width: 28px;
  max-width: 28px;
  height: 28px;
  min-height: 28px;
  max-height: 28px;
  font-size: 17px;
  font-weight: 500;
  line-height: 1;
}

.app-shell .main .crm-vehicle-panel .vehicle-list {
  display: grid;
  gap: 0;
  overflow: hidden;
  border: 1px solid var(--pb-color-border-subtle, #e6edf6);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.84);
}

.app-shell .main .crm-vehicle-panel .vehicle-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 7px 10px;
  border: 0;
  border-bottom: 1px solid var(--pb-color-border-subtle, #e6edf6);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.app-shell .main .crm-vehicle-panel .vehicle-row:last-child {
  border-bottom: 0;
}

.app-shell .main .crm-vehicle-panel .vehicle-row .item-head {
  margin: 0;
}

.app-shell .main .crm-vehicle-panel .vehicle-row .item-head strong,
.app-shell .main .crm-vehicle-panel .vehicle-plate {
  font-size: 13px;
  line-height: 17px;
}

.app-shell .main .crm-vehicle-panel .vehicle-row p {
  font-size: 12px;
  line-height: 16px;
}

.app-shell .main .crm-vehicle-panel .vehicle-row-actions {
  align-items: center;
  gap: 5px;
}

.app-shell .main .crm-vehicle-panel .vehicle-row-actions > .btn-icon {
  box-sizing: border-box;
  flex: 0 0 44px;
  width: 44px;
  min-width: 44px;
  max-width: 44px;
  height: 44px;
  min-height: 44px;
  max-height: 44px;
  padding: 0;
  align-self: center;
}

.app-shell .main .crm-empty-vehicle {
  display: grid;
  place-items: center;
  align-content: center;
  min-height: 44px;
  gap: 4px;
  padding: 7px 10px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--pb-color-text-muted, #64748b);
}

.app-shell .main .crm-empty-vehicle .action-svg {
  width: 22px;
  height: 22px;
  color: var(--pb-color-text-tertiary, #8792a6);
}

.app-shell .main .crm-empty-vehicle p {
  margin: 0;
  color: var(--pb-color-text-muted, #64748b);
  font-size: 12px;
  font-weight: 550;
  line-height: 16px;
}

.app-shell .main .crm-client-inline-hint {
  margin: 0;
  padding: 0 2px;
  font-size: 12px;
  line-height: 16px;
}

.app-shell .main .inline-confirm-zone {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  justify-self: end;
  min-height: 38px;
  padding: 4px 6px 4px 12px;
  border: 1px solid rgba(220, 38, 38, 0.14);
  border-radius: var(--pb-radius-md, 12px);
  background: var(--pb-color-danger-soft, #fef2f2);
}

.app-shell .main .client-record.confirming .client-directory-row {
  border-bottom: 1px solid var(--pb-color-border-subtle, #e6edf6);
}

.app-shell .main .client-row-confirm {
  display: flex;
  justify-content: flex-end;
  width: 100%;
  padding: 8px 22px 8px 48px;
  border-bottom: 1px solid var(--pb-color-border-subtle, #e6edf6);
}

.app-shell .main .client-row-confirm + .client-expanded-card {
  margin-top: 8px;
}

.app-shell .main .client-row-confirm .inline-confirm-zone {
  justify-self: auto;
}

.app-shell .main .archive-confirm-zone {
  border-color: rgba(47, 107, 255, 0.16);
  background: rgba(238, 244, 255, 0.92);
}

.app-shell .main .inline-confirm-zone .confirm-text-btn {
  min-height: 30px;
  padding: 0 12px;
  border: 1px solid var(--pb-color-border, #dde5f0);
  border-radius: 999px;
  background: var(--pb-color-bg-elevated, #fff);
  color: var(--pb-color-text, #111827);
  font-size: 12px;
  font-weight: 650;
  line-height: 16px;
}

.app-shell .main .inline-confirm-zone .confirm-text-btn.danger {
  border-color: rgba(220, 38, 38, 0.2);
  background: #fff;
  color: var(--pb-color-danger, #dc2626);
}

.app-shell .main .inline-confirm-actions {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  gap: 8px;
  white-space: nowrap;
}

.app-shell .main .crm-client-sections {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  width: 100%;
  margin: 0;
}

.app-shell .main .crm-client-sections .client-compact-section {
  min-width: 0;
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--pb-color-border-subtle, #e6edf6);
  border-radius: var(--pb-radius-md, 12px);
  background: var(--pb-color-bg-elevated, #fff);
  box-shadow: none;
}

.app-shell .main .crm-client-sections .client-compact-section[open] {
  grid-column: 1 / -1;
}

.app-shell .main .crm-client-sections summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 38px;
  height: 38px;
  padding: 0 10px 0 12px;
  color: var(--pb-color-text, #111827);
  font-size: 13px;
  font-weight: 600;
  line-height: 18px;
  list-style: none;
}

.app-shell .main .crm-client-sections summary > span:first-child {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.app-shell .main .crm-client-sections summary::-webkit-details-marker {
  display: none;
}

.app-shell .main .crm-client-sections summary::after {
  content: none;
}

.app-shell .main .crm-client-sections details[open] summary::after {
  content: none;
}

.app-shell .main .client-section-summary-meta {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  margin-left: 8px;
}

.app-shell .main .client-section-chevron {
  display: inline-grid;
  place-items: center;
  width: 34px;
  min-width: 34px;
  height: 34px;
  border-radius: 12px;
  background: var(--pb-color-accent-soft, #eef4ff);
  color: var(--pb-color-text-muted, #64748b);
  font-style: normal;
  transition: transform 0.16s ease, background-color 0.16s ease, color 0.16s ease;
}

.app-shell .main .client-section-chevron .action-svg {
  width: 15px;
  height: 15px;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.app-shell .main .crm-client-sections details[open] .client-section-chevron {
  transform: rotate(180deg);
  color: var(--pb-color-accent, #2f6bff);
}

.app-shell .main .crm-client-sections .client-section-body {
  display: grid;
  gap: 8px;
  padding: 10px 12px 12px;
  border-top: 1px solid var(--pb-color-border-subtle, #e6edf6);
  background: transparent;
}

.app-shell .main .crm-client-sections .client-section-body label {
  display: grid;
  gap: 5px;
  margin: 0;
}

.app-shell .main .crm-client-sections .client-section-body textarea {
  width: 100%;
  min-height: 58px;
  padding: 8px 10px;
  border: 1px solid var(--pb-color-border, #dde5f0);
  border-radius: var(--pb-radius-md, 12px);
  background: rgba(255, 255, 255, 0.94);
  color: var(--pb-color-text, #111827);
  font-size: 13px;
  font-weight: 500;
  line-height: 18px;
  resize: vertical;
  box-shadow: none;
}

.app-shell .main .crm-client-sections .client-section-body .btn-secondary {
  justify-self: start;
  min-height: 34px;
  padding: 0 12px;
  border-radius: var(--pb-radius-md, 12px);
  font-size: 12px;
  font-weight: 600;
}

.app-shell .main .compact-list {
  display: grid;
  gap: 0;
}

.app-shell .main .compact-item {
  padding: 7px 0;
  border-bottom: 1px solid var(--pb-color-border-subtle, #e6edf6);
}

.app-shell .main .compact-item:last-child {
  border-bottom: 0;
}

.app-shell .main .compact-item strong {
  color: var(--pb-color-text, #111827);
  font-size: 12px;
  font-weight: 600;
  line-height: 16px;
}

.app-shell .main .compact-item .muted,
.app-shell .main .compact-item p {
  margin: 2px 0 0;
  color: var(--pb-color-text-muted, #64748b);
  font-size: 11px;
  line-height: 15px;
}

.app-shell .main .compact-item-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.app-shell .main .compact-audit-list {
  gap: 6px;
}

.app-shell .main .compact-audit-item {
  display: grid;
  gap: 2px;
  min-height: 38px;
  padding: 5px 8px;
  border: 1px solid var(--pb-color-border-subtle, #e6edf6);
  border-radius: var(--pb-radius-md, 12px);
  background: var(--pb-color-bg-soft, #f8fafd);
}

.app-shell .main .compact-audit-item strong {
  overflow: hidden;
  max-width: 100%;
  color: var(--pb-color-text, #111827);
  font-size: 12px;
  font-weight: 600;
  line-height: 15px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.app-shell .main .compact-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  max-width: 88px;
  height: 18px;
  padding: 1px 7px;
  border-radius: 999px;
  background: var(--pb-color-accent-soft, #eef4ff);
  color: var(--pb-color-accent, #2f6bff);
  font-size: 11px;
  font-weight: 600;
  line-height: 14px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.app-shell .main .crm-pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-top: 4px;
  color: var(--pb-color-text-muted, #64748b);
  font-size: 12px;
  line-height: 16px;
}

.app-shell .main .crm-address-page .crm-pagination > span {
  font-weight: 700;
}

.app-shell .main .crm-pagination-actions {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.app-shell .main .crm-address-page .crm-page-size select,
.app-shell .main .crm-page-btn,
.app-shell .main .crm-page-current {
  display: inline-grid;
  place-items: center;
  height: 34px;
  min-height: 34px;
}

.app-shell .main .crm-address-page .crm-page-size select {
  display: block;
  box-sizing: border-box;
  padding: 0 32px 0 12px;
  border-radius: 10px;
  line-height: 16px;
}

.app-shell .main .crm-page-btn,
.app-shell .main .crm-page-current {
  width: 32px;
  min-width: 32px;
  border: 1px solid var(--pb-color-border, #dde5f0);
  border-radius: 10px;
  background: var(--pb-color-bg-elevated, #fff);
  color: var(--pb-color-text-muted, #64748b);
  font-size: 13px;
  font-weight: 600;
  box-shadow: none;
}

.app-shell .main .crm-page-current {
  color: var(--pb-color-text, #111827);
}

@media (max-width: 1180px) {
  .app-shell .main .crm-filter-row {
    grid-template-columns: minmax(240px, 1fr) 132px minmax(140px, 164px) 40px;
  }

  .app-shell .main .crm-expanded-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 760px) {
  .app-shell .main:has(.crm-address-page) {
    padding-top: 8px;
  }

  .app-shell .main .crm-topbar {
    min-height: 54px;
    height: 54px;
    padding: 8px 12px;
  }

  .app-shell .main .crm-brand strong,
  .app-shell .main .crm-divider,
  .app-shell .main .crm-tab {
    display: none;
  }

  .app-shell .main .crm-add-client-btn {
    width: 44px;
    min-width: 44px;
    height: 44px;
    min-height: 44px;
    padding: 0;
    border-radius: 13px;
    font-size: 0;
  }

  .app-shell .main .crm-title-actions > .crm-bulk-toggle-btn,
  .app-shell .main .crm-title-actions > .crm-bulk-del-btn {
    display: none;
  }

  .app-shell .main .crm-mobile-controls {
    position: relative;
    display: block;
  }

  .app-shell .main .crm-mobile-controls summary {
    list-style: none;
  }

  .app-shell .main .crm-mobile-controls summary::-webkit-details-marker {
    display: none;
  }

  .app-shell .main .crm-mobile-menu-btn {
    display: inline-grid;
    place-items: center;
    width: 44px;
    min-width: 44px;
    height: 44px;
    min-height: 44px;
    padding: 0;
    border: 1px solid var(--pb-color-border, #dde5f0);
    border-radius: 13px;
    background: var(--pb-color-bg-elevated, #fff);
    color: var(--pb-color-text-muted, #64748b);
    box-shadow: none;
    cursor: pointer;
  }

  .app-shell .main .crm-mobile-menu-btn .action-svg {
    width: 18px;
    height: 18px;
    stroke: currentColor;
    stroke-width: 2;
  }

  .app-shell .main .crm-mobile-controls-panel {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    z-index: 30;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 44px;
    gap: 8px;
    width: min(286px, calc(100vw - 24px));
    padding: 10px;
    border: 1px solid rgba(218, 226, 238, 0.96);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 14px 34px rgba(15, 23, 42, 0.14);
  }

  .app-shell .main .crm-mobile-controls-panel .crm-status-filters {
    display: grid;
    grid-column: 1 / -1;
    width: 100%;
    min-width: 0;
  }

  .app-shell .main .crm-mobile-controls-panel .crm-sort-select {
    display: block;
    min-width: 0;
    width: 100%;
  }

  .app-shell .main .crm-mobile-controls-panel .crm-sort-dir-btn {
    width: 44px;
    min-width: 44px;
    max-width: 44px;
    height: 44px;
    min-height: 44px;
  }

  .app-shell .main .crm-add-client-btn span {
    font-size: 22px;
    line-height: 1;
  }

  .app-shell .main .crm-user-chip {
    width: 34px;
    min-width: 34px;
    height: 34px;
  }

  .app-shell .main .crm-address-content {
    padding: 12px 12px calc(92px + env(safe-area-inset-bottom, 0px));
    gap: 12px;
  }

  .app-shell .main .crm-page-title h1 {
    font-size: 20px;
    line-height: 26px;
  }

  .app-shell .main .crm-page-title {
    gap: 10px;
  }

  .app-shell .main .crm-title-actions {
    flex-shrink: 0;
    gap: 6px;
  }

  .app-shell .main .crm-title-actions .notification-bell,
  .app-shell .main .crm-title-actions .connection-indicator {
    width: 34px;
    min-width: 34px;
    height: 34px;
    min-height: 34px;
  }

  .app-shell .main .crm-filter-row {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
  }

  .app-shell .main .crm-filter-row > .crm-search-box {
    grid-column: 1 / -1;
  }

  .app-shell .main .crm-filter-row > .crm-status-filters,
  .app-shell .main .crm-filter-row > .crm-sort-select,
  .app-shell .main .crm-filter-row > .crm-sort-dir-btn {
    display: none;
  }

  .app-shell .main .crm-search-box,
  .app-shell .main .crm-filter-btn,
  .app-shell .main .crm-sort-select select,
  .app-shell .main .crm-page-size select {
    min-height: var(--pb-control-height-mobile, 44px);
    height: var(--pb-control-height-mobile, 44px);
  }

  .app-shell .main .crm-address-page .crm-page-btn,
  .app-shell .main .crm-address-page .crm-page-current {
    min-height: var(--pb-control-height-mobile, 44px);
    height: var(--pb-control-height-mobile, 44px);
  }

  .app-shell .main .crm-search-box input {
    height: 42px;
    font-size: 14px;
  }

  .app-shell .main .crm-status-filters {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    min-height: 44px;
    padding: 4px;
  }

  .app-shell .main .crm-status-filters button {
    min-height: 34px;
    height: 34px;
  }

  .app-shell .main .crm-filter-btn,
  .app-shell .main .crm-sort-select {
    width: 100%;
  }

  .app-shell .main .crm-sort-dir-btn {
    width: 44px;
    min-width: 44px;
    max-width: 44px;
    height: 44px;
    min-height: 44px;
    justify-self: start;
  }

  .app-shell .main .crm-client-list {
    gap: 0;
    margin-top: 2px;
  }

  .app-shell .main .crm-client-card .client-directory-row,
  .app-shell .main .crm-client-card.expanded .client-directory-row {
    grid-template-columns: 36px minmax(0, 1fr) 28px;
    gap: 10px;
    min-height: 68px;
    padding: 8px 12px;
  }

  .app-shell .main .crm-client-card.expanded .client-directory-row {
    grid-template-columns: 36px minmax(0, 1fr) 44px;
  }

  .app-shell .main .crm-client-card .crm-client-index,
  .app-shell .main .crm-client-card .crm-client-select-index,
  .app-shell .main .crm-client-card .crm-client-status-avatar,
  .app-shell .main .crm-client-phone,
  .app-shell .main .crm-client-card .crm-status-pill {
    display: none;
  }

  .app-shell .main .crm-client-card .crm-client-mobile-avatar {
    grid-column: 1;
    grid-row: 1;
    display: grid;
    place-items: center;
    align-self: center;
    justify-self: center;
    width: 34px;
    min-width: 34px;
    height: 34px;
    border-radius: 999px;
    background: #eaf4ff;
    color: #2f6bff;
    font-size: 14px;
    font-weight: 700;
    line-height: 1;
  }

  .app-shell .main .crm-client-card .crm-client-mobile-avatar.muted {
    background: #eef2f7;
    color: var(--pb-color-text-tertiary, #8792a6);
  }

  .app-shell .main .crm-address-page .crm-client-identity,
  .app-shell .main .crm-address-page .crm-client-card.expanded .crm-client-identity {
    grid-column: 2;
    grid-row: 1;
    display: grid;
    align-content: center;
    gap: 2px;
    min-width: 0;
    padding: 0;
  }

  .app-shell .main .crm-address-page .crm-client-identity::after {
    display: none;
  }

  .app-shell .main .crm-client-identity strong {
    font-size: 15px;
    line-height: 19px;
  }

  .app-shell .main .crm-address-page .crm-client-identity .crm-client-mobile-phone {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin: 0;
    min-width: 0;
    color: var(--pb-color-text-muted, #64748b);
    font-size: 13px;
    font-weight: 500;
    line-height: 17px;
  }

  .app-shell .main .crm-address-page .crm-client-identity .crm-client-mobile-phone i {
    width: 7px;
    min-width: 7px;
    height: 7px;
    border-radius: 999px;
    background: var(--pb-color-success, #238b45);
  }

  .app-shell .main .crm-client-card.muted-card .crm-client-mobile-phone i {
    background: #9aa5b5;
  }

  .app-shell .main .crm-client-card .client-row-more,
  .app-shell .main .crm-client-card.expanded .crm-row-actions {
    grid-column: 3;
    grid-row: 1;
    justify-self: end;
  }

  .app-shell .main .crm-client-card .client-row-more {
    width: 28px;
    min-width: 28px;
    height: 44px;
    min-height: 44px;
    border: 0;
    background: transparent;
    color: #b2bdcb;
    box-shadow: none;
    backdrop-filter: none;
  }

  .app-shell .main .crm-client-card .client-row-more-placeholder::before {
    content: "›";
    font-size: 25px;
    font-weight: 500;
    line-height: 1;
  }

  .app-shell .main .crm-client-card.expanded .crm-row-actions {
    display: inline-flex;
    width: 44px;
    min-width: 44px;
    justify-content: flex-end;
  }

  .app-shell .main .crm-client-card.expanded .crm-row-actions .action-icon-btn,
  .app-shell .main .crm-client-card.expanded .crm-row-actions summary.action-icon-btn {
    width: 44px;
    min-width: 44px;
    height: 44px;
    min-height: 44px;
  }

  .app-shell .main .crm-client-card .client-expanded-card {
    padding: 0 10px 10px;
  }

  .app-shell .main .crm-address-page .crm-pagination {
    display: none;
  }

  .app-shell .main .crm-expanded-card-head {
    align-items: flex-start;
    min-height: 0;
    padding: 10px;
    gap: 10px;
  }

  .app-shell .main .crm-expanded-person {
    flex: 1 1 auto;
  }

  .app-shell .main .crm-expanded-head-meta {
    flex: 0 0 auto;
    gap: 6px;
  }

  .app-shell .main .crm-expanded-phone,
  .app-shell .main .crm-expanded-head-meta > .crm-status-pill {
    display: none;
  }

  .app-shell .main .crm-card-floating-actions .action-icon-btn,
  .app-shell .main .crm-action-menu summary.action-icon-btn,
  .app-shell .main .crm-vehicle-panel .btn-add-compact,
  .app-shell .main .inline-confirm-zone .action-icon-btn {
    width: var(--pb-icon-button-size-mobile, 44px);
    min-width: var(--pb-icon-button-size-mobile, 44px);
    max-width: var(--pb-icon-button-size-mobile, 44px);
    height: var(--pb-icon-button-size-mobile, 44px);
    min-height: var(--pb-icon-button-size-mobile, 44px);
    max-height: var(--pb-icon-button-size-mobile, 44px);
    border-radius: 999px;
  }

  .app-shell .main .crm-card-floating-actions {
    min-height: 44px;
  }

  .app-shell .main .crm-action-menu-popover {
    top: 50px;
    grid-template-columns: repeat(3, 44px);
  }

  .app-shell .main .crm-expanded-grid,
  .app-shell .main .crm-profile-summary,
  .app-shell .main .profile-summary.crm-profile-summary,
  .app-shell .main .crm-client-sections {
    grid-template-columns: 1fr;
  }

  .app-shell .main .crm-profile-summary {
    padding: 8px 12px;
  }

  .app-shell .main .crm-profile-edit {
    grid-template-columns: 1fr;
  }

  .app-shell .main .crm-profile-summary p,
  .app-shell .main .crm-profile-summary p:first-child,
  .app-shell .main .crm-profile-summary p:last-child,
  .app-shell .main .crm-profile-summary p:nth-child(2n),
  .app-shell .main .crm-profile-summary p:nth-last-child(-n + 2) {
    padding: 6px 0;
    grid-template-columns: 22px minmax(0, 1fr);
    min-height: 40px;
    border-right: 0;
    border-bottom: 1px solid rgba(230, 237, 246, 0.9);
  }

  .app-shell .main .crm-profile-summary p strong {
    grid-column: 2;
  }

  .app-shell .main .crm-profile-summary p:last-child {
    border-bottom: 0;
  }

  .app-shell .main .crm-vehicle-panel {
    padding: 8px 12px;
    border-left: 0;
    border-top: 1px solid var(--pb-color-border-subtle, #e6edf6);
  }

  .app-shell .main .crm-empty-vehicle {
    min-height: 54px;
  }

  .app-shell .main .crm-client-sections .client-compact-section[open] {
    grid-column: auto;
  }

  .app-shell .main .crm-client-sections summary {
    min-height: 38px;
    height: 38px;
  }

  .app-shell .main .crm-pagination {
    align-items: stretch;
    flex-direction: column;
  }

  .app-shell .main .crm-pagination-actions {
    justify-content: space-between;
  }
}

@media (max-width: 430px) {
  .app-shell .main .crm-filter-row {
    grid-template-columns: 1fr;
  }

  .app-shell .main .crm-search-box,
  .app-shell .main .crm-status-filters,
  .app-shell .main .crm-sort-select,
  .app-shell .main .crm-filter-btn {
    grid-column: auto;
  }

  .app-shell .main .crm-filter-row .crm-filter-btn:nth-of-type(2),
  .app-shell .main .crm-filter-row .crm-filter-btn:nth-of-type(3) {
    display: none;
  }

  .app-shell .main .crm-sort-dir-btn {
    justify-self: stretch;
    width: 100%;
    max-width: none;
  }

  .app-shell .main .crm-expanded-card-head {
    flex-direction: column;
    align-items: stretch;
  }

  .app-shell .main .crm-expanded-head-meta {
    justify-content: flex-end;
  }
}

.app-shell .main .crm-address-page .crm-client-sections summary {
  min-height: 38px;
  height: 38px;
  padding: 0 10px 0 12px;
}

.app-shell .main .crm-address-page .crm-client-card .client-directory-row,
.app-shell .main .crm-address-page .crm-client-card.expanded .client-directory-row {
  height: 54px;
  min-height: 54px;
  padding-top: 6px;
  padding-bottom: 6px;
}

.app-shell .main .crm-address-page .crm-profile-summary p,
.app-shell .main .crm-address-page .crm-profile-summary p:first-child,
.app-shell .main .crm-address-page .crm-profile-summary p:last-child,
.app-shell .main .crm-address-page .crm-profile-summary p:nth-child(2n),
.app-shell .main .crm-address-page .crm-profile-summary p:nth-last-child(-n + 2) {
  min-height: 40px;
  padding-top: 4px;
  padding-bottom: 4px;
}

@media (max-width: 760px) {
  .app-shell .main .crm-address-page .crm-client-card .client-directory-row,
  .app-shell .main .crm-address-page .crm-client-card.expanded .client-directory-row {
    height: auto;
  }
}

/* Address book hover states must not move labels or controls. */
.app-shell .main .crm-address-page .crm-client-card,
.app-shell .main .crm-address-page .crm-client-card:hover,
.app-shell .main .crm-address-page .crm-client-card:focus-within,
.app-shell .main .crm-address-page .crm-client-card .client-directory-row,
.app-shell .main .crm-address-page .crm-client-card .client-directory-row:hover,
.app-shell .main .crm-address-page .crm-client-card .client-directory-row:focus,
.app-shell .main .crm-address-page .crm-client-card .client-row-more,
.app-shell .main .crm-address-page .crm-client-card .client-row-more:hover,
.app-shell .main .crm-address-page .crm-card-floating-actions .action-icon-btn,
.app-shell .main .crm-address-page .crm-card-floating-actions .action-icon-btn:hover,
.app-shell .main .crm-address-page .crm-action-menu summary.action-icon-btn,
.app-shell .main .crm-address-page .crm-action-menu summary.action-icon-btn:hover,
.app-shell .main .crm-address-page .crm-vehicle-panel .btn-add-compact,
.app-shell .main .crm-address-page .crm-vehicle-panel .btn-add-compact:hover,
.app-shell .main .crm-address-page button,
.app-shell .main .crm-address-page button:hover,
.app-shell .main .crm-address-page button:focus,
.app-shell .main .crm-address-page button:active {
  transform: none;
}

@media (min-width: 761px) {
  .app-shell .main .crm-address-page .crm-client-card .client-directory-row,
  .app-shell .main .crm-address-page .crm-client-card .client-directory-row:hover,
  .app-shell .main .crm-address-page .crm-client-card .client-directory-row:focus {
    grid-template-columns: 34px 24px minmax(0, 1fr) minmax(0, 1fr) 62px;
    align-items: center;
    grid-auto-rows: 28px;
    gap: 5px;
    min-height: 34px;
    height: 34px;
    padding: 3px 10px;
  }

  .app-shell .main .crm-address-page .crm-client-card .client-directory-row > .crm-client-index {
    grid-column: 1;
    grid-row: 1;
    align-self: center;
    height: 28px;
    padding-right: 8px;
    font-size: 13px;
    line-height: 16px;
  }

  .app-shell .main .crm-address-page .crm-client-card .client-directory-row > .crm-avatar,
  .app-shell .main .crm-address-page .crm-client-card .client-directory-row > .crm-client-status-avatar {
    grid-column: 2;
    grid-row: 1;
    align-self: center;
  }

  .app-shell .main .crm-address-page .crm-client-card .client-directory-row > .crm-client-status-avatar::after,
  .app-shell .main .crm-address-page .crm-client-card .client-directory-row > .crm-avatar::after {
    display: none;
  }

  .app-shell .main .crm-address-page .crm-client-card .client-directory-row > .crm-client-status-avatar .status-avatar-svg {
    width: 19px;
    height: 19px;
  }

  .app-shell .main .crm-address-page .crm-client-card .client-directory-row > .crm-client-identity {
    grid-column: 3;
    grid-row: 1;
    display: flex;
    align-items: center;
    align-self: center;
    height: 28px;
    padding-left: 4px;
    padding-right: 12px;
  }

  .app-shell .main .crm-address-page .crm-client-card .client-directory-row > .crm-client-identity strong {
    font-size: 13px;
    line-height: 16px;
  }

  .app-shell .main .crm-address-page .crm-client-card .client-directory-row > .crm-client-phone {
    grid-column: 4;
    grid-row: 1;
    display: flex;
    align-items: center;
    align-self: center;
    width: 100%;
    min-width: 100%;
    max-width: 100%;
    height: 28px;
    box-sizing: border-box;
    justify-self: stretch;
    justify-content: flex-start;
    padding-left: 14px;
    font-size: 13px;
    font-weight: 600;
    line-height: 16px;
  }

  .app-shell .main .crm-address-page .crm-client-card .client-directory-row > .crm-status-pill {
    grid-column: 5;
    grid-row: 1;
    justify-self: end;
  }

  .app-shell .main .crm-address-page .crm-client-card .client-directory-row > .client-row-more,
  .app-shell .main .crm-address-page .crm-client-card .client-directory-row > .crm-row-actions {
    grid-column: 5;
    grid-row: 1;
    align-self: center;
    justify-self: end;
  }

  .app-shell .main .crm-address-page .crm-client-card .client-directory-row > .client-row-more {
    place-self: center end;
    width: 28px;
    min-width: 28px;
    height: 28px;
    min-height: 28px;
  }

  .app-shell .main .crm-address-page .crm-client-card .client-directory-row > .client-row-more .action-svg {
    width: 13px;
    height: 13px;
  }

  .app-shell .main .crm-address-page .crm-client-card .client-directory-row > .crm-row-actions {
    width: 58px;
    min-width: 58px;
    max-width: 58px;
  }

  .app-shell .main .crm-address-page .crm-client-card.expanded .client-directory-row {
    grid-template-columns: 34px 24px minmax(0, 1fr) minmax(0, 1fr) 62px;
    min-height: 34px;
    height: 34px;
    padding-top: 3px;
    padding-bottom: 3px;
  }

  .app-shell .main .crm-address-page .crm-client-card.expanded .client-directory-row > .crm-status-pill {
    display: none;
  }

  .app-shell .main .crm-address-page .crm-client-card.expanded .client-directory-row > .crm-client-identity {
    display: flex;
  }

  .app-shell .main .crm-address-page .crm-client-card.expanded .client-directory-row > .crm-client-phone {
    grid-column: 4;
    grid-row: 1;
    justify-self: stretch;
    justify-content: flex-start;
    color: var(--pb-color-text-muted, #64748b);
    transition: transform 0.18s ease, color 0.18s ease;
  }

  .app-shell .main .crm-address-page .crm-client-card.expanded .client-directory-row > .crm-row-actions {
    grid-column: 5;
  }
}

.app-shell .main .crm-address-page .crm-client-list {
  display: block;
  gap: 0;
  overflow: hidden;
  border: 1px solid rgba(218, 226, 238, 0.95);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.035);
}

.app-shell .main .crm-address-page .crm-client-list .crm-client-card {
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.app-shell .main .crm-address-page .crm-client-list .crm-client-card + .crm-client-card {
  border-top: 1px solid rgba(226, 233, 243, 0.96);
}

.app-shell .main .crm-address-page .crm-client-list .crm-client-card:hover,
.app-shell .main .crm-address-page .crm-client-list .crm-client-card:focus-within {
  border-color: transparent;
  box-shadow: none;
}

.app-shell .main .crm-address-page .crm-client-list .crm-client-card.expanded {
  border-color: transparent;
  box-shadow: none;
}

.app-shell .main .crm-address-page .crm-client-list .client-directory-row {
  border-radius: 0;
}

.app-shell .main .crm-address-page .crm-client-list .crm-client-card .client-directory-row:hover {
  background: rgba(247, 250, 255, 0.74);
}

.app-shell .main .crm-address-page .crm-client-list .crm-client-card.expanded .client-directory-row {
  background: rgba(247, 250, 255, 0.56);
}

.app-shell .main .crm-address-page .crm-client-list .client-expanded-card {
  border-top: 1px solid rgba(226, 233, 243, 0.96);
}

.app-shell .main .crm-address-page .crm-search-box:focus-within {
  border-color: rgba(47, 107, 255, 0.34);
  box-shadow: none;
}

@media (min-width: 761px) {
  .app-shell .main .crm-address-page #crmClientList.crm-client-list .crm-client-card .client-directory-row,
  .app-shell .main .crm-address-page #crmClientList.crm-client-list .crm-client-card .client-directory-row:hover,
  .app-shell .main .crm-address-page #crmClientList.crm-client-list .crm-client-card .client-directory-row:focus,
  .app-shell .main .crm-address-page #crmClientList.crm-client-list .crm-client-card .client-directory-row:focus-visible,
  .app-shell .main .crm-address-page #crmClientList.crm-client-list .crm-client-card.expanded .client-directory-row,
  .app-shell .main .crm-address-page #crmClientList.crm-client-list .crm-client-card.expanded .client-directory-row:hover,
  .app-shell .main .crm-address-page #crmClientList.crm-client-list .crm-client-card.expanded .client-directory-row:focus {
    grid-template-columns: 34px 24px minmax(0, 1fr) minmax(0, 1fr) 62px !important;
    grid-auto-rows: 28px !important;
    min-height: 34px !important;
    height: 34px !important;
    gap: 5px !important;
    padding: 3px 10px !important;
    align-items: center !important;
  }

  .app-shell .main .crm-address-page #crmClientList.crm-client-list .crm-client-card .client-directory-row > .crm-client-index {
    grid-column: 1 !important;
    grid-row: 1 !important;
    height: 28px !important;
    padding-right: 8px !important;
    font-size: 13px !important;
    line-height: 16px !important;
    align-self: center !important;
    transform: none !important;
  }

  .app-shell .main .crm-address-page #crmClientList.crm-client-list .crm-client-card .client-directory-row > .crm-client-select-index {
    grid-column: 1 !important;
    grid-row: 1 !important;
    display: inline-grid !important;
    place-items: center !important;
    justify-self: center !important;
    align-self: center !important;
    width: 18px !important;
    min-width: 18px !important;
    max-width: 18px !important;
    height: 18px !important;
    min-height: 18px !important;
    max-height: 18px !important;
    padding: 0 !important;
    border: 1px solid rgba(148, 163, 184, 0.38) !important;
    border-radius: 6px !important;
    background: rgba(255, 255, 255, 0.94) !important;
    color: transparent !important;
    box-shadow: none !important;
    transform: none !important;
  }

  .app-shell .main .crm-address-page #crmClientList.crm-client-list .crm-client-card .client-directory-row > .crm-client-select-index.active {
    border-color: rgba(47, 107, 255, 0.42) !important;
    background: rgba(238, 244, 255, 0.94) !important;
    color: var(--pb-color-accent, #2f6bff) !important;
  }

  .app-shell .main .crm-address-page #crmClientList.crm-client-list .crm-client-card .client-directory-row > .crm-client-select-index .action-svg {
    width: 12px !important;
    height: 12px !important;
    stroke: currentColor !important;
  }

  .app-shell .main .crm-address-page #crmClientList.crm-client-list .crm-client-card .client-directory-row > .crm-client-select-index:not(.active) .action-svg {
    opacity: 0 !important;
  }

  .app-shell .main .crm-address-page #crmClientList.crm-client-list .crm-client-card .client-directory-row > .crm-avatar,
  .app-shell .main .crm-address-page #crmClientList.crm-client-list .crm-client-card .client-directory-row > .crm-client-status-avatar {
    grid-column: 2 !important;
    grid-row: 1 !important;
    align-self: center !important;
    justify-self: center !important;
    transform: none !important;
  }

  .app-shell .main .crm-address-page #crmClientList.crm-client-list .crm-client-card .client-directory-row > .crm-client-status-avatar::after,
  .app-shell .main .crm-address-page #crmClientList.crm-client-list .crm-client-card .client-directory-row > .crm-avatar::after {
    display: none !important;
  }

  .app-shell .main .crm-address-page #crmClientList.crm-client-list .crm-client-card .client-directory-row > .crm-client-status-avatar .status-avatar-svg {
    width: 19px !important;
    height: 19px !important;
  }

  .app-shell .main .crm-address-page #crmClientList.crm-client-list .crm-client-card .client-directory-row > .crm-client-identity {
    grid-column: 3 !important;
    grid-row: 1 !important;
    height: 28px !important;
    padding-left: 4px !important;
    padding-right: 12px !important;
    align-items: center !important;
    align-self: center !important;
    justify-self: stretch !important;
    width: 100% !important;
    min-width: 0 !important;
    transform: none !important;
  }

  .app-shell .main .crm-address-page #crmClientList.crm-client-list .crm-client-card .client-directory-row > .crm-client-identity strong {
    font-size: 13px !important;
    line-height: 16px !important;
  }

  .app-shell .main .crm-address-page #crmClientList.crm-client-list .crm-client-card .client-directory-row > .crm-client-phone {
    grid-column: 4 !important;
    grid-row: 1 !important;
    height: 28px !important;
    padding-left: 14px !important;
    font-size: 13px !important;
    line-height: 16px !important;
    align-items: center !important;
    align-self: center !important;
    justify-self: stretch !important;
    justify-content: flex-start !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    margin: 0 !important;
    transform: none !important;
  }

  .app-shell .main .crm-address-page #crmClientList.crm-client-list .crm-client-card .client-directory-row > .client-row-more {
    grid-column: 5 !important;
    grid-row: 1 !important;
    width: 28px !important;
    min-width: 28px !important;
    height: 28px !important;
    min-height: 28px !important;
    place-self: center end !important;
    margin: 0 !important;
    transform: none !important;
  }

  .app-shell .main .crm-address-page #crmClientList.crm-client-list .crm-client-card .client-directory-row > .client-row-more .action-svg {
    width: 13px !important;
    height: 13px !important;
  }

  .app-shell .main .crm-address-page #crmClientList.crm-client-list .crm-client-card .client-directory-row > .crm-row-actions {
    grid-column: 5 !important;
    grid-row: 1 !important;
    width: 58px !important;
    min-width: 58px !important;
    max-width: 58px !important;
    place-self: center end !important;
    margin: 0 !important;
    transform: none !important;
  }

  .app-shell .main .crm-address-page #crmClientList.crm-client-list .crm-client-card .client-directory-row > .crm-row-actions .action-icon-btn,
  .app-shell .main .crm-address-page #crmClientList.crm-client-list .crm-client-card .client-directory-row > .crm-row-actions summary.action-icon-btn {
    width: 26px !important;
    min-width: 26px !important;
    max-width: 26px !important;
    height: 26px !important;
    min-height: 26px !important;
    max-height: 26px !important;
  }

  .app-shell .main .crm-address-page #crmClientList.crm-client-list .crm-client-card .client-directory-row > .crm-row-actions .action-svg {
    width: 13px !important;
    height: 13px !important;
  }

  .app-shell .main .crm-address-page #crmClientList.crm-client-list .crm-profile-summary {
    padding-top: 8px !important;
    padding-bottom: 8px !important;
  }

  .app-shell .main .crm-address-page #crmClientList.crm-client-list .crm-profile-summary p,
  .app-shell .main .crm-address-page #crmClientList.crm-client-list .crm-profile-summary p:first-child,
  .app-shell .main .crm-address-page #crmClientList.crm-client-list .crm-profile-summary p:last-child,
  .app-shell .main .crm-address-page #crmClientList.crm-client-list .crm-profile-summary p:nth-child(2n),
  .app-shell .main .crm-address-page #crmClientList.crm-client-list .crm-profile-summary p:nth-last-child(-n + 2) {
    min-height: 34px !important;
    padding-top: 3px !important;
    padding-bottom: 3px !important;
    grid-template-columns: 22px minmax(130px, 0.42fr) minmax(0, 1fr) !important;
    column-gap: 12px !important;
  }

  .app-shell .main .crm-address-page #crmClientList.crm-client-list .crm-profile-summary .crm-profile-icon {
    width: 18px !important;
    height: 18px !important;
  }

  .app-shell .main .crm-address-page #crmClientList.crm-client-list .crm-profile-summary .crm-profile-icon .action-svg {
    width: 15px !important;
    height: 15px !important;
  }

  .app-shell .main .crm-address-page #crmClientList.crm-client-list .crm-profile-inline-edit input:not([type="hidden"]),
  .app-shell .main .crm-address-page #crmClientList.crm-client-list .crm-profile-inline-edit select {
    height: 26px !important;
    min-height: 26px !important;
    padding: 3px 9px !important;
    border-radius: 8px !important;
    font-size: 13px !important;
    line-height: 16px !important;
  }

  .app-shell .main .crm-address-page #crmClientList.crm-client-list .crm-profile-inline-edit select {
    background-position: calc(100% - 16px) 50%, calc(100% - 11px) 50% !important;
  }

  .app-shell .main .crm-address-page #crmClientList.crm-client-list .crm-vehicle-panel {
    gap: 5px !important;
    padding: 7px 18px 8px !important;
  }

  .app-shell .main .crm-address-page #crmClientList.crm-client-list .crm-vehicle-panel .vehicle-section-head {
    min-height: 26px !important;
  }

  .app-shell .main .crm-address-page #crmClientList.crm-client-list .crm-vehicle-panel .btn-add-compact {
    width: 26px !important;
    min-width: 26px !important;
    max-width: 26px !important;
    height: 26px !important;
    min-height: 26px !important;
    max-height: 26px !important;
    font-size: 16px !important;
  }

  .app-shell .main .crm-address-page #crmClientList.crm-client-list .crm-empty-vehicle,
  .app-shell .main .crm-address-page #crmClientList.crm-client-list .crm-vehicle-panel .vehicle-row {
    min-height: 38px !important;
    padding-top: 5px !important;
    padding-bottom: 5px !important;
  }

  .app-shell .main .crm-address-page #crmClientList.crm-client-list .crm-empty-vehicle {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
  }

  .app-shell .main .crm-address-page #crmClientList.crm-client-list .crm-empty-vehicle .action-svg {
    width: 16px !important;
    height: 16px !important;
  }

  .app-shell .main .crm-address-page #crmClientList.crm-client-list .crm-client-sections {
    gap: 8px !important;
    padding: 8px 18px 10px !important;
  }

  .app-shell .main .crm-address-page #crmClientList.crm-client-list .crm-client-sections summary {
    min-height: 34px !important;
    height: 34px !important;
    padding: 0 8px 0 12px !important;
    font-size: 13px !important;
    line-height: 16px !important;
  }

  .app-shell .main .crm-address-page #crmClientList.crm-client-list .client-section-summary-meta {
    gap: 6px !important;
  }

  .app-shell .main .crm-address-page #crmClientList.crm-client-list .client-section-chevron {
    width: 28px !important;
    min-width: 28px !important;
    height: 28px !important;
  }

  .app-shell .main .crm-address-page #crmClientList.crm-client-list .client-section-chevron .action-svg {
    width: 13px !important;
    height: 13px !important;
  }
}

.app-shell .main .crm-address-page .crm-menu-dots,
.app-shell .main .crm-address-page .crm-mobile-menu-dots {
  display: grid !important;
  place-items: center !important;
  width: 100% !important;
  height: 100% !important;
  color: #0f172a !important;
  font-family: var(--pb-font-system, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif) !important;
  font-size: 24px !important;
  font-weight: 650 !important;
  line-height: 1 !important;
  letter-spacing: 0 !important;
  transform: none !important;
}

.app-shell .main .crm-address-page .crm-action-menu summary.action-icon-btn .crm-menu-dots,
.app-shell .main .crm-address-page .crm-more-action-btn .crm-menu-dots {
  font-size: 16px !important;
  font-weight: 600 !important;
}

.app-shell .main .crm-address-page .crm-action-menu summary.action-icon-btn .action-svg,
.app-shell .main .crm-address-page .crm-more-action-btn .action-svg {
  display: none !important;
}

.app-shell .main .crm-address-page .crm-mobile-menu-dots {
  font-size: 18px !important;
  font-weight: 650 !important;
}

.app-shell .main .crm-address-page .crm-search-box input,
.app-shell .main .crm-address-page .crm-search-box input:focus,
.app-shell .main .crm-address-page .crm-search-box input:focus-visible {
  border: 0 !important;
  outline: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  -webkit-box-shadow: none !important;
}

@media (min-width: 761px) {
  .app-shell .main .crm-address-page #crmClientList.crm-client-list .crm-client-card.expanded .crm-empty-vehicle {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-height: 38px !important;
    height: 38px !important;
    padding: 5px 10px !important;
    gap: 8px !important;
  }

  .app-shell .main .crm-address-page #crmClientList.crm-client-list .crm-client-card.expanded .crm-empty-vehicle .action-svg {
    width: 16px !important;
    height: 16px !important;
  }
}

@media (max-width: 760px) {
  .app-shell .main:has(.crm-address-page) {
    padding: 0 !important;
    background: #f7f9ff !important;
  }

  .app-shell .main .crm-address-page {
    min-height: 100dvh !important;
    background: #f7f9ff !important;
  }

  .app-shell .main .crm-address-content {
    padding: calc(40px + env(safe-area-inset-top, 0px)) 16px calc(112px + env(safe-area-inset-bottom, 0px)) !important;
    gap: 0 !important;
  }

  .app-shell .main .crm-page-title {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto !important;
    align-items: center !important;
    gap: 12px !important;
    min-height: 48px !important;
    margin: 0 0 24px !important;
  }

  .app-shell .main .crm-page-title h1 {
    display: flex !important;
    align-items: baseline !important;
    min-width: 0 !important;
    gap: 18px !important;
    margin: 0 !important;
    color: #071225 !important;
    font-size: 32px !important;
    font-weight: 760 !important;
    line-height: 38px !important;
    letter-spacing: 0 !important;
  }

  .app-shell .main .crm-page-title h1 span {
    min-height: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    color: #66728a !important;
    font-size: 17px !important;
    font-weight: 500 !important;
    line-height: 24px !important;
    white-space: nowrap !important;
  }

  .app-shell .main .crm-title-actions {
    gap: 14px !important;
  }

  .app-shell .main .crm-title-actions > .crm-bulk-toggle-btn,
  .app-shell .main .crm-title-actions > .crm-bulk-del-btn {
    display: none !important;
  }

  .app-shell .main .crm-mobile-controls {
    position: relative !important;
    display: block !important;
  }

  .app-shell .main .crm-mobile-controls summary {
    list-style: none !important;
  }

  .app-shell .main .crm-mobile-controls summary::-webkit-details-marker {
    display: none !important;
  }

  .app-shell .main .crm-mobile-menu-btn,
  .app-shell .main .crm-add-client-btn {
    display: inline-grid !important;
    place-items: center !important;
    width: 44px !important;
    min-width: 44px !important;
    max-width: 44px !important;
    height: 44px !important;
    min-height: 44px !important;
    max-height: 44px !important;
    padding: 0 !important;
    border: 1px solid #dce3ef !important;
    border-radius: 16px !important;
    background: rgba(255, 255, 255, 0.9) !important;
    color: #0a1530 !important;
    font-size: 0 !important;
    line-height: 1 !important;
    box-shadow: 0 8px 22px rgba(17, 31, 62, 0.045) !important;
    cursor: pointer !important;
  }

  .app-shell .main .crm-add-client-btn {
    color: #1769ff !important;
  }

  .app-shell .main .crm-add-client-btn span {
    font-size: 28px !important;
    font-weight: 360 !important;
    line-height: 1 !important;
  }

  .app-shell .main .crm-mobile-menu-btn .action-svg {
    width: 22px !important;
    height: 22px !important;
    stroke: currentColor !important;
    stroke-width: 2.3 !important;
  }

  .app-shell .main .crm-mobile-controls-panel {
    position: absolute !important;
    top: calc(100% + 10px) !important;
    right: 0 !important;
    z-index: 80 !important;
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) 44px !important;
    gap: 8px !important;
    width: min(286px, calc(100vw - 32px)) !important;
    padding: 10px !important;
    border: 1px solid #dce3ef !important;
    border-radius: 18px !important;
    background: rgba(255, 255, 255, 0.98) !important;
    box-shadow: 0 18px 42px rgba(17, 31, 62, 0.14) !important;
  }

  .app-shell .main .crm-mobile-controls-panel .crm-status-filters {
    display: grid !important;
    grid-column: 1 / -1 !important;
    width: 100% !important;
    min-width: 0 !important;
  }

  .app-shell .main .crm-mobile-controls-panel .crm-sort-select {
    display: block !important;
    width: 100% !important;
    min-width: 0 !important;
  }

  .app-shell .main .crm-mobile-controls-panel .crm-sort-dir-btn {
    display: inline-grid !important;
    width: 44px !important;
    min-width: 44px !important;
    max-width: 44px !important;
    height: 44px !important;
    min-height: 44px !important;
    justify-self: end !important;
  }

  .app-shell .main .crm-filter-row {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 0 !important;
    margin: 0 0 14px !important;
  }

  .app-shell .main .crm-filter-row > .crm-status-filters,
  .app-shell .main .crm-filter-row > .crm-sort-select,
  .app-shell .main .crm-filter-row > .crm-sort-dir-btn {
    display: none !important;
  }

  .app-shell .main .crm-search-box {
    grid-column: 1 / -1 !important;
    width: 100% !important;
    min-height: 52px !important;
    height: 52px !important;
    padding: 0 16px 0 48px !important;
    border: 1px solid #dce3ef !important;
    border-radius: 17px !important;
    background: rgba(255, 255, 255, 0.92) !important;
    box-shadow: 0 8px 24px rgba(17, 31, 62, 0.035) !important;
  }

  .app-shell .main .crm-search-box > span {
    left: 18px !important;
    width: 18px !important;
    height: 18px !important;
    color: #60708f !important;
  }

  .app-shell .main .crm-search-box .action-svg {
    width: 18px !important;
    height: 18px !important;
    stroke-width: 2.4 !important;
  }

  .app-shell .main .crm-search-box input {
    height: 50px !important;
    color: #071225 !important;
    font-size: 17px !important;
    font-weight: 500 !important;
    line-height: 24px !important;
  }

  .app-shell .main .crm-search-box input::placeholder {
    color: #78839d !important;
    font-weight: 500 !important;
  }

  .app-shell .main .crm-address-page .crm-client-list {
    display: block !important;
    width: 100% !important;
    margin-top: 0 !important;
    overflow: visible !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
  }

  .app-shell .main .crm-address-page .crm-client-list .crm-client-card {
    overflow: hidden !important;
    border: 1px solid #dce3ef !important;
    border-radius: 17px !important;
    background: rgba(255, 255, 255, 0.94) !important;
    box-shadow: 0 8px 24px rgba(17, 31, 62, 0.035) !important;
  }

  .app-shell .main .crm-address-page .crm-client-list .crm-client-card + .crm-client-card {
    margin-top: 10px !important;
    border-top: 1px solid #dce3ef !important;
  }

  .app-shell .main .crm-address-page #crmClientList.crm-client-list .crm-client-card .client-directory-row,
  .app-shell .main .crm-address-page #crmClientList.crm-client-list .crm-client-card .client-directory-row:hover,
  .app-shell .main .crm-address-page #crmClientList.crm-client-list .crm-client-card .client-directory-row:focus,
  .app-shell .main .crm-address-page #crmClientList.crm-client-list .crm-client-card.expanded .client-directory-row,
  .app-shell .main .crm-address-page #crmClientList.crm-client-list .crm-client-card.expanded .client-directory-row:hover,
  .app-shell .main .crm-address-page #crmClientList.crm-client-list .crm-client-card.expanded .client-directory-row:focus {
    display: grid !important;
    grid-template-columns: 46px minmax(0, 1fr) 28px !important;
    grid-auto-rows: auto !important;
    align-items: center !important;
    gap: 12px !important;
    min-height: 64px !important;
    height: 64px !important;
    padding: 8px 14px 8px 10px !important;
    border-radius: 17px !important;
    background: transparent !important;
  }

  .app-shell .main .crm-address-page #crmClientList.crm-client-list .crm-client-card .client-directory-row > .crm-client-index,
  .app-shell .main .crm-address-page #crmClientList.crm-client-list .crm-client-card .client-directory-row > .crm-client-select-index,
  .app-shell .main .crm-address-page #crmClientList.crm-client-list .crm-client-card .client-directory-row > .crm-client-status-avatar,
  .app-shell .main .crm-address-page #crmClientList.crm-client-list .crm-client-card .client-directory-row > .crm-client-phone,
  .app-shell .main .crm-address-page #crmClientList.crm-client-list .crm-client-card .client-directory-row > .crm-status-pill {
    display: none !important;
  }

  .app-shell .main .crm-address-page #crmClientList.crm-client-list .crm-client-card .client-directory-row > .crm-client-mobile-avatar {
    grid-column: 1 !important;
    grid-row: 1 !important;
    display: grid !important;
    place-items: center !important;
    align-self: center !important;
    justify-self: center !important;
    width: 34px !important;
    min-width: 34px !important;
    height: 34px !important;
    border-radius: 999px !important;
    background: #edf4ff !important;
    color: #1769ff !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    line-height: 1 !important;
  }

  .app-shell .main .crm-address-page #crmClientList.crm-client-list .crm-client-card .client-directory-row > .crm-client-identity {
    grid-column: 2 !important;
    grid-row: 1 !important;
    display: grid !important;
    align-content: center !important;
    gap: 3px !important;
    width: 100% !important;
    min-width: 0 !important;
    height: auto !important;
    padding: 0 !important;
  }

  .app-shell .main .crm-address-page #crmClientList.crm-client-list .crm-client-card .client-directory-row > .crm-client-identity::after {
    display: none !important;
  }

  .app-shell .main .crm-address-page #crmClientList.crm-client-list .crm-client-card .client-directory-row > .crm-client-identity strong {
    overflow: hidden !important;
    color: #071225 !important;
    font-size: 17px !important;
    font-weight: 760 !important;
    line-height: 20px !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
  }

  .app-shell .main .crm-address-page #crmClientList.crm-client-list .crm-client-card .client-directory-row > .crm-client-identity .crm-client-mobile-phone {
    display: inline-flex !important;
    align-items: center !important;
    gap: 10px !important;
    min-width: 0 !important;
    max-width: 100% !important;
    margin: 0 !important;
    overflow: hidden !important;
    color: #78839d !important;
    font-size: 15px !important;
    font-weight: 500 !important;
    line-height: 18px !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
  }

  .app-shell .main .crm-address-page #crmClientList.crm-client-list .crm-client-card .client-directory-row > .crm-client-identity .crm-client-mobile-phone i {
    width: 9px !important;
    min-width: 9px !important;
    height: 9px !important;
    border-radius: 999px !important;
    background: #35c759 !important;
  }

  .app-shell .main .crm-address-page #crmClientList.crm-client-list .crm-client-card .client-directory-row > .client-row-more {
    grid-column: 3 !important;
    grid-row: 1 !important;
    display: inline-grid !important;
    place-items: center !important;
    place-self: center end !important;
    width: 28px !important;
    min-width: 28px !important;
    height: 44px !important;
    min-height: 44px !important;
    border: 0 !important;
    background: transparent !important;
    color: #98a4ba !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
  }

  .app-shell .main .crm-address-page #crmClientList.crm-client-list .crm-client-card .client-directory-row > .client-row-more::before {
    content: none !important;
  }

  .app-shell .main .crm-address-page #crmClientList.crm-client-list .crm-client-card .client-directory-row > .client-row-more .action-svg {
    width: 21px !important;
    height: 21px !important;
    stroke: currentColor !important;
    stroke-width: 2.7 !important;
  }

  .app-shell .main .crm-address-page .crm-pagination {
    display: none !important;
  }
}

@media (max-width: 760px) {
  .app-shell .main .crm-title-actions {
    gap: 12px !important;
  }

  .app-shell .main .crm-mobile-menu-btn,
  .app-shell .main .crm-add-client-btn {
    width: 42px !important;
    min-width: 42px !important;
    max-width: 42px !important;
    height: 42px !important;
    min-height: 42px !important;
    max-height: 42px !important;
    border-color: #d9e2ef !important;
    border-radius: 15px !important;
    background: rgba(255, 255, 255, 0.96) !important;
    box-shadow: 0 6px 18px rgba(17, 31, 62, 0.04) !important;
  }

  .app-shell .main .crm-mobile-menu-btn .action-svg {
    width: 22px !important;
    height: 22px !important;
    fill: #071225 !important;
    stroke: none !important;
  }

  .app-shell .main .crm-add-client-btn span {
    display: block !important;
    transform: translateY(-1px) !important;
    color: #1769ff !important;
    font-size: 29px !important;
    font-weight: 300 !important;
    line-height: 38px !important;
  }

  .app-shell .main .crm-address-page #crmClientList.crm-client-list .crm-client-card {
    border-radius: 16px !important;
  }

  .app-shell .main .crm-address-page #crmClientList.crm-client-list .crm-client-card .client-directory-row,
  .app-shell .main .crm-address-page #crmClientList.crm-client-list .crm-client-card .client-directory-row:hover,
  .app-shell .main .crm-address-page #crmClientList.crm-client-list .crm-client-card .client-directory-row:focus,
  .app-shell .main .crm-address-page #crmClientList.crm-client-list .crm-client-card.expanded .client-directory-row,
  .app-shell .main .crm-address-page #crmClientList.crm-client-list .crm-client-card.expanded .client-directory-row:hover,
  .app-shell .main .crm-address-page #crmClientList.crm-client-list .crm-client-card.expanded .client-directory-row:focus {
    grid-template-columns: 36px minmax(0, 1fr) 24px !important;
    gap: 9px !important;
    min-height: 48px !important;
    height: 48px !important;
    padding: 6px 12px 6px 8px !important;
    border-radius: 16px !important;
  }

  .app-shell .main .crm-address-page #crmClientList.crm-client-list .crm-client-card .client-directory-row > .crm-client-mobile-avatar {
    width: 29px !important;
    min-width: 29px !important;
    height: 29px !important;
    font-size: 13px !important;
  }

  .app-shell .main .crm-address-page #crmClientList.crm-client-list .crm-client-card .client-directory-row > .crm-client-identity {
    gap: 1px !important;
  }

  .app-shell .main .crm-address-page #crmClientList.crm-client-list .crm-client-card .client-directory-row > .crm-client-identity strong {
    font-size: 15px !important;
    line-height: 17px !important;
  }

  .app-shell .main .crm-address-page #crmClientList.crm-client-list .crm-client-card .client-directory-row > .crm-client-identity .crm-client-mobile-phone {
    gap: 8px !important;
    font-size: 13px !important;
    line-height: 15px !important;
  }

  .app-shell .main .crm-address-page #crmClientList.crm-client-list .crm-client-card .client-directory-row > .crm-client-identity .crm-client-mobile-phone i {
    width: 7px !important;
    min-width: 7px !important;
    height: 7px !important;
  }

  .app-shell .main .crm-address-page #crmClientList.crm-client-list .crm-client-card .client-directory-row > .client-row-more {
    width: 24px !important;
    min-width: 24px !important;
    height: 44px !important;
    min-height: 44px !important;
  }

  .app-shell .main .crm-address-page #crmClientList.crm-client-list .crm-client-card .client-directory-row > .client-row-more .action-svg {
    width: 18px !important;
    height: 18px !important;
    stroke-width: 2.6 !important;
  }
}

@media (max-width: 760px) {
  .app-shell .main .crm-address-page #crmClientList.crm-client-list .crm-client-card .client-directory-row,
  .app-shell .main .crm-address-page #crmClientList.crm-client-list .crm-client-card .client-directory-row:hover,
  .app-shell .main .crm-address-page #crmClientList.crm-client-list .crm-client-card .client-directory-row:focus,
  .app-shell .main .crm-address-page #crmClientList.crm-client-list .crm-client-card.expanded .client-directory-row,
  .app-shell .main .crm-address-page #crmClientList.crm-client-list .crm-client-card.expanded .client-directory-row:hover,
  .app-shell .main .crm-address-page #crmClientList.crm-client-list .crm-client-card.expanded .client-directory-row:focus {
    align-items: center !important;
    grid-template-columns: 34px minmax(0, 1fr) 24px !important;
    min-height: 48px !important;
    height: 48px !important;
    padding-top: 4px !important;
    padding-bottom: 4px !important;
  }

  .app-shell .main .crm-address-page #crmClientList.crm-client-list .crm-client-card .client-directory-row > .crm-client-mobile-avatar {
    align-self: center !important;
    justify-self: center !important;
    width: 28px !important;
    min-width: 28px !important;
    height: 28px !important;
  }

  .app-shell .main .crm-address-page #crmClientList.crm-client-list .crm-client-card .client-directory-row > .crm-client-identity {
    align-self: center !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    gap: 0 !important;
    height: 36px !important;
    min-height: 36px !important;
  }

  .app-shell .main .crm-address-page #crmClientList.crm-client-list .crm-client-card .client-directory-row > .crm-client-identity strong {
    display: block !important;
    height: 18px !important;
    line-height: 18px !important;
  }

  .app-shell .main .crm-address-page #crmClientList.crm-client-list .crm-client-card .client-directory-row > .crm-client-identity .crm-client-mobile-phone {
    display: inline-flex !important;
    align-items: center !important;
    height: 16px !important;
    line-height: 16px !important;
  }

  .app-shell .main .crm-address-page #crmClientList.crm-client-list .crm-client-card .client-directory-row > .crm-client-identity .crm-client-mobile-phone i {
    align-self: center !important;
    margin-top: 0 !important;
  }

  .app-shell .main .crm-address-page #crmClientList.crm-client-list .crm-client-card .client-directory-row > .client-row-more {
    align-self: center !important;
    justify-self: end !important;
    place-self: center end !important;
    display: inline-grid !important;
    place-items: center !important;
    height: 44px !important;
    min-height: 44px !important;
  }
}

@media (max-width: 760px) {
  .app-shell .main .crm-address-page #crmClientList.crm-client-list .crm-client-card.expanded .client-directory-row {
    grid-template-columns: 34px minmax(0, 1fr) auto !important;
  }

  .app-shell .main .crm-address-page #crmClientList.crm-client-list .crm-client-card.expanded .crm-row-actions {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
    gap: 5px !important;
    width: auto !important;
    min-width: 0 !important;
    height: 36px !important;
    min-height: 36px !important;
  }

  .app-shell .main .crm-address-page #crmClientList.crm-client-list .crm-client-card.expanded .crm-row-actions .action-icon-btn,
  .app-shell .main .crm-address-page #crmClientList.crm-client-list .crm-client-card.expanded .crm-row-actions summary.action-icon-btn {
    width: 34px !important;
    min-width: 34px !important;
    max-width: 34px !important;
    height: 34px !important;
    min-height: 34px !important;
    max-height: 34px !important;
    border-radius: 999px !important;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.025) !important;
  }

  .app-shell .main .crm-address-page #crmClientList.crm-client-list .crm-client-card.expanded .crm-row-actions .action-svg {
    width: 14px !important;
    height: 14px !important;
    stroke-width: 1.9 !important;
  }

  .app-shell .main .crm-address-page #crmClientList.crm-client-list .crm-client-card .client-expanded-card {
    padding: 0 8px 8px !important;
  }

  .app-shell .main .crm-address-page #crmClientList.crm-client-list .crm-profile-summary {
    padding: 4px 12px !important;
  }

  .app-shell .main .crm-address-page #crmClientList.crm-client-list .crm-profile-summary p,
  .app-shell .main .crm-address-page #crmClientList.crm-client-list .crm-profile-summary p:first-child,
  .app-shell .main .crm-address-page #crmClientList.crm-client-list .crm-profile-summary p:last-child,
  .app-shell .main .crm-address-page #crmClientList.crm-client-list .crm-profile-summary p:nth-child(2n),
  .app-shell .main .crm-address-page #crmClientList.crm-client-list .crm-profile-summary p:nth-last-child(-n + 2) {
    grid-template-columns: 20px minmax(0, 1fr) !important;
    grid-template-rows: auto auto !important;
    align-items: center !important;
    align-content: center !important;
    column-gap: 10px !important;
    row-gap: 1px !important;
    min-height: 32px !important;
    padding: 3px 0 !important;
  }

  .app-shell .main .crm-address-page #crmClientList.crm-client-list .crm-profile-summary .crm-profile-icon {
    grid-column: 1 !important;
    grid-row: 1 / span 2 !important;
    place-self: center !important;
    width: 18px !important;
    height: 18px !important;
  }

  .app-shell .main .crm-address-page #crmClientList.crm-client-list .crm-profile-summary .crm-profile-icon .action-svg {
    width: 15px !important;
    height: 15px !important;
  }

  .app-shell .main .crm-address-page #crmClientList.crm-client-list .crm-profile-summary p > span:not(.crm-profile-icon) {
    grid-column: 2 !important;
    grid-row: 1 !important;
    font-size: 12px !important;
    line-height: 14px !important;
  }

  .app-shell .main .crm-address-page #crmClientList.crm-client-list .crm-profile-summary strong {
    grid-column: 2 !important;
    grid-row: 2 !important;
    font-size: 13px !important;
    line-height: 16px !important;
  }
}

@media (max-width: 760px) {
  .app-shell .main:has(.crm-address-page) {
    padding-top: 0 !important;
    background: #f5f8fc !important;
  }

  .app-shell .main .crm-address-page {
    min-height: 100dvh !important;
    background: #f5f8fc !important;
  }

  .app-shell .main .crm-address-content {
    width: 100% !important;
    max-width: none !important;
    min-height: 100dvh !important;
    padding: 66px 18px 118px !important;
    gap: 0 !important;
    background: #f5f8fc !important;
  }

  .app-shell .main .crm-page-title {
    position: relative !important;
    z-index: 120 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    min-height: 44px !important;
    height: 44px !important;
    margin: 0 0 10px !important;
    padding: 0 !important;
  }

  .app-shell .main .crm-page-title h1 {
    display: flex !important;
    align-items: center !important;
    gap: 18px !important;
    min-width: 0 !important;
    margin: 0 !important;
    color: #0f172a !important;
    font-size: 28px !important;
    font-weight: 800 !important;
    line-height: 38px !important;
    letter-spacing: 0 !important;
  }

  .app-shell .main .crm-page-title h1 span {
    transform: translateY(3px) !important;
    color: #66758d !important;
    font-size: 15px !important;
    font-weight: 400 !important;
    line-height: 24px !important;
  }

  .app-shell .main .crm-title-actions {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
    gap: 10px !important;
    width: 98px !important;
    min-width: 98px !important;
    height: 44px !important;
    transform: translateX(8px) !important;
  }

  .app-shell .main .crm-mobile-controls {
    position: relative !important;
    display: block !important;
    width: 44px !important;
    height: 44px !important;
  }

  .app-shell .main .crm-mobile-menu-btn,
  .app-shell .main .crm-add-client-btn {
    position: relative !important;
    width: 44px !important;
    min-width: 44px !important;
    max-width: 44px !important;
    height: 44px !important;
    min-height: 44px !important;
    max-height: 44px !important;
    border: 1px solid #dce5f2 !important;
    border-radius: 14px !important;
    background: #fff !important;
    box-shadow: none !important;
  }

  .app-shell .main .crm-mobile-menu-btn .action-svg {
    display: none !important;
  }

  .app-shell .main .crm-mobile-menu-dots,
  .app-shell .main .crm-add-client-btn span {
    position: absolute !important;
    inset: 0 !important;
    display: grid !important;
    place-items: center !important;
    width: 100% !important;
    height: 100% !important;
    min-width: 100% !important;
    min-height: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    text-align: center !important;
    font-family: var(--pb-font-system, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif) !important;
    font-size: 24px !important;
    font-weight: 500 !important;
    line-height: 1 !important;
    letter-spacing: 0 !important;
    transform: none !important;
  }

  .app-shell .main .crm-mobile-menu-dots {
    color: #0f172a !important;
  }

  .app-shell .main .crm-add-client-btn span {
    color: #2563ff !important;
  }

  .app-shell .main .crm-mobile-controls-panel {
    position: absolute !important;
    top: 46px !important;
    right: -46px !important;
    z-index: 90 !important;
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 0 !important;
    width: 184px !important;
    min-width: 184px !important;
    height: 178px !important;
    padding: 15px 18px 14px !important;
    border: 1px solid #dce5f2 !important;
    border-radius: 16px !important;
    background: #fff !important;
    box-shadow: 0 14px 28px rgba(13, 31, 56, 0.12) !important;
  }

  .app-shell .main .crm-mobile-menu-title,
  .app-shell .main .crm-mobile-menu-item {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    width: 100% !important;
    min-height: 27px !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    text-align: left !important;
    white-space: nowrap !important;
  }

  .app-shell .main .crm-mobile-menu-title {
    color: #66758d !important;
    font-size: 13px !important;
    font-weight: 650 !important;
    line-height: 18px !important;
  }

  .app-shell .main .crm-mobile-menu-item {
    color: #0f172a !important;
    font-size: 15px !important;
    font-weight: 400 !important;
    line-height: 20px !important;
    cursor: pointer !important;
  }

  .app-shell .main .crm-mobile-menu-item.active {
    color: #2563ff !important;
    font-weight: 650 !important;
  }

  .app-shell .main .crm-mobile-menu-divider {
    display: block !important;
    width: 148px !important;
    height: 1px !important;
    margin: 5px 0 10px !important;
    background: #e5ecf6 !important;
  }

  .app-shell .main .crm-filter-row {
    position: relative !important;
    z-index: 1 !important;
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    width: 100% !important;
    min-height: 48px !important;
    height: 48px !important;
    margin: 0 0 16px !important;
    padding: 0 !important;
    gap: 0 !important;
  }

  .app-shell .main .crm-search-box {
    width: 100% !important;
    min-height: 48px !important;
    height: 48px !important;
    padding: 0 16px 0 49px !important;
    border: 1px solid #dce5f2 !important;
    border-radius: 14px !important;
    background: #fff !important;
    box-shadow: none !important;
  }

  .app-shell .main .crm-search-box > span {
    left: 16px !important;
    width: 18px !important;
    height: 18px !important;
    color: #66758d !important;
  }

  .app-shell .main .crm-search-box .action-svg {
    width: 18px !important;
    height: 18px !important;
    stroke-width: 2.1 !important;
  }

  .app-shell .main .crm-search-box input {
    height: 46px !important;
    color: #0f172a !important;
    font-size: 15px !important;
    font-weight: 400 !important;
    line-height: 20px !important;
  }

  .app-shell .main .crm-search-box input::placeholder {
    color: #8290a6 !important;
    font-size: 15px !important;
    font-weight: 400 !important;
  }

  .app-shell .main .crm-address-page .crm-client-list {
    position: relative !important;
    z-index: 1 !important;
    width: 100% !important;
    margin: 0 !important;
  }

  .app-shell .main .crm-address-page #crmClientList.crm-client-list .crm-client-card {
    width: 100% !important;
    min-height: 48px !important;
    overflow: hidden !important;
    border: 1px solid #dce5f2 !important;
    border-radius: 14px !important;
    background: #fff !important;
    box-shadow: 0 6px 18px rgba(13, 31, 56, 0.04) !important;
  }

  .app-shell .main .crm-address-page #crmClientList.crm-client-list .crm-client-card:not(.expanded) {
    height: 48px !important;
  }

  .app-shell .main .crm-address-page #crmClientList.crm-client-list .crm-client-card .client-directory-row,
  .app-shell .main .crm-address-page #crmClientList.crm-client-list .crm-client-card .client-directory-row:hover,
  .app-shell .main .crm-address-page #crmClientList.crm-client-list .crm-client-card .client-directory-row:focus,
  .app-shell .main .crm-address-page #crmClientList.crm-client-list .crm-client-card.expanded .client-directory-row,
  .app-shell .main .crm-address-page #crmClientList.crm-client-list .crm-client-card.expanded .client-directory-row:hover,
  .app-shell .main .crm-address-page #crmClientList.crm-client-list .crm-client-card.expanded .client-directory-row:focus {
    grid-template-columns: 34px minmax(0, 1fr) 22px !important;
    grid-template-rows: 48px !important;
    gap: 14px !important;
    min-height: 48px !important;
    height: 48px !important;
    padding: 0 14px 0 15px !important;
    border-radius: 14px !important;
    background: transparent !important;
  }

  .app-shell .main .crm-address-page #crmClientList.crm-client-list .crm-client-card.expanded .client-directory-row,
  .app-shell .main .crm-address-page #crmClientList.crm-client-list .crm-client-card.expanded .client-directory-row:hover,
  .app-shell .main .crm-address-page #crmClientList.crm-client-list .crm-client-card.expanded .client-directory-row:focus {
    grid-template-columns: 34px minmax(0, 1fr) auto !important;
  }

  .app-shell .main .crm-address-page #crmClientList.crm-client-list .crm-client-card .client-directory-row > .crm-client-mobile-avatar {
    width: 30px !important;
    min-width: 30px !important;
    height: 30px !important;
    background: #edf3ff !important;
    color: #2563ff !important;
    font-size: 15px !important;
    font-weight: 650 !important;
    line-height: 18px !important;
  }

  .app-shell .main .crm-address-page #crmClientList.crm-client-list .crm-client-card .client-directory-row > .crm-client-identity {
    height: 36px !important;
    min-height: 36px !important;
    gap: 0 !important;
    justify-content: center !important;
  }

  .app-shell .main .crm-address-page #crmClientList.crm-client-list .crm-client-card .client-directory-row > .crm-client-identity strong {
    height: 18px !important;
    color: #0f172a !important;
    font-size: 15px !important;
    font-weight: 800 !important;
    line-height: 18px !important;
  }

  .app-shell .main .crm-address-page #crmClientList.crm-client-list .crm-client-card .client-directory-row > .crm-client-identity .crm-client-mobile-phone {
    height: 16px !important;
    gap: 8px !important;
    color: #66758d !important;
    font-size: 13px !important;
    font-weight: 400 !important;
    line-height: 16px !important;
  }

  .app-shell .main .crm-address-page #crmClientList.crm-client-list .crm-client-card .client-directory-row > .crm-client-identity .crm-client-mobile-phone i {
    width: 7px !important;
    min-width: 7px !important;
    height: 7px !important;
    background: #35c759 !important;
  }

  .app-shell .main .crm-address-page #crmClientList.crm-client-list .crm-client-card .client-directory-row > .client-row-more {
    width: 22px !important;
    min-width: 22px !important;
    height: 44px !important;
    min-height: 44px !important;
    color: #94a3b8 !important;
  }

  .app-shell .main .crm-address-page #crmClientList.crm-client-list .crm-client-card .client-directory-row > .client-row-more .action-svg {
    width: 18px !important;
    height: 18px !important;
    stroke-width: 2.8 !important;
  }

  .app-shell .main .crm-address-page #crmClientList.crm-client-list .crm-client-card.expanded .crm-row-actions {
    height: 44px !important;
    min-height: 44px !important;
  }

  .app-shell .main .crm-address-page #crmClientList.crm-client-list .crm-client-card.expanded .crm-row-actions .action-icon-btn,
  .app-shell .main .crm-address-page #crmClientList.crm-client-list .crm-client-card.expanded .crm-row-actions summary.action-icon-btn {
    width: 44px !important;
    min-width: 44px !important;
    max-width: 44px !important;
    height: 44px !important;
    min-height: 44px !important;
    max-height: 44px !important;
  }
}

@media (max-width: 1024px) {
  .app-shell .main .crm-address-page .crm-address-content {
    padding-top: max(10px, calc(env(safe-area-inset-top, 0px) + 8px)) !important;
  }

  .app-shell .main .crm-address-page #crmClientList.crm-client-list {
    display: block !important;
    width: 100% !important;
    margin: 0 !important;
    overflow: hidden !important;
    border: 1px solid #dce5f2 !important;
    border-radius: 14px !important;
    background: #fff !important;
    box-shadow: 0 6px 18px rgba(13, 31, 56, 0.04) !important;
  }

  .app-shell .main .crm-address-page #crmClientList.crm-client-list .crm-client-card,
  .app-shell .main .crm-address-page #crmClientList.crm-client-list .crm-client-card:hover,
  .app-shell .main .crm-address-page #crmClientList.crm-client-list .crm-client-card:focus-within,
  .app-shell .main .crm-address-page #crmClientList.crm-client-list .crm-client-card.expanded {
    margin: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
  }

  .app-shell .main .crm-address-page #crmClientList.crm-client-list .crm-client-card + .crm-client-card {
    margin-top: 0 !important;
    border-top: 1px solid #e5ecf6 !important;
  }

  .app-shell .main .crm-address-page #crmClientList.crm-client-list .client-directory-row,
  .app-shell .main .crm-address-page #crmClientList.crm-client-list .client-directory-row:hover,
  .app-shell .main .crm-address-page #crmClientList.crm-client-list .client-directory-row:focus {
    border-radius: 0 !important;
    box-shadow: none !important;
  }

  .app-shell .main .crm-address-page #crmClientList.crm-client-list .crm-client-card .client-expanded-card {
    border-top: 1px solid #e5ecf6 !important;
  }

  .app-shell .main .crm-address-page #crmClientList.crm-client-list .crm-client-card.expanded .crm-row-actions {
    gap: 5px !important;
    height: 32px !important;
    min-height: 32px !important;
  }

  .app-shell .main .crm-address-page #crmClientList.crm-client-list .crm-client-card.expanded .crm-row-actions .action-icon-btn,
  .app-shell .main .crm-address-page #crmClientList.crm-client-list .crm-client-card.expanded .crm-row-actions summary.action-icon-btn {
    width: 32px !important;
    min-width: 32px !important;
    max-width: 32px !important;
    height: 32px !important;
    min-height: 32px !important;
    max-height: 32px !important;
    border-radius: 999px !important;
    background: #fff !important;
    box-shadow: none !important;
  }

  .app-shell .main .crm-address-page #crmClientList.crm-client-list .crm-client-card.expanded .crm-row-actions .action-svg {
    width: 14px !important;
    height: 14px !important;
    stroke-width: 1.9 !important;
  }

  .app-shell .main .crm-address-page #crmClientList.crm-client-list .crm-vehicle-panel {
    gap: 5px !important;
    padding: 5px 14px 8px !important;
  }

  .app-shell .main .crm-address-page #crmClientList.crm-client-list .crm-vehicle-panel .vehicle-section-head {
    min-height: 30px !important;
    height: 30px !important;
  }

  .app-shell .main .crm-address-page #crmClientList.crm-client-list .crm-vehicle-panel h3 {
    font-size: 14px !important;
    line-height: 18px !important;
  }

  .app-shell .main .crm-address-page #crmClientList.crm-client-list .crm-vehicle-panel h3 span {
    min-width: 18px !important;
    height: 18px !important;
    padding: 0 6px !important;
    font-size: 11px !important;
    line-height: 18px !important;
  }

  .app-shell .main .crm-address-page #crmClientList.crm-client-list .crm-vehicle-panel .btn-add-compact {
    width: 30px !important;
    min-width: 30px !important;
    max-width: 30px !important;
    height: 30px !important;
    min-height: 30px !important;
    max-height: 30px !important;
    border-radius: 999px !important;
    font-size: 18px !important;
    line-height: 1 !important;
    box-shadow: none !important;
  }

  .app-shell .main .crm-address-page #crmClientList.crm-client-list .crm-empty-vehicle {
    min-height: 42px !important;
    padding: 7px 10px !important;
    border-radius: 12px !important;
  }

  .app-shell .main .crm-address-page #crmClientList.crm-client-list .crm-client-sections {
    display: block !important;
    overflow: hidden !important;
    margin: 8px 10px 10px !important;
    padding: 0 !important;
    border: 1px solid #e5ecf6 !important;
    border-radius: 12px !important;
    background: #fff !important;
    box-shadow: none !important;
  }

  .app-shell .main .crm-address-page #crmClientList.crm-client-list .crm-client-sections .client-compact-section {
    margin: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
  }

  .app-shell .main .crm-address-page #crmClientList.crm-client-list .crm-client-sections .client-compact-section + .client-compact-section {
    border-top: 1px solid #e5ecf6 !important;
  }

  .app-shell .main .crm-address-page #crmClientList.crm-client-list .crm-client-sections summary {
    min-height: 36px !important;
    height: 36px !important;
    padding: 0 6px 0 12px !important;
    border-radius: 0 !important;
    background: transparent !important;
    font-size: 13px !important;
    line-height: 17px !important;
  }

  .app-shell .main .crm-address-page #crmClientList.crm-client-list .client-section-summary-meta {
    gap: 6px !important;
  }

  .app-shell .main .crm-address-page #crmClientList.crm-client-list .crm-client-sections summary small {
    min-width: 22px !important;
    height: 22px !important;
    padding: 0 6px !important;
    border-radius: 999px !important;
    font-size: 12px !important;
    line-height: 22px !important;
  }

  .app-shell .main .crm-address-page #crmClientList.crm-client-list .client-section-chevron {
    width: 30px !important;
    min-width: 30px !important;
    height: 30px !important;
    min-height: 30px !important;
    border-radius: 10px !important;
  }

  .app-shell .main .crm-address-page #crmClientList.crm-client-list .client-section-chevron .action-svg {
    width: 13px !important;
    height: 13px !important;
  }
}

.app-shell .main .crm-address-page .crm-mobile-controls .crm-mobile-menu-dots {
  font-size: 18px !important;
  font-weight: 650 !important;
}

@media (max-width: 1024px) {
  .app-shell .main .crm-address-page #crmClientList.crm-client-list .crm-client-card .client-directory-row > .crm-client-identity .crm-client-mobile-phone {
    gap: 6px !important;
  }

  .app-shell .main .crm-address-page .crm-client-mobile-status {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex: 0 0 auto !important;
    max-width: 92px !important;
    height: 16px !important;
    min-height: 16px !important;
    padding: 0 5px !important;
    overflow: hidden !important;
    border: 1px solid rgba(47, 107, 255, 0.18) !important;
    border-radius: 999px !important;
    background: rgba(47, 107, 255, 0.08) !important;
    color: #2f6bff !important;
    font-size: 10px !important;
    font-weight: 700 !important;
    line-height: 14px !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
  }

  .app-shell .main .crm-address-page .crm-client-mobile-status.active {
    border-color: rgba(34, 163, 84, 0.2) !important;
    background: rgba(34, 163, 84, 0.1) !important;
    color: #1f8f4d !important;
  }

  .app-shell .main .crm-address-page .crm-client-mobile-status.vip {
    border-color: rgba(124, 82, 224, 0.2) !important;
    background: rgba(124, 82, 224, 0.1) !important;
    color: #6d45d2 !important;
  }

  .app-shell .main .crm-address-page .crm-client-mobile-status.blocked {
    border-color: rgba(220, 38, 38, 0.2) !important;
    background: rgba(220, 38, 38, 0.08) !important;
    color: #c81e1e !important;
  }

  .app-shell .main .crm-address-page .crm-client-mobile-status.duplicate {
    border-color: rgba(234, 88, 12, 0.2) !important;
    background: rgba(234, 88, 12, 0.09) !important;
    color: #c24a08 !important;
  }

  .app-shell .main .crm-address-page .crm-client-mobile-status.archived {
    border-color: rgba(107, 114, 128, 0.18) !important;
    background: rgba(107, 114, 128, 0.08) !important;
    color: #6b7280 !important;
  }
}

@media (max-width: 1024px) {
  .app-shell .main:has(.crm-address-page),
  .app-shell .main .crm-address-page,
  .app-shell .main .crm-address-content {
    background: #f2f2f7 !important;
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", Inter, "Segoe UI", sans-serif !important;
  }

  .app-shell .main .crm-address-content {
    padding-top: clamp(12px, calc(env(safe-area-inset-top, 0px) + 6px), 66px) !important;
  }

  .app-shell .main .crm-page-title {
    min-height: 52px !important;
    height: 52px !important;
    margin: 0 0 8px !important;
  }

  .app-shell .main .crm-page-title h1 {
    gap: 14px !important;
    font-size: 30px !important;
    font-weight: 700 !important;
    line-height: 36px !important;
  }

  .app-shell .main .crm-page-title h1 span {
    transform: none !important;
    color: #667085 !important;
    font-size: 17px !important;
    font-weight: 450 !important;
    line-height: 22px !important;
  }

  .app-shell .main .crm-title-actions {
    align-items: center !important;
    gap: 10px !important;
    height: 44px !important;
  }

  .app-shell .main .crm-mobile-controls,
  .app-shell .main .crm-mobile-menu-btn,
  .app-shell .main .crm-add-client-btn {
    width: 44px !important;
    min-width: 44px !important;
    max-width: 44px !important;
    height: 44px !important;
    min-height: 44px !important;
    max-height: 44px !important;
  }

  .app-shell .main .crm-mobile-menu-btn,
  .app-shell .main .crm-add-client-btn {
    border: 1px solid #dde5f0 !important;
    border-radius: 999px !important;
    box-shadow: 0 8px 24px rgba(20, 40, 80, 0.04) !important;
  }

  .app-shell .main .crm-mobile-menu-btn {
    background: rgba(255, 255, 255, 0.94) !important;
    color: #111827 !important;
  }

  .app-shell .main .crm-add-client-btn {
    background: rgba(0, 122, 255, 0.1) !important;
    color: #007aff !important;
  }

  .app-shell .main .crm-mobile-menu-dots {
    color: #111827 !important;
    font-size: 20px !important;
    font-weight: 650 !important;
  }

  .app-shell .main .crm-add-client-btn span {
    color: #007aff !important;
    font-size: 24px !important;
    font-weight: 500 !important;
    line-height: 1 !important;
    transform: none !important;
  }

  .app-shell .main .crm-filter-row {
    height: 44px !important;
    min-height: 44px !important;
    margin: 0 0 16px !important;
  }

  .app-shell .main .crm-search-box {
    min-height: 44px !important;
    height: 44px !important;
    padding: 0 14px 0 44px !important;
    border-color: #dde5f0 !important;
    border-radius: 16px !important;
    background: #fff !important;
    box-shadow: none !important;
  }

  .app-shell .main .crm-search-box > span {
    left: 15px !important;
    width: 18px !important;
    height: 18px !important;
    color: #667085 !important;
  }

  .app-shell .main .crm-search-box input {
    height: 42px !important;
    color: #111827 !important;
    font-size: 16px !important;
    font-weight: 400 !important;
    line-height: 20px !important;
  }

  .app-shell .main .crm-search-box input::placeholder {
    color: #8a93a3 !important;
    font-size: 16px !important;
    line-height: 20px !important;
  }

  .app-shell .main .crm-address-page #crmClientList.crm-client-list {
    border-color: #dde5f0 !important;
    border-radius: 16px !important;
    background: #fff !important;
    box-shadow: 0 8px 24px rgba(20, 40, 80, 0.04) !important;
  }

  .app-shell .main .crm-address-page #crmClientList.crm-client-list .crm-client-card:not(.expanded) {
    height: 64px !important;
    min-height: 64px !important;
  }

  .app-shell .main .crm-address-page #crmClientList.crm-client-list .crm-client-card:not(.expanded) .client-directory-row,
  .app-shell .main .crm-address-page #crmClientList.crm-client-list .crm-client-card:not(.expanded) .client-directory-row:hover,
  .app-shell .main .crm-address-page #crmClientList.crm-client-list .crm-client-card:not(.expanded) .client-directory-row:focus {
    grid-template-columns: 42px minmax(0, 1fr) 44px !important;
    grid-template-rows: 64px !important;
    gap: 10px !important;
    min-height: 64px !important;
    height: 64px !important;
    padding: 0 8px 0 16px !important;
  }

  .app-shell .main .crm-address-page #crmClientList.crm-client-list .crm-client-card.expanded .client-directory-row,
  .app-shell .main .crm-address-page #crmClientList.crm-client-list .crm-client-card.expanded .client-directory-row:hover,
  .app-shell .main .crm-address-page #crmClientList.crm-client-list .crm-client-card.expanded .client-directory-row:focus {
    grid-template-columns: 42px minmax(0, 1fr) auto !important;
    grid-template-rows: 56px !important;
    gap: 10px !important;
    min-height: 56px !important;
    height: 56px !important;
    padding: 0 8px 0 16px !important;
  }

  .app-shell .main .crm-address-page #crmClientList.crm-client-list .crm-client-card .client-directory-row > .crm-client-mobile-avatar {
    width: 34px !important;
    min-width: 34px !important;
    height: 34px !important;
    background: #edf3ff !important;
    color: #007aff !important;
    font-size: 17px !important;
    font-weight: 650 !important;
  }

  .app-shell .main .crm-address-page #crmClientList.crm-client-list .crm-client-card.expanded .client-directory-row > .crm-client-mobile-avatar {
    width: 32px !important;
    min-width: 32px !important;
    height: 32px !important;
    font-size: 16px !important;
  }

  .app-shell .main .crm-address-page #crmClientList.crm-client-list .crm-client-card .client-directory-row > .crm-client-identity {
    height: 42px !important;
    min-height: 42px !important;
    gap: 1px !important;
  }

  .app-shell .main .crm-address-page #crmClientList.crm-client-list .crm-client-card.expanded .client-directory-row > .crm-client-identity {
    height: 40px !important;
    min-height: 40px !important;
  }

  .app-shell .main .crm-address-page #crmClientList.crm-client-list .crm-client-card .client-directory-row > .crm-client-identity strong {
    height: 21px !important;
    color: #111827 !important;
    font-size: 17px !important;
    font-weight: 700 !important;
    line-height: 21px !important;
  }

  .app-shell .main .crm-address-page #crmClientList.crm-client-list .crm-client-card.expanded .client-directory-row > .crm-client-identity strong {
    height: 22px !important;
    font-size: 18px !important;
    line-height: 22px !important;
  }

  .app-shell .main .crm-address-page #crmClientList.crm-client-list .crm-client-card .client-directory-row > .crm-client-identity .crm-client-mobile-phone {
    align-items: center !important;
    height: 18px !important;
    gap: 7px !important;
    color: #667085 !important;
    font-size: 14px !important;
    font-weight: 400 !important;
    line-height: 18px !important;
  }

  .app-shell .main .crm-address-page .crm-client-mobile-status {
    height: 18px !important;
    min-height: 18px !important;
    padding: 0 7px !important;
    border: 0 !important;
    font-size: 10px !important;
    font-weight: 700 !important;
    line-height: 18px !important;
  }

  .app-shell .main .crm-address-page .crm-client-mobile-status.active {
    background: rgba(52, 199, 89, 0.14) !important;
    color: #188a3d !important;
  }

  .app-shell .main .crm-address-page .crm-client-mobile-status.vip {
    background: rgba(175, 82, 222, 0.14) !important;
    color: #8e35bd !important;
  }

  .app-shell .main .crm-address-page #crmClientList.crm-client-list .crm-client-card .client-directory-row > .client-row-more {
    display: inline-grid !important;
    place-items: center !important;
    width: 44px !important;
    min-width: 44px !important;
    height: 44px !important;
    min-height: 44px !important;
    color: #8a93a3 !important;
  }

  .app-shell .main .crm-address-page #crmClientList.crm-client-list .crm-client-card .client-directory-row > .client-row-more .action-svg {
    width: 21px !important;
    height: 21px !important;
    stroke-width: 2.4 !important;
  }

  .app-shell .main .crm-address-page #crmClientList.crm-client-list .crm-client-card.expanded .crm-row-actions {
    gap: 6px !important;
    height: 44px !important;
    min-height: 44px !important;
  }

  .app-shell .main .crm-address-page #crmClientList.crm-client-list .crm-client-card.expanded .crm-row-actions .action-icon-btn,
  .app-shell .main .crm-address-page #crmClientList.crm-client-list .crm-client-card.expanded .crm-row-actions summary.action-icon-btn {
    width: 36px !important;
    min-width: 36px !important;
    max-width: 36px !important;
    height: 36px !important;
    min-height: 36px !important;
    max-height: 36px !important;
    border: 1px solid #dde5f0 !important;
    border-radius: 999px !important;
    background: #fff !important;
    color: #667085 !important;
    box-shadow: none !important;
  }

  .app-shell .main .crm-address-page #crmClientList.crm-client-list .crm-client-card.expanded .crm-row-actions .action-svg {
    width: 17px !important;
    height: 17px !important;
    stroke-width: 1.8 !important;
  }

  .app-shell .main .crm-address-page .crm-action-menu summary.action-icon-btn .crm-menu-dots,
  .app-shell .main .crm-address-page .crm-more-action-btn .crm-menu-dots {
    color: #111827 !important;
    font-size: 15px !important;
    font-weight: 650 !important;
  }

  .app-shell .main .crm-address-page #crmClientList.crm-client-list .crm-client-card .client-expanded-card {
    padding: 0 14px 12px !important;
  }

  .app-shell .main .crm-address-page #crmClientList.crm-client-list .crm-expanded-grid {
    border-top: 1px solid #e5eaf2 !important;
  }

  .app-shell .main .crm-address-page #crmClientList.crm-client-list .crm-profile-summary {
    padding: 0 !important;
  }

  .app-shell .main .crm-address-page #crmClientList.crm-client-list .crm-profile-summary p,
  .app-shell .main .crm-address-page #crmClientList.crm-client-list .crm-profile-summary p:first-child,
  .app-shell .main .crm-address-page #crmClientList.crm-client-list .crm-profile-summary p:last-child,
  .app-shell .main .crm-address-page #crmClientList.crm-client-list .crm-profile-summary p:nth-child(2n),
  .app-shell .main .crm-address-page #crmClientList.crm-client-list .crm-profile-summary p:nth-last-child(-n + 2) {
    grid-template-columns: 36px minmax(0, 1fr) !important;
    grid-template-rows: auto auto !important;
    column-gap: 0 !important;
    row-gap: 1px !important;
    min-height: 40px !important;
    padding: 3px 0 !important;
    border-bottom: 1px solid #e5eaf2 !important;
  }

  .app-shell .main .crm-address-page #crmClientList.crm-client-list .crm-profile-summary p:nth-child(3) {
    min-height: 48px !important;
  }

  .app-shell .main .crm-address-page #crmClientList.crm-client-list .crm-profile-summary .crm-profile-icon {
    grid-column: 1 !important;
    grid-row: 1 / span 2 !important;
    place-self: center center !important;
    width: 22px !important;
    min-width: 22px !important;
    height: 22px !important;
    min-height: 22px !important;
    color: #667085 !important;
  }

  .app-shell .main .crm-address-page #crmClientList.crm-client-list .crm-profile-summary .crm-profile-icon .action-svg {
    width: 20px !important;
    height: 20px !important;
    stroke-width: 1.85 !important;
  }

  .app-shell .main .crm-address-page #crmClientList.crm-client-list .crm-profile-summary p > span:not(.crm-profile-icon) {
    grid-column: 2 !important;
    grid-row: 1 !important;
    color: #8a93a3 !important;
    font-size: 13px !important;
    font-weight: 550 !important;
    line-height: 16px !important;
  }

  .app-shell .main .crm-address-page #crmClientList.crm-client-list .crm-profile-summary strong {
    grid-column: 2 !important;
    grid-row: 2 !important;
    width: 100% !important;
    height: 19px !important;
    min-height: 19px !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-bottom: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    color: #111827 !important;
    font-size: 15px !important;
    font-weight: 550 !important;
    line-height: 19px !important;
    box-shadow: none !important;
  }

  .app-shell .main .crm-address-page #crmClientList.crm-client-list .crm-profile-inline-edit input:not([type="hidden"]),
  .app-shell .main .crm-address-page #crmClientList.crm-client-list .crm-profile-inline-edit select {
    grid-column: 2 !important;
    grid-row: 2 !important;
    width: 100% !important;
    height: 19px !important;
    min-height: 19px !important;
    margin: 0 !important;
    padding: 0 0 1px !important;
    border: 0 !important;
    border-bottom: 1px solid #dde5f0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    color: #111827 !important;
    font-size: 15px !important;
    font-weight: 550 !important;
    line-height: 19px !important;
    box-shadow: none !important;
  }

  .app-shell .main .crm-address-page #crmClientList.crm-client-list .crm-profile-inline-edit input:not([type="hidden"]):focus,
  .app-shell .main .crm-address-page #crmClientList.crm-client-list .crm-profile-inline-edit input:not([type="hidden"]):focus-visible,
  .app-shell .main .crm-address-page #crmClientList.crm-client-list .crm-profile-inline-edit select:focus,
  .app-shell .main .crm-address-page #crmClientList.crm-client-list .crm-profile-inline-edit select:focus-visible {
    border-bottom-color: #007aff !important;
    outline: 0 !important;
  }

  .app-shell .main .crm-address-page #crmClientList.crm-client-list .crm-vehicle-panel {
    gap: 8px !important;
    padding: 8px 0 10px !important;
  }

  .app-shell .main .crm-address-page #crmClientList.crm-client-list .crm-vehicle-panel .vehicle-section-head {
    min-height: 44px !important;
    height: 44px !important;
  }

  .app-shell .main .crm-address-page #crmClientList.crm-client-list .crm-vehicle-panel h3 {
    font-size: 17px !important;
    font-weight: 700 !important;
    line-height: 22px !important;
  }

  .app-shell .main .crm-address-page #crmClientList.crm-client-list .crm-vehicle-panel .btn-add-compact {
    width: 36px !important;
    min-width: 36px !important;
    max-width: 36px !important;
    height: 36px !important;
    min-height: 36px !important;
    max-height: 36px !important;
    color: #007aff !important;
    font-size: 22px !important;
    font-weight: 450 !important;
  }

  .app-shell .main .crm-address-page #crmClientList.crm-client-list .crm-empty-vehicle {
    min-height: 60px !important;
    padding: 10px !important;
    border-radius: 14px !important;
  }

  .app-shell .main .crm-address-page #crmClientList.crm-client-list .crm-client-sections {
    margin: 8px 0 0 !important;
    border-color: #dde5f0 !important;
    border-radius: 14px !important;
  }

  .app-shell .main .crm-address-page #crmClientList.crm-client-list .crm-client-sections summary {
    min-height: 44px !important;
    height: 44px !important;
    padding: 0 6px 0 12px !important;
    color: #111827 !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    line-height: 20px !important;
  }

  .app-shell .main .crm-address-page #crmClientList.crm-client-list .crm-client-sections summary small {
    min-width: 24px !important;
    height: 24px !important;
    font-size: 14px !important;
    line-height: 24px !important;
  }

  .app-shell .main .crm-address-page #crmClientList.crm-client-list .client-section-chevron {
    width: 34px !important;
    min-width: 34px !important;
    height: 34px !important;
    min-height: 34px !important;
  }
}

@media (max-width: 760px) {
  .app-shell .main .crm-address-content {
    width: 100% !important;
    max-width: none !important;
    padding: clamp(12px, calc(env(safe-area-inset-top, 0px) + 6px), 66px) 16px calc(96px + env(safe-area-inset-bottom, 0px)) !important;
  }

  .app-shell .main .crm-title-actions {
    width: auto !important;
    min-width: 0 !important;
    transform: none !important;
  }
}

@media (min-width: 761px) and (max-width: 1024px) {
  .app-shell .main .crm-address-content {
    padding: 14px 22px 28px !important;
  }

  .app-shell .main .crm-page-title {
    min-height: 44px !important;
    height: 44px !important;
    margin: 0 0 8px !important;
  }

  .app-shell .main .crm-page-title h1 {
    gap: 10px !important;
    font-size: 24px !important;
    line-height: 30px !important;
  }

  .app-shell .main .crm-page-title h1 span {
    font-size: 14px !important;
    line-height: 20px !important;
  }

  .app-shell .main .crm-filter-row {
    height: 40px !important;
    min-height: 40px !important;
    margin-bottom: 10px !important;
  }

  .app-shell .main .crm-search-box {
    height: 40px !important;
    min-height: 40px !important;
    border-radius: 14px !important;
  }

  .app-shell .main .crm-search-box input {
    height: 38px !important;
    font-size: 14px !important;
    line-height: 18px !important;
  }

  .app-shell .main .crm-address-page #crmClientList.crm-client-list .crm-client-card:not(.expanded) {
    height: 56px !important;
    min-height: 56px !important;
  }

  .app-shell .main .crm-address-page #crmClientList.crm-client-list .crm-client-card:not(.expanded) .client-directory-row,
  .app-shell .main .crm-address-page #crmClientList.crm-client-list .crm-client-card:not(.expanded) .client-directory-row:hover,
  .app-shell .main .crm-address-page #crmClientList.crm-client-list .crm-client-card:not(.expanded) .client-directory-row:focus {
    grid-template-rows: 56px !important;
    min-height: 56px !important;
    height: 56px !important;
  }

  .app-shell .main .crm-address-page #crmClientList.crm-client-list .crm-client-card.expanded .client-directory-row,
  .app-shell .main .crm-address-page #crmClientList.crm-client-list .crm-client-card.expanded .client-directory-row:hover,
  .app-shell .main .crm-address-page #crmClientList.crm-client-list .crm-client-card.expanded .client-directory-row:focus {
    grid-template-rows: 56px !important;
    min-height: 56px !important;
    height: 56px !important;
  }

  .app-shell .main .crm-address-page #crmClientList.crm-client-list .crm-client-card .client-directory-row > .crm-client-identity strong {
    font-size: 16px !important;
    line-height: 20px !important;
  }

  .app-shell .main .crm-address-page #crmClientList.crm-client-list .crm-client-card .client-directory-row > .crm-client-identity .crm-client-mobile-phone {
    font-size: 13px !important;
    line-height: 17px !important;
  }

  .app-shell .main .crm-address-page #crmClientList.crm-client-list .crm-profile-summary p,
  .app-shell .main .crm-address-page #crmClientList.crm-client-list .crm-profile-summary p:first-child,
  .app-shell .main .crm-address-page #crmClientList.crm-client-list .crm-profile-summary p:last-child,
  .app-shell .main .crm-address-page #crmClientList.crm-client-list .crm-profile-summary p:nth-child(2n),
  .app-shell .main .crm-address-page #crmClientList.crm-client-list .crm-profile-summary p:nth-last-child(-n + 2) {
    min-height: 38px !important;
  }
}

@media (max-width: 760px) {
  .app-shell .main .crm-page-title h1 {
    align-items: flex-end !important;
  }

  .app-shell .main .crm-page-title h1 span {
    align-self: flex-end !important;
    line-height: 22px !important;
    transform: none !important;
  }

  .app-shell .main .crm-address-page #crmClientList.crm-client-list .crm-client-card:not(.expanded) {
    height: 48px !important;
    min-height: 48px !important;
  }

  .app-shell .main .crm-address-page #crmClientList.crm-client-list .crm-client-card:not(.expanded) .client-directory-row,
  .app-shell .main .crm-address-page #crmClientList.crm-client-list .crm-client-card:not(.expanded) .client-directory-row:hover,
  .app-shell .main .crm-address-page #crmClientList.crm-client-list .crm-client-card:not(.expanded) .client-directory-row:focus,
  .app-shell .main .crm-address-page #crmClientList.crm-client-list .crm-client-card.expanded .client-directory-row,
  .app-shell .main .crm-address-page #crmClientList.crm-client-list .crm-client-card.expanded .client-directory-row:hover,
  .app-shell .main .crm-address-page #crmClientList.crm-client-list .crm-client-card.expanded .client-directory-row:focus {
    grid-template-columns: 36px minmax(0, 1fr) 44px !important;
    grid-template-rows: 48px !important;
    align-items: center !important;
    gap: 10px !important;
    min-height: 48px !important;
    height: 48px !important;
    padding: 0 8px 0 14px !important;
  }

  .app-shell .main .crm-address-page #crmClientList.crm-client-list .crm-client-card .client-directory-row > .crm-client-mobile-avatar,
  .app-shell .main .crm-address-page #crmClientList.crm-client-list .crm-client-card.expanded .client-directory-row > .crm-client-mobile-avatar {
    width: 30px !important;
    min-width: 30px !important;
    height: 30px !important;
    min-height: 30px !important;
    font-size: 15px !important;
  }

  .app-shell .main .crm-address-page #crmClientList.crm-client-list .crm-client-card .client-directory-row > .crm-client-identity,
  .app-shell .main .crm-address-page #crmClientList.crm-client-list .crm-client-card.expanded .client-directory-row > .crm-client-identity {
    height: 34px !important;
    min-height: 34px !important;
    align-content: center !important;
    gap: 0 !important;
  }

  .app-shell .main .crm-address-page #crmClientList.crm-client-list .crm-client-card .client-directory-row > .crm-client-identity strong,
  .app-shell .main .crm-address-page #crmClientList.crm-client-list .crm-client-card.expanded .client-directory-row > .crm-client-identity strong {
    height: 18px !important;
    font-size: 16px !important;
    font-weight: 700 !important;
    line-height: 18px !important;
  }

  .app-shell .main .crm-address-page #crmClientList.crm-client-list .crm-client-card .client-directory-row > .crm-client-identity .crm-client-mobile-phone,
  .app-shell .main .crm-address-page #crmClientList.crm-client-list .crm-client-card.expanded .client-directory-row > .crm-client-identity .crm-client-mobile-phone {
    height: 16px !important;
    gap: 6px !important;
    font-size: 13px !important;
    line-height: 16px !important;
  }

  .app-shell .main .crm-address-page .crm-client-mobile-status {
    height: 15px !important;
    min-height: 15px !important;
    padding: 0 6px !important;
    font-size: 10px !important;
    line-height: 15px !important;
  }

  .app-shell .main .crm-address-page #crmClientList.crm-client-list .crm-client-card .client-directory-row > .client-row-more {
    width: 44px !important;
    min-width: 44px !important;
    height: 44px !important;
    min-height: 44px !important;
  }

  .app-shell .main .crm-address-page #crmClientList.crm-client-list .crm-client-card .client-directory-row > .client-row-more .action-svg {
    width: 19px !important;
    height: 19px !important;
  }
}

@media (max-width: 1024px) {
  .app-shell .main .crm-address-page #crmClientList.crm-client-list .client-row-confirm {
    justify-content: center !important;
    padding: 8px 14px !important;
  }

  .app-shell .main .crm-address-page #crmClientList.crm-client-list .client-row-confirm .inline-confirm-zone {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    justify-items: center !important;
    align-items: center !important;
    width: min(100%, 320px) !important;
    gap: 8px !important;
    padding: 10px 12px !important;
  }

  .app-shell .main .crm-address-page #crmClientList.crm-client-list .client-row-confirm .inline-confirm-zone > .muted,
  .app-shell .main .crm-address-page #crmClientList.crm-client-list .client-row-confirm .inline-confirm-zone > .danger-text {
    width: 100% !important;
    min-width: 0 !important;
    text-align: left !important;
  }

  .app-shell .main .crm-address-page #crmClientList.crm-client-list .client-row-confirm .inline-confirm-actions {
    display: inline-flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    width: auto !important;
    justify-self: center !important;
    white-space: nowrap !important;
  }

  .app-shell .main .crm-address-page #crmClientList.crm-client-list .client-row-confirm .confirm-text-btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: auto !important;
    min-width: 54px !important;
    height: 34px !important;
    min-height: 34px !important;
    padding: 0 14px !important;
  }
}

@media (max-width: 1024px) {
  .app-shell .main .crm-address-page #crmClientList.crm-client-list .crm-profile-summary p,
  .app-shell .main .crm-address-page #crmClientList.crm-client-list .crm-profile-summary p:first-child,
  .app-shell .main .crm-address-page #crmClientList.crm-client-list .crm-profile-summary p:last-child,
  .app-shell .main .crm-address-page #crmClientList.crm-client-list .crm-profile-summary p:nth-child(2n),
  .app-shell .main .crm-address-page #crmClientList.crm-client-list .crm-profile-summary p:nth-last-child(-n + 2) {
    min-width: 0 !important;
    overflow: hidden !important;
  }

  .app-shell .main .crm-address-page #crmClientList.crm-client-list .crm-profile-summary strong {
    display: block !important;
    min-width: 0 !important;
    max-width: 100% !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
  }
}

@media (min-width: 761px) and (max-width: 1024px) {
  .app-shell .main .crm-address-page #crmClientList.crm-client-list .crm-client-card:not(.expanded) {
    box-sizing: border-box !important;
    height: 48px !important;
    min-height: 48px !important;
    max-height: 48px !important;
  }

  .app-shell .main .crm-address-page #crmClientList.crm-client-list .crm-client-card:not(.expanded) .client-directory-row,
  .app-shell .main .crm-address-page #crmClientList.crm-client-list .crm-client-card:not(.expanded) .client-directory-row:hover,
  .app-shell .main .crm-address-page #crmClientList.crm-client-list .crm-client-card:not(.expanded) .client-directory-row:focus {
    height: 100% !important;
    min-height: 100% !important;
    max-height: 100% !important;
    grid-template-rows: minmax(0, 1fr) !important;
  }

  .app-shell .main .crm-address-page #crmClientList.crm-client-list .crm-client-card:not(.expanded) .client-directory-row > .crm-client-identity {
    height: 20px !important;
    min-height: 20px !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
  }

  .app-shell .main .crm-address-page #crmClientList.crm-client-list .crm-client-card:not(.expanded) .client-directory-row > .crm-client-identity strong {
    height: 18px !important;
    font-size: 14px !important;
    font-weight: 680 !important;
    line-height: 18px !important;
  }

  .app-shell .main .crm-address-page #crmClientList.crm-client-list .crm-client-card:not(.expanded) .client-directory-row > .crm-client-phone {
    height: 18px !important;
    font-size: 13px !important;
    font-weight: 560 !important;
    line-height: 18px !important;
  }
}

@media (min-width: 761px) and (max-width: 1024px) {
  .app-shell .main .crm-address-page .crm-title-actions {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
    gap: 8px !important;
    width: auto !important;
    min-width: 0 !important;
    height: 34px !important;
    transform: none !important;
  }

  .app-shell .main .crm-address-page .crm-mobile-controls {
    display: none !important;
  }

  .app-shell .main .crm-address-page .crm-title-actions .crm-bulk-toggle-btn,
  .app-shell .main .crm-address-page .crm-title-actions .crm-bulk-del-btn {
    width: var(--pb-control-height, 34px) !important;
    min-width: var(--pb-control-height, 34px) !important;
    max-width: var(--pb-control-height, 34px) !important;
    height: var(--pb-control-height, 34px) !important;
    min-height: var(--pb-control-height, 34px) !important;
    max-height: var(--pb-control-height, 34px) !important;
    padding: 0 !important;
    border-radius: var(--pb-radius-md, 12px) !important;
    box-shadow: none !important;
    transform: none !important;
  }

  .app-shell .main .crm-address-page .crm-add-client-btn {
    position: static !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    width: auto !important;
    min-width: 0 !important;
    max-width: none !important;
    height: var(--pb-control-height, 34px) !important;
    min-height: var(--pb-control-height, 34px) !important;
    max-height: var(--pb-control-height, 34px) !important;
    padding: 6px 12px !important;
    border: 1px solid var(--pb-color-border, #dde5f0) !important;
    border-radius: var(--pb-radius-md, 12px) !important;
    background: var(--pb-color-bg-elevated, #fff) !important;
    color: var(--pb-color-text, #111827) !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    line-height: 18px !important;
    white-space: nowrap !important;
    box-shadow: none !important;
    transform: none !important;
  }

  .app-shell .main .crm-address-page .crm-add-client-btn span {
    position: static !important;
    inset: auto !important;
    display: inline !important;
    place-items: normal !important;
    width: auto !important;
    min-width: 0 !important;
    height: auto !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    color: inherit !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    line-height: 18px !important;
    transform: none !important;
  }
}

@media (max-width: 1024px) {
  .app-shell .main .crm-address-page #crmClientList.crm-client-list .crm-client-card.expanded .client-directory-row,
  .app-shell .main .crm-address-page #crmClientList.crm-client-list .crm-client-card.expanded .client-directory-row:hover,
  .app-shell .main .crm-address-page #crmClientList.crm-client-list .crm-client-card.expanded .client-directory-row:focus {
    grid-template-columns: 36px minmax(0, 1fr) 82px !important;
  }

  .app-shell .main .crm-address-page #crmClientList.crm-client-list .crm-client-card.expanded .client-directory-row > .crm-client-identity {
    min-width: 0 !important;
    max-width: 100% !important;
    overflow: hidden !important;
  }

  .app-shell .main .crm-address-page #crmClientList.crm-client-list .crm-client-card.expanded .client-directory-row > .crm-client-identity strong,
  .app-shell .main .crm-address-page #crmClientList.crm-client-list .crm-client-card.expanded .client-directory-row > .crm-client-identity .crm-client-mobile-phone {
    display: block !important;
    min-width: 0 !important;
    max-width: 100% !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
  }

  .app-shell .main .crm-address-page #crmClientList.crm-client-list .crm-client-card.expanded .crm-row-actions {
    grid-column: 3 !important;
    width: 82px !important;
    min-width: 82px !important;
    max-width: 82px !important;
    justify-content: flex-end !important;
    justify-self: end !important;
    overflow: visible !important;
  }
}

@media (min-width: 761px) and (max-width: 1024px) {
  .app-shell .main .crm-address-page #crmClientList.crm-client-list .crm-client-card.expanded .client-directory-row,
  .app-shell .main .crm-address-page #crmClientList.crm-client-list .crm-client-card.expanded .client-directory-row:hover,
  .app-shell .main .crm-address-page #crmClientList.crm-client-list .crm-client-card.expanded .client-directory-row:focus {
    grid-template-columns: 36px 28px minmax(0, 1fr) minmax(118px, auto) 82px !important;
  }

  .app-shell .main .crm-address-page #crmClientList.crm-client-list .crm-client-card.expanded .client-directory-row > .crm-client-index,
  .app-shell .main .crm-address-page #crmClientList.crm-client-list .crm-client-card.expanded .client-directory-row > .crm-client-status-avatar,
  .app-shell .main .crm-address-page #crmClientList.crm-client-list .crm-client-card.expanded .client-directory-row > .crm-client-identity,
  .app-shell .main .crm-address-page #crmClientList.crm-client-list .crm-client-card.expanded .client-directory-row > .crm-client-phone,
  .app-shell .main .crm-address-page #crmClientList.crm-client-list .crm-client-card.expanded .client-directory-row > .crm-row-actions {
    grid-row: 1 !important;
  }

  .app-shell .main .crm-address-page #crmClientList.crm-client-list .crm-client-card.expanded .client-directory-row > .crm-client-index {
    display: inline-flex !important;
    grid-column: 1 !important;
  }

  .app-shell .main .crm-address-page #crmClientList.crm-client-list .crm-client-card.expanded .client-directory-row > .crm-client-status-avatar {
    display: grid !important;
    grid-column: 2 !important;
  }

  .app-shell .main .crm-address-page #crmClientList.crm-client-list .crm-client-card.expanded .client-directory-row > .crm-client-identity {
    grid-column: 3 !important;
  }

  .app-shell .main .crm-address-page #crmClientList.crm-client-list .crm-client-card.expanded .client-directory-row > .crm-client-phone {
    display: inline-flex !important;
    grid-column: 4 !important;
    min-width: 0 !important;
    max-width: 100% !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
  }

  .app-shell .main .crm-address-page #crmClientList.crm-client-list .crm-client-card.expanded .crm-row-actions {
    grid-column: 5 !important;
  }
}

@media (max-width: 760px) {
  .app-shell .main .crm-address-page #crmClientList.crm-client-list .crm-client-card.expanded .client-directory-row,
  .app-shell .main .crm-address-page #crmClientList.crm-client-list .crm-client-card.expanded .client-directory-row:hover,
  .app-shell .main .crm-address-page #crmClientList.crm-client-list .crm-client-card.expanded .client-directory-row:focus {
    grid-template-columns: 36px minmax(0, 1fr) 82px !important;
  }

  .app-shell .main .crm-address-page #crmClientList.crm-client-list .crm-client-card.expanded .client-directory-row > .crm-client-index,
  .app-shell .main .crm-address-page #crmClientList.crm-client-list .crm-client-card.expanded .client-directory-row > .crm-client-status-avatar,
  .app-shell .main .crm-address-page #crmClientList.crm-client-list .crm-client-card.expanded .client-directory-row > .crm-client-phone {
    display: none !important;
  }

  .app-shell .main .crm-address-page #crmClientList.crm-client-list .crm-client-card.expanded .client-directory-row > .crm-client-mobile-avatar {
    display: grid !important;
    grid-column: 1 !important;
    grid-row: 1 !important;
  }

  .app-shell .main .crm-address-page #crmClientList.crm-client-list .crm-client-card.expanded .client-directory-row > .crm-client-identity {
    grid-column: 2 !important;
    grid-row: 1 !important;
  }

  .app-shell .main .crm-address-page #crmClientList.crm-client-list .crm-client-card.expanded .crm-row-actions {
    grid-column: 3 !important;
    grid-row: 1 !important;
  }
}

.app-shell .main .crm-address-page #crmClientList.crm-client-list .crm-profile-summary p,
.app-shell .main .crm-address-page #crmClientList.crm-client-list .crm-profile-summary p:first-child,
.app-shell .main .crm-address-page #crmClientList.crm-client-list .crm-profile-summary p:last-child,
.app-shell .main .crm-address-page #crmClientList.crm-client-list .crm-profile-summary p:nth-child(2n),
.app-shell .main .crm-address-page #crmClientList.crm-client-list .crm-profile-summary p:nth-last-child(-n + 2) {
  min-width: 0 !important;
  overflow: hidden !important;
}

.app-shell .main .crm-address-page #crmClientList.crm-client-list .crm-profile-summary p > span:not(.crm-profile-icon),
.app-shell .main .crm-address-page #crmClientList.crm-client-list .crm-profile-summary strong,
.app-shell .main .crm-address-page #crmClientList.crm-client-list .crm-profile-inline-edit input:not([type="hidden"]),
.app-shell .main .crm-address-page #crmClientList.crm-client-list .crm-profile-inline-edit select {
  min-width: 0 !important;
  max-width: 100% !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

.app-shell .main .crm-address-page #crmClientList.crm-client-list .crm-client-card .client-directory-row > .crm-client-identity,
.app-shell .main .crm-address-page #crmClientList.crm-client-list .crm-client-card .client-directory-row > .crm-client-phone,
.app-shell .main .crm-address-page #crmClientList.crm-client-list .crm-client-card .client-directory-row > .crm-client-identity strong,
.app-shell .main .crm-address-page #crmClientList.crm-client-list .crm-client-card .client-directory-row > .crm-client-identity small {
  min-width: 0 !important;
  max-width: 100% !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

@media (min-width: 761px) and (max-width: 1024px) {
  .app-shell .main .crm-address-page #crmClientList.crm-client-list .crm-client-card:not(.expanded),
  .app-shell .main .crm-address-page #crmClientList.crm-client-list .crm-client-card.expanded {
    min-height: 56px !important;
  }

  .app-shell .main .crm-address-page #crmClientList.crm-client-list .crm-client-card:not(.expanded) .client-directory-row,
  .app-shell .main .crm-address-page #crmClientList.crm-client-list .crm-client-card:not(.expanded) .client-directory-row:hover,
  .app-shell .main .crm-address-page #crmClientList.crm-client-list .crm-client-card:not(.expanded) .client-directory-row:focus {
    display: grid !important;
    grid-template-columns: 34px 28px minmax(0, 1fr) minmax(128px, 0.42fr) 44px !important;
    grid-template-rows: 56px !important;
    align-items: center !important;
    gap: 8px !important;
    height: 56px !important;
    min-height: 56px !important;
    padding: 0 14px !important;
  }

  .app-shell .main .crm-address-page #crmClientList.crm-client-list .crm-client-card.expanded .client-directory-row,
  .app-shell .main .crm-address-page #crmClientList.crm-client-list .crm-client-card.expanded .client-directory-row:hover,
  .app-shell .main .crm-address-page #crmClientList.crm-client-list .crm-client-card.expanded .client-directory-row:focus {
    display: grid !important;
    grid-template-columns: 34px 28px minmax(0, 1fr) minmax(128px, 0.42fr) 82px !important;
    grid-template-rows: 56px !important;
    align-items: center !important;
    gap: 8px !important;
    height: 56px !important;
    min-height: 56px !important;
    padding: 0 14px !important;
  }

  .app-shell .main .crm-address-page #crmClientList.crm-client-list .crm-client-card .client-directory-row > .crm-client-index,
  .app-shell .main .crm-address-page #crmClientList.crm-client-list .crm-client-card .client-directory-row > .crm-client-status-avatar,
  .app-shell .main .crm-address-page #crmClientList.crm-client-list .crm-client-card .client-directory-row > .crm-client-identity,
  .app-shell .main .crm-address-page #crmClientList.crm-client-list .crm-client-card .client-directory-row > .crm-client-phone,
  .app-shell .main .crm-address-page #crmClientList.crm-client-list .crm-client-card .client-directory-row > .client-row-more,
  .app-shell .main .crm-address-page #crmClientList.crm-client-list .crm-client-card .client-directory-row > .crm-row-actions {
    grid-row: 1 !important;
  }

  .app-shell .main .crm-address-page #crmClientList.crm-client-list .crm-client-card .client-directory-row > .crm-client-index {
    display: inline-flex !important;
    grid-column: 1 !important;
  }

  .app-shell .main .crm-address-page #crmClientList.crm-client-list .crm-client-card .client-directory-row > .crm-client-mobile-avatar {
    display: none !important;
  }

  .app-shell .main .crm-address-page #crmClientList.crm-client-list .crm-client-card .client-directory-row > .crm-client-status-avatar {
    display: grid !important;
    grid-column: 2 !important;
  }

  .app-shell .main .crm-address-page #crmClientList.crm-client-list .crm-client-card .client-directory-row > .crm-client-identity {
    grid-column: 3 !important;
    height: 38px !important;
    min-height: 38px !important;
    align-content: center !important;
  }

  .app-shell .main .crm-address-page #crmClientList.crm-client-list .crm-client-card .client-directory-row > .crm-client-identity strong {
    height: 20px !important;
    font-size: 16px !important;
    font-weight: 700 !important;
    line-height: 20px !important;
  }

  .app-shell .main .crm-address-page #crmClientList.crm-client-list .crm-client-card .client-directory-row > .crm-client-identity .crm-client-mobile-phone {
    display: none !important;
  }

  .app-shell .main .crm-address-page #crmClientList.crm-client-list .crm-client-card .client-directory-row > .crm-client-phone {
    display: inline-flex !important;
    grid-column: 4 !important;
    height: 20px !important;
    line-height: 20px !important;
  }

  .app-shell .main .crm-address-page #crmClientList.crm-client-list .crm-client-card .client-directory-row > .client-row-more {
    grid-column: 5 !important;
    width: 44px !important;
    min-width: 44px !important;
    height: 44px !important;
    min-height: 44px !important;
  }

  .app-shell .main .crm-address-page #crmClientList.crm-client-list .crm-client-card.expanded .crm-row-actions {
    grid-column: 5 !important;
    width: 82px !important;
    min-width: 82px !important;
    max-width: 82px !important;
    height: 44px !important;
    min-height: 44px !important;
    gap: 6px !important;
    justify-content: flex-end !important;
    justify-self: end !important;
    overflow: visible !important;
  }

  .app-shell .main .crm-address-page #crmClientList.crm-client-list .crm-client-card.expanded .crm-row-actions .action-icon-btn,
  .app-shell .main .crm-address-page #crmClientList.crm-client-list .crm-client-card.expanded .crm-row-actions summary.action-icon-btn {
    width: 36px !important;
    min-width: 36px !important;
    height: 36px !important;
    min-height: 36px !important;
  }
}

@media (max-width: 760px) {
  .app-shell .main .crm-address-page #crmClientList.crm-client-list .crm-client-card:not(.expanded) .client-directory-row,
  .app-shell .main .crm-address-page #crmClientList.crm-client-list .crm-client-card:not(.expanded) .client-directory-row:hover,
  .app-shell .main .crm-address-page #crmClientList.crm-client-list .crm-client-card:not(.expanded) .client-directory-row:focus {
    grid-template-columns: 36px minmax(0, 1fr) 44px !important;
  }

  .app-shell .main .crm-address-page #crmClientList.crm-client-list .crm-client-card.expanded .client-directory-row,
  .app-shell .main .crm-address-page #crmClientList.crm-client-list .crm-client-card.expanded .client-directory-row:hover,
  .app-shell .main .crm-address-page #crmClientList.crm-client-list .crm-client-card.expanded .client-directory-row:focus {
    grid-template-columns: 36px minmax(0, 1fr) 82px !important;
  }
}

@media (min-width: 761px) and (max-width: 1024px) {
  .app-shell .main .crm-address-page #crmClientList.crm-client-list .crm-client-card .client-directory-row .crm-client-identity > .crm-client-mobile-phone.crm-client-mobile-phone,
  .app-shell .main .crm-address-page #crmClientList.crm-client-list .crm-client-card.expanded .client-directory-row .crm-client-identity > .crm-client-mobile-phone.crm-client-mobile-phone {
    display: none !important;
    visibility: hidden !important;
    width: 0 !important;
    min-width: 0 !important;
    max-width: 0 !important;
    height: 0 !important;
    min-height: 0 !important;
    max-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
  }
}

@media (max-width: 1024px) {
  .app-shell .main .crm-address-page .vehicle-edit-drawer {
    top: 50% !important;
    right: 16px !important;
    bottom: auto !important;
    left: auto !important;
    width: min(420px, calc(100vw - 32px)) !important;
    max-height: calc(100dvh - 32px) !important;
    display: grid !important;
    align-content: start !important;
    gap: 12px !important;
    padding: 16px !important;
    overflow-y: auto !important;
    border: 1px solid rgba(213, 225, 243, 0.92) !important;
    border-radius: 24px !important;
    background: rgba(255, 255, 255, 0.96) !important;
    box-shadow: 0 18px 44px rgba(15, 23, 42, 0.2) !important;
    backdrop-filter: blur(18px) saturate(160%) !important;
    -webkit-backdrop-filter: blur(18px) saturate(160%) !important;
    transform: translateY(-50%) !important;
  }

  .app-shell .main .crm-address-page .vehicle-edit-drawer .crud-panel-head {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) 44px !important;
    align-items: start !important;
    gap: 10px !important;
    margin: 0 !important;
  }

  .app-shell .main .crm-address-page .vehicle-edit-drawer .crud-panel-head h2 {
    margin: 0 !important;
    font-size: 18px !important;
    font-weight: 780 !important;
    line-height: 22px !important;
    letter-spacing: 0 !important;
  }

  .app-shell .main .crm-address-page .vehicle-edit-drawer .crud-panel-head .muted {
    margin: 4px 0 0 !important;
    font-size: 13px !important;
    line-height: 17px !important;
  }

  .app-shell .main .crm-address-page .vehicle-edit-drawer .crud-panel-head .btn-icon {
    width: 44px !important;
    min-width: 44px !important;
    height: 44px !important;
    min-height: 44px !important;
    border-radius: 14px !important;
  }

  .app-shell .main .crm-address-page .vehicle-edit-drawer .grid.grid-2 {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 10px !important;
  }

  .app-shell .main .crm-address-page .vehicle-edit-drawer label {
    display: grid !important;
    gap: 6px !important;
    margin: 0 !important;
    color: #7d8aa0 !important;
    font-size: 13px !important;
    font-weight: 560 !important;
    line-height: 16px !important;
  }

  .app-shell .main .crm-address-page .vehicle-edit-drawer input,
  .app-shell .main .crm-address-page .vehicle-edit-drawer select {
    width: 100% !important;
    min-height: 44px !important;
    height: 44px !important;
    padding: 0 14px !important;
    border: 1px solid #d9e5f5 !important;
    border-radius: 14px !important;
    background: rgba(248, 251, 255, 0.96) !important;
    color: #101828 !important;
    font-size: 15px !important;
    font-weight: 620 !important;
    line-height: 20px !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.88) !important;
  }

  .app-shell .main .crm-address-page .vehicle-edit-drawer input:focus,
  .app-shell .main .crm-address-page .vehicle-edit-drawer select:focus {
    border-color: #2f6bff !important;
    box-shadow: 0 0 0 3px rgba(47, 107, 255, 0.14) !important;
    outline: none !important;
  }

  .app-shell .main .crm-address-page .vehicle-edit-drawer .actions {
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    gap: 8px !important;
    margin: 2px 0 0 !important;
  }

  .app-shell .main .crm-address-page .vehicle-edit-drawer .actions button {
    min-height: 44px !important;
    height: 44px !important;
    padding: 0 16px !important;
    border: 1px solid var(--pb-color-border, #dde5f0) !important;
    border-radius: var(--pb-radius-md, 12px) !important;
    background: var(--pb-color-bg-elevated, #fff) !important;
    color: var(--pb-color-text, #111827) !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    line-height: 18px !important;
    box-shadow: none !important;
    white-space: nowrap !important;
    transition: background-color 0.16s ease, border-color 0.16s ease, color 0.16s ease !important;
  }

  .app-shell .main .crm-address-page .vehicle-edit-drawer .actions button:hover {
    border-color: var(--pb-color-border-hover, #c8d4e3) !important;
    background: var(--pb-color-bg-hover, #f7faff) !important;
  }

  .app-shell .main .crm-address-page .vehicle-edit-drawer .actions button:not(.btn-secondary) {
    border-color: rgba(0, 122, 255, 0.18) !important;
    background: rgba(0, 122, 255, 0.1) !important;
    color: #007aff !important;
  }

  .app-shell .main .crm-address-page .vehicle-edit-drawer .actions .btn-secondary {
    border-color: var(--pb-color-border, #dde5f0) !important;
    background: var(--pb-color-bg-elevated, #fff) !important;
    color: var(--pb-color-text, #111827) !important;
  }
}

@media (min-width: 761px) and (max-width: 1024px) {
  .app-shell .main .crm-address-page .vehicle-edit-drawer {
    overflow: visible !important;
  }

  .app-shell .main .crm-address-page .vehicle-edit-drawer .grid.grid-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 760px) {
  .app-shell .main .crm-address-page .vehicle-edit-drawer {
    top: auto !important;
    right: 12px !important;
    bottom: calc(84px + env(safe-area-inset-bottom)) !important;
    left: 12px !important;
    width: auto !important;
    max-height: min(440px, calc(100vh - 128px)) !important;
    padding: 12px !important;
    gap: 8px !important;
    border-radius: 22px !important;
    overflow-y: auto !important;
    transform: none !important;
  }

  .app-shell .main .crm-address-page .vehicle-edit-drawer .crud-panel-head {
    grid-template-columns: minmax(0, 1fr) 44px !important;
    gap: 8px !important;
  }

  .app-shell .main .crm-address-page .vehicle-edit-drawer .crud-panel-head h2 {
    font-size: 18px !important;
    font-weight: 780 !important;
    line-height: 22px !important;
  }

  .app-shell .main .crm-address-page .vehicle-edit-drawer .crud-panel-head .muted {
    display: none !important;
  }

  .app-shell .main .crm-address-page .vehicle-edit-drawer .crud-panel-head .btn-icon {
    width: 44px !important;
    min-width: 44px !important;
    height: 44px !important;
    min-height: 44px !important;
  }

  .app-shell .main .crm-address-page .vehicle-edit-drawer:has(.vehicle-catalog-listbox:not([hidden])) {
    overflow: visible !important;
  }

  .app-shell .main .crm-address-page .vehicle-edit-drawer .vehicle-catalog-field:nth-child(2) .vehicle-catalog-listbox {
    top: auto !important;
    bottom: calc(100% + 6px) !important;
  }

  .app-shell .main .crm-address-page .vehicle-edit-drawer .grid.grid-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 8px !important;
  }

  .app-shell .main .crm-address-page .vehicle-edit-drawer label {
    gap: 4px !important;
    font-size: 13px !important;
    font-weight: 560 !important;
    line-height: 16px !important;
  }

  .app-shell .main .crm-address-page .vehicle-edit-drawer input,
  .app-shell .main .crm-address-page .vehicle-edit-drawer select {
    min-height: 44px !important;
    height: 44px !important;
    padding: 0 12px !important;
    font-size: 14px !important;
    font-weight: 620 !important;
    line-height: 18px !important;
  }

  .app-shell .main .crm-address-page .vehicle-edit-drawer .actions {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) minmax(92px, auto) !important;
    gap: 8px !important;
    margin-top: 0 !important;
  }

  .app-shell .main .crm-address-page .vehicle-edit-drawer .actions button {
    width: 100% !important;
    min-height: 44px !important;
    height: 44px !important;
    padding: 0 12px !important;
    border-radius: var(--pb-radius-md, 12px) !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    line-height: 18px !important;
    white-space: nowrap !important;
  }
}

@media (min-width: 761px) and (max-width: 1024px) {
  .app-shell .main .crm-address-page #crmClientList.crm-client-list .crm-client-card:not(.expanded),
  .app-shell .main .crm-address-page #crmClientList.crm-client-list .crm-client-card.expanded {
    min-height: 48px !important;
  }

  .app-shell .main .crm-address-page #crmClientList.crm-client-list .crm-client-card:not(.expanded) .client-directory-row,
  .app-shell .main .crm-address-page #crmClientList.crm-client-list .crm-client-card:not(.expanded) .client-directory-row:hover,
  .app-shell .main .crm-address-page #crmClientList.crm-client-list .crm-client-card:not(.expanded) .client-directory-row:focus,
  .app-shell .main .crm-address-page #crmClientList.crm-client-list .crm-client-card.expanded .client-directory-row,
  .app-shell .main .crm-address-page #crmClientList.crm-client-list .crm-client-card.expanded .client-directory-row:hover,
  .app-shell .main .crm-address-page #crmClientList.crm-client-list .crm-client-card.expanded .client-directory-row:focus {
    grid-template-rows: 48px !important;
    min-height: 48px !important;
    height: 48px !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
  }
}

@media (max-width: 1024px) {
  .app-shell .main .crm-address-page #crmClientList.crm-client-list .crm-profile-summary p,
  .app-shell .main .crm-address-page #crmClientList.crm-client-list .crm-profile-summary p:first-child,
  .app-shell .main .crm-address-page #crmClientList.crm-client-list .crm-profile-summary p:last-child,
  .app-shell .main .crm-address-page #crmClientList.crm-client-list .crm-profile-summary p:nth-child(2n),
  .app-shell .main .crm-address-page #crmClientList.crm-client-list .crm-profile-summary p:nth-last-child(-n + 2) {
    min-height: 48px !important;
    height: 48px !important;
    padding-top: 3px !important;
    padding-bottom: 3px !important;
  }
}

@media (min-width: 761px) and (max-width: 1024px) {
  .app-shell .main .crm-address-page .crm-page-title h1 {
    font-size: 22px !important;
    font-weight: 650 !important;
    line-height: 28px !important;
  }

  .app-shell .main .crm-address-page .crm-page-title h1 span {
    min-height: 22px !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    line-height: 16px !important;
  }

  .app-shell .main .crm-address-page .crm-title-actions {
    height: 40px !important;
    gap: 8px !important;
  }

  .app-shell .main .crm-address-page .crm-bulk-toggle-btn,
  .app-shell .main .crm-address-page .crm-bulk-del-btn {
    width: 40px !important;
    min-width: 40px !important;
    height: 40px !important;
    min-height: 40px !important;
    border-radius: 999px !important;
  }

  .app-shell .main .crm-address-page .crm-add-client-btn {
    height: 34px !important;
    min-height: 34px !important;
    padding: 6px 12px !important;
    border-radius: 12px !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    line-height: 18px !important;
  }

  .app-shell .main .crm-address-page .crm-add-client-btn span {
    font-size: 18px !important;
    font-weight: 600 !important;
    line-height: 18px !important;
  }

  .app-shell .main .crm-address-page .crm-search-box {
    border-radius: 12px !important;
    padding: 0 12px 0 34px !important;
  }

  .app-shell .main .crm-address-page .crm-search-box input {
    font-size: 13px !important;
    font-weight: 500 !important;
    line-height: 18px !important;
  }

  .app-shell .main .crm-address-page #crmClientList.crm-client-list .crm-client-card:not(.expanded),
  .app-shell .main .crm-address-page #crmClientList.crm-client-list .crm-client-card.expanded {
    min-height: 48px !important;
  }

  .app-shell .main .crm-address-page #crmClientList.crm-client-list .crm-client-card:not(.expanded) .client-directory-row,
  .app-shell .main .crm-address-page #crmClientList.crm-client-list .crm-client-card:not(.expanded) .client-directory-row:hover,
  .app-shell .main .crm-address-page #crmClientList.crm-client-list .crm-client-card:not(.expanded) .client-directory-row:focus,
  .app-shell .main .crm-address-page #crmClientList.crm-client-list .crm-client-card.expanded .client-directory-row,
  .app-shell .main .crm-address-page #crmClientList.crm-client-list .crm-client-card.expanded .client-directory-row:hover,
  .app-shell .main .crm-address-page #crmClientList.crm-client-list .crm-client-card.expanded .client-directory-row:focus {
    grid-template-rows: 48px !important;
    min-height: 48px !important;
    height: 48px !important;
    gap: 5px !important;
    padding: 0 10px !important;
  }

  .app-shell .main .crm-address-page #crmClientList.crm-client-list .crm-client-card .client-directory-row > .crm-client-identity {
    height: 28px !important;
    min-height: 28px !important;
    align-content: center !important;
  }

  .app-shell .main .crm-address-page #crmClientList.crm-client-list .crm-client-card .client-directory-row > .crm-client-identity strong {
    height: 16px !important;
    font-size: 13px !important;
    font-weight: 650 !important;
    line-height: 16px !important;
  }

  .app-shell .main .crm-address-page #crmClientList.crm-client-list .crm-client-card .client-directory-row > .crm-client-phone {
    height: 28px !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    line-height: 16px !important;
  }

  .app-shell .main .crm-address-page .crm-title-actions .crm-bulk-toggle-btn,
  .app-shell .main .crm-address-page .crm-title-actions .crm-bulk-del-btn {
    width: 40px !important;
    min-width: 40px !important;
    max-width: 40px !important;
    height: 40px !important;
    min-height: 40px !important;
    max-height: 40px !important;
    border-radius: 999px !important;
  }

  .app-shell .main .crm-address-page #crmClientList.crm-client-list .crm-client-card:not(.expanded) .client-directory-row > .crm-client-identity,
  .app-shell .main .crm-address-page #crmClientList.crm-client-list .crm-client-card.expanded .client-directory-row > .crm-client-identity {
    height: 28px !important;
    min-height: 28px !important;
    align-content: center !important;
  }

  .app-shell .main .crm-address-page #crmClientList.crm-client-list .crm-client-card:not(.expanded) .client-directory-row > .crm-client-identity strong,
  .app-shell .main .crm-address-page #crmClientList.crm-client-list .crm-client-card.expanded .client-directory-row > .crm-client-identity strong {
    height: 16px !important;
    font-size: 13px !important;
    font-weight: 650 !important;
    line-height: 16px !important;
  }

  .app-shell .main .crm-address-page #crmClientList.crm-client-list .crm-client-card:not(.expanded) .client-directory-row > .crm-client-phone,
  .app-shell .main .crm-address-page #crmClientList.crm-client-list .crm-client-card.expanded .client-directory-row > .crm-client-phone {
    height: 28px !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    line-height: 16px !important;
  }
}

/* Final shared staff title override: Journal is the visual prototype. */
.app-shell .main .crm-address-page .crm-page-title h1 {
  font-size: 28px !important;
  line-height: 34px !important;
  font-weight: 700 !important;
  letter-spacing: 0 !important;
}

@media (max-width: 700px) {
  .app-shell .main .crm-address-page .crm-page-title h1 {
    font-size: 24px !important;
    line-height: 30px !important;
  }
}

/* Client bulk action: archive in the current list, delete in the archive list. */
.app-shell .main .crm-address-page .crm-title-actions .crm-bulk-toggle-btn,
.app-shell .main .crm-address-page .crm-title-actions .crm-bulk-del-btn {
  width: 44px !important;
  min-width: 44px !important;
  max-width: 44px !important;
  height: 44px !important;
  min-height: 44px !important;
  max-height: 44px !important;
}

.app-shell .main .crm-address-page .crm-title-actions .crm-bulk-toggle-btn {
  border-radius: 4px !important;
}

.app-shell .main .crm-address-page .crm-bulk-mode-icon {
  display: block;
  width: 28px;
  height: 28px;
  max-width: none;
  object-fit: contain;
  pointer-events: none;
}

.app-shell .main .crm-address-page .crm-bulk-del-btn .crm-bulk-basket-icon {
  display: block;
  width: 22px;
  height: 22px;
  max-width: none;
  object-fit: contain;
  transform: scale(2.05);
  transform-origin: center;
  pointer-events: none;
}

.app-shell .main .crm-address-page .crm-bulk-del-btn.archive-action {
  border-radius: 4px !important;
  border-color: rgba(47, 107, 255, 0.22);
  background: rgba(238, 244, 255, 0.94);
  color: #2f6bff;
}

.app-shell .main .crm-address-page .crm-bulk-confirm {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  color: #991b1b;
  font-size: 13px;
  font-weight: 650;
  white-space: nowrap;
}

.app-shell .main .crm-address-page .crm-bulk-confirm button {
  display: inline-grid;
  place-items: center;
  min-width: 44px;
  height: 44px;
  min-height: 44px;
  padding: 0 10px;
  border: 1px solid var(--pb-color-border, #dde5f0);
  border-radius: 12px;
  background: #fff;
  color: var(--pb-color-text, #111827);
  font: inherit;
}

.app-shell .main .crm-address-page .crm-bulk-confirm button.danger {
  border-color: rgba(239, 68, 68, 0.28);
  background: rgba(254, 242, 242, 0.96);
  color: #dc2626;
}
