/* ../../downloads/crm-app-src/src/style.css */
html,
body,
#root {
  margin: 0;
  min-height: 100%;
}
body {
  background: var(--ds-page);
}
*,
*::before,
*::after {
  box-sizing: border-box;
}
.crm-app {
  margin: -24px;
  background: #eef1f4;
  min-height: 100vh;
  padding-bottom: 20px;
  color: #17242b;
  font-size: 14px;
  line-height: 22px;
}
@media (min-width: 768px) {
  .crm-app {
    margin: -36px;
  }
}
.crm-appbar {
  background:
    linear-gradient(
      135deg,
      #0b4f47 0%,
      #0f766e 60%,
      #149a86 100%);
  padding: 18px 18px 44px;
  color: #fff;
  border-radius: 0 0 26px 26px;
}
.crm-appbar-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.crm-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}
.crm-brand-mark {
  width: 38px;
  height: 38px;
  border-radius: 11px;
  background: rgb(255 255 255 / 0.16);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.crm-brand > span:last-child {
  display: flex;
  flex-direction: column;
}
.crm-brand-name {
  font-size: 16px;
  font-weight: 800;
}
.crm-brand-sub {
  font-size: 11px;
  opacity: 0.75;
  margin-top: 1px;
}
.crm-appbar-side {
  display: flex;
  align-items: center;
  gap: 10px;
}
.crm-demo-pill {
  font-size: 10.5px;
  font-weight: 700;
  color: #0b4f47;
  background: #b9f0e3;
  padding: 4px 10px;
  border-radius: 999px;
}
.crm-icon-btn {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgb(255 255 255 / 0.14);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.crm-badge-dot {
  position: absolute;
  top: 7px;
  inset-inline-start: 8px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ffb648;
  border: 1.5px solid #0f766e;
}
.crm-summary {
  margin: -30px 18px 0;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 6px 18px rgb(23 36 43 / 0.10);
  display: flex;
  padding: 14px 6px;
}
.crm-stat {
  flex: 1;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.crm-stat + .crm-stat {
  border-inline-start: 1px solid #eef1f4;
}
.crm-stat-num {
  font-size: 20px;
  font-weight: 800;
}
.crm-stat-num.teal {
  color: #0f766e;
}
.crm-stat-num.amber {
  color: #b45309;
}
.crm-stat-num.ink {
  color: #17242b;
}
.crm-stat-label {
  font-size: 11px;
  color: #7c8a93;
}
.crm-tabs {
  display: flex;
  gap: 6px;
  margin: 16px 18px 4px;
  background: #e2e8ec;
  padding: 4px;
  border-radius: 999px;
}
.crm-tab {
  flex: 1;
  border: none;
  background: transparent;
  color: #5b6b74;
  font: inherit;
  font-size: 13px;
  font-weight: 500;
  padding: 8px 0;
  border-radius: 999px;
  cursor: pointer;
  min-height: 40px;
}
.crm-tab.is-active {
  background: #fff;
  color: #0f766e;
  font-weight: 700;
  box-shadow: 0 2px 6px rgb(23 36 43 / 0.10);
}
.crm-search-row {
  display: flex;
  gap: 10px;
  margin: 14px 18px 0;
}
.crm-search-box {
  flex: 1;
  background: #fff;
  border-radius: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 14px;
  height: 44px;
  box-shadow: 0 2px 8px rgb(23 36 43 / 0.05);
}
.crm-search-input {
  flex: 1;
  border: none;
  outline: none;
  background: transparent;
  font: inherit;
  font-size: 13px;
  color: #17242b;
  min-width: 0;
}
.crm-search-input::placeholder {
  color: #9aa7ae;
}
.crm-filter {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: 12px 18px 0;
}
.crm-filter-label {
  font-size: 11px;
  color: #7c8a93;
  padding-top: 7px;
  min-width: 38px;
}
.crm-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.crm-chip-btn {
  font: inherit;
  font-size: 12.5px;
  font-weight: 500;
  color: #5b6b74;
  background: #fff;
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid #e3e8ec;
  cursor: pointer;
  min-height: 32px;
}
.crm-chip-btn.is-active {
  background: #0f766e;
  color: #fff;
  border-color: #0f766e;
  font-weight: 700;
}
.crm-count {
  margin: 14px 18px 0;
  font-size: 11.5px;
  color: #7c8a93;
}
.crm-empty {
  margin: 14px 18px 0;
  font-size: 13px;
  color: #7c8a93;
}
.crm-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 10px 18px 0;
}
.crm-card {
  background: #fff;
  border-radius: 14px;
  padding: 12px;
  display: flex;
  gap: 12px;
  box-shadow: 0 2px 8px rgb(23 36 43 / 0.05);
  align-items: center;
}
.crm-thumb {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  flex-shrink: 0;
  background:
    linear-gradient(
      135deg,
      #d9f2ec,
      #b4e3d7);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.crm-avatar {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  flex-shrink: 0;
  background: #0f766e;
  color: #fff;
  font-size: 17px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.crm-cal {
  width: 42px;
  height: 42px;
  border-radius: 11px;
  background: #0f766e;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.crm-card-info {
  flex: 1;
  min-width: 0;
}
.crm-card-title {
  font-size: 14px;
  font-weight: 700;
}
.crm-card-sub {
  font-size: 11.5px;
  color: #7c8a93;
  margin-top: 3px;
}
.crm-card-confirm {
  font-size: 10.5px;
  color: #9aa7ae;
  margin-top: 3px;
}
.crm-card-side {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
  flex-shrink: 0;
}
.crm-price {
  font-size: 14px;
  font-weight: 800;
  color: #0f766e;
  direction: ltr;
  white-space: nowrap;
}
.crm-status {
  font-size: 10.5px;
  font-weight: 700;
  padding: 4px 9px;
  border-radius: 999px;
  white-space: nowrap;
}
.crm-status.ok {
  background: #d9f2ea;
  color: #0f766e;
}
.crm-status.warn {
  background: #fdf0d5;
  color: #b45309;
}
.crm-status.hold {
  background: #e3ebfa;
  color: #365ea8;
}
.crm-status.gone {
  background: #eceff1;
  color: #78909c;
}
.crm-status.date {
  background: #eceff1;
  color: #5b6b74;
}
.crm-note {
  margin: 16px 18px 0;
  background: #fdf0d5;
  color: #7a5a1e;
  border-radius: 12px;
  padding: 12px 14px;
  font-size: 12px;
  line-height: 20px;
}
.crm-footer {
  margin: 18px 18px 0;
  font-size: 11px;
  color: #9aa7ae;
  text-align: center;
  line-height: 18px;
}
.crm-desktop-only {
  display: none;
}
@media (min-width: 1024px) {
  .crm-app {
    display: flex;
    padding-bottom: 0;
    align-items: stretch;
  }
  .crm-mobile-only {
    display: none !important;
  }
  .crm-desktop-only {
    display: block;
  }
  .crm-sidebar {
    width: 224px;
    flex-shrink: 0;
    background:
      linear-gradient(
        180deg,
        #0b4f47,
        #0f766e);
    color: #fff;
    padding: 22px 14px;
    display: flex;
    flex-direction: column;
  }
  .crm-side-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 8px 20px;
    border-bottom: 1px solid rgb(255 255 255 / 0.15);
  }
  .crm-side-brand > span:last-child {
    display: flex;
    flex-direction: column;
  }
  .crm-nav {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-top: 18px;
  }
  .crm-nav-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 10px;
    font-size: 13.5px;
    font-weight: 500;
    font-family: inherit;
    color: rgb(255 255 255 / 0.82);
    background: transparent;
    border: none;
    cursor: pointer;
    text-align: start;
    width: 100%;
  }
  .crm-nav-item.is-active {
    background: rgb(255 255 255 / 0.16);
    color: #fff;
    font-weight: 700;
  }
  .crm-nav-item.is-soon {
    opacity: 0.55;
    cursor: default;
  }
  .crm-nav-soon {
    font-size: 9.5px;
    font-weight: 700;
    background: rgb(255 255 255 / 0.18);
    padding: 2px 7px;
    border-radius: 999px;
  }
  .crm-nav-note {
    margin-top: auto;
    background: rgb(255 255 255 / 0.12);
    border-radius: 12px;
    padding: 12px;
    font-size: 11.5px;
    line-height: 1.7;
    color: rgb(255 255 255 / 0.85);
  }
  .crm-nav-note b {
    display: block;
    font-size: 12.5px;
    margin-bottom: 3px;
    color: #b9f0e3;
  }
  .crm-main {
    flex: 1;
    min-width: 0;
    padding: 20px 26px 30px;
    display: flex;
    flex-direction: column;
  }
  .crm-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
  }
  .crm-page-title {
    font-size: 20px;
    font-weight: 800;
  }
  .crm-page-sub {
    font-size: 12px;
    color: #7c8a93;
    margin-top: 2px;
  }
  .crm-topbar-side {
    display: flex;
    align-items: center;
    gap: 10px;
  }
  .crm-topbar-search {
    width: 300px;
    flex: none;
    height: 40px;
  }
  .crm-icon-btn-desk {
    width: 40px;
    height: 40px;
    border-radius: 11px;
    background: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: relative;
    box-shadow: 0 2px 8px rgb(23 36 43 / 0.05);
  }
  .crm-badge-dot-desk {
    position: absolute;
    top: 8px;
    inset-inline-start: 9px;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #ffb648;
  }
  .crm-avatar-desk {
    width: 40px;
    height: 40px;
    border-radius: 11px;
    background: #0f766e;
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 14px;
  }
  .crm-stats {
    display: flex;
    gap: 14px;
    margin-top: 18px;
  }
  .crm-stat-card {
    flex: 1;
    background: #fff;
    border-radius: 14px;
    padding: 14px 16px;
    box-shadow: 0 2px 8px rgb(23 36 43 / 0.05);
    display: flex;
    align-items: center;
    gap: 12px;
  }
  .crm-stat-ico {
    width: 42px;
    height: 42px;
    border-radius: 11px;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
  .crm-stat-card > span:last-child {
    display: flex;
    flex-direction: column;
  }
  .crm-content-row {
    display: flex;
    gap: 14px;
    margin-top: 16px;
    align-items: flex-start;
  }
  .crm-table-card {
    flex: 1;
    min-width: 0;
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 2px 8px rgb(23 36 43 / 0.05);
    padding: 16px 18px;
  }
  .crm-table-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
  }
  .crm-table-title {
    font-size: 14.5px;
    font-weight: 800;
  }
  .crm-table-head .crm-chips {
    flex-wrap: nowrap;
  }
  .crm-table-head .crm-chip-btn {
    font-size: 11.5px;
    padding: 5px 12px;
    min-height: 0;
  }
  .crm-table-card .crm-filter {
    margin: 10px 0 0;
  }
  .crm-table-card .crm-count {
    margin: 10px 0 0;
  }
  .crm-table-card .crm-note {
    margin: 14px 0 0;
  }
  .crm-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
  }
  .crm-table th {
    font-size: 11px;
    color: #9aa7ae;
    font-weight: 500;
    text-align: right;
    padding: 8px 10px;
    border-bottom: 1px solid #eef1f4;
  }
  .crm-table td {
    font-size: 12.5px;
    padding: 10px;
    border-bottom: 1px solid #f4f6f8;
    font-weight: 500;
  }
  .crm-table tbody tr:last-child td {
    border-bottom: none;
  }
  .crm-table td.crm-code {
    color: #7c8a93;
    font-weight: 400;
  }
  .crm-cell-sub {
    display: block;
    font-size: 11px;
    color: #9aa7ae;
    font-weight: 400;
    margin-top: 1px;
  }
  .crm-table td.crm-price-cell {
    font-weight: 800;
    color: #0f766e;
    direction: ltr;
    text-align: right;
    white-space: nowrap;
  }
  .crm-table-empty {
    text-align: center !important;
    color: #7c8a93;
    padding: 22px 10px !important;
  }
  .crm-side-panel {
    width: 300px;
    flex-shrink: 0;
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 2px 8px rgb(23 36 43 / 0.05);
    padding: 16px 18px;
  }
  .crm-side-title {
    font-size: 14px;
    font-weight: 800;
    margin-bottom: 4px;
  }
  .crm-follow-item {
    display: flex;
    gap: 10px;
    padding: 10px 0;
    border-bottom: 1px solid #f4f6f8;
    align-items: flex-start;
  }
  .crm-follow-item:last-of-type {
    border-bottom: none;
  }
  .crm-follow-dot {
    width: 34px;
    height: 34px;
    border-radius: 9px;
    background: #d9f2ea;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
  .crm-follow-item > span:last-child {
    display: flex;
    flex-direction: column;
  }
  .crm-follow-title {
    font-size: 12.5px;
    font-weight: 700;
  }
  .crm-follow-sub {
    font-size: 11px;
    color: #7c8a93;
    margin-top: 2px;
    line-height: 1.6;
  }
  .crm-leads-banner {
    margin-top: 12px;
    background:
      linear-gradient(
        135deg,
        #0b4f47,
        #0f766e);
    border-radius: 12px;
    padding: 13px 14px;
    color: #fff;
  }
  .crm-leads-title {
    font-size: 12.5px;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 7px;
  }
  .crm-leads-sub {
    font-size: 11px;
    opacity: 0.85;
    margin-top: 4px;
    line-height: 1.7;
  }
  .crm-footer {
    margin-top: auto;
    padding-top: 22px;
  }
}
@media (min-width: 1024px) {
  .crm-table {
    table-layout: fixed;
  }
  .crm-table td {
    vertical-align: top;
  }
  .crm-main {
    padding: 20px 20px 30px;
  }
  .crm-side-panel {
    width: 280px;
  }
}
.crm-count-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 14px 18px 0;
  flex-wrap: wrap;
}
.crm-count-row .crm-count {
  margin: 0;
}
.crm-count-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.crm-add-btn {
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  color: #fff;
  background: #0f766e;
  border: none;
  border-radius: 999px;
  padding: 8px 14px;
  cursor: pointer;
  min-height: 36px;
  white-space: nowrap;
}
.crm-add-btn.ghost {
  background: #fff;
  color: #0f766e;
  border: 1px solid #0f766e;
}
.crm-clickable {
  cursor: pointer;
}
.crm-notice {
  margin: 14px 18px 0;
  background: #d9f2ea;
  color: #0b4f47;
  border-radius: 12px;
  padding: 10px 14px;
  font-size: 12px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.crm-notice button {
  background: none;
  border: none;
  font: inherit;
  cursor: pointer;
  color: #0b4f47;
  font-weight: 800;
}
.crm-modal-back {
  position: fixed;
  inset: 0;
  background: rgb(23 36 43 / 0.45);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  z-index: 50;
}
.crm-modal {
  background: #fff;
  width: 100%;
  max-width: 520px;
  max-height: 88vh;
  overflow: auto;
  border-radius: 20px 20px 0 0;
  padding: 18px;
}
.crm-modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 4px;
}
.crm-modal-title {
  font-size: 16px;
  font-weight: 800;
}
.crm-modal-x {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  border: none;
  background: #f4f6f8;
  color: #5b6b74;
  font-size: 14px;
  cursor: pointer;
}
.crm-field {
  display: block;
  margin-top: 12px;
}
.crm-field-label {
  display: block;
  font-size: 11.5px;
  color: #7c8a93;
  font-weight: 700;
  margin-bottom: 5px;
}
.crm-field-hint {
  display: block;
  font-size: 10.5px;
  color: #b45309;
  margin-top: 4px;
  line-height: 1.6;
}
.crm-input {
  width: 100%;
  font: inherit;
  font-size: 13.5px;
  color: #17242b;
  background: #f7f9fa;
  border: 1px solid #e3e8ec;
  border-radius: 11px;
  padding: 10px 12px;
  outline: none;
}
.crm-input:focus {
  border-color: #0f766e;
  background: #fff;
}
.crm-field-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 12px;
}
.crm-modal-actions {
  display: flex;
  gap: 10px;
  margin-top: 18px;
}
.crm-btn-primary {
  flex: 1;
  font: inherit;
  font-size: 14px;
  font-weight: 800;
  color: #fff;
  background: #0f766e;
  border: none;
  border-radius: 12px;
  padding: 12px;
  cursor: pointer;
  min-height: 44px;
}
.crm-btn-primary:disabled {
  opacity: 0.45;
  cursor: default;
}
.crm-btn-ghost {
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  color: #5b6b74;
  background: #f4f6f8;
  border: none;
  border-radius: 12px;
  padding: 12px 18px;
  cursor: pointer;
}
.crm-import-drop {
  margin-top: 12px;
  border: 1.5px dashed #cfe3df;
  border-radius: 12px;
  padding: 16px;
  font-size: 12.5px;
  color: #5b6b74;
  line-height: 1.8;
}
.crm-import-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 12px;
  font-size: 12px;
}
.crm-import-table th,
.crm-import-table td {
  text-align: right;
  padding: 6px 8px;
  border-bottom: 1px solid #f4f6f8;
}
.crm-import-table th {
  color: #9aa7ae;
  font-weight: 500;
  font-size: 10.5px;
}
.crm-flag {
  display: inline-block;
  background: #fdf0d5;
  color: #b45309;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 8px;
  margin-inline-end: 4px;
}
.crm-import-summary {
  margin-top: 10px;
  font-size: 12px;
  color: #5b6b74;
}
.crm-import-error {
  margin-top: 10px;
  font-size: 12px;
  color: #b45309;
}
@media (min-width: 1024px) {
  .crm-modal-back {
    align-items: center;
  }
  .crm-modal {
    border-radius: 20px;
  }
  .crm-table-card .crm-count-row {
    margin: 10px 0 0;
  }
}
@media (max-width: 420px) {
  .crm-appbar {
    padding: 14px 14px 40px;
  }
  .crm-brand-sub {
    font-size: 10px;
  }
  .crm-demo-pill {
    font-size: 10px;
    padding: 4px 8px;
    white-space: normal;
    text-align: center;
  }
  .crm-card-title {
    font-size: 13.5px;
  }
  .crm-count-row {
    margin: 12px 12px 0;
  }
  .crm-list,
  .crm-note {
    margin-inline: 12px;
  }
}
.crm-import-area {
  width: 100%;
  min-height: 120px;
  resize: vertical;
  font-family: inherit;
}
.crm-import-preview {
  max-height: 220px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 10px;
}
.crm-import-row {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  font-size: 12px;
  padding: 6px 8px;
  background: #f4f7f8;
  border-radius: 8px;
}
