:root {
  --ink: #142522;
  --mint: #caff62;
  --cream: #f4f1e9;
  --orange: #ff6846;
  --line: #d9ddd5;
  --muted: #6e7a76;
  --white: #fff;
}

/* Brand Guide publishing */
.article-admin-table .client-identity > span,
.article-admin-preview {
  --article-theme: #ff6846;
}

.article-theme-orange {
  --article-theme: #ff6846 !important;
}

.article-theme-lime {
  --article-theme: #caff62 !important;
}

.article-theme-blue {
  --article-theme: #a8c7ff !important;
}

.article-theme-rose {
  --article-theme: #dca9ba !important;
}

.article-admin-table .client-identity > span {
  color: #13211d;
  background: var(--article-theme);
}

.article-category {
  display: inline-flex;
  padding: 7px 10px;
  border-radius: 999px;
  color: #34443e;
  background: #eef0eb;
  font-size: 14px;
  font-weight: 700;
}

.article-slug {
  display: block;
  max-width: 260px;
  margin-top: 6px;
  overflow: hidden;
  color: #7b8681;
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.article-identity-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.article-wide-field {
  grid-column: 1 / -1;
}

.article-copy-grid,
.article-seo-grid {
  display: grid;
  gap: 22px;
}

.article-copy-grid label,
.article-seo-grid label,
.article-publishing-grid > label {
  display: grid;
  gap: 9px;
  color: #34443e;
  font-size: 15px;
  font-weight: 700;
}

.article-copy-grid input,
.article-copy-grid textarea,
.article-seo-grid input,
.article-seo-grid textarea,
.article-publishing-grid input[type="datetime-local"] {
  width: 100%;
  padding: 13px 14px;
  border: 1px solid #d8dcd7;
  border-radius: 4px;
  outline: none;
  color: #14231e;
  background: #fff;
  font:
    400 14px/1.55 "DM Sans",
    sans-serif;
}

.article-copy-grid input:focus,
.article-copy-grid textarea:focus,
.article-seo-grid input:focus,
.article-seo-grid textarea:focus,
.article-publishing-grid input[type="datetime-local"]:focus {
  border-color: #ff6846;
  box-shadow: 0 0 0 3px rgba(255, 104, 70, 0.1);
}

.article-copy-grid small,
.article-seo-grid small,
.article-publishing-grid small {
  color: #77827d;
  font-size: 13px;
  font-weight: 400;
}

.article-content-editor {
  min-height: 520px;
  resize: vertical;
  font-family: Consolas, "Courier New", monospace !important;
  font-size: 14px !important;
}

.article-publishing-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr 1fr;
  align-items: stretch;
  gap: 18px;
}

.article-check {
  display: flex !important;
  min-height: 90px;
  padding: 18px;
  border: 1px solid #d8dcd7;
  border-radius: 5px;
  align-items: flex-start;
  gap: 12px !important;
  background: #fafbf8;
  cursor: pointer;
}

.article-check input {
  width: 18px;
  height: 18px;
  margin: 1px 0 0;
  accent-color: #ff6846;
}

.article-check > span {
  display: grid;
  gap: 6px;
}

.article-admin-preview {
  display: grid;
  min-height: 360px;
  margin-bottom: 24px;
  overflow: hidden;
  border-radius: 8px;
  grid-template-columns: 1.35fr 0.65fr;
  background: var(--article-theme);
}

.article-admin-preview > div {
  display: flex;
  padding: clamp(30px, 5vw, 60px);
  flex-direction: column;
  align-items: flex-start;
}

