.cms-page {
  background: #eef2f6;
}

.cms-page .content {
  padding: 14px 16px 24px;
}

.cms-shell {
  max-width: 1480px;
  margin: 0 auto;
}

.cms-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
  padding: 16px;
  color: #ffffff;
  background: #182b3f;
  border-radius: 8px;
  box-shadow: 0 12px 26px rgba(24, 43, 63, 0.16);
}

.cms-hero h1,
.cms-card-head h2 {
  margin: 2px 0 0;
  font-weight: 900;
}

.cms-hero h1 {
  color: #ffffff;
  font-size: 1.38rem;
}

.cms-hero p {
  margin: 5px 0 0;
  color: #c9d7e5;
  font-size: 0.88rem;
}

.cms-eyebrow,
.cms-card-head span,
.cms-stat span {
  display: block;
  color: #667789;
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.cms-eyebrow {
  color: #9dd6ff;
}

.cms-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(150px, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}

.cms-stat {
  min-height: 76px;
  padding: 12px;
  background: #ffffff;
  border: 1px solid #e0e8f0;
  border-radius: 8px;
  box-shadow: 0 8px 18px rgba(31, 41, 55, 0.07);
}

.cms-stat strong {
  display: block;
  margin-top: 6px;
  color: #14202e;
  font-size: 1.2rem;
  font-weight: 900;
}

.cms-card {
  overflow: hidden;
  background: #ffffff;
  border: 1px solid #dde6ee;
  border-radius: 8px;
  box-shadow: 0 12px 26px rgba(31, 41, 55, 0.1);
}

.cms-card-head {
  padding: 13px 15px;
  background: #fbfcfd;
  border-bottom: 1px solid #e5ebf2;
}

.cms-card-head h2 {
  color: #14202e;
  font-size: 1.06rem;
}

.cms-card-body {
  display: grid;
  grid-template-columns: minmax(300px, 360px) minmax(0, 1fr);
  gap: 16px;
  padding: 16px;
}

.cms-list-body {
  display: block;
}

.cms-form-page {
  max-width: 860px;
  margin: 0 auto;
}

.cms-standalone-form {
  padding: 16px;
  border: 0;
  border-radius: 0;
}

.cms-form-panel {
  align-self: start;
  padding: 14px;
  background: #f8fafc;
  border: 1px solid #e0e8f0;
  border-radius: 8px;
}

.cms-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 10px;
}

.cms-form-panel label {
  color: #667789;
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.cms-form-panel .form-control {
  min-height: 39px;
  border-color: #d6e0ea;
  border-radius: 7px;
}

.cms-radio-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.cms-radio-option {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 38px;
  margin: 0;
  padding: 8px 10px;
  background: #ffffff;
  border: 1px solid #d6e0ea;
  border-radius: 7px;
  cursor: pointer;
}

.cms-form-actions {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
}

.cms-page .btn {
  border-radius: 7px;
  font-weight: 850;
}

.cms-table-wrap {
  min-width: 0;
  overflow-x: auto;
}

.cms-table {
  width: 100%;
  margin-bottom: 0;
}

.cms-table thead th {
  color: #46596c;
  background: #f6f9fc;
  border-bottom: 1px solid #d9e2ec;
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
  white-space: nowrap;
}

.cms-table tbody td,
.cms-table tbody th {
  vertical-align: middle;
  white-space: nowrap;
}

.cms-badge {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 4px 8px;
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 900;
}

.cms-badge.online,
.cms-badge.active,
.cms-badge.won {
  color: #14532d;
  background: #dcfce7;
}

.cms-badge.offline,
.cms-badge.inactive,
.cms-badge.lost {
  color: #7c2d12;
  background: #ffedd5;
}

.cms-badge.new,
.cms-badge.contacted,
.cms-badge.follow-up,
.cms-badge.undecided {
  color: #1e3a8a;
  background: #dbeafe;
}

@media (max-width: 1199.98px) {
  .cms-card-body {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 767.98px) {
  .cms-page .content {
    padding: 10px;
  }

  .cms-hero {
    align-items: flex-start;
    flex-direction: column;
    padding: 13px;
  }

  .cms-stats,
  .cms-form-grid {
    grid-template-columns: 1fr;
  }
}
