/* CRM workspace refresh, version 1.12.0 */
.cpcrm-wrap {
  --cpcrm-ink: #18202b;
  --cpcrm-muted: #697386;
  --cpcrm-border: #dfe3e8;
  --cpcrm-surface: #ffffff;
  --cpcrm-canvas: #f5f6f8;
  --cpcrm-sidebar: #15191f;
  --cpcrm-sidebar-soft: #232932;
  --cpcrm-accent: #c7a451;
  --cpcrm-accent-dark: #8a6d26;
  background: var(--cpcrm-canvas);
  color: var(--cpcrm-ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  margin: 20px 20px 0 0;
  max-width: 1480px;
}

.cpcrm-app-shell {
  background: var(--cpcrm-canvas);
  border: 1px solid #d9dde3;
  border-radius: 14px;
  box-shadow: 0 18px 55px rgba(30, 38, 50, 0.10);
  display: grid;
  grid-template-columns: 238px minmax(0, 1fr);
  grid-template-rows: auto minmax(680px, 1fr);
  min-height: calc(100vh - 72px);
  overflow: hidden;
}

.cpcrm-sidebar {
  background: var(--cpcrm-sidebar);
  color: #fff;
  display: flex;
  flex-direction: column;
  grid-row: 1 / 3;
  min-width: 0;
  padding: 22px 16px 18px;
}

.cpcrm-sidebar .cpcrm-brand {
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.09);
  display: flex;
  gap: 12px;
  margin: 0 4px 22px;
  padding: 0 4px 20px;
}

.cpcrm-sidebar .cpcrm-brand img {
  background: #fff;
  border: 0;
  border-radius: 10px;
  height: 38px;
  object-fit: contain;
  padding: 4px;
  width: 38px;
}