.article-admin-preview > div > span {
  font:
    700 11px "Manrope",
    sans-serif;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.article-admin-preview .quote-status {
  margin-top: 18px;
}

.article-admin-preview h2 {
  max-width: 700px;
  margin: 22px 0 14px;
  font:
    700 clamp(34px, 4.3vw, 56px) / 1.05 "Manrope",
    sans-serif;
  letter-spacing: -0.05em;
}

.article-admin-preview p {
  max-width: 660px;
  margin: 0;
  line-height: 1.6;
}

.article-admin-preview small {
  margin-top: auto;
  padding-top: 32px;
  font-weight: 700;
}

.article-admin-preview > i {
  display: grid;
  place-items: center;
  color: var(--article-theme);
  background: #12211d;
  font:
    700 clamp(110px, 15vw, 200px) "Manrope",
    sans-serif;
  font-style: normal;
}

.article-admin-details {
  margin-bottom: 24px;
}

.article-admin-details a {
  overflow-wrap: anywhere;
  color: #df4c2f;
  font-weight: 700;
}

.article-admin-body {
  max-width: 880px;
  margin-bottom: 24px;
  padding: clamp(28px, 5vw, 58px);
  font-size: 16px;
  line-height: 1.75;
}

.article-admin-body h2 {
  margin: 42px 0 14px;
  font:
    700 31px/1.15 "Manrope",
    sans-serif;
  letter-spacing: -0.035em;
}

.article-admin-body h3 {
  margin: 30px 0 12px;
  font:
    700 21px/1.2 "Manrope",
    sans-serif;
}

.article-admin-body p,
.article-admin-body li {
  color: #45534e;
}

.article-admin-body blockquote {
  margin: 30px 0;
  padding: 20px 24px;
  border-left: 4px solid #ff6846;
  background: #f6f5f0;
  font-weight: 700;
}

.article-danger-zone {
  display: flex;
  max-width: 880px;
  padding: 25px 28px;
  border: 1px solid #efc7c1;
  border-radius: 6px;
  justify-content: space-between;
  align-items: center;
  gap: 25px;
  background: #fff8f6;
}

.article-danger-zone h2 {
  margin: 0 0 5px;
  font:
    700 18px "Manrope",
    sans-serif;
}

.article-danger-zone p {
  margin: 0;
  color: #7a625d;
  font-size: 15px;
}

.article-danger-zone button {
  padding: 11px 16px;
  border: 1px solid #c23d28;
  border-radius: 4px;
  color: #c23d28;
  background: transparent;
  font:
    700 13px "DM Sans",
    sans-serif;
  cursor: pointer;
}

@media (max-width: 900px) {
  .article-publishing-grid {
    grid-template-columns: 1fr;
  }

  .article-admin-preview {
    grid-template-columns: 1fr;
  }

  .article-admin-preview > i {
    min-height: 220px;
  }
}

@media (max-width: 650px) {
  .article-identity-grid {
    grid-template-columns: 1fr;
  }

  .article-wide-field {
    grid-column: auto;
  }

  .article-danger-zone {
    align-items: stretch;
    flex-direction: column;
  }
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  color: var(--ink);
  background: #f4f6f3;
  font-family: "DM Sans", sans-serif;
}
a {
  color: inherit;
  text-decoration: none;
}
button,
input,
select,
textarea {
  font: inherit;
}
.admin-logo {
  font: 800 21px Manrope;
}
.admin-logo span {
  color: var(--orange);
}
.alert {
  padding: 14px 17px;
  margin: 0 0 20px;
  border-radius: 6px;
  font-size: 15px;
}
.alert.error {
  background: #fff0ec;
  color: #a93e28;
  border: 1px solid #f2c6bc;
}
.alert.success {
  background: #eef9e1;
  color: #416524;
  border: 1px solid #cce4ae;
}
.auth-page {
  background: var(--cream);
}
.auth-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.auth-brand {
  background: var(--ink);
  color: #fff;
  padding: 55px 7vw;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
}
.auth-brand:after {
  content: "";
  position: absolute;
  width: 420px;
  height: 420px;
  border: 75px solid var(--mint);
  border-radius: 50%;
  right: -240px;
  bottom: -180px;
  opacity: 0.9;
}
.auth-brand .admin-logo {
  font-size: 24px;
}
.auth-brand .admin-logo span {
  color: var(--mint);
}
.auth-brand > div {
  position: relative;
  z-index: 1;
  max-width: 540px;
}
.auth-kicker,
.auth-step,
.admin-heading > div > span {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-weight: 700;
  color: var(--orange);
}
.auth-brand h1 {
  font: 700 clamp(48px, 5vw, 78px) / 1.02 Manrope;
  letter-spacing: -4px;
  margin: 20px 0;
}
.auth-brand p {
  color: #b4c0bc;
  line-height: 1.7;
  font-size: 16px;
}
.auth-brand > small {
  color: #778983;
  font-size: 12px;
  letter-spacing: 1px;
}
.auth-form-wrap {
  display: grid;
  place-items: center;
  padding: 45px;
}
.auth-form {
  width: min(430px, 100%);
  background: #fff;
  padding: 42px;
  box-shadow: 0 24px 70px #18302716;
  display: grid;
  gap: 17px;
}
.auth-form h2 {
  font: 700 29px Manrope;
  margin: 2px 0 -8px;
}
.auth-form > p {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.6;
  margin: 0 0 8px;
}
.auth-form label,
.settings-fields label {
  display: grid;
  gap: 7px;
  font-size: 13px;
  font-weight: 700;
}
.auth-form input,
.settings-fields input,
.settings-fields select {
  width: 100%;
  border: 1px solid var(--line);
  background: #fbfcfa;
  padding: 13px;
  color: var(--ink);
  outline: none;
}
.auth-form input:focus,
.settings-fields input:focus,
.settings-fields select:focus {
  border-color: var(--orange);
  box-shadow: 0 0 0 3px #ff684616;
}
.auth-form button,
.settings-actions button {
  border: 0;
  background: var(--ink);
  color: #fff;
  padding: 16px 18px;
  font-weight: 700;
  display: flex;
  justify-content: space-between;
  cursor: pointer;
}
.auth-form button span,
.settings-actions button span {
  color: var(--mint);
}
.password-note {
  font-size: 12px;
  color: var(--muted);
  margin-top: -8px;
}
.back-link {
  text-align: center;
  font-size: 13px;
  color: var(--muted);
  margin-top: 5px;
}
.admin-page {
  min-height: 100vh;
}
.admin-sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  width: 245px;
  background: var(--ink);
  color: #fff;
  padding: 32px 25px;
  display: flex;
  flex-direction: column;
  z-index: 20;
}
.admin-sidebar .admin-logo span {
  color: var(--mint);
}
.admin-sidebar nav {
  display: grid;
  gap: 7px;
  margin-top: 58px;
}
.admin-sidebar nav a {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 13px 14px;
  color: #a9b7b2;
  border-radius: 5px;
  font-size: 15px;
}
.admin-sidebar nav a i {
  font-style: normal;
  font-size: 17px;
}
.admin-sidebar nav a:hover,
.admin-sidebar nav a.active {
  background: #ffffff10;
  color: #fff;
}
.admin-sidebar nav a.active {
  border-left: 3px solid var(--mint);
}
.admin-user {
  margin-top: auto;
  border-top: 1px solid #ffffff1c;
  padding-top: 22px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.admin-user > span {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--mint);
  color: var(--ink);
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: 800;
}
.admin-user > div {
  display: grid;
  min-width: 0;
}
.admin-user b {
  font-size: 13px;
}
.admin-user small {
  font-size: 11px;
  color: #83938d;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 145px;
}
.logout {
  width: 100%;
  border: 0;
  background: transparent;
  color: #8fa09a;
  text-align: left;
  padding: 15px 0 0;
  cursor: pointer;
  font-size: 12px;
}
.admin-main {
  margin-left: 245px;
  padding: 45px max(35px, 4vw) 70px;
  max-width: 1600px;
}
.admin-heading {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 35px;
}
.admin-heading h1 {
  font: 700 clamp(34px, 4vw, 52px) Manrope;
  letter-spacing: -2px;
  margin: 8px 0;
}
.admin-heading p {
  color: var(--muted);
  margin: 0;
  font-size: 15px;
}
.heading-date {
  font-size: 13px;
  color: var(--muted);
  border: 1px solid var(--line);
  padding: 10px 13px;
  background: #fff;
}
.metric-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 24px;
}
.metric-grid article {
  background: #fff;
  border: 1px solid #e3e7e0;
  padding: 22px;
  display: grid;
}
.metric-grid span {
  text-transform: uppercase;
  font-size: 11px;
  letter-spacing: 1.2px;
  color: var(--muted);
  font-weight: 700;
}
.metric-grid b {
  font: 700 34px Manrope;
  margin: 8px 0 3px;
}
.metric-grid i {
  font-style: normal;
  font-size: 12px;
  color: #96a09c;
}
.metric-grid article:nth-child(2) b {
  color: var(--orange);
}
.metric-grid article:nth-child(3) b {
  color: #668c37;
}
.admin-panel,
.settings-card {
  background: #fff;
  border: 1px solid #e0e5dd;
}
.panel-toolbar {
  padding: 22px 24px;
  border-bottom: 1px solid #e3e7e0;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
}
.panel-toolbar h2,
.settings-title h2 {
  font: 700 19px Manrope;
  margin: 0 0 4px;
}
.panel-toolbar > div > span,
.settings-title p {
  font-size: 12px;
  color: var(--muted);
}
.lead-filters {
  display: flex;
  gap: 8px;
}
.lead-filters input,
.lead-filters select {
  border: 1px solid var(--line);
  padding: 10px;
  background: #fff;
  font-size: 13px;
}
.lead-filters input {
  width: 230px;
}
.lead-filters button {
  border: 0;
  background: var(--ink);
  color: #fff;
  padding: 10px 15px;
  font-size: 13px;
  cursor: pointer;
}
.table-wrap {
  overflow: auto;
}
.lead-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 1000px;
}
.lead-table th {
  text-align: left;
  padding: 13px 18px;
  background: #f8faf7;
  color: #7d8985;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 10px;
}
.lead-table td {
  padding: 17px 18px;
  border-top: 1px solid #edf0eb;
  vertical-align: top;
  font-size: 13px;
}
.lead-table td > b,
.lead-table td > span {
  display: block;
}
.lead-table td > small {
  display: block;
  color: var(--muted);
  margin-top: 4px;
}
.lead-table td > a {
  display: block;
  color: #365e91;
  margin-bottom: 5px;
}
.lead-person {
  display: flex;
  align-items: center;
  gap: 10px;
}
.lead-person > span {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #e4edd6;
  display: grid;
  place-items: center;
  font-size: 11px;
  font-weight: 800;
}
.lead-person > div {
  display: grid;
}
.lead-person small {
  font-size: 10px;
  color: var(--muted);
}
.project-tags {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
}
.project-tags span {
  background: #edf1eb;
  padding: 5px 7px;
  font-size: 10px;
}
.lead-table details {
  margin-top: 8px;
  position: relative;
}
.lead-table summary {
  cursor: pointer;
  color: var(--orange);
  font-size: 11px;
}
.lead-table details p {
  width: 260px;
  line-height: 1.55;
  color: #52615d;
}
.status-form select {
  border: 0;
  border-radius: 20px;
  padding: 7px 24px 7px 10px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
}
.status-new {
  background: #fff0db;
  color: #9c6019;
}
.status-contacted {
  background: #e6f0fb;
  color: #3a6795;
}
.status-qualified {
  background: #e8f4dc;
  color: #507a2d;
}
.status-closed {
  background: #eceeed;
  color: #66706c;
}
.empty-state {
  text-align: center !important;
  padding: 60px !important;
}
.empty-state b,
.empty-state span {
  display: block;
}
.empty-state span {
  color: var(--muted);
  margin-top: 7px;
}
.settings-main {
  max-width: 1250px;
}
.settings-form {
  display: grid;
  gap: 20px;
}
.settings-card {
  padding: 28px;
}
.settings-title {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  border-bottom: 1px solid #e7ebe5;
  padding-bottom: 22px;
  margin-bottom: 25px;
}
.settings-title > span {
  width: 35px;
  height: 35px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--mint);
  display: grid;
  place-items: center;
  font-size: 11px;
  font-weight: 800;
  flex: 0 0 auto;
}
.settings-title > div {
  flex: 1;
}
.settings-title p {
  margin: 0;
  line-height: 1.6;
}
.settings-fields {
  display: grid;
  gap: 20px;
}
.settings-fields.two-col {
  grid-template-columns: 1fr 1fr;
}
.settings-fields.three-col {
  grid-template-columns: repeat(3, 1fr);
}
.settings-fields label small {
  font-size: 11px;
  font-weight: 400;
  color: var(--muted);
}
.settings-fields label small a {
  color: var(--orange);
  font-weight: 700;
}
.settings-note {
  margin: 22px 0 0;
  padding: 15px 18px;
  border: 1px solid #dfe6dc;
  border-radius: 12px;
  background: #f7faf5;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.65;
}
.settings-note strong {
  color: var(--ink);
}
.toggle {
  display: flex;
  align-items: center;
  gap: 9px;
  cursor: pointer;
  font-size: 12px;
}
.toggle input {
  position: absolute;
  opacity: 0;
}
.toggle i {
  width: 42px;
  height: 23px;
  background: #c9cfca;
  border-radius: 20px;
  position: relative;
  transition: 0.2s;
}
.toggle i:after {
  content: "";
  position: absolute;
  width: 17px;
  height: 17px;
  background: #fff;
  border-radius: 50%;
  top: 3px;
  left: 3px;
  transition: 0.2s;
}
.toggle input:checked + i {
  background: #64a142;
}
.toggle input:checked + i:after {
  left: 22px;
}
.settings-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}
.settings-actions button {
  min-width: 170px;
}
.settings-actions .secondary-action {
  background: #fff;
  color: var(--ink);
  border: 1px solid var(--ink);
  display: block;
}
.settings-actions button:hover {
  opacity: 0.9;
}
@media (max-width: 1000px) {
  .metric-grid {
    grid-template-columns: 1fr 1fr;
  }
  .settings-fields.three-col {
    grid-template-columns: 1fr 1fr;
  }
  .panel-toolbar {
    align-items: stretch;
    flex-direction: column;
  }
  .lead-filters {
    width: 100%;
  }
  .lead-filters input {
    flex: 1;
  }
}
@media (max-width: 760px) {
  .auth-shell {
    grid-template-columns: 1fr;
  }
  .auth-brand {
    min-height: 340px;
    padding: 35px;
  }
  .auth-brand h1 {
    font-size: 48px;
  }
  .auth-brand > small {
    display: none;
  }
  .auth-form-wrap {
    padding: 25px;
  }
  .admin-sidebar {
    position: static;
    width: auto;
    height: auto;
    padding: 20px;
    flex-direction: row;
    align-items: center;
    gap: 20px;
  }
  .admin-sidebar nav {
    display: flex;
    margin: 0 auto;
    gap: 3px;
  }
  .admin-sidebar nav a {
    padding: 9px;
  }
  .admin-sidebar nav a i {
    display: none;
  }
  .admin-user,
  .admin-sidebar > form {
    display: none;
  }
  .admin-main {
    margin: 0;
    padding: 30px 18px 55px;
  }
  .admin-heading {
    display: block;
  }
  .heading-date {
    display: none;
  }
  .settings-fields.two-col,
  .settings-fields.three-col {
    grid-template-columns: 1fr;
  }
  .settings-title {
    flex-wrap: wrap;
  }
  .toggle {
    width: 100%;
    margin-left: 53px;
  }
  .settings-actions {
    flex-direction: column;
  }
  .settings-actions button {
    width: 100%;
  }
}
@media (max-width: 520px) {
  .admin-sidebar .admin-logo {
    font-size: 17px;
  }
  .admin-sidebar nav a {
    font-size: 15px;
  }
  .admin-sidebar nav a:nth-child(3) {
    display: none;
  }
  .metric-grid {
    grid-template-columns: 1fr 1fr;
  }
  .metric-grid article {
    padding: 16px;
  }
  .lead-filters {
    display: grid;
  }
  .lead-filters input {
    width: 100%;
  }
  .settings-card {
    padding: 20px;
  }
  .auth-form {
    padding: 28px;
  }
}

