/*
 * This is a manifest file that'll be compiled into application.css.
 *
 * With Propshaft, assets are served efficiently without preprocessing steps. You can still include
 * application-wide styles in this file, but keep in mind that CSS precedence will follow the standard
 * cascading order, meaning styles declared later in the document or manifest will override earlier ones,
 * depending on specificity.
 *
 * Consider organizing styles into separate files for maintainability.
 */

.login-page {
  background: #f7f3ef;
}

.login-shell {
  color: #2f2926;
  padding: clamp(160px, 14vw, 220px) 16px clamp(28px, 5vw, 72px);
}

.login-panel {
  background: #fffaf6;
  border: 1px solid rgba(72, 56, 48, 0.12);
  border-radius: 8px;
  box-shadow: 0 24px 70px rgba(54, 40, 34, 0.12);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 500px);
  margin: 0 auto;
  max-width: 1120px;
  min-height: 660px;
  overflow: hidden;
}

.login-visual {
  align-items: center;
  background: #e9ded3;
  display: flex;
  justify-content: center;
  min-height: 100%;
  padding: 38px;
}

.login-visual__image {
  display: block;
  height: 100%;
  max-height: 620px;
  max-width: 100%;
  object-fit: contain;
  width: auto;
}

.login-form-wrap {
  align-items: center;
  background:
    linear-gradient(180deg, rgba(255, 250, 246, 0.96), rgba(255, 255, 255, 0.98)),
    #ffffff;
  display: flex;
  padding: clamp(28px, 5vw, 56px);
}

.login-form-card {
  margin: 0 auto;
  max-width: 392px;
  width: 100%;
}

.login-logo-link {
  display: inline-flex;
  margin-bottom: 34px;
}

.login-logo {
  display: block;
  height: auto;
  max-width: 174px;
  width: min(174px, 52vw);
}

.login-heading {
  margin-bottom: 28px;
}

.login-kicker {
  color: #9d6f62;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  margin: 0 0 10px;
  text-transform: uppercase;
}

.login-heading h1 {
  color: #251f1c;
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.12;
  margin: 0 0 12px;
}

.login-heading p {
  color: #655b56;
  font-size: 0.98rem;
  line-height: 1.7;
  margin: 0;
}

.login-flash {
  border-radius: 8px;
  font-size: 0.92rem;
  line-height: 1.5;
  margin-bottom: 18px;
  padding: 12px 14px;
}

.login-flash--alert {
  background: #fff1ef;
  border: 1px solid #e9b5ad;
  color: #8b3128;
}

.login-flash--notice {
  background: #eef8f2;
  border: 1px solid #acd8bd;
  color: #2e6a48;
}

.login-form {
  display: grid;
  gap: 18px;
}

.login-field {
  display: grid;
  gap: 8px;
}

.login-field label,
.login-label-row label {
  color: #312824;
  font-size: 0.88rem;
  font-weight: 700;
}

.login-label-row {
  align-items: center;
  display: flex;
  gap: 12px;
  justify-content: space-between;
}

.login-input {
  background: #ffffff;
  border: 1px solid #d8cbc2;
  border-radius: 8px;
  color: #2f2926;
  font: inherit;
  min-height: 52px;
  outline: none;
  padding: 0 16px;
  transition: border-color 160ms ease, box-shadow 160ms ease;
  width: 100%;
}

.login-input::placeholder {
  color: #9b918c;
}

.login-input:focus {
  border-color: #9d6f62;
  box-shadow: 0 0 0 4px rgba(157, 111, 98, 0.15);
}

.login-muted-link,
.login-signup a {
  color: #7f4f45;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.login-muted-link {
  font-size: 0.86rem;
  white-space: nowrap;
}

.login-submit {
  align-items: center;
  background: #8f5c52;
  border: 1px solid #8f5c52;
  border-radius: 8px;
  color: #ffffff;
  cursor: pointer;
  display: inline-flex;
  font: inherit;
  font-weight: 700;
  justify-content: center;
  min-height: 54px;
  padding: 0 22px;
  transition: background-color 160ms ease, border-color 160ms ease, transform 160ms ease;
  width: 100%;
}

.login-submit:hover {
  background: #74483f;
  border-color: #74483f;
  transform: translateY(-1px);
}

.login-submit:focus-visible {
  outline: 4px solid rgba(157, 111, 98, 0.24);
  outline-offset: 2px;
}

