.customer-table {
  min-width: 1890px;
}

.customer-table .data-head,
.customer-table .data-row {
  grid-template-columns: 1.4fr .95fr 1.15fr .55fr .68fr .65fr .5fr .72fr 1fr .72fr 1.25fr 1.05fr;
}

.customer-table.bulk-selectable {
  min-width: 1930px;
}

.customer-table.bulk-selectable .data-head,
.customer-table.bulk-selectable .data-row {
  grid-template-columns: 32px 1.4fr .95fr 1.15fr .55fr .68fr .65fr .5fr .72fr 1fr .72fr 1.25fr 1.05fr;
}

.customer-country-time {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  min-width: 0;
  line-height: 1.25;
}

.customer-country-time > b {
  max-width: 100%;
  overflow: hidden;
  color: #40506a;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.customer-country-time > small {
  color: #2370d8;
  font-size: 9px;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.followup-time-editor input {
  width: 100%;
  min-width: 142px;
  height: 32px;
  padding: 0 7px;
  color: #46546a;
  background: #f7f9fc;
  border: 1px solid #dfe6f1;
  border-radius: 7px;
  font-size: 9px;
  outline: 0;
}

.followup-time-editor input:focus {
  background: #fff;
  border-color: #6d9af1;
  box-shadow: 0 0 0 3px #2f6df617;
}

.followup-history-button {
  color: #1762d7;
  background: #edf4ff;
  border-color: #cbdcf8;
}

.customer-followup-backdrop {
  z-index: 80;
}

.customer-followup-modal {
  position: relative;
  width: min(820px, calc(100vw - 32px));
  max-height: calc(100vh - 40px);
  padding: 22px;
  overflow-y: auto;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 24px 70px #0d183240;
}

.customer-followup-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-right: 38px;
  margin-bottom: 18px;
}

.customer-followup-head > span {
  display: grid;
  place-items: center;
  flex: none;
  width: 42px;
  height: 42px;
  color: #2f6bff;
  font-weight: 900;
  background: #edf3ff;
  border-radius: 12px;
}

.customer-followup-head h2,
.customer-followup-head p,
.followup-history-title h3 {
  margin: 0;
}

.customer-followup-head h2 {
  font-size: 19px;
}

.customer-followup-head p {
  margin-top: 4px;
  color: #8793a6;
  font-size: 11px;
}

.customer-followup-form {
  display: grid;
  gap: 12px;
  padding: 16px;
  background: #f8faff;
  border: 1px solid #e1e8f3;
  border-radius: 12px;
}

.followup-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.customer-followup-form label {
  display: grid;
  gap: 6px;
  color: #40506a;
  font-size: 11px;
  font-weight: 700;
}

.customer-followup-form input,
.customer-followup-form select,
.customer-followup-form textarea {
  width: 100%;
  padding: 9px 10px;
  color: #34445d;
  background: #fff;
  border: 1px solid #dce4ef;
  border-radius: 8px;
  outline: 0;
  font-size: 11px;
  font-weight: 400;
}

.customer-followup-form input,
.customer-followup-form select {
  height: 38px;
}

.customer-followup-form textarea {
  min-height: 68px;
  resize: vertical;
}

.customer-followup-form input:focus,
.customer-followup-form select:focus,
.customer-followup-form textarea:focus {
  border-color: #6d9af1;
  box-shadow: 0 0 0 3px #2f6df617;
}

.followup-form-actions {
  display: flex;
  justify-content: flex-end;
}

.customer-followup-readonly {
  padding: 12px 14px;
  color: #66758b;
  background: #f7f9fc;
  border: 1px solid #e2e8f0;
  border-radius: 9px;
  font-size: 11px;
}

.customer-followup-history {
  margin-top: 20px;
}

.followup-history-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 12px;
  border-bottom: 1px solid #e8edf4;
}

.followup-history-title h3 {
  font-size: 15px;
}

.followup-history-title span {
  color: #2f6bd8;
  font-size: 11px;
  font-weight: 800;
}

.followup-timeline {
  display: grid;
  gap: 0;
}

.followup-timeline article {
  position: relative;
  margin-left: 9px;
  padding: 17px 0 17px 25px;
  border-left: 2px solid #dce6f6;
}

.followup-timeline article > i {
  position: absolute;
  top: 20px;
  left: -7px;
  width: 12px;
  height: 12px;
  background: #2f6bff;
  border: 3px solid #eaf1ff;
  border-radius: 50%;
}

.followup-record-head {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.followup-record-date {
  color: #30425f;
  font-size: 12px;
  font-weight: 800;
}

.followup-record-head em {
  padding: 3px 7px;
  color: #2864d1;
  background: #edf3ff;
  border-radius: 999px;
  font-size: 9px;
  font-style: normal;
  font-weight: 800;
}

.followup-record-head small {
  margin-left: auto;
  color: #98a3b4;
  font-size: 9px;
}

.followup-record-delete {
  flex: 0 0 auto;
  padding: 5px 9px;
  font-size: 9px;
}

.dismiss-followup {
  color: #c2410c;
  background: #fff7ed;
  border-color: #fed7aa;
  white-space: nowrap;
}

.dismiss-followup:hover {
  color: #9a3412;
  background: #ffedd5;
  border-color: #fdba74;
}

.followup-timeline article > p,
.followup-record-body > p {
  margin: 9px 0 0;
  color: #4c5d75;
  white-space: pre-wrap;
  font-size: 11px;
  line-height: 1.7;
}

.followup-timeline article > section,
.followup-record-body > section {
  display: grid;
  gap: 4px;
  margin-top: 9px;
  padding: 9px 11px;
  background: #f8faff;
  border-radius: 8px;
}

.followup-timeline article > section b,
.followup-record-body > section b {
  color: #315d9f;
  font-size: 10px;
}

.followup-timeline article > section span,
.followup-record-body > section span {
  color: #64748b;
  white-space: pre-wrap;
  font-size: 10px;
  line-height: 1.6;
}

.followup-record-edit {
  display: grid;
  gap: 10px;
  margin-top: 12px;
  padding: 13px;
  background: #f8faff;
  border: 1px solid #dce6f6;
  border-radius: 10px;
}

.followup-record-edit label {
  display: grid;
  gap: 5px;
  color: #40506a;
  font-size: 10px;
  font-weight: 700;
}

.followup-record-edit input,
.followup-record-edit select,
.followup-record-edit textarea {
  width: 100%;
  padding: 8px 9px;
  color: #34445d;
  background: #fff;
  border: 1px solid #dce4ef;
  border-radius: 8px;
  outline: 0;
  font-size: 10px;
  font-weight: 400;
}

.followup-record-edit input,
.followup-record-edit select {
  height: 36px;
}

.followup-record-edit textarea {
  min-height: 62px;
  resize: vertical;
}

.followup-record-edit-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

.followup-history-empty {
  display: grid;
  place-items: center;
  gap: 6px;
  min-height: 150px;
  color: #8b98aa;
}

.followup-history-empty > span {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  color: #2f6df6;
  background: #edf3ff;
  border-radius: 14px;
  font-size: 20px;
}

.followup-history-empty strong {
  color: #46566e;
  font-size: 13px;
}

.followup-history-empty small {
  font-size: 10px;
}

@media (max-width: 640px) {
  .customer-followup-modal {
    padding: 16px;
  }

  .followup-form-grid {
    grid-template-columns: 1fr;
  }

  .followup-record-head small {
    width: 100%;
    margin-left: 0;
  }

  .followup-record-delete {
    margin-left: 0;
  }
}