/* Email template management */
.template-main {
  max-width: 1500px;
}
.template-overview {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 65px;
  align-items: end;
  padding: 34px;
  margin-bottom: 20px;
  color: #fff;
  background: var(--ink);
  position: relative;
  overflow: hidden;
}
.template-overview::after {
  content: "";
  position: absolute;
  width: 210px;
  height: 210px;
  border: 42px solid var(--mint);
  border-radius: 50%;
  right: -105px;
  top: -110px;
  opacity: 0.9;
}
.template-overview span,
.email-preview-panel > div > span {
  color: var(--mint);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.6px;
}
.template-overview h2 {
  margin: 10px 0 0;
  font: 700 31px/1.08 Manrope;
  letter-spacing: -1.4px;
}
.template-overview p {
  max-width: 520px;
  margin: 0;
  color: #b3c0bb;
  font-size: 15px;
  line-height: 1.7;
  position: relative;
  z-index: 1;
}
.template-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}
.template-card {
  min-width: 0;
  padding: 27px;
  background: #fff;
  border: 1px solid #e0e5dd;
  border-top: 5px solid var(--template-accent);
  display: flex;
  flex-direction: column;
}
.template-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.template-card-top > span {
  font: 700 13px Manrope;
  color: #9aa39f;
}
.template-card-top > b {
  padding: 6px 9px;
  border-radius: 20px;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.7px;
}
.template-card-top .is-enabled {
  color: #47712c;
  background: #e9f5dc;
}
.template-card-top .is-disabled {
  color: #7b8581;
  background: #ecefed;
}
.template-card > small {
  margin-top: 26px;
  color: var(--orange);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.2px;
}
.template-card h2 {
  margin: 8px 0;
  font: 700 23px Manrope;
}
.template-card > p {
  min-height: 42px;
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
}
.template-subject {
  display: grid;
  gap: 7px;
  padding: 16px;
  margin: 24px 0;
  background: #f6f7f4;
  border-left: 3px solid var(--template-accent);
}
.template-subject span {
  color: #8b9692;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.template-subject b {
  overflow: hidden;
  color: #33423e;
  font-size: 13px;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.template-card-actions {
  display: flex;
  gap: 9px;
  margin-top: auto;
}
.template-card-actions a,
.open-preview {
  padding: 11px 14px;
  background: var(--ink);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
}
.template-card-actions a:first-child {
  display: flex;
  justify-content: space-between;
  flex: 1;
}
.template-card-actions a:first-child span {
  color: var(--mint);
}
.template-card-actions .preview-link {
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--ink);
}
.template-edit-heading {
  align-items: end;
}
.back-to-templates {
  display: inline-block;
  margin-bottom: 11px;
  color: var(--orange);
  font-size: 13px;
  font-weight: 700;
}
.open-preview {
  margin-bottom: 4px;
}
.template-editor-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 430px;
  gap: 22px;
  align-items: start;
}
.template-editor-form {
  display: grid;
  gap: 20px;
}
.template-editor-form textarea {
  width: 100%;
  resize: vertical;
  border: 1px solid var(--line);
  padding: 14px;
  color: var(--ink);
  background: #fbfcfa;
  font:
    13px/1.65 "DM Sans",
    sans-serif;
  outline: none;
}
.template-editor-form textarea:focus {
  border-color: var(--orange);
  box-shadow: 0 0 0 3px #ff684616;
}
.variable-list {
  padding: 15px;
  margin: -5px 0 22px;
  background: #f4f6f2;
}
.variable-list > span {
  display: block;
  margin-bottom: 9px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.variable-list > div {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.variable-list button {
  border: 1px solid #cfd6cc;
  padding: 6px 8px;
  color: #426050;
  background: #fff;
  font:
    600 9px "DM Sans",
    sans-serif;
  cursor: pointer;
}
.variable-list button:hover {
  border-color: var(--orange);
  color: var(--orange);
}
.color-input {
  display: flex;
  gap: 8px;
}
.color-input input[type="color"] {
  width: 48px;
  min-width: 48px;
  height: 45px;
  padding: 4px;
  cursor: pointer;
}
.template-editor-actions {
  display: flex;
  justify-content: flex-end;
}
.template-editor-actions > button {
  min-width: 190px;
  border: 0;
  padding: 16px 18px;
  color: #fff;
  background: var(--ink);
  display: flex;
  justify-content: space-between;
  font-weight: 700;
  cursor: pointer;
}
.template-editor-actions > button span {
  color: var(--mint);
}
.email-preview-panel {
  position: sticky;
  top: 24px;
  padding: 15px;
  background: var(--ink);
  box-shadow: 0 22px 55px #14252222;
}
.email-preview-panel > div {
  display: flex;
  justify-content: space-between;
  padding: 3px 2px 14px;
}
.email-preview-panel > div > a {
  color: #fff;
  font-size: 12px;
}
.email-preview-panel iframe {
  display: block;
  width: 100%;
  height: 640px;
  border: 0;
  background: #edf0eb;
}
.email-preview-panel > form {
  padding-top: 12px;
}
.reset-template {
  width: 100%;
  border: 1px solid #ffffff35;
  padding: 11px;
  color: #b7c2be;
  background: transparent;
  font-size: 12px;
  cursor: pointer;
}
.reset-template:hover {
  color: #fff;
  border-color: #fff;
}
@media (max-width: 1000px) {
  .template-editor-layout {
    grid-template-columns: 1fr;
  }
  .email-preview-panel {
    position: static;
  }
  .email-preview-panel iframe {
    height: 720px;
  }
}
@media (max-width: 760px) {
  .template-grid,
  .template-overview {
    grid-template-columns: 1fr;
  }
  .admin-sidebar nav {
    max-width: calc(100vw - 190px);
    overflow-x: auto;
  }
  .template-overview {
    gap: 24px;
  }
  .template-edit-heading .open-preview {
    display: inline-block;
    margin-top: 18px;
  }
}
@media (max-width: 520px) {
  .admin-sidebar nav a:nth-child(3) {
    display: flex;
  }
  .admin-sidebar nav a:last-child {
    display: none;
  }
  .template-card,
  .template-overview {
    padding: 22px;
  }
  .template-card-actions {
    flex-direction: column;
  }
  .email-preview-panel iframe {
    height: 590px;
  }
}

/* Client management */
.clients-main,
.client-profile-main {
  max-width: 1500px;
}
.primary-admin-action {
  min-width: 165px;
  padding: 14px 17px;
  color: #fff;
  background: var(--ink);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  font-weight: 700;
}
.primary-admin-action span {
  color: var(--mint);
  font-size: 17px;
}
.client-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-bottom: 22px;
}
.client-metrics article {
  padding: 22px 24px;
  background: #fff;
  border: 1px solid #e0e5dd;
  border-top: 4px solid var(--ink);
  display: grid;
}
.client-metrics article:nth-child(2) {
  border-top-color: var(--orange);
}
.client-metrics article:nth-child(3) {
  border-top-color: #78a73f;
}
.client-metrics span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.client-metrics b {
  margin: 8px 0 1px;
  font: 700 32px Manrope;
}
.client-metrics small {
  color: #98a19e;
  font-size: 11px;
}
.client-search {
  display: flex;
  gap: 7px;
}
.client-search input {
  width: 270px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  background: #fff;
  font-size: 13px;
  outline: none;
}
.client-search input:focus {
  border-color: var(--orange);
}
.client-search button,
.client-search a {
  border: 0;
  padding: 10px 14px;
  color: #fff;
  background: var(--ink);
  font-size: 12px;
  cursor: pointer;
}
.client-search a {
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--ink);
}
.client-table {
  width: 100%;
  min-width: 900px;
  border-collapse: collapse;
}
.client-table th {
  padding: 13px 18px;
  color: #7d8985;
  background: #f8faf7;
  text-align: left;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.client-table td {
  padding: 18px;
  border-top: 1px solid #edf0eb;
  vertical-align: middle;
  font-size: 13px;
}
.client-table td > a {
  display: block;
  margin-bottom: 5px;
  color: #365e91;
}
.client-table td > span,
.client-table td > small {
  display: block;
}
.client-table td > small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 11px;
}
.client-identity {
  display: flex !important;
  align-items: center;
  gap: 11px;
  color: var(--ink) !important;
}
.client-identity > span {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  color: var(--ink);
  background: var(--mint);
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  font-size: 12px;
  font-weight: 800;
}
.client-identity > div {
  display: grid;
  gap: 3px;
}
.client-identity b {
  font-size: 14px;
}
.client-identity small {
  color: var(--muted);
  font-size: 10px;
}
.client-address {
  max-width: 280px;
  max-height: 42px;
  margin: 0;
  overflow: hidden;
  color: #53615d;
  line-height: 1.55;
}
.client-row-actions {
  display: flex;
  gap: 6px;
}
.client-row-actions a {
  padding: 7px 9px;
  color: var(--ink);
  background: #f0f3ee;
  font-size: 11px;
  font-weight: 700;
}
.client-row-actions a:last-child {
  color: #fff;
  background: var(--ink);
}
.client-form-main {
  max-width: 1100px;
}
.client-form-card {
  max-width: 900px;
  padding: 34px;
  background: #fff;
  border: 1px solid #e0e5dd;
  box-shadow: 0 22px 55px #1425220d;
}
.client-form-intro {
  padding-bottom: 25px;
  margin-bottom: 27px;
  border-bottom: 1px solid #e7ebe5;
}
.client-form-intro span {
  color: var(--orange);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
}
.client-form-intro h2 {
  margin: 7px 0 4px;
  font: 700 24px Manrope;
}
.client-form-intro p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}
.client-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.client-form-grid label {
  display: grid;
  gap: 7px;
  font-size: 13px;
  font-weight: 700;
}
.client-form-grid input,
.client-form-grid textarea {
  width: 100%;
  padding: 14px;
  color: var(--ink);
  background: #fbfcfa;
  border: 1px solid var(--line);
  outline: none;
}
.client-form-grid textarea {
  resize: vertical;
  font:
    13px/1.6 "DM Sans",
    sans-serif;
}
.client-form-grid input:focus,
.client-form-grid textarea:focus {
  border-color: var(--orange);
  box-shadow: 0 0 0 3px #ff684616;
}
.client-address-field {
  grid-column: 1 / -1;
}
.client-form-actions {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 18px;
  padding-top: 27px;
}
.client-form-actions > a {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}
.client-form-actions > button {
  min-width: 180px;
  border: 0;
  padding: 15px 18px;
  color: #fff;
  background: var(--ink);
  display: flex;
  justify-content: space-between;
  font-weight: 700;
  cursor: pointer;
}
.client-form-actions > button span {
  color: var(--mint);
}
.client-profile-card {
  overflow: hidden;
  background: #fff;
  border: 1px solid #e0e5dd;
  box-shadow: 0 22px 55px #1425220d;
}
.client-profile-hero {
  min-height: 220px;
  padding: 38px;
  color: #fff;
  background: var(--ink);
  display: flex;
  align-items: center;
  gap: 24px;
  position: relative;
  overflow: hidden;
}
.client-profile-hero::after {
  content: "";
  position: absolute;
  width: 250px;
  height: 250px;
  border: 52px solid var(--mint);
  border-radius: 50%;
  right: -110px;
  top: -135px;
}
.client-profile-hero > span {
  width: 92px;
  height: 92px;
  border-radius: 50%;
  color: var(--ink);
  background: var(--mint);
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  font: 800 24px Manrope;
}
.client-profile-hero > div {
  position: relative;
  z-index: 1;
}
.client-profile-hero small {
  color: var(--orange);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.4px;
}
.client-profile-hero h2 {
  margin: 7px 0 3px;
  font: 700 clamp(32px, 4vw, 48px) Manrope;
  letter-spacing: -2px;
}
.client-profile-hero p {
  margin: 0;
  color: #9eada7;
  font-size: 13px;
}
.client-contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.client-contact-grid article {
  min-height: 150px;
  padding: 28px 32px;
  border-right: 1px solid #e7ebe5;
  border-bottom: 1px solid #e7ebe5;
  display: grid;
  align-content: center;
}
.client-contact-grid article:nth-child(2) {
  border-right: 0;
}
.client-contact-grid article > span {
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.client-contact-grid article > a {
  width: max-content;
  max-width: 100%;
  overflow: hidden;
  color: var(--ink);
  font: 700 18px Manrope;
  text-overflow: ellipsis;
}
.client-contact-grid article > small {
  margin-top: 8px;
  color: var(--orange);
  font-size: 11px;
}
.client-contact-grid .profile-address {
  grid-column: 1 / -1;
  min-height: 170px;
  border-right: 0;
}
.profile-address p {
  max-width: 680px;
  margin: 0;
  color: #465550;
  font-size: 14px;
  line-height: 1.75;
}
.client-profile-footer {
  min-height: 72px;
  padding: 16px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.client-profile-footer > span {
  color: var(--muted);
  font-size: 11px;
}
.client-profile-footer button {
  border: 1px solid #d96b5a;
  padding: 9px 12px;
  color: #b64231;
  background: #fff7f4;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
}
@media (max-width: 760px) {
  .client-metrics {
    grid-template-columns: 1fr 1fr;
  }
  .client-metrics article:first-child {
    grid-column: 1 / -1;
  }
  .client-form-grid,
  .client-contact-grid {
    grid-template-columns: 1fr;
  }
  .client-address-field,
  .client-contact-grid .profile-address {
    grid-column: auto;
  }
  .client-contact-grid article {
    border-right: 0;
  }
  .client-profile-hero {
    padding: 30px 25px;
  }
  .client-search {
    width: 100%;
  }
  .client-search input {
    width: auto;
    flex: 1;
  }
}
@media (max-width: 520px) {
  .primary-admin-action {
    width: 100%;
    margin-top: 18px;
  }
  .client-metrics {
    grid-template-columns: 1fr;
  }
  .client-metrics article:first-child {
    grid-column: auto;
  }
  .client-search {
    display: grid;
    grid-template-columns: 1fr auto;
  }
  .client-search input {
    width: 100%;
  }
  .client-form-card {
    padding: 22px;
  }
  .client-form-actions {
    align-items: stretch;
    flex-direction: column-reverse;
  }
  .client-form-actions > a {
    text-align: center;
  }
  .client-form-actions > button {
    width: 100%;
  }
  .client-profile-hero {
    align-items: flex-start;
    flex-direction: column;
  }
  .client-profile-hero::after {
    width: 170px;
    height: 170px;
    border-width: 35px;
  }
  .client-contact-grid article {
    padding: 25px;
  }
  .client-profile-footer {
    align-items: flex-start;
    flex-direction: column;
    gap: 14px;
  }
}

/* Quotation management */
.quotations-main,
.quotation-view-main {
  max-width: 1550px;
}
.quotation-metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 22px;
}
.quotation-metrics article {
  padding: 21px 22px;
  background: #fff;
  border: 1px solid #e0e5dd;
  border-top: 4px solid var(--ink);
  display: grid;
}
.quotation-metrics article:nth-child(2) {
  border-top-color: var(--orange);
}
.quotation-metrics article:nth-child(3) {
  border-top-color: #72a33c;
}
.quotation-metrics article:nth-child(4) {
  border-top-color: #3155ed;
}
.quotation-metrics span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.quotation-metrics b {
  margin: 8px 0 2px;
  font: 700 27px Manrope;
}
.quotation-metrics small {
  color: #98a19e;
  font-size: 11px;
}
.quotation-filters {
  display: flex;
  gap: 7px;
}
.quotation-filters input,
.quotation-filters select {
  border: 1px solid var(--line);
  padding: 10px;
  background: #fff;
  font-size: 12px;
}
.quotation-filters input {
  width: 230px;
}
.quotation-filters button,
.quotation-filters a {
  border: 0;
  padding: 10px 14px;
  color: #fff;
  background: var(--ink);
  font-size: 12px;
  cursor: pointer;
}
.quotation-filters a {
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--ink);
}
.quotation-table {
  width: 100%;
  min-width: 960px;
  border-collapse: collapse;
}
.quotation-table th {
  padding: 13px 18px;
  color: #7d8985;
  background: #f8faf7;
  text-align: left;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.quotation-table td {
  padding: 18px;
  border-top: 1px solid #edf0eb;
  vertical-align: middle;
  font-size: 13px;
}
.quotation-table td > b,
.quotation-table td > span,
.quotation-table td > small {
  display: block;
}
.quotation-table td > small {
  margin-top: 5px;
  color: var(--muted);
  font-size: 10px;
}
.quotation-number {
  color: #3155ed;
  font: 700 13px Manrope;
}
.quotation-total {
  font: 700 14px Manrope !important;
}
.quote-status {
  width: max-content;
  padding: 7px 10px;
  border-radius: 20px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.quote-status.status-draft {
  color: #8a5a20;
  background: #fff0db;
}
.quote-status.status-sent {
  color: #315f8b;
  background: #e5f0fb;
}
.quote-status.status-accepted {
  color: #4f782f;
  background: #e7f4db;
}
.quote-status.status-declined {
  color: #984838;
  background: #f9e8e3;
}
.quote-status.status-paid {
  color: #2f6d42;
  background: #dcf3e3;
}
.quote-status.status-overdue {
  color: #a04435;
  background: #fde7e2;
}
.quote-status.status-cancelled {
  color: #616a67;
  background: #e9edeb;
}
.invoice-source-panel {
  padding: 30px;
  background: #fff;
  border: 1px solid #e1e6df;
  border-top: 4px solid var(--mint);
}
.invoice-source-panel > div:first-child > span {
  color: #6a7772;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.2px;
}
.invoice-source-panel h2 {
  margin: 8px 0 6px;
  font: 700 25px Manrope;
}
.invoice-source-panel > div:first-child > p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}
.invoice-source-list {
  margin-top: 24px;
  border-top: 1px solid #e6eae3;
}
.invoice-standalone-option {
  min-height: 96px;
  padding: 20px 22px;
  margin-top: 24px;
  color: var(--ink);
  background: linear-gradient(135deg, #dfffa4, var(--mint));
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 20px;
  align-items: center;
  text-decoration: none;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}
.invoice-standalone-option:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgb(20 37 34 / 12%);
}
.invoice-standalone-option > span {
  padding: 6px 8px;
  color: #fff;
  background: var(--ink);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.8px;
}
.invoice-standalone-option > div {
  display: grid;
  gap: 5px;
}
.invoice-standalone-option b {
  font: 700 16px Manrope;
}
.invoice-standalone-option small {
  color: #43534d;
  font-size: 12px;
}
.invoice-standalone-option i {
  font-size: 20px;
  font-style: normal;
}
.invoice-source-divider {
  margin: 26px 0 -10px;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.8px;
}
.invoice-source-divider::before,
.invoice-source-divider::after {
  height: 1px;
  background: #e1e6df;
  content: "";
  flex: 1;
}
.industry-table td:nth-child(2) a {
  color: #3155ed;
  font-size: 12px;
  font-weight: 700;
}
.industry-admin-grid {
  grid-template-columns: 1fr 1fr 0.5fr 1fr;
}
.industry-admin-grid label small {
  margin-top: 5px;
  color: var(--muted);
  font-size: 10px;
}
.industry-publish-toggle > span:last-child {
  min-height: 42px;
  border: 1px solid #dce2da;
  padding: 10px 12px;
  background: #fafbf8;
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 12px;
  font-weight: 600;
  text-transform: none;
}
.industry-publish-toggle input {
  width: 16px;
  height: 16px;
}
.industry-copy-grid {
  display: grid;
  gap: 18px;
}
.industry-copy-grid label,
.industry-color-grid > label {
  color: #485650;
  display: grid;
  gap: 7px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}
.industry-copy-grid input,
.industry-copy-grid textarea,
.industry-color-grid input[type="text"] {
  width: 100%;
  border: 1px solid #dce2da;
  padding: 12px 13px;
  color: var(--ink);
  background: #fafbf8;
  outline: none;
  font-size: 13px;
  text-transform: none;
}
.industry-copy-grid textarea {
  resize: vertical;
  line-height: 1.6;
}
.industry-color-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.industry-color-grid label > div {
  display: grid;
  grid-template-columns: 54px 1fr;
  gap: 9px;
}
.industry-color-grid input[type="color"] {
  width: 54px;
  height: 43px;
  border: 1px solid #dce2da;
  padding: 3px;
  background: #fff;
}
.industry-admin-preview {
  min-height: 430px;
  color: #fff;
  background: var(--preview-primary);
  display: grid;
  grid-template-columns: 1.15fr 0.65fr;
  gap: 7vw;
  padding: 55px;
  align-items: center;
}
.industry-preview-copy > span,
.industry-admin-preview aside > small {
  color: var(--preview-accent);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1px;
}
.industry-preview-copy .quote-status {
  margin-left: 12px;
}
.industry-preview-copy h2 {
  max-width: 720px;
  margin: 22px 0 14px;
  font: 700 clamp(30px, 4vw, 53px) / 1.08 Manrope;
  letter-spacing: -2px;
}
.industry-preview-copy p {
  max-width: 650px;
  color: #c5d0cc;
  font-size: 14px;
  line-height: 1.75;
}
.industry-preview-copy > a {
  margin-top: 20px;
  padding: 13px 16px;
  color: var(--preview-primary);
  background: var(--preview-accent);
  display: inline-flex;
  gap: 25px;
  font-size: 12px;
  font-weight: 800;
}
.industry-admin-preview aside {
  padding: 28px;
  color: var(--ink);
  background: #fff;
  display: grid;
  gap: 12px;
}
.industry-admin-preview aside h3 {
  margin: 0 0 5px;
  font: 700 20px / 1.25 Manrope;
}
.industry-admin-preview aside i {
  height: 38px;
  border: 1px solid #dfe4dc;
  background: #fafbf8;
}
.industry-admin-preview aside button {
  border: 0;
  padding: 13px;
  color: #fff;
  background: var(--preview-primary);
  font-size: 11px;
  font-weight: 800;
}
.industry-admin-details {
  margin-top: 22px;
  padding: 30px;
  display: grid;
  gap: 24px;
}
.industry-admin-details > div {
  padding-bottom: 20px;
  border-bottom: 1px solid #e4e8e2;
}
.industry-admin-details > div:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}
.industry-admin-details span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.8px;
  text-transform: uppercase;
}
.industry-admin-details a {
  margin-top: 7px;
  color: #3155ed;
  display: block;
  font-size: 13px;
}
.industry-admin-details h3 {
  margin: 8px 0;
  font: 700 17px Manrope;
}
.industry-admin-details p {
  max-width: 900px;
  margin: 7px 0 0;
  color: #53615c;
  font-size: 13px;
  line-height: 1.7;
}
.invoice-source-list > a {
  min-height: 76px;
  padding: 15px 4px;
  color: var(--ink);
  border-bottom: 1px solid #e6eae3;
  display: grid;
  grid-template-columns: 1fr auto 28px;
  gap: 20px;
  align-items: center;
  text-decoration: none;
  transition:
    color 0.2s ease,
    padding 0.2s ease;
}
.invoice-source-list > a:hover {
  padding-left: 10px;
  color: #3155ed;
}
.invoice-source-list > a div {
  display: grid;
  gap: 4px;
}
.invoice-source-list > a span,
.invoice-source-list > a i {
  color: var(--muted);
  font-size: 13px;
  font-style: normal;
}
.invoice-source-list > a strong {
  font: 700 15px Manrope;
}
.empty-invoice-source {
  padding: 24px 0;
  color: var(--muted);
  font-size: 14px;
}
.quotation-form-main {
  max-width: 1450px;
}
.quotation-document-id {
  padding: 11px 14px;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  font: 700 13px Manrope;
}
.quotation-actions {
  max-width: 760px;
  display: flex;
  justify-content: flex-end;
  gap: 7px;
  flex-wrap: wrap;
}
.quotation-actions form {
  margin: 0;
}
.quotation-actions a,
.quotation-actions button {
  min-height: 42px;
  border: 1px solid var(--ink);
  padding: 11px 13px;
  color: #fff;
  background: var(--ink);
  display: flex;
  align-items: center;
  gap: 15px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}