.login-signup {
  color: #665c57;
  font-size: 0.94rem;
  line-height: 1.5;
  margin: 22px 0 0;
  text-align: center;
}

.login-dev-shortcuts {
  background: #fff8e8;
  border: 1px dashed #d8bc72;
  border-radius: 8px;
  display: grid;
  gap: 10px;
  padding: 12px 14px;
}

.login-dev-shortcuts__label {
  color: #7a6118;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  margin: 0;
  text-transform: uppercase;
}

.login-dev-shortcuts__buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.login-dev-shortcut {
  background: #ffffff;
  border: 1px solid #d8bc72;
  border-radius: 999px;
  color: #5f463f;
  cursor: pointer;
  font: inherit;
  font-size: 0.84rem;
  font-weight: 700;
  min-height: 36px;
  padding: 0 14px;
}

.login-dev-shortcut:hover {
  background: #fff1cc;
  border-color: #b9963d;
}

.login-dev-shortcut:focus-visible {
  outline: 3px solid rgba(184, 150, 61, 0.35);
  outline-offset: 2px;
}

.registration-errors {
  background: #fff1ef;
  border: 1px solid #e9b5ad;
  border-radius: 8px;
  color: #8b3128;
  line-height: 1.5;
  margin-bottom: 22px;
  padding: 14px 16px;
}

.registration-errors ul {
  margin: 0;
  padding-left: 20px;
}

