/* Customer account: the same paper, navy and brass palette as website administration. */
.customer-portal {
  --portal-paper: #f6f4ee;
  --portal-ink: #182b40;
  --portal-line: #e2e3da;
  --portal-brass: #82662b;
  background: var(--portal-paper);
  padding: 46px 0 80px;
}
.customer-page-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding-bottom: 32px;
}
.customer-page-head .kicker,
.customer-sign-in .kicker {
  margin: 0 0 12px;
  font-size: 11px;
  color: var(--portal-brass);
}
.customer-page-head h1 {
  font:
    600 clamp(31px, 3.1vw, 43px) / 1.2 Playfair,
    Georgia,
    serif;
  letter-spacing: -0.025em;
  margin: 0 0 13px;
  color: var(--portal-ink);
}
.customer-page-head p {
  font-size: 14px;
  line-height: 1.7;
  color: #657078;
  margin: 0;
}
.customer-head-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.customer-portal .btn,
.customer-modal .btn {
  border-radius: 5px;
  font-size: 12px;
  line-height: 1.5;
  min-height: 38px;
  padding: 9px 14px;
}
.customer-portal .btn.sm {
  min-height: 34px;
  padding: 7px 11px;
  font-size: 11px;
}
.customer-portal .btn.gold,
.customer-modal .btn.gold {
  background: #203b4d;
  border-color: #203b4d;
  color: white;
}
.customer-portal .btn.gold:hover,
.customer-modal .btn.gold:hover {
  background: #314e60;
  border-color: #314e60;
}
.customer-portal .btn.light,
.customer-modal .btn.light {
  border: 1px solid #dce1da;
  color: #68766f;
  background: white;
}
.customer-portal .btn.light:hover,
.customer-modal .btn.light:hover {
  border-color: #a69a7d;
  background: #faf8f1;
  color: #374d57;
}
.customer-portal .apptabs {
  gap: 28px;
  margin: 0;
  border-bottom: 1px solid var(--portal-line);
}
.customer-portal .apptabs button {
  margin-bottom: -1px;
  padding: 17px 3px;
  font-size: 14px;
  color: #69776d;
  border-bottom: 2px solid transparent;
}
.customer-portal .apptabs button.active {
  color: var(--portal-ink);
  border-color: var(--portal-brass);
}
.customer-workspace {
  background: white;
  border: 1px solid var(--portal-line);
  border-radius: 10px;
  overflow: hidden;
  margin-top: 26px;
  box-shadow: 0 5px 20px #192c3f04;
}
.customer-section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  padding: 26px 28px 0;
}
.customer-section-head h2 {
  font:
    600 23px/1.3 Playfair,
    Georgia,
    serif;
  margin: 0 0 8px;
  color: var(--portal-ink);
}
.customer-section-head p {
  font-size: 12px;
  line-height: 1.8;
  color: #6b776d;
  margin: 0;
}
.customer-page-size {
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #65715f;
  white-space: nowrap;
  padding-top: 7px;
}
.customer-toolbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(190px, 250px);
  gap: 18px;
  padding: 24px 28px;
  align-items: end;
}
.customer-toolbar label {
  display: block;
  font-size: 11px;
  color: #5b686c;
  margin: 0 0 8px;
  font-weight: 600;
}
.customer-toolbar input,
.customer-toolbar select {
  width: 100%;
  min-width: 0;
  height: 43px;
  font-size: 13px;
  padding: 10px 12px;
  border: 1px solid #dce0d9;
  background: #fdfdfb;
  color: #243c4d;
  border-radius: 6px;
}
.customer-toolbar input::placeholder {
  color: #6c786c;
}
.customer-toolbar input:focus,
.customer-toolbar select:focus {
  outline: 2px solid #a48a5038;
  outline-offset: 2px;
  border-color: #9a895d;
}
.customer-column-labels {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 160px 180px;
  gap: 24px;
  padding: 13px 28px;
  background: #f8f9f5;
  border-top: 1px solid var(--portal-line);
  border-bottom: 1px solid var(--portal-line);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: #626e64;
}
.customer-column-labels span:last-child {
  text-align: right;
}
.customer-portal .list {
  border: 0;
  border-radius: 0;
  overflow: visible;
}
.customer-portal .list .item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 160px 180px;
  gap: 24px;
  padding: 22px 28px;
  align-items: center;
  border-color: #edf0e8;
  background: white;
}
.customer-portal .list .item:hover {
  background: #fcfcf8;
}
.customer-ticket-title {
  min-width: 0;
  overflow-wrap: anywhere;
}
.customer-ticket-title strong {
  display: block;
  font-size: 13px;
  line-height: 1.6;
  font-weight: 600;
  color: #243747;
}
.customer-secondary {
  display: block;
  font-size: 11px;
  line-height: 1.8;
  color: #657266;
  margin-top: 3px;
}
.customer-status {
  display: flex;
  flex-direction: column;
  gap: 7px;
  align-items: flex-start;
}
.customer-portal .badge,
.customer-modal .badge {
  padding: 5px 8px;
  border-radius: 4px;
  font-size: 9px;
  line-height: 1.4;
  letter-spacing: 0.055em;
}
.customer-portal .badge.open,
.customer-modal .badge.open {
  background: #f4eddc;
  color: #795e27;
}
.customer-portal .badge.answered,
.customer-modal .badge.answered,
.customer-portal .badge.approved {
  background: #eaf1eb;
  color: #496f52;
}
.customer-ticket-updated {
  text-align: right;
  color: #677461;
  font-size: 11px;
  line-height: 1.7;
}
.customer-ticket-open {
  display: block;
  color: #7f6a37;
  font-size: 10px;
  font-weight: 600;
  margin-top: 7px;
}
.customer-pager {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  border-top: 1px solid var(--portal-line);
  background: #fdfdfb;
  padding: 18px 28px;
}
.customer-pager span {
  font-size: 11px;
  color: #647063;
}
.customer-pager .btn {
  min-width: 88px;
}
.customer-portal .list .empty {
  padding: 58px 24px;
}
.customer-portal .list .empty strong {
  font:
    600 21px/1.4 Playfair,
    Georgia,
    serif;
  color: #62716b;
  display: block;
}
.customer-portal .list .empty p {
  font-size: 12px;
  line-height: 1.8;
  color: #66715f;
  margin: 10px 0 0;
}
#account-status:empty {
  display: none;
}
#account-status:not(:empty) {
  margin-top: 20px;
}
.customer-list-error {
  padding: 24px;
  color: #8e4d42;
}
.customer-list-error p {
  margin-top: 0;
  font-size: 13px;
}
.customer-downloads {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 26px;
}
.customer-download {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 20px;
  padding: 28px;
  border-top: 1px solid var(--portal-line);
  border-right: 1px solid var(--portal-line);
  min-height: 260px;
}
.customer-download:nth-child(even) {
  border-right: 0;
}
.customer-file-type {
  width: 48px;
  height: 56px;
  display: grid;
  place-items: center;
  border: 1px solid #e5dfcf;
  background: #f8f5ec;
  border-radius: 5px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: #7a602d;
}
.customer-download > div {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: 0;
}
.customer-download h3 {
  font:
    600 20px/1.4 Playfair,
    Georgia,
    serif;
  color: var(--portal-ink);
  margin: 0 0 12px;
}
.customer-download p {
  font-size: 13px;
  line-height: 1.85;
  color: #69766e;
  margin: 0 0 18px;
}
.customer-resource-meta {
  display: block;
  font-size: 10px;
  color: #6c786c;
  margin-top: auto;
  margin-bottom: 12px;
}
.customer-resource-footer {
  padding: 22px 28px;
  border-top: 1px solid var(--portal-line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  background: #fdfdfb;
}
.customer-resource-footer p {
  margin: 0;
  font-size: 12px;
  color: #69766e;
}
.customer-resource-footer a {
  font-size: 12px;
  font-weight: 600;
  color: #7a602d;
}
.customer-profile {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 34px;
  padding: 28px;
}
.customer-profile-summary {
  border-right: 1px solid var(--portal-line);
  padding-right: 26px;
  min-width: 0;
}
.customer-monogram {
  width: 58px;
  height: 64px;
  display: grid;
  place-items: center;
  border: 1px solid #e5dfcf;
  background: #f8f5ec;
  color: #7a602d;
  border-radius: 6px;
  font:
    600 23px/1 Georgia,
    serif;
  margin-bottom: 20px;
}
.customer-profile-summary h3 {
  font:
    600 23px/1.4 Playfair,
    Georgia,
    serif;
  color: var(--portal-ink);
  margin: 0 0 10px;
  overflow-wrap: anywhere;
}
.customer-profile-summary p {
  font-size: 12px;
  line-height: 1.8;
  color: #69766e;
  margin: 0 0 18px;
  overflow-wrap: anywhere;
}
.customer-profile-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 28px;
  margin: 0;
}
.customer-profile-fields > div {
  border-bottom: 1px solid #edf0e8;
  padding: 0 0 20px;
  margin-bottom: 20px;
  min-width: 0;
}
.customer-profile-fields dt {
  font-size: 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #657266;
  line-height: 1.6;
  margin-bottom: 9px;
}
.customer-profile-fields dd {
  margin: 0;
  color: #314650;
  font-size: 13px;
  line-height: 1.8;
  overflow-wrap: anywhere;
}
.customer-profile-footer {
  border-top: 1px solid var(--portal-line);
  padding: 22px 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  background: #fdfdfb;
}
.customer-profile-footer p {
  font-size: 12px;
  line-height: 1.8;
  color: #69766e;
  margin: 0;
}
.customer-sign-in {
  max-width: 560px;
  margin: 40px auto;
  text-align: center;
  border-radius: 10px;
  box-shadow: 0 5px 20px #192c3f04;
  border-color: var(--portal-line);
}
.customer-sign-in .btns {
  justify-content: center;
}
.customer-portal button:focus-visible,
.customer-portal [role="button"]:focus-visible {
  outline: 2px solid #8a773f;
  outline-offset: 3px;
}
body.customer-dialog-open {
  overflow: hidden;
}
.customer-modal {
  background: #0e1f2b99;
  padding: 38px 20px;
  backdrop-filter: blur(3px);
  overscroll-behavior: contain;
}
.customer-modal .panel {
  max-width: 850px;
  border-radius: 10px;
  padding: 30px;
  border-color: #dddccc;
  box-shadow: 0 24px 80px #0a192b26;
}
.customer-dialog-head {
  display: flex;
  gap: 20px;
  justify-content: space-between;
  align-items: flex-start;
  padding-bottom: 22px;
  border-bottom: 1px solid #e4e5dc;
  margin-bottom: 22px;
}
.customer-dialog-head h2 {
  font:
    600 29px/1.3 Playfair,
    Georgia,
    serif;
  color: #22384a;
  margin: 10px 0 12px;
  overflow-wrap: anywhere;
}
.customer-dialog-head .kicker {
  margin: 0;
  font-size: 10px;
  color: #82662b;
}
.customer-dialog-close {
  flex: 0 0 32px;
  width: 32px;
  height: 32px;
  border: 1px solid #e2e4dc;
  border-radius: 5px;
  color: #65766f;
  background: #fafbf7;
  font-size: 22px;
  cursor: pointer;
}
.customer-dialog-meta {
  font-size: 12px;
  line-height: 1.8;
  color: #677461;
  margin: 0 0 22px;
}
.customer-modal .thread {
  max-height: 44vh;
  overflow-y: auto;
  overscroll-behavior: contain;
  margin: 0 0 26px;
  padding-right: 10px;
}
.customer-modal .bubble {
  margin-left: auto;
  border-radius: 6px;
  border: 1px solid #e0e7e7;
  background: #f0f4f5;
  padding: 18px;
}
.customer-modal .bubble.staff {
  margin-left: 0;
  margin-right: auto;
  background: #fafbf7;
  border-color: #e5e7df;
}
.customer-modal .bubble .who {
  font-size: 10px;
  color: #657266;
  margin-bottom: 10px;
}
.customer-modal .bubble .text {
  font-size: 13px;
  line-height: 1.85;
  overflow-wrap: anywhere;
}
.customer-modal .form {
  gap: 18px;
}
.customer-modal .form label {
  font-size: 12px;
  color: #435b5e;
}
.customer-modal .form input,
.customer-modal .form select,
.customer-modal .form textarea {
  border-radius: 6px;
  border-color: #dce1d8;
  font-size: 13px;
}
.customer-modal .form select {
  min-height: 42px;
  padding: 9px 12px;
  line-height: 1.5;
}
.customer-modal textarea {
  min-height: 130px;
  font:
    13px/1.8 Inter,
    sans-serif;
}
.customer-modal .form [data-msg]:empty {
  display: none;
}
.customer-dialog-actions {
  display: flex;
  flex-wrap: wrap;
  padding-top: 18px;
  border-top: 1px solid #e5e7de;
  gap: 10px;
  align-items: center;
}
.customer-modal .btn {
  min-height: 38px;
}
@media (max-width: 980px) {
  .customer-profile {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
  }
  .customer-profile-summary {
    border-right: 0;
    border-bottom: 1px solid var(--portal-line);
    padding: 0 0 26px;
  }
  .customer-monogram {
    width: 48px;
    height: 54px;
    margin-bottom: 14px;
  }
  .customer-page-head {
    gap: 24px;
  }
  .customer-head-actions {
    flex: 0 0 220px;
  }
}
@media (max-width: 700px) {
  .customer-portal {
    padding-top: 30px;
  }
  .customer-page-head {
    flex-direction: column;
    align-items: stretch;
    gap: 24px;
    padding-bottom: 24px;
  }
  .customer-head-actions {
    flex-basis: auto;
    justify-content: flex-start;
  }
  .customer-portal .apptabs {
    gap: 23px;
  }
  .customer-portal .apptabs button {
    font-size: 12px;
  }
  .customer-workspace {
    margin-top: 20px;
  }
  .customer-section-head {
    padding: 22px 20px 0;
  }
  .customer-page-size {
    display: none;
  }
  .customer-toolbar {
    grid-template-columns: minmax(0, 1fr);
    padding: 20px;
    gap: 14px;
  }
  .customer-column-labels {
    display: none;
  }
  .customer-portal .list {
    border-top: 1px solid var(--portal-line);
  }
  .customer-portal .list .item {
    grid-template-columns: minmax(0, 1fr) auto;
    padding: 22px 20px;
    gap: 14px;
  }
  .customer-status {
    max-width: 120px;
  }
  .customer-status .badge {
    white-space: normal;
  }
  .customer-ticket-updated {
    grid-column: 1/-1;
    text-align: left;
    display: flex;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
  }
  .customer-ticket-open {
    margin: 0;
  }
  .customer-pager {
    padding: 18px 20px;
  }
  .customer-pager span {
    order: 3;
    width: 100%;
    text-align: center;
  }
  .customer-downloads {
    grid-template-columns: minmax(0, 1fr);
    margin-top: 22px;
  }
  .customer-download {
    padding: 24px 20px;
    border-right: 0;
    min-height: 235px;
    gap: 16px;
  }
  .customer-resource-footer {
    padding: 20px;
  }
  .customer-profile {
    padding: 24px 20px;
  }
  .customer-profile-fields {
    grid-template-columns: minmax(0, 1fr);
  }
  .customer-profile-footer {
    padding: 20px;
  }
  .customer-modal {
    padding: 16px 10px;
  }
  .customer-modal .panel {
    padding: 22px 18px;
  }
  .customer-dialog-head h2 {
    font-size: 25px;
  }
  .customer-modal .form .row2 {
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
  }
  .customer-dialog-actions .btn {
    max-width: 100%;
    white-space: normal;
  }
}