.quotation-actions a > span,
.quotation-actions button > span {
  color: var(--mint);
}
.quotation-actions form:nth-child(2) button {
  color: var(--ink);
  background: #fff;
}
.quotation-actions form:nth-child(2) button > span {
  color: var(--orange);
}
.quotation-actions .edit-quotation-action {
  color: var(--ink);
  background: transparent;
}
.quotation-actions .invoice-from-quote-action {
  color: var(--ink);
  background: var(--mint);
  border-color: var(--mint);
}
.quotation-actions .invoice-from-quote-action > span {
  color: var(--ink);
}
.quotation-form {
  display: grid;
  gap: 20px;
}
.quotation-form-card {
  padding: 28px;
  background: #fff;
  border: 1px solid #e0e5dd;
}
.quotation-form-section-title {
  display: flex;
  align-items: flex-start;
  gap: 17px;
  padding-bottom: 21px;
  margin-bottom: 23px;
  border-bottom: 1px solid #e7ebe5;
}
.quotation-form-section-title > span {
  width: 35px;
  height: 35px;
  border-radius: 50%;
  color: var(--mint);
  background: var(--ink);
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  font-size: 11px;
  font-weight: 800;
}
.quotation-form-section-title > div {
  flex: 1;
}
.quotation-form-section-title h2 {
  margin: 0 0 4px;
  font: 700 19px Manrope;
}
.quotation-form-section-title p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
}
.add-quotation-item,
.add-item-mobile {
  border: 1px solid var(--ink);
  padding: 10px 13px;
  color: var(--ink);
  background: #fff;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}
.add-item-mobile {
  display: none;
  width: 100%;
  margin-top: 12px;
}
.quotation-details-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr 0.8fr 0.7fr;
  gap: 17px;
}
.quotation-details-grid label,
.quotation-notes {
  display: grid;
  gap: 7px;
  font-size: 12px;
  font-weight: 700;
}
.quotation-details-grid input,
.quotation-details-grid select,
.quotation-notes textarea {
  width: 100%;
  padding: 13px;
  color: var(--ink);
  background: #fbfcfa;
  border: 1px solid var(--line);
  outline: none;
}
.quotation-details-grid input:focus,
.quotation-details-grid select:focus,
.quotation-notes textarea:focus {
  border-color: var(--orange);
  box-shadow: 0 0 0 3px #ff684616;
}
.quotation-notes textarea {
  resize: vertical;
  font:
    13px/1.6 "DM Sans",
    sans-serif;
}
.quotation-items-head,
.quotation-item-row {
  display: grid;
  grid-template-columns:
    minmax(150px, 1.15fr) minmax(190px, 1.6fr) 90px 120px
    120px 38px;
  gap: 10px;
  align-items: center;
}
.quotation-items-head {
  padding: 0 8px 9px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.7px;
}
.quotation-items {
  display: grid;
  gap: 10px;
}
.quotation-item-row {
  padding: 11px;
  background: #f7f8f5;
  border: 1px solid #e3e7e0;
}
.quotation-item-row label {
  display: block;
}
.quotation-item-row label > span {
  display: none;
}
.quotation-item-row input,
.quotation-item-row textarea {
  width: 100%;
  min-width: 0;
  border: 1px solid #d8ded5;
  padding: 11px;
  background: #fff;
  outline: none;
  font-size: 13px;
}
.quotation-item-row textarea {
  resize: vertical;
  font:
    11px/1.35 "DM Sans",
    sans-serif;
}
.quotation-item-row input:focus,
.quotation-item-row textarea:focus {
  border-color: var(--orange);
}
.quotation-item-row output {
  text-align: right;
  font: 700 14px Manrope;
}
.remove-quotation-item {
  width: 34px;
  height: 34px;
  border: 1px solid #e2bcb4;
  color: #b44935;
  background: #fff5f2;
  font-size: 20px;
  cursor: pointer;
}
.remove-quotation-item:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}
.quotation-summary {
  width: min(360px, 100%);
  padding: 23px 25px;
  margin: 24px 0 0 auto;
  color: #fff;
  background: var(--ink);
  display: grid;
}
.quotation-summary > span {
  color: #9baba5;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.quotation-summary strong {
  margin: 6px 0 3px;
  color: var(--mint);
  font: 700 30px Manrope;
}
.quotation-summary small {
  color: #7f918a;
  font-size: 10px;
}
.quotation-form-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 18px;
}
.quotation-form-actions > a {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}
.quotation-form-actions > button {
  min-width: 190px;
  border: 0;
  padding: 16px 18px;
  color: #fff;
  background: var(--ink);
  display: flex;
  justify-content: space-between;
  font-weight: 700;
  cursor: pointer;
}
.quotation-form-actions > button span {
  color: var(--mint);
}
.quotation-form-actions > button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
.quotation-document {
  overflow: hidden;
  background: #fff;
  border: 1px solid #e0e5dd;
  box-shadow: 0 25px 65px #1425220e;
}
.quotation-document > header {
  min-height: 150px;
  padding: 34px 40px;
  color: #fff;
  background: var(--ink);
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
}
.quotation-brand {
  font: 800 24px Manrope;
}
.quotation-brand span {
  color: var(--mint);
}
.quotation-document > header > div {
  display: grid;
  justify-items: end;
  gap: 6px;
}
.quotation-document > header > div > span {
  color: var(--orange);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
}
.quotation-document > header h2 {
  margin: 0;
  font: 700 19px Manrope;
}
.quotation-parties {
  padding: 38px 40px;
  display: grid;
  grid-template-columns: 1fr 0.75fr;
  gap: 60px;
  border-bottom: 1px solid #e6eae3;
}
.quotation-parties > div > span,
.quotation-document-notes > span {
  color: var(--orange);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.3px;
}
.quotation-parties h3 {
  margin: 8px 0 7px;
  font: 700 24px Manrope;
}
.quotation-parties a {
  display: block;
  width: max-content;
  margin-bottom: 4px;
  color: #365e91;
  font-size: 13px;
}
.quotation-parties p {
  max-width: 460px;
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}
.quotation-parties dl {
  margin: 0;
  display: grid;
  gap: 15px;
}
.quotation-parties dl > div {
  padding-bottom: 13px;
  border-bottom: 1px solid #e8ebe6;
  display: flex;
  justify-content: space-between;
  gap: 20px;
}
.quotation-parties dt {
  color: var(--muted);
  font-size: 12px;
}
.quotation-parties dd {
  margin: 0;
  font-size: 13px;
  font-weight: 700;
}
.quotation-document-table-wrap {
  padding: 30px 40px 0;
  overflow-x: auto;
}
.quotation-document-table {
  width: 100%;
  min-width: 720px;
  border-collapse: collapse;
}
.quotation-document-table th {
  padding: 12px;
  color: #fff;
  background: var(--ink);
  text-align: left;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.8px;
}
.quotation-document-table th:nth-last-child(-n + 3),
.quotation-document-table td:nth-last-child(-n + 3) {
  text-align: right;
}
.quotation-document-table td {
  padding: 17px 12px;
  border-bottom: 1px solid #e9ece7;
  color: #55625e;
  vertical-align: top;
  font-size: 12px;
  line-height: 1.5;
}
.quotation-document-table td b {
  color: var(--ink);
  font-size: 13px;
}
.quotation-document-total {
  width: min(380px, calc(100% - 80px));
  padding: 25px 28px;
  margin: 25px 40px 35px auto;
  color: #fff;
  background: var(--ink);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.quotation-document-total span {
  color: #9caba6;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.quotation-document-total strong {
  color: var(--mint);
  font: 700 27px Manrope;
}
.quotation-document-notes {
  padding: 28px 40px;
  background: #f7f8f5;
  border-top: 1px solid #e6eae3;
}
.quotation-document-notes p {
  max-width: 760px;
  margin: 10px 0 0;
  color: #52605c;
  font-size: 13px;
  line-height: 1.7;
}
.quotation-document > footer {
  min-height: 70px;
  padding: 16px 40px;
  border-top: 1px solid #e6eae3;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.quotation-document > footer > span {
  color: var(--muted);
  font-size: 11px;
}
.quotation-document > footer button {
  border: 1px solid #d96b5a;
  padding: 9px 12px;
  color: #b64231;
  background: #fff7f4;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
}
@media (max-width: 1100px) {
  .industry-admin-grid {
    grid-template-columns: 1fr 1fr;
  }
  .quotation-metrics {
    grid-template-columns: 1fr 1fr;
  }
  .quotation-details-grid {
    grid-template-columns: 1fr 1fr;
  }
  .quotation-items-head {
    display: none;
  }
  .quotation-item-row {
    grid-template-columns: 1fr 1fr 90px 120px;
  }
  .quotation-item-row label:nth-child(2) {
    grid-column: span 3;
  }
  .quotation-item-row label > span {
    display: block;
    margin-bottom: 5px;
    color: var(--muted);
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
  }
  .quotation-item-row output {
    grid-column: 3;
  }
  .remove-quotation-item {
    grid-column: 4;
    justify-self: end;
  }
}
@media (max-width: 760px) {
  .industry-admin-preview {
    grid-template-columns: 1fr;
    padding: 32px;
  }
  .quotation-filters {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr auto;
  }
  .quotation-filters input {
    width: 100%;
  }
  .quotation-details-grid {
    grid-template-columns: 1fr;
  }
  .quotation-item-row {
    grid-template-columns: 1fr 1fr;
  }
  .quotation-item-row label:nth-child(2) {
    grid-column: 1 / -1;
  }
  .quotation-item-row output,
  .remove-quotation-item {
    grid-column: auto;
  }
  .quotation-parties {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .quotation-actions {
    justify-content: flex-start;
    margin-top: 18px;
  }
}
@media (max-width: 520px) {
  .industry-admin-grid,
  .industry-color-grid {
    grid-template-columns: 1fr;
  }
  .industry-admin-preview {
    padding: 22px;
  }
  .invoice-source-panel {
    padding: 20px;
  }
  .invoice-source-list > a {
    grid-template-columns: 1fr 24px;
    gap: 12px;
  }
  .invoice-standalone-option {
    padding: 18px;
    grid-template-columns: 1fr auto;
  }
  .invoice-standalone-option > span {
    grid-column: 1 / -1;
    justify-self: start;
  }
  .invoice-source-list > a strong {
    grid-column: 1;
    grid-row: 2;
  }
  .invoice-source-list > a i {
    grid-column: 2;
    grid-row: 1 / span 2;
  }
  .quotation-metrics {
    grid-template-columns: 1fr;
  }
  .quotation-form-card {
    padding: 20px;
  }
  .quotation-form-section-title {
    flex-wrap: wrap;
  }
  .quotation-form-section-title .add-quotation-item {
    display: none;
  }
  .add-item-mobile {
    display: block;
  }
  .quotation-item-row {
    grid-template-columns: 1fr;
  }
  .quotation-item-row label:nth-child(2),
  .quotation-item-row output,
  .remove-quotation-item {
    grid-column: auto;
  }
  .quotation-item-row output {
    padding: 9px 0;
    text-align: left;
  }
  .remove-quotation-item {
    justify-self: end;
  }
  .quotation-summary {
    width: 100%;
  }
  .quotation-form-actions {
    align-items: stretch;
    flex-direction: column-reverse;
  }
  .quotation-form-actions > a {
    text-align: center;
  }
  .quotation-form-actions > button {
    width: 100%;
  }
  .quotation-document > header,
  .quotation-parties,
  .quotation-document-table-wrap,
  .quotation-document-notes,
  .quotation-document > footer {
    padding-left: 22px;
    padding-right: 22px;
  }
  .quotation-document > header {
    flex-direction: column;
    gap: 25px;
  }
  .quotation-document > header > div {
    justify-items: start;
  }
  .quotation-document-total {
    width: calc(100% - 44px);
    margin: 22px;
    padding: 20px;
  }
  .quotation-document-total strong {
    font-size: 22px;
  }
  .quotation-document > footer {
    align-items: flex-start;
    flex-direction: column;
    gap: 13px;
  }
  .quotation-actions,
  .quotation-actions form,
  .quotation-actions a,
  .quotation-actions button {
    width: 100%;
  }
  .quotation-actions a,
  .quotation-actions button {
    justify-content: space-between;
  }
}