@media (max-width: 900px) {
  .login-shell {
    padding: 156px 14px 22px;
  }

  .login-panel {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .login-visual {
    min-height: 240px;
    order: 2;
    padding: 24px;
  }

  .login-visual__image {
    max-height: 320px;
  }

  .login-form-wrap {
    order: 1;
  }
}

@media (max-width: 520px) {
  .login-form-wrap {
    padding: 28px 20px;
  }

  .login-logo-link {
    display: flex;
    justify-content: center;
    margin-bottom: 26px;
  }

  .login-heading {
    text-align: center;
  }

  .login-heading h1 {
    font-size: 1.75rem;
  }

  .login-label-row {
    align-items: flex-start;
    flex-direction: column;
    gap: 6px;
  }

  .login-muted-link {
    white-space: normal;
  }
}

.admin-body {
  background: #f5f2ef;
  color: #2c2926;
  margin: 0;
}

.admin-body * {
  box-sizing: border-box;
}

.admin-shell {
  display: grid;
  grid-template-columns: 272px minmax(0, 1fr);
  min-height: 100vh;
}

.admin-sidebar {
  background: #27221f;
  color: #f8f0e8;
  display: flex;
  flex-direction: column;
  gap: 30px;
  padding: 28px 20px;
}

.admin-brand {
  align-items: center;
  color: inherit;
  display: flex;
  gap: 14px;
  text-decoration: none;
}

.admin-brand__mark {
  align-items: center;
  background: #b98573;
  border-radius: 8px;
  color: #ffffff;
  display: inline-flex;
  font-weight: 800;
  height: 42px;
  justify-content: center;
  width: 42px;
}

.admin-brand strong,
.admin-brand small {
  display: block;
}

.admin-brand small {
  color: #cfc2b8;
  font-size: 0.8rem;
  margin-top: 3px;
}

.admin-nav {
  display: grid;
  gap: 8px;
}

.admin-nav__link {
  align-items: center;
  border-radius: 8px;
  color: #ddd3cb;
  display: flex;
  gap: 12px;
  padding: 12px 14px;
  text-decoration: none;
}

.admin-nav__link:hover,
.admin-nav__link.is-active {
  background: #3a312d;
  color: #ffffff;
}

.admin-nav__dot {
  background: currentColor;
  border-radius: 50%;
  display: inline-block;
  height: 7px;
  opacity: 0.55;
  width: 7px;
}

.admin-main {
  min-width: 0;
}

.admin-topbar {
  align-items: center;
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid #e7ded6;
  display: flex;
  gap: 20px;
  justify-content: space-between;
  min-height: 92px;
  padding: 22px 34px;
  position: sticky;
  top: 0;
  z-index: 5;
}

.admin-topbar h1 {
  color: #211d1a;
  font-size: 1.8rem;
  line-height: 1.1;
  margin: 3px 0 0;
}

.admin-eyebrow {
  color: #92675d;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.09em;
  margin: 0;
  text-transform: uppercase;
}

.admin-userbar {
  align-items: center;
  display: flex;
  gap: 12px;
}

.admin-userbar__email {
  color: #615852;
  font-size: 0.9rem;
  font-weight: 700;
}

.admin-link-button,
.admin-primary-action,
.admin-secondary-action {
  border-radius: 8px;
  cursor: pointer;
  display: inline-flex;
  font: inherit;
  font-weight: 800;
  justify-content: center;
  line-height: 1;
  min-height: 40px;
  padding: 12px 15px;
  text-decoration: none;
}

.admin-link-button {
  background: #ffffff;
  border: 1px solid #d7cac2;
  color: #6f4a42;
}

.admin-primary-action {
  background: #8f5c52;
  border: 1px solid #8f5c52;
  color: #ffffff;
}

.admin-primary-action:hover {
  background: #74483f;
  border-color: #74483f;
}

.admin-secondary-action {
  background: #ffffff;
  border: 1px solid #d9cec8;
  color: #5f463f;
}

.admin-content {
  display: grid;
  gap: 24px;
  padding: 30px 34px 44px;
}

.admin-flash,
.admin-errors {
  border-radius: 8px;
  font-weight: 700;
  margin: 18px 34px 0;
  padding: 13px 15px;
}

.admin-flash--notice {
  background: #eef8f2;
  border: 1px solid #acd8bd;
  color: #2e6a48;
}

.admin-flash--alert,
.admin-errors {
  background: #fff1ef;
  border: 1px solid #e9b5ad;
  color: #8b3128;
}

.admin-errors {
  margin: 0 0 20px;
}

.admin-errors ul {
  margin: 8px 0 0;
  padding-left: 20px;
}

.admin-metrics {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.admin-metric,
.admin-panel {
  background: #ffffff;
  border: 1px solid #e4dbd4;
  border-radius: 8px;
  box-shadow: 0 18px 45px rgba(51, 39, 33, 0.08);
}

.admin-metric {
  padding: 20px;
}

.admin-metric span,
.admin-split-stats span,
.admin-table td span,
.admin-muted,
.admin-field__hint {
  color: #756b65;
  display: block;
  font-size: 0.86rem;
}

.admin-metric strong {
  color: #211d1a;
  display: block;
  font-size: 2rem;
  line-height: 1;
  margin-top: 10px;
}

.admin-grid {
  display: grid;
  gap: 20px;
}

.admin-grid--two {
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
}

.admin-panel {
  overflow: hidden;
}

.admin-panel__header {
  align-items: center;
  border-bottom: 1px solid #ece4de;
  display: flex;
  gap: 18px;
  justify-content: space-between;
  padding: 20px;
}

.admin-panel__header h2 {
  color: #241f1c;
  font-size: 1.25rem;
  line-height: 1.2;
  margin: 4px 0 0;
}

.admin-table-wrap {
  overflow-x: auto;
}

.admin-table {
  border-collapse: collapse;
  min-width: 760px;
  width: 100%;
}

.admin-table th,
.admin-table td {
  border-bottom: 1px solid #eee6e0;
  padding: 14px 16px;
  text-align: left;
  vertical-align: middle;
}

.admin-table th {
  color: #776b64;
  font-size: 0.78rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.admin-table td {
  color: #302a26;
  font-size: 0.94rem;
}

.admin-table__link {
  color: #5f463f;
  font-weight: 800;
}

.admin-table__actions {
  text-align: right;
  white-space: nowrap;
}

.admin-table__actions .admin-secondary-action {
  margin-left: 6px;
}

.admin-badge {
  background: #f4ebe7;
  border: 1px solid #e2d0c8;
  border-radius: 999px;
  color: #684d45;
  display: inline-flex;
  font-size: 0.78rem;
  font-weight: 800;
  padding: 6px 10px;
}

.admin-table td .admin-badge {
  color: #684d45;
  display: inline-flex;
}

.admin-badge--completed {
  background: #eef8f2;
  border-color: #acd8bd;
  color: #2e6a48;
}

.admin-table td .admin-badge--completed {
  color: #2e6a48;
}

.admin-badge--failed {
  background: #fff1ef;
  border-color: #e9b5ad;
  color: #8b3128;
}

.admin-table td .admin-badge--failed {
  color: #8b3128;
}

.admin-badge--started {
  background: #f3f0ff;
  border-color: #c8bee8;
  color: #50427f;
}

.admin-table td .admin-badge--started {
  color: #50427f;
}

.admin-sync-panel {
  display: grid;
}

.admin-sync-last-success {
  color: #756b65;
  text-align: right;
}

.admin-sync-last-success span,
.admin-sync-summary__item span,
.admin-sync-summary__item small {
  display: block;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.admin-sync-last-success strong {
  color: #211d1a;
  display: block;
  font-size: 1rem;
  margin-top: 6px;
}

.admin-sync-summary {
  border-bottom: 1px solid #ece4de;
  display: grid;
  gap: 0;
  grid-template-columns: repeat(7, minmax(120px, 1fr));
}

.admin-sync-summary__item {
  border-right: 1px solid #eee6e0;
  min-width: 0;
  padding: 16px;
}

.admin-sync-summary__item:last-child {
  border-right: 0;
}

.admin-sync-summary__item strong {
  color: #211d1a;
  display: block;
  font-size: 1.45rem;
  margin-top: 9px;
}

.admin-sync-summary__item small {
  color: #756b65;
  margin-top: 4px;
}

.admin-sync-failures {
  background: #fff8f6;
  border-bottom: 1px solid #ead8d2;
  padding: 18px 20px;
}

.admin-sync-failures h3 {
  color: #8b3128;
  font-size: 0.95rem;
  margin: 0 0 10px;
}

.admin-sync-failures ul {
  display: grid;
  gap: 10px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.admin-sync-failures li {
  color: #3b302c;
  display: grid;
  gap: 4px;
}

.admin-sync-failures li strong {
  color: #8b3128;
  font-size: 0.82rem;
}

.admin-sync-error {
  color: #8b3128;
  max-width: 320px;
}

.admin-table--sync {
  min-width: 980px;
}

.admin-list {
  display: grid;
  list-style: none;
  margin: 0;
  padding: 0 20px 20px;
}

.admin-list li {
  align-items: center;
  border-top: 1px solid #eee6e0;
  display: flex;
  justify-content: space-between;
  padding: 13px 0;
}

.admin-split-stats {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  padding: 20px;
}

.admin-split-stats strong {
  display: block;
  font-size: 1.7rem;
  margin-top: 6px;
}

.admin-filters {
  align-items: end;
  border-bottom: 1px solid #ece4de;
  display: grid;
  gap: 12px;
  grid-template-columns: minmax(220px, 1fr) repeat(5, minmax(140px, 0.3fr)) auto;
  padding: 20px;
}

.admin-filters__search {
  grid-column: 1 / -1;
}

.admin-filters__submit {
  grid-column: 1 / -1;
  justify-self: start;
}

.admin-input {
  background: #ffffff;
  border: 1px solid #d8cbc2;
  border-radius: 8px;
  color: #2f2926;
  font: inherit;
  min-height: 42px;
  outline: none;
  padding: 0 12px;
  width: 100%;
}

.admin-input:focus {
  border-color: #9d6f62;
  box-shadow: 0 0 0 4px rgba(157, 111, 98, 0.14);
}

.admin-input--textarea {
  line-height: 1.5;
  padding: 12px;
}

.admin-detail {
  display: grid;
  gap: 20px;
}

.admin-definition-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 0;
  padding: 20px;
}

.admin-definition-grid div {
  border-bottom: 1px solid #eee6e0;
  padding-bottom: 12px;
}

.admin-definition-grid dt {
  color: #756b65;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.admin-definition-grid dd {
  color: #2c2926;
  font-weight: 800;
  margin: 7px 0 0;
}

.admin-copy-block,
.admin-variant,
.admin-form {
  padding: 20px;
}

.admin-copy-block h3,
.admin-variant h3 {
  font-size: 1rem;
  margin: 0 0 8px;
}

.admin-copy-block p,
.admin-variant p {
  color: #615852;
  line-height: 1.7;
  margin: 0;
}

.admin-form {
  display: grid;
  gap: 22px;
}

.admin-form__grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.admin-field {
  display: grid;
  gap: 8px;
}

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

.admin-field label,
.admin-check-grid legend,
.admin-inline-check {
  color: #312824;
  font-size: 0.88rem;
  font-weight: 800;
}

.admin-check-grid {
  border: 1px solid #e4dbd4;
  border-radius: 8px;
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 0;
  padding: 18px;
}

.admin-check-grid legend {
  padding: 0 8px;
}

.admin-check-grid label,
.admin-inline-check {
  align-items: center;
  display: flex;
  gap: 8px;
}

.admin-inline-check {
  justify-self: start;
}

.admin-form__actions {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
}

@media (max-width: 1100px) {
  .admin-shell {
    grid-template-columns: 1fr;
  }

  .admin-sidebar {
    position: static;
  }

  .admin-nav {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }

  .admin-metrics,
  .admin-grid--two,
  .admin-definition-grid,
  .admin-sync-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .admin-sync-summary__item {
    border-bottom: 1px solid #eee6e0;
  }

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

@media (max-width: 680px) {
  .admin-sidebar,
  .admin-topbar,
  .admin-content {
    padding-left: 16px;
    padding-right: 16px;
  }

  .admin-topbar,
  .admin-userbar,
  .admin-panel__header,
  .admin-form__actions {
    align-items: stretch;
    flex-direction: column;
  }

  .admin-sync-last-success {
    text-align: left;
  }

  .admin-nav,
  .admin-metrics,
  .admin-grid--two,
  .admin-definition-grid,
  .admin-filters,
  .admin-form__grid,
  .admin-check-grid,
  .admin-sync-summary {
    grid-template-columns: 1fr;
  }

  .admin-table__actions {
    text-align: left;
  }
}

.customer-portal-page {
  background: #f7f3ef;
}

.customer-portal {
  color: #2f2926;
  display: grid;
  gap: 24px;
  margin: 0 auto;
  max-width: 1180px;
  padding: clamp(230px, 18vw, 285px) 18px 56px;
}

.customer-portal *,
.customer-portal *::before,
.customer-portal *::after {
  box-sizing: border-box;
}

.customer-portal-hero,
.customer-portal-empty,
.customer-portal-card,
.customer-portal-panel {
  background: #ffffff;
  border: 1px solid #e4dbd4;
  border-radius: 8px;
  box-shadow: 0 18px 45px rgba(51, 39, 33, 0.08);
}

.customer-portal-hero {
  align-items: end;
  display: grid;
  gap: 24px;
  grid-template-columns: minmax(0, 1fr) auto;
  overflow: hidden;
  padding: clamp(26px, 4vw, 42px);
  position: relative;
}

.customer-portal-hero::before {
  background:
    linear-gradient(135deg, rgba(143, 92, 82, 0.14), rgba(236, 223, 213, 0.44)),
    #fbf7f3;
  content: "";
  inset: 0;
  position: absolute;
}

.customer-portal-hero__copy,
.customer-portal-hero__actions {
  position: relative;
}

.customer-portal-hero h1 {
  color: #211d1a;
  font-size: clamp(2rem, 4vw, 3.25rem);
  line-height: 1.05;
  margin: 0 0 14px;
}

.customer-portal-hero p {
  color: #5f5651;
  font-size: 1rem;
  line-height: 1.7;
  margin: 0;
  max-width: 680px;
}

.customer-portal-eyebrow {
  color: #92675d;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.09em;
  margin: 0 0 8px;
  text-transform: uppercase;
}

.customer-portal-hero__actions,
.customer-portal-actions-list {
  display: flex;
  gap: 12px;
}

.customer-portal-button {
  align-items: center;
  border-radius: 8px;
  cursor: pointer;
  display: inline-flex;
  font: inherit;
  font-weight: 800;
  justify-content: center;
  line-height: 1;
  min-height: 44px;
  padding: 13px 17px;
  text-decoration: none;
  white-space: nowrap;
}

.customer-portal-button--primary {
  background: #8f5c52;
  border: 1px solid #8f5c52;
  color: #ffffff;
}

.customer-portal-button--primary:hover {
  background: #74483f;
  border-color: #74483f;
  color: #ffffff;
}

.customer-portal-button--secondary {
  background: #ffffff;
  border: 1px solid #d7cac2;
  color: #6f4a42;
}

.customer-portal-empty {
  align-items: center;
  display: grid;
  gap: 18px;
  grid-template-columns: minmax(0, 1fr) auto;
  padding: 22px;
}

.customer-portal-empty h2,
.customer-portal-panel__header h2,
.customer-portal-placeholder h3 {
  color: #241f1c;
  font-size: 1.25rem;
  line-height: 1.2;
  margin: 0;
}

.customer-portal-empty p,
.customer-portal-placeholder p {
  color: #615852;
  line-height: 1.7;
  margin: 8px 0 0;
}

.customer-portal-metrics {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.customer-portal-card {
  display: grid;
  gap: 10px;
  min-height: 146px;
  padding: 20px;
}

.customer-portal-card--accent {
  background: #2d2724;
  border-color: #2d2724;
  color: #fff7f0;
}

.customer-portal-card span,
.customer-portal-card small,
.customer-portal-details dt,
.customer-portal-breakdown span,
.customer-portal-activity span {
  color: #756b65;
  display: block;
  font-size: 0.86rem;
}

.customer-portal-card--accent span,
.customer-portal-card--accent small {
  color: #e4d7cd;
}

.customer-portal-card strong {
  color: #211d1a;
  display: block;
  font-size: clamp(1.75rem, 4vw, 2.35rem);
  line-height: 1;
}

.customer-portal-card--accent strong {
  color: #ffffff;
}

.customer-portal-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 0.85fr);
}

.customer-portal-grid--support {
  grid-template-columns: minmax(320px, 0.75fr) minmax(0, 1fr);
}

.customer-portal-panel {
  overflow: hidden;
}

.customer-portal-panel__header {
  align-items: center;
  border-bottom: 1px solid #ece4de;
  display: flex;
  gap: 18px;
  justify-content: space-between;
  padding: 20px;
}

.customer-portal-status {
  background: #f4ebe7;
  border: 1px solid #e2d0c8;
  border-radius: 999px;
  color: #684d45;
  display: inline-flex;
  font-size: 0.78rem;
  font-weight: 800;
  padding: 6px 10px;
  white-space: nowrap;
}

.customer-portal-details {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 0;
  padding: 20px;
}

.customer-portal-details div {
  border-bottom: 1px solid #eee6e0;
  min-width: 0;
  padding-bottom: 12px;
}

.customer-portal-details dt {
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.customer-portal-details dd {
  color: #2c2926;
  font-weight: 800;
  line-height: 1.45;
  margin: 7px 0 0;
  overflow-wrap: anywhere;
}

.customer-portal-activity {
  display: grid;
  list-style: none;
  margin: 0;
  padding: 0 20px 20px;
}

.customer-portal-activity li {
  align-items: center;
  border-top: 1px solid #eee6e0;
  display: flex;
  gap: 16px;
  justify-content: space-between;
  padding: 15px 0;
}

.customer-portal-activity li:first-child {
  border-top: 0;
}

.customer-portal-activity strong {
  color: #2c2926;
  display: block;
  margin-bottom: 4px;
}

.customer-portal-activity time {
  color: #756b65;
  font-size: 0.84rem;
  font-weight: 800;
  white-space: nowrap;
}

.customer-portal-placeholder {
  padding: 20px;
}

.customer-portal-breakdown {
  display: grid;
  gap: 0;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.customer-portal-breakdown div {
  border-right: 1px solid #eee6e0;
  padding: 20px;
}

.customer-portal-breakdown div:last-child {
  border-right: 0;
}

.customer-portal-breakdown strong {
  color: #211d1a;
  display: block;
  font-size: 1.7rem;
  margin-top: 8px;
}

.customer-portal-actions-list {
  flex-wrap: wrap;
  padding: 20px;
}

.customer-portal-actions-list a {
  background: #fffaf6;
  border: 1px solid #dfd3ca;
  border-radius: 8px;
  color: #5f463f;
  flex: 1 1 190px;
  font-weight: 800;
  min-height: 48px;
  padding: 14px 16px;
  text-align: center;
  text-decoration: none;
}

.customer-portal-actions-list a:hover {
  background: #f5ece6;
  color: #3a2d29;
}

@media (max-width: 980px) {
  .customer-portal {
    padding-top: 170px;
  }

  .customer-portal-hero,
  .customer-portal-empty,
  .customer-portal-grid,
  .customer-portal-grid--support {
    grid-template-columns: 1fr;
  }

  .customer-portal-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .customer-portal-hero__actions {
    align-items: stretch;
    flex-direction: column;
  }
}

@media (max-width: 620px) {
  .customer-portal {
    padding-left: 14px;
    padding-right: 14px;
    padding-top: 160px;
  }

  .customer-portal-metrics,
  .customer-portal-details,
  .customer-portal-breakdown {
    grid-template-columns: 1fr;
  }

  .customer-portal-panel__header,
  .customer-portal-activity li {
    align-items: stretch;
    flex-direction: column;
  }

  .customer-portal-breakdown div {
    border-bottom: 1px solid #eee6e0;
    border-right: 0;
  }

  .customer-portal-breakdown div:last-child {
    border-bottom: 0;
  }
}