.cpcrm-sidebar .cpcrm-brand span {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.cpcrm-sidebar .cpcrm-brand strong {
  color: #fff;
  font-size: 15px;
  letter-spacing: -0.01em;
}

.cpcrm-sidebar .cpcrm-brand small {
  color: #9ca6b5;
  font-size: 11px;
}

.cpcrm-tabs {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 4px;
  margin: 0;
}

.cpcrm-tabs .cpcrm-tab-group {
  color: #788392;
  display: block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  margin: 17px 10px 7px;
  text-transform: uppercase;
}

.cpcrm-tabs .cpcrm-tab-group:first-child {
  margin-top: 0;
}

.cpcrm-tabs a,
.cpcrm-tabs a:hover,
.cpcrm-tabs a.is-active {
  align-items: center;
  background: transparent;
  border: 0;
  border-radius: 9px;
  color: #bdc5d0;
  display: flex;
  font-size: 13px;
  font-weight: 600;
  gap: 11px;
  padding: 10px 11px;
  transition: background 150ms ease, color 150ms ease, transform 150ms ease;
}

.cpcrm-tabs a:hover {
  background: var(--cpcrm-sidebar-soft);
  color: #fff;
  transform: translateX(2px);
}

.cpcrm-tabs a.is-active {
  background: #2a3038;
  box-shadow: inset 3px 0 0 var(--cpcrm-accent);
  color: #fff;
}

.cpcrm-tabs a .dashicons {
  color: #8c97a6;
  font-size: 18px;
  height: 18px;
  width: 18px;
}

.cpcrm-tabs a.is-active .dashicons {
  color: var(--cpcrm-accent);
}

.cpcrm-sidebar-foot {
  align-items: center;
  border-top: 1px solid rgba(255, 255, 255, 0.09);
  color: #818b99;
  display: flex;
  font-size: 11px;
  gap: 8px;
  margin-top: 18px;
  padding: 17px 10px 0;
}

.cpcrm-sidebar-foot .dashicons {
  font-size: 16px;
  height: 16px;
  width: 16px;
}

.cpcrm-topbar {
  align-items: center;
  background: var(--cpcrm-surface);
  border-bottom: 1px solid var(--cpcrm-border);
  display: flex;
  gap: 24px;
  grid-column: 2;
  justify-content: space-between;
  min-height: 82px;
  padding: 16px 28px;
}

.cpcrm-page-title h1 {
  color: var(--cpcrm-ink);
  font-size: 22px;
  font-weight: 720;
  letter-spacing: -0.025em;
  line-height: 1.2;
  margin: 0;
}

.cpcrm-page-title p {
  color: var(--cpcrm-muted);
  font-size: 12px;
  margin: 5px 0 0;
}

.cpcrm-hero-actions {
  display: flex;
  flex-wrap: nowrap;
  gap: 9px;
}

.cpcrm-hero-actions .button {
  align-items: center;
  display: inline-flex;
  gap: 6px;
  white-space: nowrap;
}

.cpcrm-hero-actions .dashicons {
  font-size: 16px;
  height: 16px;
  width: 16px;
}

.cpcrm-main {
  grid-column: 2;
  min-width: 0;
}

.cpcrm-content {
  padding: 24px 28px 34px;
}

.cpcrm-wrap .button {
  background: #fff;
  border: 1px solid #cfd5dc;
  border-radius: 8px;
  box-shadow: 0 1px 2px rgba(30, 38, 50, 0.05);
  color: #303946;
  font-size: 12px;
  font-weight: 650;
  line-height: 2.35;
  min-height: 34px;
  padding: 0 13px;
  transition: border-color 150ms ease, box-shadow 150ms ease, transform 100ms ease;
}

.cpcrm-wrap .button:hover {
  border-color: #9ba5b2;
  box-shadow: 0 3px 10px rgba(30, 38, 50, 0.09);
  color: #111820;
}

.cpcrm-wrap .button:active {
  transform: translateY(1px);
}

.cpcrm-wrap .button-primary,
.cpcrm-wrap .button-primary:hover,
.cpcrm-wrap .button-primary:focus {
  background: #1b222b;
  border-color: #1b222b;
  color: #fff;
}

.cpcrm-wrap .button-primary:hover {
  background: #303946;
  border-color: #303946;
}

.cpcrm-stat-grid {
  gap: 14px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-bottom: 20px;
}

.cpcrm-stat,
.cpcrm-card {
  background: var(--cpcrm-surface);
  border: 1px solid var(--cpcrm-border);
  border-radius: 12px;
  box-shadow: 0 3px 14px rgba(30, 38, 50, 0.045);
}

.cpcrm-stat {
  min-height: 112px;
  padding: 18px;
  position: relative;
}

.cpcrm-stat::before {
  background: var(--cpcrm-accent);
  border-radius: 2px;
  content: "";
  height: 3px;
  left: 18px;
  position: absolute;
  top: 0;
  width: 30px;
}

.cpcrm-stat span,
.cpcrm-stat small {
  color: var(--cpcrm-muted);
  font-size: 11px;
  font-weight: 600;
}

.cpcrm-stat strong {
  color: var(--cpcrm-ink);
  font-size: 27px;
  letter-spacing: -0.035em;
  margin: 12px 0 7px;
}

.cpcrm-card {
  padding: 20px;
}

.cpcrm-card-head {
  align-items: center;
  border-bottom: 1px solid #edf0f3;
  margin: -2px 0 16px;
  padding: 0 0 15px;
}

.cpcrm-card-head h2 {
  color: var(--cpcrm-ink);
  font-size: 15px;
  font-weight: 720;
  letter-spacing: -0.015em;
}

.cpcrm-card-head p {
  color: var(--cpcrm-muted);
}

.cpcrm-kicker {
  color: var(--cpcrm-accent-dark);
  font-size: 10px;
  font-weight: 750;
  letter-spacing: 0.09em;
}

.cpcrm-table {
  border: 0;
  border-collapse: separate;
  border-spacing: 0;
  overflow: hidden;
}

.cpcrm-table th {
  background: #f7f8fa;
  border-bottom: 1px solid var(--cpcrm-border);
  color: #596474;
  font-size: 10px;
  letter-spacing: 0.055em;
  padding: 11px 12px;
  text-transform: uppercase;
}

.cpcrm-table td {
  border-bottom: 1px solid #edf0f3;
  color: #303946;
  padding: 13px 12px;
  vertical-align: middle;
}

.cpcrm-table tbody tr {
  transition: background 130ms ease;
}

.cpcrm-table tbody tr:hover {
  background: #fafbfc;
}

.cpcrm-table tbody tr:last-child td {
  border-bottom: 0;
}

.cpcrm-pill {
  background: #f1f3f5;
  border: 1px solid #e1e5e9;
  border-radius: 999px;
  color: #4d5867;
  font-size: 10px;
  font-weight: 700;
  padding: 4px 8px;
}

.cpcrm-form {
  gap: 15px;
}

.cpcrm-form label > span,
.cpcrm-line-row label > span {
  color: #525e6e;
  font-size: 11px;
  font-weight: 680;
  margin-bottom: 6px;
}

.cpcrm-form input,
.cpcrm-form select,
.cpcrm-form textarea,
.cpcrm-line-row input,
.cpcrm-line-row select,
.cpcrm-line-row textarea,
.cpcrm-card-head input[type="search"] {
  background: #fff;
  border: 1px solid #cfd5dc;
  border-radius: 8px;
  box-shadow: inset 0 1px 2px rgba(30, 38, 50, 0.03);
  color: var(--cpcrm-ink);
  min-height: 39px;
  padding: 8px 10px;
}

.cpcrm-form input:focus,
.cpcrm-form select:focus,
.cpcrm-form textarea:focus,
.cpcrm-line-row input:focus,
.cpcrm-line-row select:focus,
.cpcrm-line-row textarea:focus,
.cpcrm-card-head input[type="search"]:focus {
  border-color: var(--cpcrm-accent-dark);
  box-shadow: 0 0 0 3px rgba(199, 164, 81, 0.16);
  outline: 0;
}

.cpcrm-form-section {
  background: #fafbfc;
  border: 1px solid #e3e7eb;
  border-radius: 10px;
  padding: 16px;
}

.cpcrm-line-row {
  background: #fff;
  border: 1px solid #dde2e7;
  border-radius: 10px;
  box-shadow: 0 2px 7px rgba(30, 38, 50, 0.04);
}

.cpcrm-save-bar {
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid var(--cpcrm-border);
  border-radius: 10px;
  bottom: 14px;
  box-shadow: 0 8px 24px rgba(30, 38, 50, 0.12);
  padding: 11px;
}

.cpcrm-empty {
  background: #fafbfc;
  border: 1px dashed #cbd2da;
  border-radius: 10px;
  color: var(--cpcrm-muted);
  padding: 34px 20px;
  text-align: center;
}

.cpcrm-wrap .notice {
  background: #fff;
  border: 1px solid #d8dfd5;
  border-left: 4px solid #648a5d;
  border-radius: 8px;
  box-shadow: none;
  margin: 0 0 18px;
  padding: 2px 12px;
}

@media (max-width: 1080px) {
  .cpcrm-app-shell {
    grid-template-columns: 204px minmax(0, 1fr);
  }

  .cpcrm-content,
  .cpcrm-topbar {
    padding-left: 20px;
    padding-right: 20px;
  }

  .cpcrm-stat-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 782px) {
  .cpcrm-wrap {
    margin: 10px 10px 0 0;
  }

  .cpcrm-app-shell {
    display: block;
    min-height: 0;
  }

  .cpcrm-sidebar {
    padding: 14px;
  }

  .cpcrm-sidebar .cpcrm-brand {
    border-bottom: 0;
    margin-bottom: 10px;
    padding-bottom: 6px;
  }

  .cpcrm-tabs {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
  }

  .cpcrm-tabs .cpcrm-tab-group,
  .cpcrm-sidebar-foot {
    display: none;
  }

  .cpcrm-tabs a,
  .cpcrm-tabs a:hover,
  .cpcrm-tabs a.is-active {
    justify-content: center;
    padding: 9px 7px;
    transform: none;
  }

  .cpcrm-topbar {
    align-items: flex-start;
    display: grid;
    padding: 17px;
  }

  .cpcrm-content {
    padding: 17px;
  }

  .cpcrm-hero-actions {
    width: 100%;
  }

  .cpcrm-hero-actions .button {
    flex: 1;
    justify-content: center;
  }
}

@media (max-width: 520px) {
  .cpcrm-wrap {
    margin-right: 0;
  }

  .cpcrm-tabs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .cpcrm-stat-grid {
    grid-template-columns: 1fr;
  }

  .cpcrm-page-title p {
    max-width: 34ch;
  }
}

@media (prefers-reduced-motion: reduce) {
  .cpcrm-wrap *,
  .cpcrm-wrap *::before,
  .cpcrm-wrap *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}

/* Full-viewport flat shell inspired by compact CRM navigation. */
.cpcrm-wrap {
  height: 100dvh;
  inset: 0;
  margin: 0;
  max-width: none;
  overflow: hidden;
  position: fixed;
  width: 100dvw;
  z-index: 99999;
}

body.wp-admin .cpcrm-wrap {
  height: calc(100vh - 32px);
  inset: auto;
  margin: 0 0 0 -20px;
  position: relative;
  width: calc(100% + 20px);
  z-index: auto;
}

.cpcrm-app-shell {
  border: 0;
  border-radius: 0;
  box-shadow: none;
  grid-template-columns: 220px minmax(0, 1fr);
  height: 100%;
  min-height: 0;
}

.cpcrm-sidebar {
  background: #fff;
  border-right: 1px solid #e8eaed;
  color: #1f252d;
  padding: 24px 14px 18px;
}

.cpcrm-sidebar .cpcrm-brand {
  border-bottom: 0;
  margin: 0 2px 26px;
  padding: 0 5px;
}

.cpcrm-sidebar .cpcrm-brand img {
  background: #f3f4f6;
  border: 1px solid #e4e7eb;
  border-radius: 8px;
  height: 32px;
  padding: 3px;
  width: 32px;
}

.cpcrm-sidebar .cpcrm-brand strong {
  color: #181d23;
  font-size: 14px;
}

.cpcrm-sidebar .cpcrm-brand small {
  color: #9299a2;
  font-size: 10px;
}

.cpcrm-tabs {
  gap: 2px;
}

.cpcrm-tabs .cpcrm-tab-group {
  color: #a0a6ae;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0;
  margin: 22px 9px 7px;
  text-transform: none;
}

.cpcrm-tabs a,
.cpcrm-tabs a:hover,
.cpcrm-tabs a.is-active {
  border-radius: 7px;
  color: #434a53;
  font-size: 12px;
  font-weight: 500;
  gap: 9px;
  padding: 8px 9px;
}

.cpcrm-tabs a:hover {
  background: #f6f7f8;
  color: #171b21;
  transform: none;
}

.cpcrm-tabs a.is-active {
  background: #f1f2f4;
  box-shadow: none;
  color: #11161c;
  font-weight: 650;
}

.cpcrm-tabs a .dashicons,
.cpcrm-tabs a.is-active .dashicons {
  color: currentColor;
  font-size: 16px;
  height: 16px;
  width: 16px;
}

.cpcrm-sidebar-foot {
  border-top-color: #eceef0;
  color: #9299a2;
  padding-left: 8px;
}

.cpcrm-topbar {
  min-height: 76px;
  padding: 14px 26px;
}

.cpcrm-main {
  background: #f7f8fa;
  overflow-x: hidden;
  overflow-y: auto;
}

.cpcrm-content {
  margin: 0 auto;
  max-width: 1320px;
  padding: 24px 26px 40px;
}

@media (max-width: 1080px) {
  .cpcrm-app-shell {
    grid-template-columns: 190px minmax(0, 1fr);
  }
}

@media (max-width: 782px) {
  .cpcrm-wrap,
  body.wp-admin .cpcrm-wrap {
    height: 100dvh;
    min-height: 0;
    overflow: hidden;
  }

  .cpcrm-app-shell {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto auto minmax(0, 1fr);
    height: 100%;
    min-height: 0;
  }

  .cpcrm-sidebar {
    border-bottom: 1px solid #e8eaed;
    border-right: 0;
    grid-row: auto;
  }

  .cpcrm-topbar,
  .cpcrm-main {
    grid-column: 1;
  }

  .cpcrm-main {
    overflow-x: hidden;
    overflow-y: auto;
  }
}

/* Spacious unboxed navigation. */
.cpcrm-sidebar,
.cpcrm-tabs {
  border-radius: 0 !important;
  box-shadow: none !important;
}

.cpcrm-tabs {
  background: transparent !important;
  border: 0 !important;
  box-sizing: border-box;
  flex-wrap: nowrap;
  padding: 0 !important;
  width: 100%;
}

.cpcrm-tabs .cpcrm-tab-group {
  margin-top: 28px;
}

.cpcrm-tabs a,
.cpcrm-tabs a:hover,
.cpcrm-tabs a.is-active {
  box-sizing: border-box;
  min-height: 40px;
  padding: 10px 11px;
  width: 100%;
}

/* Stronger field boundaries requested for the CRM. */
.cpcrm-wrap input:not([type="hidden"]),
.cpcrm-wrap select,
.cpcrm-wrap textarea,
.cpcrm-login-screen input:not([type="hidden"]) {
  box-sizing: border-box !important;
  border-style: solid !important;
  border-width: 3px !important;
  max-width: 100%;
}

.cpcrm-form {
  column-gap: 20px !important;
  row-gap: 18px !important;
}

.cpcrm-form > label,
.cpcrm-form-section > label,
.cpcrm-line-row > label {
  box-sizing: border-box;
  min-width: 0;
}

.cpcrm-form label input:not([type="hidden"]),
.cpcrm-form label select,
.cpcrm-form label textarea,
.cpcrm-line-row label input:not([type="hidden"]),
.cpcrm-line-row label select,
.cpcrm-line-row label textarea {
  display: block;
  min-width: 0;
  width: 100% !important;
}

.cpcrm-line-row {
  column-gap: 12px !important;
  row-gap: 12px !important;
}

/* Keep document editor sections inside the available workspace width. */
.cpcrm-editor-card,
.cpcrm-doc-builder,
.cpcrm-doc-form,
.cpcrm-form-section,
.cpcrm-form-grid,
.cpcrm-line-items,
.cpcrm-line-row {
  box-sizing: border-box;
  max-width: 100%;
  min-width: 0;
  width: 100%;
}

.cpcrm-editor-card {
  overflow: hidden;
}

.cpcrm-form-grid > *,
.cpcrm-client-picker,
.cpcrm-upload-row {
  box-sizing: border-box;
  max-width: 100%;
  min-width: 0;
}

/* Two-row line-item layout avoids horizontal overflow on normal laptops. */
.cpcrm-line-row {
  align-items: end;
  grid-template-columns: 64px repeat(11, minmax(0, 1fr)) !important;
  padding: 16px !important;
}

.cpcrm-line-row > .cpcrm-drag-handle {
  grid-column: 1;
  grid-row: 1 / 3;
}

.cpcrm-line-row > label:nth-of-type(1) {
  grid-column: 2 / span 3;
}

.cpcrm-line-row > label:nth-of-type(2) {
  grid-column: 5 / span 4;
}

.cpcrm-line-row > label:nth-of-type(3) {
  grid-column: 9 / span 2;
}

.cpcrm-line-row > label:nth-of-type(4) {
  grid-column: 11 / span 2;
}

.cpcrm-line-row > label:nth-of-type(5) {
  grid-column: 2 / span 3;
}

.cpcrm-line-row > label:nth-of-type(6) {
  grid-column: 5 / span 3;
}

.cpcrm-line-row > label:nth-of-type(7) {
  grid-column: 8 / span 3;
}

.cpcrm-line-row > .cpcrm-remove-line {
  grid-column: 11 / span 2;
  width: 100%;
}

.cpcrm-line-desc textarea {
  min-height: 82px !important;
  resize: vertical;
}

.cpcrm-terms-section textarea {
  min-height: 240px !important;
  resize: vertical !important;
}

.cpcrm-terms-section .cpcrm-form-grid {
  align-items: start;
}

@media (max-width: 1200px) {
  .cpcrm-line-row {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  .cpcrm-line-row > .cpcrm-drag-handle,
  .cpcrm-line-row > label:nth-of-type(n),
  .cpcrm-line-row > .cpcrm-remove-line {
    grid-column: auto;
    grid-row: auto;
  }

  .cpcrm-line-row > .cpcrm-drag-handle,
  .cpcrm-line-row > label:nth-of-type(2) {
    grid-column: 1 / -1;
  }
}

@media (max-width: 700px) {
  .cpcrm-form-grid,
  .cpcrm-line-row {
    grid-template-columns: 1fr !important;
  }

  .cpcrm-line-row > .cpcrm-drag-handle,
  .cpcrm-line-row > label:nth-of-type(n),
  .cpcrm-line-row > .cpcrm-remove-line {
    grid-column: 1 !important;
  }

  .cpcrm-terms-section textarea {
    min-height: 200px !important;
  }
}

/* Google Material Symbols are the single icon family used in the CRM UI. */
.cpcrm-wrap .material-symbols-rounded,
.cpcrm-login-screen .material-symbols-rounded {
  direction: ltr;
  display: inline-block;
  font-family: "Material Symbols Rounded";
  font-feature-settings: "liga";
  font-size: 19px;
  font-style: normal;
  font-variation-settings: "FILL" 0, "wght" 400, "GRAD" 0, "opsz" 24;
  font-weight: normal;
  letter-spacing: normal;
  line-height: 1;
  text-transform: none;
  white-space: nowrap;
  word-wrap: normal;
}

.cpcrm-tabs a .material-symbols-rounded {
  color: currentColor;
  flex: 0 0 18px;
  font-size: 18px;
  height: 18px;
  overflow: hidden;
  width: 18px;
}

.cpcrm-tabs a.is-active .material-symbols-rounded {
  font-variation-settings: "FILL" 1, "wght" 500, "GRAD" 0, "opsz" 24;
}

.cpcrm-sidebar-foot .material-symbols-rounded,
.cpcrm-hero-actions .material-symbols-rounded {
  font-size: 17px;
}

.cpcrm-add-line {
  align-items: center;
  display: inline-flex !important;
  gap: 5px;
}

.cpcrm-line-row {
  background: #fff !important;
  border-color: #e1e5e9 !important;
  box-shadow: 0 4px 14px rgba(30, 38, 50, 0.05) !important;
  grid-template-columns: 52px repeat(11, minmax(0, 1fr)) !important;
}

.cpcrm-line-row > .cpcrm-drag-handle {
  align-self: start;
  align-items: center;
  background: #f4f5f7;
  border: 1px solid #dfe3e8;
  border-radius: 9px;
  color: #667180;
  display: inline-flex;
  height: 44px;
  justify-content: center;
  justify-self: center;
  min-height: 44px;
  padding: 0;
  width: 44px;
}

.cpcrm-line-row > .cpcrm-drag-handle:hover {
  background: #e9ecf0;
  color: #1d2630;
}

.cpcrm-line-row > .cpcrm-drag-handle:active {
  cursor: grabbing;
}

.cpcrm-line-row > .cpcrm-remove-line {
  align-items: center;
  align-self: end;
  background: #fff7f6;
  border-color: #efcbc7;
  color: #b42318;
  display: inline-flex;
  height: 44px;
  justify-content: center;
  justify-self: end;
  min-height: 44px;
  padding: 0;
  width: 44px;
}

.cpcrm-line-row > .cpcrm-remove-line:hover {
  background: #feeceb;
  border-color: #e5a7a0;
  color: #8f1b13;
}

@media (max-width: 1200px) {
  .cpcrm-line-row {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  .cpcrm-line-row > .cpcrm-drag-handle {
    grid-column: 1 !important;
    justify-self: start;
  }

  .cpcrm-line-row > .cpcrm-remove-line {
    justify-self: end;
  }
}

@media (max-width: 700px) {
  .cpcrm-line-row > .cpcrm-drag-handle,
  .cpcrm-line-row > .cpcrm-remove-line {
    justify-self: start;
    width: 44px !important;
  }
}

/* Native WordPress authentication portal. */
.cpcrm-portal-body {
  background: #f5f6f8;
  margin: 0;
  min-height: 100dvh;
}

.cpcrm-login-screen {
  align-items: center;
  background: #f5f6f8;
  box-sizing: border-box;
  display: flex;
  justify-content: center;
  min-height: 100dvh;
  padding: 28px 18px;
}

.cpcrm-login-card {
  background: #fff;
  border: 1px solid #e1e5e9;
  border-radius: 14px;
  box-shadow: 0 18px 55px rgba(30, 38, 50, 0.10);
  box-sizing: border-box;
  max-width: 420px;
  padding: 34px;
  width: 100%;
}

.cpcrm-login-brand {
  align-items: center;
  color: #1b222b;
  display: flex;
  font-size: 14px;
  font-weight: 700;
  gap: 10px;
  margin-bottom: 32px;
}

.cpcrm-login-brand img {
  border: 1px solid #e1e5e9;
  border-radius: 8px;
  height: 34px;
  object-fit: contain;
  padding: 3px;
  width: 34px;
}

.cpcrm-login-card h1 {
  color: #171c23;
  font-size: 27px;
  letter-spacing: -0.035em;
  line-height: 1.2;
  margin: 0 0 8px;
}

.cpcrm-login-card > p {
  color: #6c7582;
  font-size: 13px;
  line-height: 1.55;
  margin: 0 0 25px;
}

.cpcrm-login-card form p {
  margin: 0 0 17px;
}

.cpcrm-login-card label {
  color: #424b57;
  display: block;
  font-size: 12px;
  font-weight: 650;
  margin-bottom: 7px;
}

.cpcrm-login-card .input {
  background: #fff;
  border-color: #cfd5dc;
  border-radius: 8px;
  box-sizing: border-box;
  color: #171c23;
  font-size: 15px;
  min-height: 48px;
  padding: 9px 11px;
  width: 100%;
}

.cpcrm-login-card .input:focus {
  border-color: #8a6d26;
  box-shadow: 0 0 0 3px rgba(199, 164, 81, 0.18);
  outline: 0;
}

.cpcrm-login-card .login-remember label {
  align-items: center;
  display: flex;
  font-weight: 500;
  gap: 8px;
}

.cpcrm-login-card .login-remember input {
  accent-color: #1b222b;
  height: 18px;
  margin: 0;
  width: 18px;
}

.cpcrm-login-card .login-submit {
  margin-top: 22px;
}

.cpcrm-login-card .button-primary {
  background: #1b222b;
  border: 3px solid #1b222b;
  border-radius: 8px;
  color: #fff;
  cursor: pointer;
  font-size: 13px;
  font-weight: 700;
  min-height: 46px;
  width: 100%;
}

.cpcrm-login-card .button-primary:hover {
  background: #303946;
  border-color: #303946;
}

.cpcrm-login-link {
  color: #4f5b69;
  display: inline-block;
  font-size: 12px;
  margin-top: 5px;
}

.cpcrm-login-link:hover {
  color: #171c23;
}

@media (max-width: 520px) {
  .cpcrm-login-screen {
    align-items: stretch;
    padding: 0;
  }

  .cpcrm-login-card {
    border: 0;
    border-radius: 0;
    box-shadow: none;
    max-width: none;
    padding: 40px 22px;
  }
}
