/*
 * Harbour Staff Portal — base layout and shared components
 * Loaded: every /staff screen (first stylesheet).
 * Page shell, header, tabs, filters, tables, status pills, Custom/Standard Order lists.
 */

#wpadminbar {
  display: none!important;
}

html {
  margin-top: 0!important;
}

body {
  margin-top: 0!important;
  color: #203630;
}

.l-main .l-section,
.l-main .l-section-h,
.page .l-main .l-section:first-child .l-section-h {
  padding-top: 34px!important;
  margin-top: 0!important;
}

.hcr {
  --soft: #edf4f0;
  --warn: #7b6538;
  --danger: #b44327;
  --danger-hover: #91351f;
  --control-h: 44px;
  margin: 0 auto 72px!important;
  color: var(--ink);
  line-height: 1.5;
}

.hcr * {
  box-sizing: border-box;
}

.hcr a {
  color: var(--brand);
}

.hcr-eyebrow {
  display: block;
  font-weight: 800;
  text-transform: uppercase;
}

.hcr-muted {
  color: var(--muted);
  font-size: 13px;
}

.hcr-header {
  display: flex;
  justify-content: space-between;
  gap: 24px;
}

.hcr h1 {
  color: #17352f;
  line-height: 1.06;
}

.hcr h2 {
  margin: 0 0 10px;
  color: #203a34;
  font-size: 24px!important;
  font-weight: 700;
  letter-spacing: -.35px;
}

.hcr-header p {
  margin: 0;
  color: var(--muted);
}

.hcr-account {
  font-size: 13px!important;
  color: #425850;
}

.hcr-account strong {
  display: block;
  color: #203a34;
}

.hcr-account small {
  display: block;
  margin-top: 2px;
  color: #86938e;
}

.hcr-account a {
  display: inline-block;
  font-weight: 700;
  text-decoration: none;
}

.l-header .l-subheader.at_middle {
  border-bottom: 1px solid rgba(53,114,112,.12)!important;
}

.hcr-tabs {
  position: sticky;
  z-index: 30;
  display: flex;
  overflow-x: auto;
  backdrop-filter: blur(12px);
  scrollbar-width: none;
}

.hcr-tabs::-webkit-scrollbar {
  display: none;
}

.hcr-tabs a {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  border: 1px solid transparent;
  font-weight: 700;
  text-decoration: none;
  transition: .16s ease;
}

.hcr-tabs a:hover {
  color: var(--brand);
}

.hcr-tabs a[href*="view=locked"].is-active:after {
  content: "🔒";
  margin-left: 6px;
}

.hcr-login {
  max-width: 470px;
  margin: 70px auto;
  padding: 30px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: 0 18px 55px rgba(28,58,50,.08);
}

.hcr-login label,
.hcr-filters label {
  display: block;
  margin-bottom: 5px;
  color: #40554e;
  font-size: 12px!important;
  font-weight: 700;
}

.hcr input:not([type=submit]),
.hcr select {
  width: 100%;
  padding: 9px 12px;
  border: 1px solid #cfdad4;
  color: #233c38;
  box-shadow: 0 1px 2px rgba(26,52,45,.02);
  transition: border-color .16s,box-shadow .16s;
}

.hcr input:focus,
.hcr select:focus {
  outline: 0;
  border-color: #7aa59c;
  box-shadow: 0 0 0 3px rgba(40,107,101,.11);
}

.hcr .hcr-button,
.hcr input[type=submit] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #246B62!important;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: .16s ease;
}

.hcr .hcr-button:hover,
.hcr .hcr-button:focus,
.hcr input[type=submit]:hover,
.hcr input[type=submit]:focus {
  background: #246B62!important;
  border-color: #246B62!important;
  color: #fff!important;
}

.hcr .hcr-button-download,
.hcr .hcr-button-confirm {
  background: #B45A00!important;
  color: #fff!important;
  border-color: #B45A00!important;
  box-shadow: none;
}

.hcr .hcr-button-download:hover,
.hcr .hcr-button-download:focus,
.hcr .hcr-button-confirm:hover,
.hcr .hcr-button-confirm:focus {
  background: #964A00!important;
  color: #fff!important;
  border-color: #964A00!important;
}

.hcr .hcr-small {
  border-radius: 8px;
}

.hcr-filters {
  display: grid;
  align-items: end;
  background: #fff;
  border: 1px solid var(--line);
}

.hcr-filters label {
  min-width: 0;
  margin: 0;
}

.hcr-reset {
  align-self: center;
  padding: 8px 4px;
  color: #70817b;
  font-weight: 700;
  text-decoration: none;
}

.hcr-results {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
}

.hcr-results span {
  color: var(--muted);
}

.hcr-table-wrap {
  overflow-x: auto;
  background: #fff;
  border: 1px solid var(--line);
}

.hcr-table {
  width: 100%;
  min-width: 920px;
  margin: 0;
  border-collapse: collapse;
}

.hcr-table th {
  border-bottom: 1px solid var(--line);
  font-weight: 800;
  text-align: left;
  text-transform: uppercase;
  white-space: nowrap;
}

.hcr-table td {
  border-top: 1px solid var(--line2);
  vertical-align: middle;
}

.hcr-table tbody tr:first-child td {
  border-top: 0;
}

.hcr-table tbody tr {
  transition: background .12s;
}

.hcr-record {
  color: #1c3c35!important;
  font-weight: 750;
  text-decoration: none;
}

.hcr-record:hover {
  color: var(--brand)!important;
}

.hcr-table small {
  display: block;
  color: #87938e;
}

.hcr-table code {
  background: transparent;
  color: var(--brand);
  font-weight: 700;
  letter-spacing: .35px;
  white-space: nowrap;
}

.hcr-table code.hcr-order-code {
  color: #263d38;
}

/* Short model code (suspension letter + length), e.g. C17. */
.hcr-table .hcr-model-code {
  display: inline-block;
  min-width: 34px;
  padding: 3px 8px;
  border-radius: 6px;
  background: #eef3f1;
  color: #263d38;
  font-weight: 700;
  letter-spacing: .3px;
  text-align: center;
  white-space: nowrap;
}

.hcr-build-table {
  min-width: 1040px;
}

.hcr-status,
.hcr-store-pill,
.hcr-owner-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-weight: 800;
  white-space: nowrap;
}

.hcr-status {
  background: #f0f3f1;
  color: #697871;
}

.hcr-status.is-active {
  background: #e5f1e9;
  color: #2a684f;
}

.hcr-store-pill {
  background: #eaf2ee;
  color: #356357;
}

.hcr-owner-pill {
  background: #edf1f6;
  color: #536777;
}

.hcr-back {
  display: inline-flex;
  align-items: center;
  color: #64766f!important;
  font-weight: 750;
  text-decoration: none;
}

.hcr-back:hover {
  color: var(--brand)!important;
}

.hcr-file-icon {
  flex: 0 0 auto;
}

.hcr-confirmed-text {
  display: inline-block;
  margin-top: 3px;
  color: #2f7257;
  font-weight: 750;
}

.hcr-empty {
  background: #fff;
  border: 1px solid var(--line);
  text-align: center;
}

.hcr-empty p {
  color: var(--muted);
  font-size: 12.5px;
}

.hcr-pagination {
  display: flex;
  justify-content: center;
  gap: 20px;
}

.hcr-pagination a {
  font-weight: 700;
  text-decoration: none;
}

@media (max-width:760px) {
  .l-main .l-section,
  .l-main .l-section-h,
  .page .l-main .l-section:first-child .l-section-h {
    padding-top: 18px!important;
  }
  .hcr {
    margin-bottom: 38px!important;
  }
  .hcr-header {
    flex-direction: column;
  }
  .hcr-filters .hcr-button {
    grid-column: 1;
  }
  .hcr-reset {
    align-self: center;
  }
}

body {
  background: linear-gradient(180deg,#f3f6f4 0,#f7f8f7 270px,#f5f7f6 100%);
}

.hcr {
  --ink: #18322c;
  --muted: #6d7d77;
  --line: #dbe5df;
  --line2: #eaf0ec;
  --brand: #246B62;
  --brand2: #246B62;
  --brand-soft: #eaf4ef;
  --card: #fff;
  --download-border: #9dbfb5;
  --shadow: 0 2px 10px rgba(27,55,47,.045);
  max-width: 1440px;
  padding: 0 28px;
  font-size: 14px;
}

.hcr h1,
.hcr h2,
.hcr h3,
.hcr h4,
.hcr h5,
.hcr h6 {
  font-family: Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Arial,sans-serif;
}

.hcr-eyebrow {
  margin-bottom: 5px;
  color: #39786f;
  font-size: 10.5px!important;
  letter-spacing: 1.45px;
}

.hcr-header {
  position: relative;
  align-items: center;
  margin: 0 -28px 18px;
  padding: 21px 28px 19px!important;
  background: rgba(255,255,255,.95);
  border-bottom: 1px solid #dbe4df;
  box-shadow: 0 4px 18px rgba(28,56,48,.025);
  backdrop-filter: blur(14px);
}

.hcr-header:before {
  content: "";
  position: absolute;
  left: 28px;
  bottom: -1px;
  width: 52px;
  height: 2px;
  background: var(--brand);
  border-radius: 999px;
}

.hcr h1 {
  margin: 0 0 4px!important;
  font-size: 32px!important;
  font-weight: 760;
  letter-spacing: -1px;
}

.hcr-header p {
  font-size: 12.5px!important;
}

.hcr-account {
  min-width: 220px;
  padding: 9px 12px;
  background: #f7faf8;
  border: 1px solid #e1e8e4;
  border-radius: 10px;
  text-align: left;
}

.hcr-account strong {
  font-size: 12.5px;
}

.hcr-account small {
  font-size: 10.5px;
}

.hcr-account a {
  margin-top: 5px;
  font-size: 11.5px;
}

.hcr-tabs {
  top: 0;
  gap: 5px;
  margin: 0 0 20px;
  padding: 5px;
  background: #edf2ef;
  border: 1px solid #dfe7e2;
  border-radius: 11px;
  box-shadow: 0 4px 12px rgba(29,57,49,.025);
}

.hcr-tabs a {
  min-height: 38px;
  padding: 8px 13px;
  border-radius: 8px;
  color: #687a73;
  font-size: 11.5px;
}

.hcr-tabs a:hover {
  background: rgba(255,255,255,.72);
  border-color: transparent;
  transform: none;
}

.hcr-tabs a.is-active {
  background: #fff;
  border-color: #d6e1da;
  color: #205f57;
  box-shadow: 0 2px 7px rgba(27,60,51,.06);
}

.hcr-tabs a[href*="view=locked"].is-active:after {
  font-size: 10.5px;
}

.hcr input:not([type=submit]),
.hcr select {
  height: var(--control-h);
  border-color: #cdd9d2;
  border-radius: 8px;
  background: #fff;
  font-size: 13px;
}

.hcr .hcr-button,
.hcr input[type=submit] {
  box-sizing: border-box;
  height: var(--control-h)!important;
  min-height: var(--control-h)!important;
  padding: 0 16px!important;
  line-height: 1;
}

.hcr .hcr-button:hover,
.hcr input[type=submit]:hover {
  transform: none;
}

.hcr .hcr-small {
  height: 44px!important;
  min-height: 44px!important;
  padding: 0 12px!important;
  font-size: 13px;
}

.hcr-filters {
  grid-template-columns: minmax(290px,2fr) minmax(128px,.62fr) minmax(128px,.62fr) auto auto;
  gap: 9px;
  margin-bottom: 14px;
  padding: 12px 13px;
  border-radius: 10px;
  box-shadow: none;
}

.hcr-filters label {
  font-size: 10.5px!important;
  color: #5d7069;
}

.hcr-filters input,
.hcr-filters select {
  margin-top: 4px;
}

.hcr-reset {
  font-size: 11.5px;
}

.hcr-results {
  margin: 14px 2px 8px;
  font-size: 11.5px;
}

.hcr-results strong {
  font-size: 12.5px;
}

.hcr-table-wrap {
  border-radius: 10px;
  box-shadow: var(--shadow);
}

.hcr-table {
  font-size: 12.5px;
}

.hcr-table th {
  position: sticky;
  top: 0;
  z-index: 2;
  padding: 10px 12px;
  background: #f3f7f5;
  color: #657871;
  font-size: 10.5px;
  letter-spacing: .75px;
}

.hcr-table td {
  padding: 12px;
  border-color: #edf1ef;
}

.hcr-table tbody tr:nth-child(even) td {
  background: #fcfdfc;
}

.hcr-table tbody tr:hover td {
  background: #f3f8f5;
}

.hcr-record {
  font-size: 12.5px;
}

.hcr-table small {
  margin-top: 2px;
  font-size: 10.5px;
}

.hcr-table code {
  font-size: 11.5px;
}

.hcr-status,
.hcr-store-pill,
.hcr-owner-pill {
  min-height: 23px;
  padding: 3px 7px;
  font-size: 10.5px;
}

.hcr-store-pill {
  min-width: 34px;
}

.hcr-owner-pill {
  max-width: 150px;
  overflow: hidden;
  text-overflow: ellipsis;
}

.hcr-back {
  margin: 2px 0 9px;
  font-size: 11.5px;
}

.hcr-profile-inline {
  margin: 0!important;
  border: 0!important;
  border-top: 1px solid var(--line2)!important;
  border-radius: 0!important;
}

.hcr-profile-inline p {
  margin-top: 12px!important;
}

.hcr-file-icon {
  font-size: 12px;
}

.hcr-empty {
  padding: 34px 20px;
  border-radius: 10px;
}

.hcr-empty h2 {
  font-size: 18px!important;
}

.hcr-pagination {
  padding: 15px;
  font-size: 11.5px;
}

@media (max-width:980px) {
  .hcr {
    padding: 0 18px;
  }
  .hcr-header {
    margin-left: -18px;
    margin-right: -18px;
    padding-left: 18px!important;
    padding-right: 18px!important;
  }
  .hcr-header:before {
    left: 18px;
  }
  .hcr-filters {
    grid-template-columns: 1fr 1fr 1fr;
  }
  .hcr-filters label.hcr-search {
    grid-column: 1/-1;
  }
}

@media (max-width:760px) {
  .hcr-header:before {
    left: 10px;
  }
  .hcr-account {
    width: 100%;
    min-width: 0;
  }
  .hcr-tabs {
    margin-bottom: 12px;
  }
  .hcr-filters {
    grid-template-columns: 1fr 1fr;
    padding: 10px;
  }
  .hcr-filters label.hcr-search {
    grid-column: 1/-1;
  }
}

@media (max-width:480px) {
  .hcr-filters {
    grid-template-columns: 1fr;
  }
  .hcr-filters label.hcr-search {
    grid-column: 1;
  }
}

.hcr-inline-action {
  display: inline;
  margin: 0;
}

.hcr .hcr-danger-button:focus-visible {
  outline: 3px solid rgba(180,35,24,.22)!important;
  outline-offset: 2px;
}

.hcr-notice {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 14px;
  padding: 11px 14px;
  border: 1px solid #cfe1d7;
  border-radius: 9px;
  background: #f1f8f4;
  color: #31584c;
  font-size: 12px;
}

.hcr-notice strong {
  font-size: 12.5px;
}

.hcr-notice span {
  color: #64776f;
}

.hcr-trash-note {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 14px;
  padding: 13px 15px;
  border: 1px solid #e3d7bd;
  border-radius: 10px;
  background: #fbf7ed;
  color: #6b5b35;
}

.hcr-trash-note strong {
  white-space: nowrap;
}

.hcr-trash-note span {
  font-size: 12px;
  color: #786a48;
}

.hcr-trash-table {
  min-width: 820px;
}

.hcr-delete-date {
  color: #9a4f36;
  font-size: 12px;
}

@media (max-width:760px) {
  .hcr-trash-note {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }
}

.hcr-status.is-cancelled {
  background: #f5e9e6;
  color: #9a4737;
}

.hcr .hcr-cancel-order-button {
  background: #fff!important;
  border: 1px solid #D98B84!important;
  color: #B42318!important;
  white-space: nowrap;
}

.hcr .hcr-cancel-order-button:hover,
.hcr .hcr-cancel-order-button:focus {
  background: #fbefec!important;
  border-color: #C85A52!important;
  color: #8F1D14!important;
  box-shadow: none!important;
}

.hcr .hcr-restore-order-button {
  background: #246b62!important;
  border-color: #246b62!important;
  color: #fff!important;
  white-space: nowrap;
}

.hcr-cancelled-notice {
  border-color: #e7c9c1;
  background: #fbf1ee;
  color: #8a4031;
}

.hcr-cancelled-notice span {
  color: #7b655f;
}

.hcr-cancelled-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin: 0 0 22px;
  padding: 18px 20px;
  border: 1px solid #e5c8c0;
  border-radius: 12px;
  background: #fbf1ee;
  color: #57362f;
}

.hcr-cancelled-panel h3 {
  margin: 4px 0 5px!important;
  font-size: 18px!important;
}

.hcr-cancelled-panel p {
  margin: 0;
  color: #77645e;
  font-size: 12.5px;
}

.hcr-cancelled-restore-form {
  margin: 0;
  flex: 0 0 auto;
}

@media (max-width:760px) {
  .hcr-cancelled-panel {
    align-items: flex-start;
    flex-direction: column;
  }
  .hcr-cancelled-restore-form,
  .hcr-cancelled-restore-form .hcr-button {
    width: 100%;
  }
}

.hcr-tabs .hcr-tabs-spacer {
  flex: 1 1 28px;
  min-width: 28px;
}

.hcr-tabs a.hcr-context-tab {
  min-height: 34px;
  padding: 7px 11px;
  align-self: center;
  border-color: #dce5e0;
  background: #f7faf8;
  color: #667970;
  font-size: 11.5px;
}

.hcr-tabs a.hcr-context-tab:hover {
  background: #fff;
  color: #205f57;
}

.hcr-tabs a.hcr-context-tab.is-context-active {
  background: #fff;
  border-color: #aac8bd;
  color: #205f57;
  box-shadow: 0 2px 7px rgba(27,60,51,.05);
}

@media (max-width:760px) {
  .hcr-tabs .hcr-tabs-spacer {
    flex: 1 0 18px;
    min-width: 18px;
  }
  .hcr-tabs a.hcr-context-tab {
    min-height: 33px;
    padding: 7px 10px;
  }
}

.hcr-filter-range {
  display: grid;
  grid-template-columns: minmax(0,1fr) minmax(0,1fr);
  gap: 10px;
  min-width: 0;
}

.hcr-filter-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  min-height: var(--control-h);
}

.hcr-filter-actions .hcr-button {
  min-width: 94px;
}

.hcr-reset-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 66px;
  height: var(--control-h);
  padding: 0 10px;
  border: 1px solid #d7e1dc;
  border-radius: 8px;
  background: #f8faf9;
  color: #45665d!important;
  font-size: 11.5px!important;
  font-weight: 750;
  text-decoration: none!important;
}

.hcr-reset-button:hover {
  background: #fff;
  border-color: #b9cdc4;
  color: #205f57!important;
}

.hcr-order-cancel-form {
  display: inline-flex;
  margin: 0;
}

@media (max-width:760px) {
  .hcr-filter-actions {
    justify-content: stretch;
  }
  .hcr-filter-actions .hcr-button,
  .hcr-filter-actions .hcr-reset-button {
    flex: 1 1 0;
  }
  .hcr-order-card-head .hcr-order-actions {
    flex-wrap: wrap;
  }
}

@media (max-width:480px) {
  .hcr-filter-range {
    grid-template-columns: 1fr;
  }
}

body .hcr .hcr-order-actions button.hcr-button.hcr-cancel-order-button,
body .hcr .hcr-order-actions .hcr-cancel-order-button {
  background: #B42318!important;
  border: 1px solid #B42318!important;
  color: #fff!important;
  -webkit-text-fill-color: #fff!important;
  opacity: 1!important;
  visibility: visible!important;
  text-shadow: none!important;
  box-shadow: none!important;
}

body .hcr .hcr-order-actions button.hcr-button.hcr-cancel-order-button:hover,
body .hcr .hcr-order-actions button.hcr-button.hcr-cancel-order-button:focus {
  background: #8F1D14!important;
  border-color: #8F1D14!important;
  color: #fff!important;
  -webkit-text-fill-color: #fff!important;
}

.hcr-state-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  min-height: 28px;
  padding: 4px 9px;
  border-radius: 999px;
  background: #eef4f1;
  color: #315e59;
  font-weight: 800;
  font-size: 11.5px;
  letter-spacing: .02em;
}

.hcr-order-delete-form {
  display: inline-flex;
  margin: 0;
}

.hcr-sales-status-pill {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 4px 9px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  background: #eef1ef;
  color: #33413a;
  white-space: nowrap;
}

.hcr-sales-status-pill.is-ready_to_lock {
  background: #e8f7ed;
  color: #27613b;
}

.hcr-follow-up-date {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 4px 9px;
  border-radius: 999px;
  background: #f3f4f6;
  color: #374151;
  font-weight: 700;
  white-space: nowrap;
}

.hcr-follow-up-date.is-today {
  background: #fff3cd;
  color: #8a5a00;
}

.hcr-follow-up-date.is-overdue {
  background: #fde8e8;
  color: #a61b1b;
}

.hcr-sr-only {
  position: absolute!important;
  width: 1px!important;
  height: 1px!important;
  padding: 0!important;
  margin: -1px!important;
  overflow: hidden!important;
  clip: rect(0,0,0,0)!important;
  white-space: nowrap!important;
  border: 0!important;
}

.hcr-inline-prelock-form {
  margin: 0;
}

.hcr-inline-prelock-control {
  box-sizing: border-box;
  min-height: 36px;
  border: 1px solid rgba(15,48,44,.16);
  border-radius: 10px;
  padding: 6px 28px 6px 9px;
  background: #fff;
  color: #243a35;
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.2
;
}

.hcr-inline-prelock-state {
  width: 82px;
}

.hcr-inline-prelock-store {
  width: 100px;
}

.hcr-inline-prelock-status {
  width: 126px;
}

.hcr-inline-prelock-owner {
  width: 142px;
}

.hcr-inline-prelock-date {
  width: 136px;
  padding-right: 8px;
}

.hcr-inline-prelock-control:focus {
  outline: 2px solid rgba(57,132,134,.22);
  outline-offset: 1px;
  border-color: #398486
;
}

.hcr-build-table tr.is-saving .hcr-inline-prelock-control {
  opacity: .58;
}

.hcr-build-table tr.is-saved td {
  background: rgba(232,247,237,.38);
}

.hcr-build-table tr.has-save-error td {
  background: rgba(253,232,232,.45);
}

.hcr-inline-prelock-date.is-today {
  border-color: #d6a74b;
  background: #fff9e9;
}

.hcr-inline-prelock-date.is-overdue {
  border-color: #d98585;
  background: #fff4f4;
}

.hcr-table-wrap:has(.hcr-open-records-table) {
  overflow-x: auto;
}

.hcr-open-records-table {
  width: 100%;
  min-width: 1244px!important;
  table-layout: auto
;
}

.hcr-open-records-table th:nth-child(1),
.hcr-open-records-table td:nth-child(1) {
  min-width: 150px;
}

.hcr-open-records-table th:nth-child(2),
.hcr-open-records-table td:nth-child(2) {
  min-width: 64px;
}

.hcr-open-records-table th:nth-child(3),
.hcr-open-records-table td:nth-child(3) {
  min-width: 110px;
}

.hcr-open-records-table th:nth-child(4),
.hcr-open-records-table td:nth-child(4) {
  min-width: 86px;
}

.hcr-open-records-table th:nth-child(5),
.hcr-open-records-table td:nth-child(5) {
  min-width: 100px;
}

.hcr-open-records-table th:nth-child(6),
.hcr-open-records-table td:nth-child(6) {
  min-width: 162px;
}

.hcr-open-records-table th:nth-child(7),
.hcr-open-records-table td:nth-child(7) {
  min-width: 138px;
}

.hcr-open-records-table th:nth-child(8),
.hcr-open-records-table td:nth-child(8) {
  min-width: 150px;
}

.hcr-open-records-table th:nth-child(9),
.hcr-open-records-table td:nth-child(9) {
  min-width: 105px;
}

.hcr-open-records-table th:nth-child(10),
.hcr-open-records-table td:nth-child(10) {
  min-width: 130px;
}

.hcr-open-records-table th:nth-child(11),
.hcr-open-records-table td:nth-child(11) {
  min-width: 112px;
}

.hcr-open-records-table .hcr-inline-prelock-control {
  font-family: inherit;
  font-size: inherit;
  font-weight: inherit;
  line-height: inherit
;
}

.hcr-open-records-table .hcr-inline-prelock-state {
  width: 86px;
}

.hcr-open-records-table .hcr-inline-prelock-store {
  width: 100px;
}

.hcr-open-records-table .hcr-inline-prelock-status {
  width: 138px;
}

.hcr-open-records-table .hcr-inline-prelock-owner {
  width: 162px;
}

.hcr-open-records-table .hcr-inline-prelock-date {
  width: 150px;
}

.hcr-open-records-table .hcr-inline-fixed {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  max-width: 100%;
  white-space: normal;
  overflow-wrap: anywhere
;
}

@media (max-width:760px) {
  .hcr {
    padding: 0 12px;
    font-size: 13px;
  }
  .hcr-header {
    gap: 10px;
    margin-left: -12px;
    margin-right: -12px;
    padding: 14px 12px 13px!important;
  }
  .hcr-header>div:first-child {
    min-width: 0;
  }
  .hcr h1 {
    font-size: 25px!important;
    line-height: 1.08;
  }
  .hcr-header p {
    font-size: 11.5px!important;
  }
  .hcr-account {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 2px 10px;
    padding: 9px 11px;
  }
  .hcr-account strong,
  .hcr-account small {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .hcr-account a {
    grid-column: 2;
    grid-row: 1/3;
    margin: 0;
    align-self: center;
  }
  .hcr-tabs {
    top: 0;
    gap: 4px;
    margin: 0 -2px 13px;
    padding: 4px;
    border-radius: 9px;
  }
  .hcr-tabs a {
    min-height: 36px;
    padding: 7px 10px;
    font-size: 11px;
  }
  .hcr-tabs .hcr-tabs-spacer {
    display: none;
  }
  .hcr-tabs a.hcr-context-tab {
    margin-left: auto;
  }
  .hcr input:not([type=submit]),
  .hcr select {
    font-size: 16px;
  }
}

/* v2.12.64: hide the entire portal header module on mobile (eyebrow, page title/subtitle, account/sign-out); desktop remains unchanged. */

@media (max-width:760px) {
  .hcr>.hcr-header {
    display: none!important;
  }
}

/* v2.12.65: keep the mobile portal tabs clear of the public site header after the portal header is hidden. */

@media (max-width:760px) {
  .hcr>.hcr-tabs {
    margin-top: 18px!important;
  }
}

/* v2.14.18 — grouped staff navigation + Standard Orders */

@media (min-width:761px) {
  .hcr .hcr-nav-group {
    position: relative;
    flex: 0 0 auto;
  }
  .hcr .hcr-nav-group>.hcr-nav-parent {
    gap: 6px;
  }
  .hcr .hcr-nav-caret {
    font-size: 12px;
    line-height: 1;
    opacity: .72;
    transform: translateY(-1px);
  }
  .hcr .hcr-submenu {
    position: absolute;
    left: 0;
    top: calc(100% + 7px);
    z-index: 80;
    display: none;
    min-width: 190px;
    padding: 6px;
    background: #fff;
    border: 1px solid #d9e4de;
    border-radius: 10px;
    box-shadow: 0 14px 34px rgba(25,54,46,.14);
  }
  .hcr .hcr-nav-group:hover>.hcr-submenu,
  .hcr .hcr-nav-group:focus-within>.hcr-submenu {
    display: block;
  }
  .hcr .hcr-submenu:before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: -8px;
    height: 8px;
  }
  .hcr .hcr-submenu a {
    display: flex;
    width: 100%;
    min-height: 36px;
    padding: 8px 10px;
    border: 0;
    border-radius: 7px;
    color: #5f726b;
    font-size: 11.5px;
  }
  .hcr .hcr-submenu a:hover {
    background: #f2f7f4;
    color: #205f57;
  }
  .hcr .hcr-submenu a.is-sub-active {
    background: #edf5f1;
    color: #205f57;
  }
}

.hcr .hcr-standard-create {
  margin: 0 0 14px;
  border: 1px solid #dbe5df;
  border-radius: 10px;
  background: #fff;
  box-shadow: var(--shadow);
}

.hcr .hcr-standard-create>summary {
  list-style: none;
  width: max-content;
  margin: 12px;
}

.hcr .hcr-standard-create>summary::-webkit-details-marker {
  display: none;
}

.hcr .hcr-standard-create[open]>summary {
  margin-bottom: 0;
}

.hcr .hcr-standard-form {
  padding: 14px;
}

.hcr .hcr-standard-form-grid {
  display: grid;
  grid-template-columns: repeat(5,minmax(0,1fr));
  gap: 12px;
  align-items: end;
}

.hcr .hcr-standard-form-tail {
  margin-top: 14px;
}

.hcr .hcr-standard-form label {
  display: block;
  margin: 0;
}

.hcr .hcr-standard-form label>span {
  margin: 0 0 5px;
}

.hcr .hcr-standard-form textarea {
  width: 100%;
  min-height: 88px;
  padding: 10px 12px;
  border: 1px solid #cdd9d2;
  border-radius: 8px;
  background: #fff;
  color: #233c38;
  font: inherit;
  resize: vertical;
}

.hcr .hcr-standard-form textarea:focus {
  outline: 0;
  border-color: #7aa59c;
  box-shadow: 0 0 0 3px rgba(40,107,101,.11);
}

.hcr .hcr-standard-form .hcr-standard-notes {
  grid-column: 1/-1;
}

.hcr .hcr-standard-help {
  margin: 12px 0 0;
  padding: 10px 12px;
  border-radius: 8px;
  background: #f3f7f5;
  color: #63756e;
  font-size: 11.5px;
}

.hcr .hcr-standard-form-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 12px;
}

.hcr .hcr-standard-status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 24px;
  padding: 3px 8px;
  border-radius: 999px;
  background: #eef2f0;
  color: #5f6f69;
  font-size: 10.5px;
  font-weight: 800;
  white-space: nowrap;
}

.hcr .hcr-standard-status.is-pending-review {
  background: #fff3da;
  color: #8a641d;
}

.hcr .hcr-standard-status.is-changes-requested {
  background: #fbebe7;
  color: #9a4935;
}

.hcr .hcr-standard-status.is-approved {
  background: #e8f3ed;
  color: #2f6c52;
}

.hcr .hcr-standard-status.is-in-production {
  background: #e8f0f6;
  color: #426477;
}

.hcr .hcr-standard-status.is-ready {
  background: #edf0f8;
  color: #4c5f8a;
}

.hcr .hcr-standard-status.is-delivered {
  background: #e5f1e9;
  color: #2a684f;
}

.hcr .hcr-standard-detail-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin: 2px 0 14px;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  box-shadow: var(--shadow);
}

.hcr .hcr-standard-detail-head h2 {
  margin: 0!important;
  font-size: 23px!important;
}

.hcr .hcr-standard-detail-head p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.hcr .hcr-standard-card-grid {
  display: grid;
  grid-template-columns: repeat(6,minmax(0,1fr));
  gap: 10px;
  margin: 0 0 14px;
}

.hcr .hcr-standard-card {
  min-width: 0;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  box-shadow: var(--shadow);
}

.hcr .hcr-standard-card>span {
  display: block;
  margin-bottom: 5px;
  color: #788981;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: .45px;
}

.hcr .hcr-standard-card>strong {
  display: block;
  overflow: hidden;
  color: #233d37;
  font-size: 13px;
  text-overflow: ellipsis;
}

.hcr .hcr-standard-card>small {
  display: block;
  margin-top: 3px;
  color: #89958f;
  font-size: 10.5px;
}

.hcr .hcr-standard-notes-card,
.hcr .hcr-standard-history,
.hcr .hcr-standard-edit {
  margin: 0 0 14px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  box-shadow: var(--shadow);
}

.hcr .hcr-standard-notes-card h3,
.hcr .hcr-standard-history h3 {
  margin: 0 0 8px!important;
  font-size: 15px!important;
}

.hcr .hcr-standard-notes-card p {
  margin: 0;
  color: #53665f;
  font-size: 12.5px;
}

.hcr .hcr-standard-review-panel {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  margin: 0 0 14px;
  padding: 16px 18px;
  border: 1px solid #e6d5a8;
  border-radius: 10px;
  background: #fff9e9;
}

.hcr .hcr-standard-review-panel.is-returned {
  border-color: #e4c8c0;
  background: #fbf1ee;
}

.hcr .hcr-standard-review-panel h3 {
  margin: 0 0 4px!important;
  font-size: 16px!important;
}

.hcr .hcr-standard-review-panel p {
  margin: 0;
  color: #6c6b5e;
  font-size: 11.5px;
}

.hcr .hcr-standard-review-actions {
  display: flex;
  flex: 0 0 auto;
}

.hcr .hcr-standard-review-actions form {
  margin: 0;
}

.hcr .hcr-standard-return-form {
  display: flex;
  align-items: center;
}

.hcr .hcr-standard-return-form input {
  min-width: 220px;
}

.hcr .hcr-standard-info {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 14px;
  padding: 12px 14px;
  border: 1px solid #e7dab7;
  border-radius: 9px;
  background: #fff9ec;
  color: #6e6653;
  font-size: 11.5px;
}

.hcr .hcr-standard-info strong {
  color: #765c27;
}

.hcr .hcr-standard-edit {
  padding: 0;
  overflow: hidden;
}

.hcr .hcr-standard-edit>summary {
  padding: 13px 16px;
  cursor: pointer;
  color: #294c44;
  font-size: 12px;
  font-weight: 800;
}

.hcr .hcr-standard-edit[open]>summary {
  border-bottom: 1px solid var(--line2);
}

.hcr .hcr-standard-history-list {
  display: flex;
  flex-direction: column;
}

.hcr .hcr-standard-history-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding: 10px 0;
  border-top: 1px solid var(--line2);
}

.hcr .hcr-standard-history-row:first-child {
  border-top: 0;
}

.hcr .hcr-standard-history-row strong {
  display: block;
  color: #324d46;
  font-size: 11.5px;
}

.hcr .hcr-standard-history-row span {
  display: block;
  margin-top: 2px;
  color: #74837e;
  font-size: 10.5px;
}

.hcr .hcr-standard-history-row small {
  flex: 0 0 auto;
  color: #8b9692;
  font-size: 10.5px;
  white-space: nowrap;
}

@media (max-width:1100px) {
  .hcr .hcr-standard-form-grid {
    grid-template-columns: repeat(3,minmax(0,1fr));
  }
  .hcr .hcr-standard-card-grid {
    grid-template-columns: repeat(3,minmax(0,1fr));
  }
}

@media (max-width:760px) {
  .hcr .hcr-primary-nav {
    overflow: visible;
    flex-wrap: wrap;
  }
  .hcr .hcr-nav-group {
    display: contents;
  }
  .hcr .hcr-nav-group>.hcr-nav-parent {
    order: 0;
  }
  .hcr .hcr-submenu {
    display: none;
    order: 10;
    flex: 1 0 100%;
    gap: 4px;
    width: 100%;
    padding: 4px 0 0;
    border-top: 1px solid #dce5e0;
  }
  .hcr .hcr-nav-group.is-active>.hcr-submenu {
    display: flex;
  }
  .hcr .hcr-submenu a {
    min-height: 32px;
    padding: 6px 9px;
    border-radius: 7px;
    background: #f7faf8;
    color: #667970;
    font-size: 10.5px;
  }
  .hcr .hcr-submenu a.is-sub-active {
    background: #fff;
    border-color: #c8d9d1;
    color: #205f57;
  }
  .hcr .hcr-standard-form-grid {
    grid-template-columns: 1fr 1fr;
  }
  .hcr .hcr-standard-card-grid {
    grid-template-columns: 1fr 1fr;
  }
  .hcr .hcr-standard-review-panel,
  .hcr .hcr-standard-review-actions,
  .hcr .hcr-standard-return-form {
    flex-direction: column;
  }
  .hcr .hcr-standard-review-actions,
  .hcr .hcr-standard-review-actions form,
  .hcr .hcr-standard-review-actions .hcr-button,
  .hcr .hcr-standard-return-form input {
    width: 100%;
  }
  .hcr .hcr-standard-detail-head {
    align-items: flex-start;
  }
}

@media (max-width:480px) {
  .hcr .hcr-standard-form-grid,
  .hcr .hcr-standard-card-grid {
    grid-template-columns: 1fr;
  }
  .hcr .hcr-standard-history-row {
    flex-direction: column;
    gap: 4px;
  }
}

/* v2.14.19 — single-row portal actions + complete Standard Order configuration/templates */

@media (min-width:761px) {
  .hcr .hcr-primary-nav>.hcr-context-tab {
    flex: 0 0 auto;
  }
}

.hcr .hcr-standard-create.is-open {
  overflow: hidden;
  margin: 0 0 14px;
  padding: 0;
  border: 1px solid #dbe5df;
  border-radius: 10px;
  background: #fff;
  box-shadow: var(--shadow);
}

.hcr .hcr-standard-create-head,
.hcr .hcr-standard-template-library-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 15px 16px;
  border-bottom: 1px solid var(--line2);
}

.hcr .hcr-standard-create-head h3,
.hcr .hcr-standard-template-library-head h3 {
  margin: 0!important;
  color: #203a34;
  font-size: 17px!important;
}

.hcr .hcr-standard-create-head p,
.hcr .hcr-standard-template-library-head p {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 11.5px;
}

.hcr .hcr-standard-create-close {
  flex: 0 0 auto;
  color: #697a73!important;
  font-size: 11.5px;
  text-decoration: none;
}

.hcr .hcr-standard-template-picker {
  display: grid;
  grid-template-columns: minmax(260px,520px) auto auto;
  align-items: end;
  gap: 8px;
  margin: 14px 14px 0;
  padding: 11px 12px;
  border: 1px solid #dfe8e3;
  border-radius: 9px;
  background: #f7faf8;
}

.hcr .hcr-standard-template-picker label,
.hcr .hcr-standard-template-save-row label {
  margin: 0;
  color: #51675f;
  font-size: 10.5px;
  font-weight: 750;
}

.hcr .hcr-standard-template-picker label>span,
.hcr .hcr-standard-template-save-row label>span {
  display: block;
  margin-bottom: 5px;
}

.hcr .hcr-standard-template-picker .hcr-reset {
  align-self: center;
  margin-top: 17px;
}

.hcr .hcr-standard-template-loaded {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 10px 14px 0;
  padding: 8px 11px;
  border-radius: 8px;
  background: #edf5f1;
  color: #5f716a;
  font-size: 11px;
}

.hcr .hcr-standard-template-loaded strong {
  color: #285e52;
}

.hcr .hcr-standard-template-save-row {
  display: grid;
  grid-template-columns: minmax(260px,1fr) auto;
  align-items: end;
  gap: 10px;
  margin-top: 14px;
  padding: 12px;
  border: 1px solid #e2e9e5;
  border-radius: 9px;
  background: #fafcfb;
}

.hcr .hcr-standard-config-editor,
.hcr .hcr-standard-configuration-card {
  margin: 16px 0 0;
  border: 1px solid #dbe5df;
  border-radius: 10px;
  background: #fff;
  overflow: hidden;
}

.hcr .hcr-standard-config-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 13px 15px;
  border-bottom: 1px solid #e3eae6;
}

.hcr .hcr-standard-config-title h3 {
  margin: 0!important;
  color: #203a34;
  font-size: 15px!important;
}

.hcr .hcr-standard-config-title>strong {
  flex: 0 0 auto;
  color: #32695b;
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: .45px;
}

.hcr .hcr-standard-config-group,
.hcr .hcr-standard-config-summary-group {
  padding: 14px 15px;
  border-top: 1px solid #edf1ef;
}

.hcr .hcr-standard-config-group:first-of-type,
.hcr .hcr-standard-config-summary-group:first-of-type {
  border-top: 0;
}

.hcr .hcr-standard-config-group h4,
.hcr .hcr-standard-config-summary-group h4 {
  margin: 0 0 9px!important;
  color: #536b63;
  font-size: 11px!important;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: .7px;
}

.hcr .hcr-standard-config-grid {
  display: grid;
  grid-template-columns: repeat(3,minmax(0,1fr));
  gap: 10px 12px;
}

.hcr .hcr-standard-config-field {
  min-width: 0;
}

.hcr .hcr-standard-config-field>span {
  margin: 0 0 5px!important;
  color: #40554e;
  line-height: 1.35;
}

.hcr .hcr-standard-config-field>span b {
  color: #b94a33;
}

.hcr .hcr-standard-other-input {
  margin-top: 6px;
}

.hcr .hcr-standard-other-input[hidden] {
  display: none!important;
}

.hcr .hcr-standard-config-unavailable {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin: 14px 0;
  padding: 12px 14px;
  border: 1px solid #e4c8c0;
  border-radius: 9px;
  background: #fbf1ee;
  color: #7c4a3e;
  font-size: 11.5px;
}

.hcr .hcr-standard-config-summary-grid {
  display: grid;
  grid-template-columns: repeat(3,minmax(0,1fr));
  gap: 8px 12px;
}

.hcr .hcr-standard-config-summary-item {
  min-width: 0;
  padding: 8px 10px;
  border-radius: 8px;
  background: #f8faf9;
}

.hcr .hcr-standard-config-summary-item span {
  display: block;
  color: #7a8983;
  font-size: 9.5px;
  text-transform: uppercase;
  letter-spacing: .35px;
}

.hcr .hcr-standard-config-summary-item strong {
  display: block;
  margin-top: 2px;
  overflow: hidden;
  color: #2d4942;
  font-size: 11.5px;
  text-overflow: ellipsis;
}

.hcr .hcr-standard-config-summary-item.is-missing strong,
.hcr .hcr-standard-configuration-card.is-incomplete .hcr-standard-config-title>strong {
  color: #a14b37;
}

.hcr .hcr-standard-template-library {
  margin: 0 0 14px;
  border: 1px solid #dbe5df;
  border-radius: 10px;
  background: #fff;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.hcr .hcr-standard-template-library .hcr-table-wrap {
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.hcr .hcr-standard-template-table {
  min-width: 760px;
}

.hcr .hcr-template-row-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.hcr .hcr-template-row-actions form {
  margin: 0;
}

.hcr .hcr-template-empty {
  margin: 12px;
  border: 0;
  box-shadow: none;
  background: #fafcfb;
}

@media (max-width:1100px) {
  .hcr .hcr-standard-config-grid,
  .hcr .hcr-standard-config-summary-grid {
    grid-template-columns: repeat(2,minmax(0,1fr));
  }
}

@media (max-width:760px) {
  .hcr .hcr-primary-nav>.hcr-context-tab {
    margin-left: 0!important;
  }
  .hcr .hcr-standard-create-head,
  .hcr .hcr-standard-template-library-head {
    align-items: flex-start;
    flex-direction: column;
  }
  .hcr .hcr-standard-template-picker {
    grid-template-columns: 1fr 1fr;
  }
  .hcr .hcr-standard-template-picker label {
    grid-column: 1/-1;
  }
  .hcr .hcr-standard-template-picker .hcr-reset {
    margin-top: 0;
  }
  .hcr .hcr-standard-template-save-row {
    grid-template-columns: 1fr;
  }
  .hcr .hcr-standard-template-save-row .hcr-button {
    width: 100%;
  }
  .hcr .hcr-standard-config-grid,
  .hcr .hcr-standard-config-summary-grid {
    grid-template-columns: 1fr;
  }
}

/* v2.14.20 — Standard Order production progress, files and unified portal UI */

.hcr,
.hcr button,
.hcr input,
.hcr select,
.hcr textarea {
  font-family: Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Arial,sans-serif;
}

.hcr button,
.hcr input,
.hcr select,
.hcr textarea {
  font-weight: 500;
}

.hcr textarea {
  width: 100%;
  border: 1px solid #cdd9d2;
  border-radius: 8px;
  background: #fff;
  color: #233c38;
  font-size: 13px;
  line-height: 1.45;
  box-shadow: 0 1px 2px rgba(26,52,45,.02);
  transition: border-color .16s,box-shadow .16s;
}

.hcr textarea:focus {
  outline: 0;
  border-color: #7aa59c;
  box-shadow: 0 0 0 3px rgba(40,107,101,.11);
}

.hcr .hcr-button,
.hcr button.hcr-button,
.hcr input[type=submit] {
  border-radius: 8px!important;
  background: #246b62!important;
  border-color: #246b62!important;
  color: #fff!important;
  font-family: inherit!important;
  font-size: 13px!important;
  font-weight: 700!important;
  letter-spacing: 0!important;
  box-shadow: none!important;
}

.hcr .hcr-button:hover,
.hcr button.hcr-button:hover,
.hcr input[type=submit]:hover {
  background: #205f57!important;
  border-color: #205f57!important;
  color: #fff!important;
  box-shadow: 0 3px 9px rgba(31,91,82,.13)!important;
}

.hcr .hcr-standard-create-close,
.hcr .hcr-reset {
  font-family: inherit;
  font-weight: 700;
}

.hcr .hcr-standard-form label,
.hcr .hcr-standard-template-picker label,
.hcr .hcr-standard-milestone-form label,
.hcr .hcr-standard-attachment-upload label {
  font-family: inherit;
  color: #40554e;
  font-size: 11px;
  font-weight: 700;
}

.hcr .hcr-standard-form label>span,
.hcr .hcr-standard-milestone-form label>span,
.hcr .hcr-standard-attachment-upload label>span {
  display: block;
  margin-bottom: 5px;
}

.hcr .hcr-standard-file-field {
  grid-column: 1/-1;
}

.hcr .hcr-standard-file-field small,
.hcr .hcr-standard-attachment-upload small {
  display: block;
  margin-top: 5px;
  color: #83908b;
  font-size: 10.5px;
  font-weight: 500;
}

.hcr input[type=file] {
  height: auto!important;
  min-height: 44px;
  padding: 7px 9px;
  background: #fbfcfb;
}

.hcr input[type=file]::file-selector-button {
  margin: -2px 9px -2px -3px;
  padding: 7px 10px;
  border: 1px solid #c7d6cf;
  border-radius: 7px;
  background: #fff;
  color: #315f55;
  font-family: inherit;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
}

@media (min-width:761px) {
  .hcr .hcr-primary-nav {
    display: flex!important;
    align-items: center!important;
    flex-wrap: nowrap!important;
    white-space: nowrap;
    overflow: visible;
  }
  .hcr .hcr-primary-nav>.hcr-nav-group,
  .hcr .hcr-primary-nav>a {
    flex: 0 0 auto;
  }
  .hcr .hcr-primary-nav>.hcr-tabs-spacer {
    display: block!important;
    flex: 1 1 auto!important;
    min-width: 18px;
  }
}

.hcr .hcr-standard-progress,
.hcr .hcr-standard-attachments,
.hcr .hcr-standard-progress-action {
  margin: 0 0 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.hcr .hcr-standard-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line2);
  background: #fbfcfb;
}

.hcr .hcr-standard-section-head h3,
.hcr .hcr-standard-progress-action h3 {
  margin: 0!important;
  color: #203a34;
  font-size: 15px!important;
  font-weight: 750;
}

.hcr .hcr-standard-section-head p,
.hcr .hcr-standard-progress-action p {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 11.5px;
}

.hcr .hcr-standard-shipment {
  flex: 0 0 auto;
  min-width: 220px;
  padding: 8px 10px;
  border: 1px solid #dce6e1;
  border-radius: 8px;
  background: #fff;
}

.hcr .hcr-standard-shipment span {
  display: block;
  color: #7b8984;
  font-size: 9.5px;
  font-weight: 750;
  text-transform: uppercase;
  letter-spacing: .45px;
}

.hcr .hcr-standard-shipment strong {
  display: block;
  margin-top: 2px;
  color: #2b4a42;
  font-size: 12px;
}

.hcr .hcr-standard-progress-grid {
  display: grid;
  grid-template-columns: repeat(6,minmax(0,1fr));
  gap: 0;
  padding: 14px 16px;
}

.hcr .hcr-standard-progress-step {
  position: relative;
  min-width: 0;
  padding: 10px 12px;
  border-left: 1px solid #e7eeea;
  background: #fafcfb;
}

.hcr .hcr-standard-progress-step:first-child {
  border-left: 0;
  border-radius: 8px 0 0 8px;
}

.hcr .hcr-standard-progress-step:last-child {
  border-radius: 0 8px 8px 0;
}

.hcr .hcr-standard-progress-step span {
  display: block;
  color: #7a8983;
  font-size: 9.5px;
  font-weight: 750;
  text-transform: uppercase;
  letter-spacing: .35px;
}

.hcr .hcr-standard-progress-step strong {
  display: block;
  margin-top: 3px;
  color: #8d9994;
  font-size: 12px;
}

.hcr .hcr-standard-progress-step.is-complete {
  background: #eef6f2;
}

.hcr .hcr-standard-progress-step.is-complete strong {
  color: #2e6858;
}

.hcr .hcr-standard-progress-action {
  display: grid;
  grid-template-columns: minmax(220px,.7fr) minmax(520px,1.5fr);
  align-items: end;
  gap: 18px;
  padding: 15px 16px;
}

.hcr .hcr-standard-milestone-form {
  display: grid;
  grid-template-columns: minmax(155px,.7fr) minmax(220px,1fr) auto;
  align-items: end;
  gap: 9px;
  margin: 0;
}

.hcr .hcr-standard-milestone-form label {
  margin: 0;
}

.hcr .hcr-standard-milestone-form .hcr-standard-milestone-file input[type=file] {
  max-width: 100%;
}

.hcr .hcr-standard-review-panel .hcr-standard-milestone-form {
  min-width: 560px;
}

.hcr .hcr-standard-review-panel {
  align-items: flex-start;
}

.hcr .hcr-standard-review-copy {
  min-width: 0;
  flex: 1 1 auto;
}

.hcr .hcr-standard-review-actions {
  align-items: flex-end;
  flex-direction: column;
}

.hcr .hcr-standard-return-form {
  width: 100%;
  justify-content: flex-end;
}

.hcr .hcr-standard-missing {
  margin-top: 10px;
  padding: 10px 12px;
  border: 1px solid #e5cfaa;
  border-radius: 8px;
  background: #fffdf6;
  color: #725b2d;
}

.hcr .hcr-standard-missing strong {
  display: block;
  color: #755922;
  font-size: 11.5px;
}

.hcr .hcr-standard-missing ul {
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: 2px 18px;
  margin: 6px 0;
  padding-left: 17px;
  color: #7b6a48;
  font-size: 10.5px;
}

.hcr .hcr-standard-missing span {
  display: block;
  color: #8a7854;
  font-size: 10.5px;
}

.hcr .hcr-standard-attachments {
  padding: 0;
}

.hcr .hcr-standard-files-list {
  display: flex;
  flex-direction: column;
  padding: 0 16px;
}

.hcr .hcr-standard-file-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 11px 0;
  border-top: 1px solid var(--line2);
  color: inherit!important;
  text-decoration: none!important;
}

.hcr .hcr-standard-file-row:first-child {
  border-top: 0;
}

.hcr .hcr-standard-file-row:hover strong {
  color: var(--brand);
}

.hcr .hcr-standard-file-row strong {
  display: block;
  color: #2d4942;
  font-size: 11.5px;
}

.hcr .hcr-standard-file-row span {
  display: block;
  margin-top: 2px;
  color: #7e8d87;
  font-size: 10.5px;
}

.hcr .hcr-standard-file-row small {
  flex: 0 0 auto;
  color: #7d8a85;
  font-size: 10.5px;
  white-space: nowrap;
}

.hcr .hcr-standard-attachments>.hcr-muted {
  margin: 13px 16px;
}

.hcr .hcr-standard-attachment-upload {
  display: grid;
  grid-template-columns: minmax(280px,1fr) auto;
  align-items: end;
  gap: 10px;
  margin: 0;
  padding: 12px 16px;
  border-top: 1px solid var(--line2);
  background: #fafcfb;
}

.hcr .hcr-standard-attachment-upload label {
  margin: 0;
}

.hcr .hcr-standard-config-title,
.hcr .hcr-standard-create-head,
.hcr .hcr-standard-template-library-head {
  background: #f7faf8;
}

.hcr .hcr-standard-config-field>span {
  min-height: 0!important;
  font-size: 11px;
  font-weight: 700;
}

.hcr .hcr-standard-config-summary-item.is-missing {
  background: #fff5ef;
}

.hcr .hcr-standard-config-summary-item.is-missing strong {
  color: #a14b37;
}

.hcr .hcr-standard-card>span,
.hcr .hcr-standard-config-summary-item span {
  font-family: inherit;
  font-weight: 750;
}

@media (max-width:1120px) {
  .hcr .hcr-standard-progress-grid {
    grid-template-columns: repeat(3,minmax(0,1fr));
    gap: 8px;
  }
  .hcr .hcr-standard-progress-step,
  .hcr .hcr-standard-progress-step:first-child,
  .hcr .hcr-standard-progress-step:last-child {
    border: 0;
    border-radius: 8px;
  }
  .hcr .hcr-standard-progress-action {
    grid-template-columns: 1fr;
    align-items: stretch;
  }
  .hcr .hcr-standard-review-panel .hcr-standard-milestone-form {
    min-width: 0;
  }
}

@media (max-width:760px) {
  .hcr .hcr-standard-progress-grid {
    grid-template-columns: 1fr 1fr;
  }
  .hcr .hcr-standard-section-head {
    align-items: flex-start;
    flex-direction: column;
  }
  .hcr .hcr-standard-shipment {
    width: 100%;
    min-width: 0;
  }
  .hcr .hcr-standard-milestone-form {
    grid-template-columns: 1fr;
    align-items: stretch;
    width: 100%;
  }
  .hcr .hcr-standard-milestone-form .hcr-button {
    width: 100%;
  }
  .hcr .hcr-standard-missing ul {
    grid-template-columns: 1fr;
  }
  .hcr .hcr-standard-attachment-upload {
    grid-template-columns: 1fr;
  }
  .hcr .hcr-standard-attachment-upload .hcr-button {
    width: 100%;
  }
  .hcr .hcr-standard-file-row {
    align-items: flex-start;
    flex-direction: column;
    gap: 3px;
  }
  .hcr .hcr-standard-return-form {
    align-items: stretch;
  }
}

@media (max-width:480px) {
  .hcr .hcr-standard-progress-grid {
    grid-template-columns: 1fr;
  }
}

.hcr .hcr-standard-status.is-shipped {
  background: #eaf3f7;
  color: #376476;
}

/* v2.14.23 — compact Standard Order production overview + recent Open Records window */

.hcr .hcr-standard-table {
  min-width: 1120px;
}

.hcr .hcr-results-with-action>div {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 10px;
}

.hcr .hcr-history-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  padding: 5px 10px;
  border: 1px solid #b9ccc4;
  border-radius: 7px;
  background: #fff;
  color: #315f55!important;
  font-size: 10.5px;
  font-weight: 750;
  text-decoration: none!important;
  white-space: nowrap;
}

.hcr .hcr-history-toggle:hover {
  border-color: #91ada3;
  background: #f4f8f6;
  color: #28584e!important;
}

.hcr .hcr-history-toggle.is-muted {
  border-color: #d4dfda;
  color: #667970!important;
}

@media (max-width:760px) {
  .hcr .hcr-results-with-action {
    align-items: flex-start;
    flex-direction: column;
  }
  .hcr .hcr-results-with-action>div {
    align-items: flex-start;
    flex-direction: column;
    gap: 1px;
  }
}

/* v2.14.25 — three-colour Standard Order action hierarchy */

.hcr {
  --action-primary: #B45A00;
  --action-primary-hover: #964A00;
  --action-secondary: #246B62;
  --action-secondary-hover: #205F57;
  --action-danger: #B42318;
  --action-danger-hover: #8F1D14;
}

/* 1. Orange = commit / approve / advance */

.hcr .hcr-primary-button,
.hcr button.hcr-primary-button,
.hcr a.hcr-primary-button {
  background: var(--action-primary)!important;
  border-color: var(--action-primary)!important;
  color: #fff!important;
  -webkit-text-fill-color: #fff!important;
  box-shadow: none!important;
}

.hcr .hcr-primary-button:hover,
.hcr .hcr-primary-button:focus {
  background: var(--action-primary-hover)!important;
  border-color: var(--action-primary-hover)!important;
  color: #fff!important;
  box-shadow: 0 3px 9px rgba(150,74,0,.18)!important;
}

/* 2. Teal = utility / open / search / upload / template */

.hcr .hcr-secondary-button,
.hcr button.hcr-secondary-button,
.hcr a.hcr-secondary-button {
  background: var(--action-secondary)!important;
  border-color: var(--action-secondary)!important;
  color: #fff!important;
  -webkit-text-fill-color: #fff!important;
  box-shadow: none!important;
}

.hcr .hcr-secondary-button:hover,
.hcr .hcr-secondary-button:focus {
  background: var(--action-secondary-hover)!important;
  border-color: var(--action-secondary-hover)!important;
  color: #fff!important;
  box-shadow: 0 3px 9px rgba(31,91,82,.14)!important;
}

/* 3. Red = destructive / return */

.hcr .hcr-danger-button,
.hcr button.hcr-danger-button,
.hcr a.hcr-danger-button,
body .hcr .hcr-cancel-order-button {
  background: var(--action-danger)!important;
  border-color: var(--action-danger)!important;
  color: #fff!important;
  -webkit-text-fill-color: #fff!important;
  box-shadow: none!important;
}

.hcr .hcr-danger-button:hover,
.hcr .hcr-danger-button:focus,
body .hcr .hcr-cancel-order-button:hover,
body .hcr .hcr-cancel-order-button:focus {
  background: var(--action-danger-hover)!important;
  border-color: var(--action-danger-hover)!important;
  color: #fff!important;
  box-shadow: 0 3px 9px rgba(143,29,20,.18)!important;
}

.hcr .hcr-primary-button:focus-visible {
  outline: 3px solid rgba(180,90,0,.22)!important;
  outline-offset: 2px;
}

.hcr .hcr-secondary-button:focus-visible {
  outline: 3px solid rgba(36,107,98,.20)!important;
  outline-offset: 2px;
}

/* + New is the main action in the Standard Order header. */

.hcr .hcr-tabs a.hcr-context-tab.hcr-new-action {
  background: var(--action-primary)!important;
  border-color: var(--action-primary)!important;
  color: #fff!important;
}

.hcr .hcr-tabs a.hcr-context-tab.hcr-new-action:hover,
.hcr .hcr-tabs a.hcr-context-tab.hcr-new-action.is-context-active {
  background: var(--action-primary-hover)!important;
  border-color: var(--action-primary-hover)!important;
  color: #fff!important;
  box-shadow: none!important;
}

/* Keep action groups compact and visually ordered. */

.hcr .hcr-standard-form-actions,
.hcr .hcr-template-row-actions,
.hcr .hcr-filter-actions,
.hcr .hcr-standard-review-actions,
.hcr .hcr-standard-return-form {
  gap: 8px;
}

.hcr .hcr-standard-form-actions .hcr-primary-button {
  min-width: 168px;
}

.hcr .hcr-standard-template-save-row .hcr-secondary-button {
  min-width: 142px;
}

.hcr .hcr-template-row-actions .hcr-button {
  min-width: 68px;
}

.hcr .hcr-standard-review-actions .hcr-button {
  min-width: 132px;
}

.hcr .hcr-standard-milestone-form .hcr-primary-button {
  min-width: 132px;
}

.hcr .hcr-standard-attachment-upload .hcr-secondary-button {
  min-width: 92px;
}

@media (max-width:760px) {
  .hcr .hcr-standard-form-actions .hcr-button,
  .hcr .hcr-standard-review-actions .hcr-button,
  .hcr .hcr-standard-return-form .hcr-button {
    width: 100%;
  }
}

/* Records homepage: compact date labels retain native date inputs and ISO values. */

.hcr .hcr-compact-date {
  position: relative;
  display: inline-block;
  max-width: 100%;
  vertical-align: middle;
}

.hcr .hcr-compact-date::after {
  content: attr(data-date-label);
  position: absolute;
  left: 12px;
  right: 30px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  color: #40554e;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  font-size: inherit;
}

.hcr .hcr-compact-date:not(:focus-within) input[type="date"] {
  color: transparent;
}

.hcr .hcr-compact-date:not(:focus-within) input[type="date"]::-webkit-datetime-edit {
  color: transparent;
}

.hcr .hcr-compact-date:focus-within::after {
  display: none;
}

.hcr .hcr-records-table .hcr-track-column {
  min-width: 112px;
  text-align: center;
  padding-left: 20px;
  padding-right: 24px;
  white-space: nowrap;
}

/* Unified Custom / Standard Order filtering */

.hcr .hcr-order-quick-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  align-items: center;
  margin: 0 0 12px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
}

.hcr .hcr-order-quick {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 32px;
  padding: 6px 11px;
  border: 1px solid #dbe5e1;
  border-radius: 7px;
  background: #f8faf9;
  color: #35564e!important;
  text-decoration: none!important;
  font-size: 12px;
  font-weight: 650;
  white-space: nowrap;
}

.hcr .hcr-order-quick strong {
  font-size: 11px;
  font-weight: 750;
  opacity: .8;
}

.hcr .hcr-order-quick:hover {
  border-color: #719d91;
  background: #f0f7f4;
}

.hcr .hcr-order-quick.is-active {
  background: #386e64;
  border-color: #386e64;
  color: #fff!important;
}

.hcr .hcr-order-advanced {
  grid-column: 1/-1;
  min-width: 0;
  margin: 2px 0;
}

.hcr .hcr-order-advanced summary {
  width: max-content;
  cursor: pointer;
  color: #416c62;
  font-size: 12px;
  font-weight: 700;
  padding: 6px 0;
}

.hcr .hcr-order-advanced .hcr-filter-range,
.hcr .hcr-order-dates {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  padding: 8px 0;
}

.hcr .hcr-order-advanced label {
  min-width: 145px;
  flex: 1;
  max-width: 250px;
}

.hcr .hcr-order-advanced label span {
  display: block;
  margin-bottom: 5px;
}

@media (max-width:760px) {
  .hcr .hcr-order-quick-filters {
    padding: 9px;
  }
  .hcr .hcr-order-quick {
    font-size: 11px;
  }
}

/* v2.14.37 — distinct stage colors for both order lists. */

.hcr .hcr-order-quick[data-stage="all"] {
  --stage-bg: #e8f2ef;
  --stage-border: #b6d3ca;
  --stage-ink: #28594f;
  --stage-solid: #326a60;
}

.hcr .hcr-order-quick[data-stage="factory_confirm"] {
  --stage-bg: #f1ecfa;
  --stage-border: #cfc0ea;
  --stage-ink: #5b3f8c;
  --stage-solid: #64479a;
}

.hcr .hcr-order-quick[data-stage="3d_pending"] {
  --stage-bg: #fff4de;
  --stage-border: #ebd29c;
  --stage-ink: #865810;
  --stage-solid: #986713;
}

.hcr .hcr-order-quick[data-stage="production_group"] {
  --stage-bg: #e8f1fc;
  --stage-border: #b5cce9;
  --stage-ink: #275582;
  --stage-solid: #326592;
}

.hcr .hcr-order-quick[data-stage="shipped_group"] {
  --stage-bg: #e8f4e7;
  --stage-border: #b7d8b4;
  --stage-ink: #326c37;
  --stage-solid: #39783e;
}

.hcr .hcr-order-quick[data-stage] {
  background: var(--stage-bg);
  border-color: var(--stage-border);
  color: var(--stage-ink)!important;
}

.hcr .hcr-order-quick[data-stage]:hover {
  border-color: var(--stage-solid);
  box-shadow: inset 0 0 0 1px var(--stage-solid);
}

.hcr .hcr-order-quick[data-stage].is-active {
  background: var(--stage-solid);
  border-color: var(--stage-solid);
  color: #fff!important;
}

.hcr .hcr-order-quick[data-stage]:focus-visible {
  outline: 2px solid var(--stage-solid);
  outline-offset: 3px;
}

/* v2.14.38 — synchronized Build Status colours for Custom and Standard. */

.hcr .hcr-status[data-stage="factory_confirm"],
.hcr .hcr-standard-status[data-stage="factory_confirm"] {
  background: #f1ecfa!important;
  color: #5b3f8c!important;
}

.hcr .hcr-status[data-stage="3d_pending"],
.hcr .hcr-standard-status[data-stage="3d_pending"] {
  background: #fff4de!important;
  color: #865810!important;
}

.hcr .hcr-status[data-stage="production_group"],
.hcr .hcr-standard-status[data-stage="production_group"] {
  background: #e8f1fc!important;
  color: #275582!important;
}

.hcr .hcr-status[data-stage="shipped_group"],
.hcr .hcr-standard-status[data-stage="shipped_group"] {
  background: #e8f4e7!important;
  color: #326c37!important;
}

/* Shared advanced-date popover used by Custom and Standard Search forms.
   Grid columns and action layout are owned by build-records-ui-polish.css. */

@media (min-width:761px) {
  .hcr form.hcr-filters .hcr-order-advanced {
    position: relative;
    z-index: 12;
    align-self: end!important;
    margin: 0!important;
  }
  .hcr form.hcr-filters .hcr-order-advanced summary {
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: var(--control-h);
    min-height: var(--control-h);
    padding: 0 10px!important;
    border: 1px solid #cbd9d2;
    border-radius: 8px;
    background: #f7faf8;
    color: #315b53;
    white-space: nowrap;
    font-size: 12px;
    line-height: 1.2;
  }
  .hcr form.hcr-filters .hcr-order-advanced[open] summary {
    background: #edf6f1;
    border-color: #7eab99;
  }
  .hcr form.hcr-filters .hcr-order-advanced > .hcr-filter-range,
  .hcr form.hcr-filters .hcr-order-advanced > .hcr-order-dates {
    position: absolute;
    right: 0;
    top: calc(100% + 6px);
    z-index: 25;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 9px;
    width: 360px;
    max-width: calc(100vw - 48px);
    padding: 14px!important;
    background: #fff;
    border: 1px solid #d8e4dc;
    border-radius: 10px;
    box-shadow: 0 12px 32px rgba(25,57,48,.13);
  }
  .hcr form.hcr-filters .hcr-order-advanced label {
    max-width: none;
    min-width: 0;
  }
}

@media (max-width:760px) {
  .hcr form.hcr-filters .hcr-order-advanced summary {
    min-height: 36px;
    /* Same outlined control as desktop so Filters reads as a button. */
    border: 1px solid #cbd9d2;
    border-radius: 8px;
    background: #f7faf8;
    color: #315b53;
  }
  .hcr form.hcr-filters .hcr-order-advanced[open] summary {
    background: #edf6f1;
    border-color: #7eab99;
  }
}

/* v2.14.43: optional Standard Order 3D request/upload/internal confirmation */

.hcr .hcr-standard-renderings {
  margin: 0 0 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.hcr .hcr-standard-renderings>.hcr-standard-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 15px 16px;
  border-bottom: 1px solid var(--line2);
}

.hcr .hcr-standard-render-badge {
  display: inline-flex;
  padding: 5px 10px;
  border-radius: 999px;
  background: #edf2f0;
  color: #45635b;
  font-weight: 750;
  font-size: 11px;
  white-space: nowrap;
}

.hcr .hcr-standard-render-badge.is-awaiting,
.hcr .hcr-standard-render-badge.is-pending {
  background: #fff4de;
  color: #865810;
}

.hcr .hcr-standard-render-badge.is-confirmed {
  background: #e8f4e7;
  color: #326c37;
}

.hcr .hcr-standard-render-form {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  gap: 12px;
  padding: 13px 16px;
  border-top: 1px solid var(--line2);
}

.hcr .hcr-standard-render-form label {
  flex: 1 1 300px;
  min-width: 200px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.hcr .hcr-standard-render-form label>span {
  font-size: 11.5px;
  font-weight: 700;
  color: #36564d;
}

.hcr .hcr-standard-render-form input[type=file],
.hcr .hcr-standard-render-form textarea {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 8px;
  font: inherit;
  background: #fff;
}

.hcr .hcr-standard-render-form small,
.hcr .hcr-standard-render-hint {
  color: var(--muted);
  font-size: 11px;
}

.hcr .hcr-standard-render-hint {
  margin: 14px 16px;
}

.hcr .hcr-standard-render-metadata {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 12px 16px;
  font-size: 11px;
  color: #587269;
}

.hcr .hcr-standard-renderings .hcr-standard-files-list {
  padding: 0 16px;
}

@media (max-width:760px) {
  .hcr .hcr-standard-renderings>.hcr-standard-section-head {
    align-items: flex-start;
    flex-direction: column;
  }
  .hcr .hcr-standard-render-form {
    flex-direction: column;
    align-items: stretch;
  }
  .hcr .hcr-standard-render-form label {
    flex: auto;
    min-width: 0;
  }
}

/* v2.14.44 — Standard Order 3D revision feedback & private customer-review link */

.hcr .hcr-standard-feedback-list {
  margin: 12px 16px;
  border: 1px solid #f0d8ba;
  border-radius: 10px;
  background: #fffbf4;
  overflow: hidden;
}

.hcr .hcr-standard-feedback-list h4 {
  margin: 0;
  padding: 12px 14px;
  border-bottom: 1px solid #f1e1c8;
  font-size: 13px;
  color: #7b541e;
}

.hcr .hcr-standard-feedback-item {
  padding: 12px 14px;
  border-bottom: 1px solid #f3e6d4;
}

.hcr .hcr-standard-feedback-item:last-child {
  border: 0;
}

.hcr .hcr-standard-feedback-item strong {
  font-size: 12px;
  color: #403c31;
}

.hcr .hcr-standard-feedback-item small {
  display: block;
  color: #817c71;
  font-size: 11px;
  margin-top: 4px;
}

.hcr .hcr-standard-feedback-item p {
  font-size: 12.5px;
  white-space: normal;
  margin: 8px 0 0;
  line-height: 1.65;
}

/* v2.14.45 — internal 3D feedback shared by both order workflows */

.hcr .hcr-custom-render-feedback {
  padding: 14px 16px;
  margin: 12px 0;
  border: 1px solid #dce5df;
  border-radius: 10px;
  background: #f8fbf9;
}

.hcr .hcr-custom-render-feedback h4 {
  font-size: 13px;
  margin: 5px 0 12px;
}

.hcr .hcr-custom-render-feedback .hcr-standard-render-form {
  margin: 12px 0 0;
}

.hcr .hcr-standard-render-badge.is-changes_requested {
  background: #fff0e6;
  color: #9b4e1b;
}

/* v2.14.47 — single review action row, with collapsed revision request form */

.hcr .hcr-3d-review-actions {
  margin-top: 12px;
}

.hcr .hcr-3d-confirm-form {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
}

.hcr .hcr-3d-confirm-note {
  color: #64756e;
  font-size: 11.5px;
}

.hcr .hcr-3d-confirm-note>summary {
  cursor: pointer;
}

.hcr .hcr-3d-confirm-note label {
  display: grid;
  gap: 6px;
  margin-top: 8px;
  font-size: 11.5px;
}

.hcr .hcr-3d-confirm-note textarea {
  min-width: 280px;
  max-width: 100%;
  padding: 8px;
  border: 1px solid #cddbd2;
  border-radius: 7px;
  font: inherit;
}

.hcr .hcr-3d-review-actions summary:focus-visible {
  outline: 2px solid #356e63;
  outline-offset: 3px;
}

.hcr .hcr-3d-standard-actions {
  border-top: 1px solid var(--line2);
  padding: 14px 16px;
}

@media (max-width:760px) {
  .hcr .hcr-3d-confirm-note textarea {
    min-width: 0;
    width: 100%;
  }
}

/* v2.14.48 — unified staff 3D decision row and collapsed revision note */

.hcr .hcr-3d-review-actions {
  display: flex;
  align-items: center;
  gap: 9px;
  flex-wrap: wrap;
  margin: 12px 0 0;
}

.hcr .hcr-3d-review-actions>form {
  margin: 0;
}

.hcr .hcr-3d-review-actions>button,
.hcr .hcr-3d-review-actions>.hcr-3d-confirm-form>.hcr-button {
  min-height: 40px;
  min-width: 155px;
  white-space: nowrap;
}

.hcr .hcr-3d-change-panel {
  display: grid;
  gap: 12px;
  margin: 12px 0 0;
  padding: 15px;
  border: 1px solid #d9e5dd;
  border-radius: 9px;
  background: #f8fbf9;
  width: 100%;
  box-sizing: border-box;
}

.hcr .hcr-3d-change-panel[hidden] {
  display: none!important;
}

.hcr .hcr-3d-change-panel label {
  min-width: 0;
  flex: auto;
  width: 100%;
}

.hcr .hcr-3d-change-panel textarea {
  width: 100%;
  min-height: 90px;
  box-sizing: border-box;
  resize: vertical;
}

.hcr .hcr-3d-change-panel-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  width: 100%;
}

.hcr .hcr-3d-standard-actions {
  padding-bottom: 4px;
}

@media (max-width:600px) {
  .hcr .hcr-3d-review-actions>button,
  .hcr .hcr-3d-review-actions>.hcr-3d-confirm-form {
    flex: 1 1 auto;
  }
  .hcr .hcr-3d-review-actions>.hcr-3d-confirm-form>.hcr-button {
    width: 100%;
    min-width: 0;
  }
  .hcr .hcr-3d-review-actions>button {
    min-width: 0;
  }
  .hcr .hcr-3d-change-panel-actions>* {
    flex: 1;
  }
}

/* v2.14.51 — Factory staff language preference; no layout changes for other roles. */

.hcr .hcr-staff-language {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  align-self: center;
  border: 1px solid #e2e9e5;
  border-radius: 10px;
  padding: 3px;
  background: #f6f8f7;
  margin-right: 12px;
  white-space: nowrap;
}

.hcr .hcr-staff-language a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  padding: 5px 11px;
  border-radius: 7px;
  text-decoration: none!important;
  color: #647770;
  font-size: 12px;
  font-weight: 650;
  line-height: 1.25;
}

.hcr .hcr-staff-language a.is-active {
  background: #376f60;
  color: #fff!important;
  box-shadow: 0 1px 3px rgba(0,0,0,.08);
}

.hcr .hcr-staff-language a:focus-visible {
  outline: 2px solid #c27b44;
  outline-offset: 2px;
}

@media (max-width:640px) {
  .hcr .hcr-staff-language {
    margin-right: 4px;
  }
  .hcr .hcr-staff-language a {
    padding: 5px 8px;
    font-size: 11px;
  }
}

.hcr .hcr-staff-language-bar {
  display: none;
}

.hcr .hcr-staff-language-config {
  display: flex;
  justify-content: flex-end;
  margin: 0 0 12px;
}

@media (max-width:760px) {
  .hcr .hcr-staff-language-bar {
    display: flex;
    justify-content: flex-end;
    margin: 0 0 10px;
  }
  .hcr .hcr-staff-language {
    margin-right: 0;
  }
}

/* v2.14.52 — optional bilingual pre-login screen (role not yet known). */

.hcr .hcr-login-language {
  display: flex;
  gap: 6px;
  justify-content: flex-end;
  margin: 0 0 10px;
}

.hcr .hcr-login-language a {
  font-size: 12px;
  font-weight: 650;
  border: 1px solid #dce5e1;
  padding: 6px 12px;
  border-radius: 8px;
  color: #547167;
  text-decoration: none;
}

.hcr .hcr-login-language a.is-active {
  background: #356f60;
  color: #fff;
  border-color: #356f60;
}

.hcr-sales-status-pill.is-following {
  background: #e7f0fc;
  color: #285d8b;
}

.hcr-sales-status-pill.is-unconverted {
  background: #ffe8e3;
  color: #945047;
}

.hcr .hcr-standard-status.is-cancelled {
  background: #eef0f2;
  color: #5b6470;
}

.hcr .hcr-standard-history-row span {
  white-space: pre-line;
}

/* Build Status badges stack vertically, so the column is only as wide as the
   widest badge (side-by-side inline badges made the column far too wide). */
.hcr-build-status-stack {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
}

.hcr-build-status-stack .hcr-config-change-list-pill {
  margin: 0;
}

/* Locked-order configuration approval indicator. */

.hcr-config-change-list-pill {
  display: inline-block;
  margin: 4px 0 0;
  padding: 4px 8px;
  border-radius: 8px;
  background: #fff1df;
  border: 1px solid #f2af65;
  color: #8d4800;
  font-size: 11px;
  font-weight: 750;
  line-height: 1.25;
  white-space: normal;
}


/* Standard Specs: per-model standard configuration with two-person approval. */
.hcr .hcr-standard-spec-library,
.hcr .hcr-standard-spec-detail {
  margin: 0 0 18px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  box-shadow: var(--shadow);
}

.hcr .hcr-standard-spec-detail>section,
.hcr .hcr-standard-spec-detail>details,
.hcr .hcr-standard-spec-library>.hcr-table-wrap,
.hcr .hcr-spec-pending-creates {
  margin: 14px 16px;
}

.hcr .hcr-spec-head-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.hcr .hcr-spec-pending-creates h4 {
  margin: 0 0 8px;
  color: #203a34;
  font-size: 13px;
}

.hcr .hcr-spec-pending-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 14px;
  padding: 10px 12px;
  border: 1px solid #f2af65;
  border-radius: 10px;
  background: #fff8ee;
  color: inherit!important;
  text-decoration: none!important;
}

.hcr .hcr-spec-pending-row span {
  color: var(--muted);
  font-size: 12px;
}

.hcr .hcr-spec-change-card {
  padding: 14px 16px;
  border: 1px solid #f2af65;
  border-radius: 12px;
  background: #fffaf3;
}

.hcr .hcr-spec-change-card h3 {
  margin: 0!important;
  font-size: 15px!important;
}

.hcr .hcr-spec-reason {
  display: grid;
  gap: 3px;
  margin: 10px 0;
  font-size: 12.5px;
}

.hcr .hcr-spec-reason strong {
  color: var(--muted);
  font-size: 10.5px;
  letter-spacing: .5px;
  text-transform: uppercase;
}

.hcr .hcr-spec-approvals {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.hcr .hcr-spec-approval {
  display: inline-flex;
  align-items: center;
  padding: 4px 9px;
  border: 1px solid #e4d2b8;
  border-radius: 999px;
  background: #fff;
  color: #8d4800;
  font-size: 11px;
  font-weight: 700;
}

.hcr .hcr-spec-approval.is-done {
  border-color: #b8d8cf;
  background: #eef7f4;
  color: #1f6b62;
}

.hcr .hcr-spec-diff {
  display: grid;
  gap: 6px;
  margin: 12px 0;
}

.hcr .hcr-spec-new-files {
  margin: 8px 0;
}

.hcr .hcr-spec-change-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0 0;
}

.hcr .hcr-spec-change-actions form {
  margin: 0;
}

.hcr .hcr-spec-reject-form {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 8px;
  margin: 12px 0 0;
}

.hcr .hcr-spec-reject-form label {
  display: grid;
  flex: 1 1 280px;
  gap: 4px;
  font-size: 11.5px;
}

.hcr .hcr-spec-file-remove,
.hcr .hcr-standard-form .hcr-spec-file-remove {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0 0 6px;
  font-size: 12px;
}

.hcr .hcr-standard-form .hcr-spec-file-remove>span {
  display: inline;
  margin: 0;
  font-weight: 700;
}

.hcr .hcr-spec-file-remove input[type="checkbox"] {
  flex: 0 0 auto;
  width: 16px!important;
  min-width: 16px;
  height: 16px!important;
  min-height: 0!important;
  margin: 0;
  padding: 0!important;
  box-shadow: none;
  accent-color: #bc681a;
}

.hcr .hcr-spec-items-card,
.hcr .hcr-spec-files-card {
  margin-top: 12px;
}

.hcr .hcr-spec-items-card>p,
.hcr .hcr-spec-files-card>p {
  margin: 0;
  padding: 12px 16px;
}

.hcr .hcr-spec-files-card>.hcr-standard-file-row,
.hcr .hcr-spec-new-files>.hcr-standard-file-row {
  padding-left: 16px;
  padding-right: 16px;
}

.hcr .hcr-spec-batch-note {
  margin: 10px 0;
  padding: 9px 12px;
  border: 1px solid #b8d8cf;
  border-radius: 10px;
  background: #eef7f4;
  color: #1f4f47;
  font-size: 13px;
}

.hcr .hcr-standard-spec-detail>.hcr-spec-batch-note {
  margin: 14px 16px;
}

.hcr .hcr-spec-batch-targets {
  display: grid;
  gap: 8px;
  margin: 12px 0;
}

.hcr .hcr-spec-batch-target {
  border: 1px solid #e3e8e6;
  border-radius: 10px;
  background: #fff;
}

.hcr .hcr-spec-batch-target>summary {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 14px;
  padding: 9px 12px;
  cursor: pointer;
}

.hcr .hcr-spec-batch-target>summary span {
  color: var(--muted);
  font-size: 12px;
}

.hcr .hcr-spec-batch-target>.hcr-spec-diff {
  margin: 0;
  padding: 0 12px 10px;
}

/* Standard Specs forms: four fields per row, aligned at the top so
   one-line hints never push an input out of line. */
.hcr .hcr-spec-form .hcr-standard-form-grid {
  grid-template-columns: repeat(4,minmax(0,1fr));
  align-items: start;
}

.hcr .hcr-spec-form .hcr-standard-form-grid.hcr-standard-form-tail {
  grid-template-columns: 1fr;
}

@media (max-width:760px) {
  .hcr .hcr-spec-form .hcr-standard-form-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width:480px) {
  .hcr .hcr-spec-form .hcr-standard-form-grid {
    grid-template-columns: 1fr;
  }
}

.hcr .hcr-spec-approval.is-skipped {
  border-color: #e3c58f;
  background: #fbf3e4;
  color: #8a5a12;
  text-decoration: line-through;
  text-decoration-color: rgba(138,90,18,.45);
}

.hcr .hcr-spec-force-form {
  border-top: 1px dashed #e3c58f;
  padding-top: 10px;
}

/* Configuration summaries (Standard Orders and Specs): five values per row. */
.hcr .hcr-standard-config-summary-grid {
  grid-template-columns: repeat(5,minmax(0,1fr));
}

@media (max-width:1100px) {
  .hcr .hcr-standard-config-summary-grid {
    grid-template-columns: repeat(3,minmax(0,1fr));
  }
}

@media (max-width:760px) {
  .hcr .hcr-standard-config-summary-grid {
    grid-template-columns: repeat(2,minmax(0,1fr));
  }
}

@media (max-width:480px) {
  .hcr .hcr-standard-config-summary-grid {
    grid-template-columns: 1fr;
  }
}

/* Upcoming version and the version still in production. */
.hcr .hcr-spec-version-band {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 12px;
  margin: 18px 16px 0;
  padding: 9px 12px;
  border-radius: 10px;
  font-size: 12.5px;
}

.hcr .hcr-spec-version-band.is-upcoming {
  border: 1px solid #f2af65;
  background: #fff8ee;
  color: #7a4a10;
}

.hcr .hcr-spec-version-band.is-live {
  border: 1px solid #b8d8cf;
  background: #eef7f4;
  color: #1f4f47;
}

.hcr .hcr-spec-version-tag {
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(255,255,255,.75);
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: .4px;
  text-transform: uppercase;
}

/* Standard Specs: version history. */
.hcr .hcr-spec-versions>summary {
  cursor: pointer;
  list-style: none;
}

.hcr .hcr-spec-versions>summary::-webkit-details-marker {
  display: none;
}

.hcr .hcr-spec-versions-list {
  display: grid;
}

.hcr .hcr-spec-version-row {
  display: grid;
  grid-template-columns: 90px 130px minmax(0,1fr) auto;
  align-items: center;
  gap: 6px 14px;
  padding: 9px 15px;
  border-top: 1px solid #edf1ef;
  color: inherit!important;
  font-size: 12.5px;
  text-decoration: none!important;
}

.hcr .hcr-spec-version-row:first-child {
  border-top: 0;
}

.hcr .hcr-spec-version-row:hover {
  background: #f7faf8;
}

.hcr .hcr-spec-version-row>span:last-of-type {
  color: var(--muted);
}

.hcr .hcr-spec-version-row>small {
  color: #1f6b62;
  font-weight: 700;
}

.hcr .hcr-spec-version-state {
  justify-self: start;
  padding: 2px 8px;
  border-radius: 999px;
  background: #eef1f0;
  color: #5d6b66;
  font-size: 10.5px;
  font-weight: 700;
}

.hcr .hcr-spec-version-state.is-upcoming {
  background: #fff3e2;
  color: #8a5a12;
}

.hcr .hcr-spec-version-state.is-inproduction {
  background: #e3f3ee;
  color: #1f6b62;
}

.hcr .hcr-spec-version-band.is-history {
  border: 1px solid #d6dcda;
  background: #f4f6f5;
  color: #44514c;
}

@media (max-width:760px) {
  .hcr .hcr-spec-version-row {
    grid-template-columns: auto auto minmax(0,1fr);
  }
  .hcr .hcr-spec-version-row>span:last-of-type {
    grid-column: 1/-1;
  }
  .hcr .hcr-spec-version-row>small {
    display: none;
  }
}

/* Standard Specs: change details kept per version. */
.hcr .hcr-spec-details-row {
  display: grid;
  grid-template-columns: 150px minmax(0,1fr);
  gap: 6px 16px;
  padding: 10px 15px;
  border-top: 1px solid #edf1ef;
  font-size: 12.5px;
}

.hcr .hcr-standard-config-title+.hcr-spec-details-row {
  border-top: 0;
}

.hcr .hcr-spec-details-row>div {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.hcr .hcr-spec-details-row>div>span {
  color: var(--muted);
  font-size: 11px;
}

.hcr .hcr-spec-details-row>p {
  margin: 0;
  color: #2d4942;
  overflow-wrap: anywhere;
}

@media (max-width:760px) {
  .hcr .hcr-spec-details-row {
    grid-template-columns: 1fr;
  }
}

/* Standard Specs list: current and upcoming modules. */
.hcr .hcr-standard-spec-library>.hcr-spec-list-module {
  margin: 14px 16px;
}

.hcr .hcr-spec-list-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 12px;
  margin: 0 0 8px;
}

.hcr .hcr-spec-list-head h4 {
  margin: 0!important;
  color: #203a34;
  font-size: 14px!important;
}

.hcr .hcr-spec-list-head span {
  color: var(--muted);
  font-size: 12px;
}

.hcr .hcr-spec-list-head strong {
  margin-left: auto;
  color: #32695b;
  font-size: 12px;
}

.hcr .hcr-spec-list-module.is-upcoming .hcr-table-wrap {
  border-color: #f2c792;
}

.hcr .hcr-spec-list-module.is-upcoming .hcr-spec-list-head h4 {
  color: #8a5a12;
}

.hcr .hcr-spec-list-empty {
  margin: 0;
  padding: 10px 0;
}

.hcr .hcr-spec-version-switch {
  margin-left: auto;
  color: inherit!important;
  font-weight: 700;
  text-decoration: underline!important;
}

/* Standard Specs: specifications. */
.hcr .hcr-spec-legend {
  margin: 0;
  padding: 8px 15px 0;
  color: var(--muted);
  font-size: 11.5px;
}

.hcr .hcr-spec-param strong {
  white-space: normal;
  overflow-wrap: anywhere;
}

.hcr .hcr-spec-specs-editor {
  margin-top: 14px;
}

.hcr .hcr-spec-specs-editor .hcr-spec-specs-group {
  display: block!important;
}

.hcr .hcr-spec-specs-editor .hcr-standard-config-grid {
  grid-template-columns: repeat(5,minmax(0,1fr));
}

.hcr .hcr-spec-preset-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 8px;
  padding: 10px 15px;
  border-bottom: 1px solid #edf1ef;
  font-size: 12px;
}

.hcr .hcr-spec-preset-links>span {
  color: var(--muted);
}

.hcr .hcr-spec-preset-links>a {
  padding: 3px 10px;
  border: 1px solid #b8d8cf;
  border-radius: 999px;
  color: #1f6b62!important;
  font-weight: 700;
  text-decoration: none!important;
}

.hcr .hcr-spec-preset-links>a.is-active {
  background: #1f6b62;
  color: #fff!important;
}

.hcr .hcr-spec-specs-add {
  display: block;
  padding: 10px 15px 14px;
}

@media (max-width:1100px) {
  .hcr .hcr-spec-specs-editor .hcr-standard-config-grid {
    grid-template-columns: repeat(3,minmax(0,1fr));
  }
}

@media (max-width:760px) {
  .hcr .hcr-spec-specs-editor .hcr-standard-config-grid {
    grid-template-columns: repeat(2,minmax(0,1fr));
  }
}

@media (max-width:480px) {
  .hcr .hcr-spec-specs-editor .hcr-standard-config-grid {
    grid-template-columns: 1fr;
  }
}

/* Standard Order configuration PDF actions — visible on desktop and mobile. */
.hcr-standard-header-actions { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 9px; }
.hcr-standard-header-actions .hcr-button { white-space: normal; text-align: center; }
@media (max-width: 720px) { .hcr-standard-header-actions { justify-content: flex-start; } }

.hcr .hcr-login-remember label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  cursor: pointer;
}

.hcr .hcr-login-remember input[type=checkbox] {
  width: 16px;
  height: 16px;
  margin: 0;
  padding: 0;
  flex: 0 0 auto;
}

/* Chat: unread badges, unread strip, Chat page and order chats. */
.hcr .hcr-msg-badge {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  margin-left: 6px;
  padding: 1px 7px;
  border-radius: 999px;
  background: #d9480f;
  color: #fff!important;
  font-size: 11px;
  font-weight: 700;
  line-height: 18px;
  text-decoration: none!important;
  vertical-align: middle;
  white-space: nowrap;
}

.hcr .hcr-order-actions .hcr-msg-badge {
  margin-left: 0;
}

.hcr .hcr-chat-nav {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.hcr .hcr-chat-unread,
.hcr .hcr-chat-at {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: #d9480f;
  color: #fff;
  font-size: 10.5px;
  font-weight: 700;
  line-height: 1;
}

.hcr .hcr-chat-at {
  background: #6d28d9;
}

.hcr .hcr-chat-unread[hidden] {
  display: none;
}

.hcr .hcr-unread-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 10px;
  margin: 0 0 12px;
  padding: 10px 12px;
  border: 1px solid #f3c7ab;
  border-left: 4px solid #d9480f;
  border-radius: 10px;
  background: #fff6f0;
  color: #7a3412;
  font-size: 12.5px;
}

.hcr .hcr-unread-strip-count {
  padding: 0 7px;
  border-radius: 999px;
  background: #d9480f;
  color: #fff;
  font-weight: 700;
  font-size: 11px;
  line-height: 18px;
}

.hcr .hcr-unread-strip-links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  flex: 1;
}

.hcr .hcr-unread-strip-links a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 9px;
  border: 1px solid #f0bfa0;
  border-radius: 999px;
  background: #fff;
  color: #7a3412;
  font-weight: 600;
  text-decoration: none;
}

.hcr .hcr-unread-strip-links a b {
  color: #d9480f;
}

.hcr .hcr-unread-strip-open {
  color: #7a3412;
  font-weight: 700;
}

/* Chat page: sidebar + conversation, like a chat app. */
.hcr .hcr-chat {
  display: grid;
  grid-template-columns: 300px minmax(0,1fr);
  height: calc(100vh - 230px);
  min-height: 520px;
  border: 1px solid var(--line, #dfe6e3);
  border-radius: 16px;
  background: #fff;
  overflow: hidden;
}

.hcr .hcr-chat-sidebar {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 12px 10px;
  border-right: 1px solid #e6ece9;
  background: #f6f8f7;
  overflow-y: auto;
}

.hcr .hcr-chat-sidebar-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 0 4px 6px;
}

.hcr .hcr-chat-sidebar-head h2 {
  margin: 0;
  font-size: 18px;
}

.hcr .hcr-chat-new {
  position: relative;
}

.hcr .hcr-chat-new > summary {
  list-style: none;
  cursor: pointer;
}

.hcr .hcr-chat-new > summary::-webkit-details-marker {
  display: none;
}

.hcr .hcr-chat-new-panel {
  position: absolute;
  z-index: 30;
  left: 0;
  top: calc(100% + 6px);
  display: grid;
  gap: 12px;
  width: 300px;
  padding: 12px;
  border: 1px solid #dfe6e3;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 18px 40px rgba(20,40,35,.16);
}

.hcr .hcr-chat-new-panel form {
  display: grid;
  gap: 8px;
}

.hcr .hcr-chat-new-channel {
  padding-top: 10px;
  border-top: 1px solid #edf1ef;
}

.hcr .hcr-chat-search {
  margin: 0 0 6px;
  border-radius: 999px!important;
}

.hcr .hcr-chat-section h3,
.hcr .hcr-chat-completed > summary {
  margin: 10px 6px 4px;
  color: #6b7c77;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .5px;
  text-transform: uppercase;
}

.hcr .hcr-chat-completed > summary {
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
}

.hcr .hcr-chat-completed > summary h3 {
  margin: 0;
}

.hcr .hcr-chat-completed > summary > span:not(.hcr-chat-unread) {
  color: #8a9692;
}

.hcr .hcr-chat-none {
  margin: 0 6px 6px;
  color: #93a09b;
  font-size: 11.5px;
}

.hcr .hcr-chat-item {
  display: grid;
  grid-template-columns: 34px minmax(0,1fr) auto;
  align-items: center;
  gap: 9px;
  padding: 7px 8px;
  border-radius: 10px;
  color: #22332f;
  text-decoration: none;
}

.hcr .hcr-chat-item:hover {
  background: #eaf0ee;
}

.hcr .hcr-chat-item.is-active {
  background: #dcebe6;
}

.hcr .hcr-chat-item[hidden] {
  display: none;
}

.hcr .hcr-chat-item-text {
  display: grid;
  min-width: 0;
}

.hcr .hcr-chat-item-text strong {
  overflow: hidden;
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hcr .hcr-chat-item.has-unread .hcr-chat-item-text strong {
  font-weight: 800;
}

.hcr .hcr-chat-item-preview {
  overflow: hidden;
  color: #7a8883;
  font-size: 11.5px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hcr .hcr-chat-item-text time {
  display: none;
}

.hcr .hcr-chat-item-badges {
  display: flex;
  gap: 3px;
}

.hcr .hcr-chat-avatar {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #cfe3dc;
  color: #1f5a4e;
  font-size: 14px;
  font-weight: 800;
}

.hcr .hcr-chat-avatar.is-factory {
  background: #d7e6f5;
  color: #22508a;
}

.hcr .hcr-chat-avatar.is-channel {
  border-radius: 10px;
  background: #24413a;
  color: #fff;
}

.hcr .hcr-chat-avatar.is-order {
  border-radius: 10px;
  background: #f3dfcf;
  color: #9a4410;
}

.hcr .hcr-chat-avatar.is-group {
  border-radius: 10px;
  background: #e5dcf6;
  color: #5b21b6;
}

.hcr .hcr-chat-main {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
}

.hcr .hcr-chat-placeholder {
  display: grid;
  place-items: center;
  align-content: center;
  gap: 8px;
  height: 100%;
  padding: 30px;
  color: #6b7c77;
  text-align: center;
}

.hcr .hcr-chat-placeholder h2 {
  margin: 0;
}

.hcr .hcr-chat-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-bottom: 1px solid #e6ece9;
}

.hcr .hcr-chat-back {
  display: none;
  font-size: 20px;
  text-decoration: none;
}

.hcr .hcr-chat-head-text {
  flex: 1;
  min-width: 0;
}

.hcr .hcr-chat-head-text h2 {
  overflow: hidden;
  margin: 0;
  font-size: 16px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hcr .hcr-chat-head-text small {
  color: #7a8883;
}

.hcr .hcr-chat-head-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.hcr .hcr-chat-members {
  position: relative;
}

.hcr .hcr-chat-members > summary {
  list-style: none;
  cursor: pointer;
}

.hcr .hcr-chat-members > summary::-webkit-details-marker {
  display: none;
}

.hcr .hcr-chat-members-panel {
  position: absolute;
  z-index: 30;
  right: 0;
  top: calc(100% + 6px);
  display: grid;
  gap: 10px;
  width: 320px;
  max-height: 70vh;
  overflow-y: auto;
  padding: 12px;
  border: 1px solid #dfe6e3;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 18px 40px rgba(20,40,35,.16);
}

.hcr .hcr-chat-members-panel ul {
  display: grid;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.hcr .hcr-chat-members-panel li {
  display: flex;
  align-items: center;
  gap: 8px;
}

.hcr .hcr-chat-members-panel li > span,
.hcr .hcr-chat-person > span {
  display: grid;
  flex: 1;
  min-width: 0;
  font-size: 12.5px;
}

.hcr .hcr-chat-members-panel small,
.hcr .hcr-chat-person small {
  color: #7a8883;
  font-size: 11px;
}

.hcr .hcr-chat-members-panel .hcr-chat-avatar,
.hcr .hcr-chat-person .hcr-chat-avatar {
  width: 28px;
  height: 28px;
  font-size: 12px;
}

.hcr .hcr-chat-remove {
  border: 0;
  background: none;
  color: #b42318;
  font-size: 11.5px;
  cursor: pointer;
}

.hcr .hcr-chat-add {
  display: grid;
  gap: 8px;
  padding-top: 10px;
  border-top: 1px solid #edf1ef;
}

.hcr .hcr-chat-people {
  display: grid;
  gap: 6px;
}

.hcr .hcr-chat-people-list {
  display: grid;
  gap: 2px;
  max-height: 220px;
  overflow-y: auto;
  padding: 4px;
  border: 1px solid #e6ece9;
  border-radius: 8px;
}

.hcr .hcr-chat-person {
  display: flex!important;
  align-items: center;
  gap: 8px;
  margin: 0!important;
  padding: 4px 6px;
  border-radius: 6px;
  cursor: pointer;
}

.hcr .hcr-chat-person:hover {
  background: #f1f5f3;
}

.hcr .hcr-chat-person[hidden] {
  display: none!important;
}

.hcr .hcr-chat-person input[type=checkbox] {
  width: 16px!important;
  height: 16px;
  margin: 0;
  padding: 0;
  flex: 0 0 auto;
}

.hcr .hcr-chat-messages {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 8px;
  min-height: 0;
  overflow-y: auto;
  padding: 14px 16px;
  background: #f4f7f6;
}

.hcr .hcr-chat-empty {
  margin: auto;
  color: #85918c;
}

.hcr .hcr-chat-day,
.hcr .hcr-chat-new-divider {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 6px 0;
  color: #8a9692;
  font-size: 11px;
  font-weight: 700;
}

.hcr .hcr-chat-day::before,
.hcr .hcr-chat-day::after,
.hcr .hcr-chat-new-divider::before,
.hcr .hcr-chat-new-divider::after {
  content: "";
  flex: 1;
  border-top: 1px solid #dfe6e3;
}

.hcr .hcr-chat-new-divider {
  color: #d9480f;
}

.hcr .hcr-chat-new-divider::before,
.hcr .hcr-chat-new-divider::after {
  border-top: 1px dashed #f0b38f;
}

.hcr .hcr-chat-message {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  max-width: 76%;
}

.hcr .hcr-chat-message .hcr-chat-avatar {
  width: 30px;
  height: 30px;
  font-size: 12px;
}

.hcr .hcr-chat-message.is-mine {
  align-self: flex-end;
}

.hcr .hcr-chat-bubble {
  min-width: 0;
  padding: 7px 11px 8px;
  border: 1px solid #e1e8e5;
  border-radius: 14px 14px 14px 4px;
  background: #fff;
}

.hcr .hcr-chat-message.is-mine .hcr-chat-bubble {
  border-color: #b9dccf;
  border-radius: 14px 14px 4px 14px;
  background: #d9f0e7;
}

.hcr .hcr-chat-message.is-mentioning-me .hcr-chat-bubble {
  border-color: #c4b5fd;
  background: #f5f3ff;
}

.hcr .hcr-chat-message.is-new .hcr-chat-bubble {
  box-shadow: 0 0 0 2px rgba(217,72,15,.22);
}

.hcr .hcr-chat-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 2px 7px;
  margin-bottom: 2px;
  font-size: 11px;
}

.hcr .hcr-chat-meta strong {
  color: #24413a;
}

.hcr .hcr-chat-role {
  color: #6b7c77;
}

.hcr .hcr-chat-meta time {
  margin-left: auto;
  color: #94a19c;
}

.hcr .hcr-chat-bubble p {
  margin: 0;
  color: #1f2f2b;
  font-size: 13.5px;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.hcr .hcr-chat-mention {
  color: #5b21b6;
  font-weight: 700;
}

.hcr .hcr-chat-mention.is-me {
  padding: 0 3px;
  border-radius: 4px;
  background: #ede9fe;
}

.hcr .hcr-chat-composer {
  display: grid;
  gap: 4px;
  padding: 10px 14px 12px;
  border-top: 1px solid #e6ece9;
  background: #fff;
}

.hcr .hcr-chat-composer.is-sending button[type=submit] {
  opacity: .6;
}

/* Message shown while it is being sent */
.hcr .hcr-chat-message.is-pending .hcr-chat-bubble {
  opacity: .65;
}
.hcr .hcr-chat-message.is-pending time {
  font-style: italic;
}

.hcr .hcr-chat-input {
  position: relative;
  display: flex;
  align-items: flex-end;
  gap: 8px;
}

.hcr .hcr-chat-input textarea {
  flex: 1;
  min-height: 42px;
  max-height: 180px;
  margin: 0;
  border-radius: 12px;
  resize: none;
}

.hcr .hcr-chat-hint {
  color: #9aa6a2;
  font-size: 11px;
}

.hcr .hcr-chat-mention-menu {
  position: absolute;
  z-index: 40;
  left: 0;
  bottom: calc(100% + 6px);
  display: grid;
  width: 280px;
  max-height: 260px;
  overflow-y: auto;
  padding: 4px;
  border: 1px solid #dfe6e3;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 12px 30px rgba(20,40,35,.16);
}

.hcr .hcr-chat-mention-menu[hidden] {
  display: none;
}

.hcr .hcr-chat-mention-menu button {
  display: flex;
  align-items: baseline;
  gap: 8px;
  padding: 6px 8px;
  border: 0;
  border-radius: 6px;
  background: none;
  text-align: left;
  cursor: pointer;
}

.hcr .hcr-chat-mention-menu button.is-active,
.hcr .hcr-chat-mention-menu button:hover {
  background: #eef4f2;
}

.hcr .hcr-chat-mention-menu small {
  color: #7a8883;
}

.hcr .hcr-chat-collapsed {
  display: flex;
  flex: 1;
  flex-direction: column;
  min-height: 0;
}

.hcr .hcr-chat-collapsed > summary {
  margin: 12px 14px;
  padding: 10px 12px;
  border: 1px dashed #cfd9d4;
  border-radius: 10px;
  color: #5d6e69;
  font-weight: 600;
  cursor: pointer;
}

.hcr .hcr-chat-collapsed[open] {
  min-height: 0;
}

/* Order chat: round chat button at the bottom right, opens a floating panel. */
.hcr .hcr-chat-fab {
  position: fixed;
  z-index: 9990;
  right: 24px;
  bottom: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #2f6b55;
  color: #fff;
  box-shadow: 0 6px 18px rgba(23, 52, 42, .28);
  cursor: pointer;
  transition: transform .15s ease, background .15s ease;
}

.hcr .hcr-chat-fab:hover {
  background: #275b48;
  transform: translateY(-1px);
}

.hcr .hcr-chat-fab:focus-visible {
  outline: 3px solid #b9d9c8;
  outline-offset: 2px;
}

.hcr .hcr-chat-fab .hcr-msg-dot {
  position: absolute;
  top: -2px;
  right: -2px;
  box-shadow: 0 0 0 2px #fff;
}

.hcr .hcr-order-chat.is-floating {
  position: fixed;
  z-index: 9991;
  right: 24px;
  bottom: 92px;
  width: min(440px, calc(100vw - 32px));
  height: min(640px, calc(100vh - 120px));
  margin: 0;
  box-shadow: 0 14px 40px rgba(23, 52, 42, .22);
}

.hcr .hcr-order-chat.is-floating[hidden] {
  display: none;
}

.hcr .hcr-order-chat.is-floating .hcr-order-chat-head {
  align-items: center;
  padding: 10px 12px 10px 16px;
  border-bottom: 1px solid #e6ece9;
}

.hcr .hcr-order-chat.is-floating .hcr-order-chat-head h2 {
  margin: 0;
  font-size: 16px;
  white-space: nowrap;
}

.hcr .hcr-chat-done {
  margin-left: 4px;
  padding: 1px 8px;
  border-radius: 999px;
  background: #eef2f0;
  color: #6b7a75;
  font-size: 11px;
  font-weight: 600;
  vertical-align: 2px;
}

.hcr .hcr-order-chat.is-floating .hcr-chat-head-actions {
  flex-wrap: nowrap;
}

.hcr .hcr-chat-close {
  display: inline-flex!important;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 32px;
  height: 32px;
  padding: 0!important;
  font-size: 20px;
  line-height: 1;
}

.hcr .hcr-order-chat.is-floating .hcr-chat-lazy {
  display: flex;
  flex: 1;
  flex-direction: column;
  min-height: 0;
}

.hcr .hcr-order-chat.is-floating .hcr-chat-messages {
  flex: 1;
  min-height: 0;
  max-height: none;
  overflow-y: auto;
  border-top: 0;
}

@media (max-width: 600px) {
  .hcr .hcr-chat-fab {
    right: 16px;
    bottom: 16px;
  }
  .hcr .hcr-order-chat.is-floating .hcr-order-chat-head {
    flex-direction: row;
  }
  .hcr .hcr-order-chat.is-floating .hcr-order-chat-head h2 {
    font-size: 15px;
  }
  .hcr .hcr-order-chat.is-floating .hcr-chat-head-actions {
    flex: 0 0 auto;
    gap: 4px;
  }
  .hcr .hcr-order-chat.is-floating {
    top: 12px;
    right: 8px;
    bottom: 80px;
    left: 8px;
    width: auto;
    height: auto;
  }
}

/* Chat attachments: attach button, selected-file chips, photos and files. */
.hcr .hcr-chat-attach {
  position: relative;
  display: inline-flex!important;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  margin: 0!important;
  border: 1px solid #cfdad4;
  border-radius: 12px;
  background: #fff;
  font-size: 18px;
  cursor: pointer;
}

.hcr .hcr-chat-attach:hover {
  background: #eef4f2;
}

.hcr .hcr-chat-attach input[type=file] {
  position: absolute;
  width: 1px!important;
  height: 1px;
  padding: 0!important;
  opacity: 0;
  pointer-events: none;
}

.hcr .hcr-chat-attach .screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

.hcr .hcr-chat-attachments {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.hcr .hcr-chat-attachments[hidden] {
  display: none;
}

.hcr .hcr-chat-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  max-width: 240px;
  padding: 3px 4px 3px 6px;
  border: 1px solid #d6e2dd;
  border-radius: 8px;
  background: #f4f8f6;
  font-size: 12px;
}

.hcr .hcr-chat-chip img {
  width: 28px;
  height: 28px;
  border-radius: 4px;
  object-fit: cover;
}

.hcr .hcr-chat-chip span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hcr .hcr-chat-chip button {
  border: 0;
  background: none;
  color: #8a1c13;
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
}

.hcr .hcr-chat-photos {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 6px;
}

.hcr .hcr-chat-photo img {
  display: block;
  width: 160px;
  max-width: 100%;
  height: 120px;
  border-radius: 10px;
  background: #e8eeec;
  object-fit: cover;
}


/* Image preview overlays chat without navigating away from the order page. */
.hcr .hcr-chat-photo { cursor: zoom-in; }
.hcr-chat-lightbox, .hcr-chat-lightbox * { box-sizing: border-box; }
.hcr-chat-lightbox[hidden], .hcr-chat-lightbox [hidden] { display: none !important; }
.hcr-chat-lightbox { position: fixed; inset: 0; z-index: 100010; display: flex; align-items: center; justify-content: center; padding: 18px; }
.hcr-chat-lightbox-backdrop { position: absolute; inset: 0; background: rgba(8,19,17,.9); }
.hcr-chat-lightbox-dialog { position: relative; display: flex; flex-direction: column; width: min(1120px,100%); height: min(90vh,920px); min-height: 0; border-radius: 14px; background: #172521; box-shadow: 0 20px 64px rgba(0,0,0,.4); overflow: hidden; }
.hcr-chat-lightbox-stage { position: relative; display: flex; flex: 1 1 auto; min-height: 0; align-items: center; justify-content: center; padding: 52px 60px 18px; }
.hcr-chat-lightbox-image { display: block; max-width: 100%; max-height: 100%; object-fit: contain; }
.hcr-chat-lightbox-close, .hcr-chat-lightbox-arrow { position: absolute; z-index: 2; display: flex; align-items: center; justify-content: center; border: 1px solid rgba(255,255,255,.25); border-radius: 50%; background: rgba(0,0,0,.45); color: #fff; cursor: pointer; font-family: inherit; }
.hcr-chat-lightbox-close { top: 12px; right: 12px; width: 38px; height: 38px; font-size: 27px; line-height: 1; }
.hcr-chat-lightbox-arrow { top: 50%; width: 40px; height: 40px; transform: translateY(-50%); font-size: 31px; line-height: 1; }
.hcr-chat-lightbox-arrow.is-prev { left: 10px; }
.hcr-chat-lightbox-arrow.is-next { right: 10px; }
.hcr-chat-lightbox-close:hover, .hcr-chat-lightbox-arrow:hover { background: rgba(255,255,255,.2); }
.hcr-chat-lightbox-close:focus-visible, .hcr-chat-lightbox-arrow:focus-visible { outline: 3px solid #98d9cc; outline-offset: 2px; }
.hcr-chat-lightbox-caption { flex: 0 0 auto; padding: 12px 20px 16px; color: #eaf1ee; text-align: center; font-size: 13px; overflow-wrap: anywhere; }
.hcr-chat-lightbox-status { position: absolute; bottom: 24px; left: 0; right: 0; margin: 0; color: #fff; text-align: center; font-size: 13px; pointer-events: none; }
@media (max-width: 600px) {
  .hcr-chat-lightbox { padding: 8px; }
  .hcr-chat-lightbox-dialog { height: 94vh; border-radius: 10px; }
  .hcr-chat-lightbox-stage { padding: 48px 42px 8px; }
  .hcr-chat-lightbox-arrow { width: 32px; height: 40px; }
  .hcr-chat-lightbox-arrow.is-prev { left: 4px; }
  .hcr-chat-lightbox-arrow.is-next { right: 4px; }
}

.hcr .hcr-chat-files {
  display: grid;
  gap: 6px;
  margin-top: 6px;
}

.hcr .hcr-chat-file {
  display: flex;
  align-items: center;
  gap: 8px;
  max-width: 320px;
  padding: 6px 8px;
  border: 1px solid #dfe6e3;
  border-radius: 10px;
  background: rgba(255,255,255,.75);
  color: #22332f;
  text-decoration: none;
}

.hcr .hcr-chat-file-ext {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  height: 38px;
  padding: 0 4px;
  border-radius: 8px;
  background: #24413a;
  color: #fff;
  font-size: 10.5px;
  font-weight: 800;
}

.hcr .hcr-chat-file-text {
  display: grid;
  min-width: 0;
}

.hcr .hcr-chat-file-text strong {
  overflow: hidden;
  font-size: 12.5px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hcr .hcr-chat-file-text small {
  color: #7a8883;
  font-size: 11px;
}

.hcr .is-dropping .hcr-chat-messages,
.hcr .is-dropping.hcr-chat-composer {
  outline: 2px dashed #2f7d5a;
  outline-offset: -6px;
}

/* Order chat on order detail pages. */
.hcr .hcr-order-chat {
  display: flex;
  flex-direction: column;
  margin: 14px 0;
  border: 1px solid var(--line, #dfe6e3);
  border-radius: 14px;
  background: #fff;
}

.hcr .hcr-order-chat-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px 10px;
}

.hcr .hcr-order-chat-head h2 {
  margin: 2px 0 3px;
}

.hcr .hcr-order-chat-head p {
  margin: 0;
  color: #73827d;
  font-size: 12px;
}

.hcr .hcr-order-chat .hcr-chat-messages {
  max-height: 420px;
  border-top: 1px solid #e6ece9;
}

.hcr .hcr-order-chat .hcr-chat-composer {
  border-radius: 0 0 14px 14px;
}

@media (max-width:860px) {
  .hcr .hcr-chat {
    grid-template-columns: 1fr;
    height: auto;
    min-height: 0;
  }
  .hcr .hcr-chat.has-active .hcr-chat-sidebar {
    display: none;
  }
  .hcr .hcr-chat:not(.has-active) .hcr-chat-main {
    display: none;
  }
  .hcr .hcr-chat-sidebar {
    border-right: 0;
  }
  .hcr .hcr-chat-main {
    height: calc(100vh - 170px);
    min-height: 460px;
  }
  .hcr .hcr-chat-back {
    display: inline-block;
  }
  .hcr .hcr-chat-head {
    flex-wrap: wrap;
  }
  .hcr .hcr-chat-head-text {
    flex: 1 1 60%;
  }
  .hcr .hcr-chat-head-actions {
    flex: 1 1 100%;
    justify-content: flex-end;
  }
  .hcr .hcr-chat-message {
    max-width: 90%;
  }
  .hcr .hcr-chat-new-panel,
  .hcr .hcr-chat-members-panel {
    position: fixed;
    left: 12px;
    right: 12px;
    top: 80px;
    width: auto;
  }
  .hcr .hcr-order-chat-head {
    flex-direction: column;
  }
  .hcr .hcr-chat-hint {
    display: none;
  }
}

/* Order lists: unread-message bubble in the first column, like a messaging app. */
.hcr .hcr-table th.hcr-msg-col,
.hcr .hcr-table td.hcr-msg-cell {
  width: 34px;
  min-width: 34px;
  padding-left: 8px!important;
  padding-right: 0!important;
  text-align: center;
}

.hcr .hcr-msg-col-icon {
  color: #a3b1ac;
  font-size: 13px;
}

.hcr .hcr-msg-dot {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  border-radius: 999px;
  background: #e5484d;
  box-shadow: 0 0 0 2px #fff, 0 2px 6px rgba(229,72,77,.35);
  color: #fff!important;
  font-size: 11.5px;
  font-weight: 800;
  line-height: 1;
  text-decoration: none!important;
}

.hcr .hcr-msg-dot:hover {
  background: #c9353a;
}

.hcr .hcr-table tbody tr.has-unread-messages .hcr-record {
  font-weight: 800;
}

.hcr .hcr-msg-open {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 999px;
  font-size: 13px;
  line-height: 1;
  text-decoration: none!important;
  opacity: .5;
  filter: grayscale(1);
  transition: opacity .15s, background .15s;
}

.hcr .hcr-table tbody tr:hover .hcr-msg-open,
.hcr .hcr-msg-open:hover,
.hcr .hcr-msg-open:focus {
  opacity: 1;
  filter: none;
  background: #e8f1ee;
}

/* Chat: earlier messages and the order-page chat loaded on demand. */
.hcr .hcr-chat-older {
  align-self: center;
  margin: 2px 0 6px;
  padding: 4px 12px;
  border: 1px solid #d6e2dd;
  border-radius: 999px;
  background: #fff;
  color: #3c5a52;
  font-size: 11.5px;
  font-weight: 700;
  cursor: pointer;
}

.hcr .hcr-chat-older:disabled {
  opacity: .6;
  cursor: progress;
}

.hcr .hcr-chat-lazy:not(.is-loaded) {
  border-top: 1px solid #e6ece9;
}

.hcr .hcr-chat-loading {
  margin: 0;
  padding: 22px 16px;
  color: #85918c;
  font-size: 12.5px;
  text-align: center;
}

.hcr .hcr-order-chat-head h2 .hcr-msg-dot {
  margin-left: 6px;
  vertical-align: middle;
}

/* Chat UI polish: one card, chat-app sidebar, light header buttons.
   Explicit resets keep WordPress theme styles for aside/section/header out. */
.hcr .hcr-chat {
  height: calc(100vh - 250px);
  min-height: 560px;
  max-height: 900px;
  border: 1px solid #e1e8e5;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 10px 30px rgba(28,58,50,.06);
}

.hcr .hcr-chat-sidebar,
.hcr .hcr-chat-main {
  margin: 0;
  border-radius: 0;
  box-shadow: none;
}

.hcr .hcr-chat-sidebar {
  gap: 2px;
  padding: 14px 10px 12px;
  border-right: 1px solid #e3e9e6;
  background: #f3f6f5;
}

.hcr .hcr-chat-sidebar-head {
  position: relative;
  padding: 0 6px 10px;
}

.hcr .hcr-chat-sidebar-title {
  color: #1f3a33;
  font-size: 16px;
  font-weight: 800;
}

.hcr .hcr-chat-new {
  position: static;
}

.hcr .hcr-chat-new-panel {
  left: 0;
  right: 0;
  width: auto;
  min-width: 280px;
}

.hcr .hcr-chat-icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 999px;
  background: #2f6b60;
  color: #fff;
  font-size: 20px;
  font-weight: 400;
  line-height: 1;
  list-style: none;
  cursor: pointer;
  user-select: none;
  transition: background .15s, transform .15s;
}

.hcr .hcr-chat-icon-btn::-webkit-details-marker {
  display: none;
}

.hcr .hcr-chat-icon-btn:hover,
.hcr .hcr-chat-new[open] > .hcr-chat-icon-btn {
  background: #24564d;
}

.hcr .hcr-chat-new[open] > .hcr-chat-icon-btn {
  transform: rotate(45deg);
}

.hcr .hcr-chat-search-wrap {
  position: relative;
  margin: 0 2px 8px;
}

.hcr .hcr-chat-search-wrap > span {
  position: absolute;
  left: 11px;
  top: 50%;
  transform: translateY(-50%);
  color: #94a39e;
  font-size: 15px;
  pointer-events: none;
}

.hcr .hcr-chat-search-wrap .hcr-chat-search {
  height: 36px;
  margin: 0;
  padding-left: 30px!important;
  border: 1px solid #dbe4e0;
  border-radius: 10px!important;
  background: #fff;
  font-size: 13px;
}

.hcr .hcr-chat-section h3,
.hcr .hcr-chat-completed > summary {
  margin: 12px 8px 4px;
  color: #8a9894;
  font-size: 10.5px;
  letter-spacing: .6px;
}

.hcr .hcr-chat-item {
  padding: 8px;
  border-radius: 12px;
  transition: background .12s;
}

.hcr .hcr-chat-item:hover {
  background: rgba(255,255,255,.7);
}

.hcr .hcr-chat-item.is-active {
  background: #fff;
  box-shadow: 0 1px 3px rgba(28,58,50,.1);
}

.hcr .hcr-chat-avatar {
  width: 36px;
  height: 36px;
}

.hcr .hcr-chat-main {
  background: #fff;
}

.hcr .hcr-chat-head {
  min-height: 60px;
  padding: 10px 16px;
  border-bottom: 1px solid #edf1ef;
  background: #fff;
}

.hcr .hcr-chat-head-text h2 {
  font-size: 15px;
  font-weight: 800;
}

.hcr .hcr-chat-head-text small {
  font-size: 11.5px;
}

.hcr .hcr-chat-ghost {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 32px;
  padding: 0 12px;
  border: 1px solid #d3dfda;
  border-radius: 999px;
  background: #fff;
  color: #2f5a50!important;
  font-size: 12.5px;
  font-weight: 700;
  line-height: 1;
  text-decoration: none!important;
  white-space: nowrap;
  list-style: none;
  cursor: pointer;
  transition: background .12s, border-color .12s;
}

.hcr .hcr-chat-ghost::-webkit-details-marker {
  display: none;
}

.hcr .hcr-chat-ghost:hover,
.hcr .hcr-chat-members[open] > .hcr-chat-ghost {
  border-color: #b9ccc4;
  background: #eef4f2;
}

.hcr .hcr-chat-messages {
  padding: 16px 18px;
  background: #f7f9f8;
}

.hcr .hcr-chat-composer {
  padding: 10px 14px 10px;
  border-top: 1px solid #edf1ef;
}

.hcr .hcr-chat-input {
  align-items: flex-end;
  padding: 5px;
  border: 1px solid #d8e2de;
  border-radius: 16px;
  background: #f8faf9;
}

.hcr .hcr-chat-input:focus-within {
  border-color: #8fb3a8;
  box-shadow: 0 0 0 3px rgba(47,107,96,.1);
}

.hcr .hcr-chat-input textarea {
  min-height: 36px;
  padding: 8px 6px!important;
  border: 0!important;
  background: transparent!important;
  box-shadow: none!important;
}

.hcr .hcr-chat-attach {
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 10px;
  background: transparent;
}

.hcr .hcr-chat-input .hcr-button {
  min-height: 36px!important;
  height: 36px;
  padding: 0 16px!important;
  border-radius: 12px!important;
}

.hcr .hcr-chat-hint {
  padding-left: 4px;
}

.hcr .hcr-chat-nav .hcr-chat-unread,
.hcr .hcr-chat-nav .hcr-chat-at {
  margin-left: 2px;
}

@media (max-width:860px) {
  .hcr .hcr-chat {
    height: auto;
    max-height: none;
  }
  .hcr .hcr-chat-new-panel {
    min-width: 0;
  }
}

.hcr .hcr-chat .hcr-chat-head-text h2 {
  margin: 0!important;
  font-size: 16px!important;
  font-weight: 800!important;
  line-height: 1.3!important;
  letter-spacing: 0!important;
}

.hcr .hcr-chat .hcr-chat-placeholder h2 {
  font-size: 18px!important;
}

.hcr .hcr-chat-person .hcr-chat-avatar,
.hcr .hcr-chat-members-panel li > .hcr-chat-avatar {
  flex: 0 0 28px;
  width: 28px!important;
  min-width: 28px;
  height: 28px!important;
  padding: 0;
  font-size: 12px;
}

.hcr .hcr-chat-input textarea::placeholder {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Main navigation: each module has its own icon and colour. */
.hcr .hcr-mod {
  --mod: #2f6b60;
  --mod-soft: #eaf3f0;
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.hcr .hcr-mod-dashboard { --mod: #4361c7; --mod-soft: #eef1fc; }
.hcr .hcr-mod-leads     { --mod: #b4236b; --mod-soft: #fcedf4; }
.hcr .hcr-mod-custom    { --mod: #c2410c; --mod-soft: #fdf0e8; }
.hcr .hcr-mod-standard  { --mod: #0f766e; --mod-soft: #e7f5f3; }
.hcr .hcr-mod-library   { --mod: #7c3aed; --mod-soft: #f3eefe; }
.hcr .hcr-mod-chat      { --mod: #0369a1; --mod-soft: #e8f3fa; }

.hcr .hcr-nav-icon {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 7px;
  background: var(--mod-soft);
  color: var(--mod);
  transition: background .15s, color .15s;
}

.hcr .hcr-nav-icon svg {
  display: block;
  width: 15px;
  height: 15px;
}

.hcr .hcr-mod:hover .hcr-nav-icon {
  background: var(--mod);
  color: #fff;
}

.hcr .hcr-tabs a.hcr-mod.is-active,
.hcr .hcr-nav-group.is-active > a.hcr-mod {
  color: var(--mod)!important;
  box-shadow: inset 0 -2px 0 var(--mod), 0 1px 3px rgba(28,58,50,.08);
}

.hcr .hcr-tabs a.hcr-mod.is-active .hcr-nav-icon,
.hcr .hcr-nav-group.is-active > a.hcr-mod .hcr-nav-icon {
  background: var(--mod);
  color: #fff;
}

.hcr .hcr-tabs a.hcr-mod-custom[href*="view=locked"].is-active:after {
  display: none;
}

/* One-time "what's changed" notice under the menu */
.hcr .hcr-whats-new {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin: 0 0 16px;
  padding: 16px 18px;
  border: 1px solid #cfe1d7;
  border-radius: 10px;
  background: #f4faf6;
  color: #26473d;
}
.hcr .hcr-whats-new-icon { font-size: 22px; line-height: 1; }
.hcr .hcr-whats-new-body { flex: 1; min-width: 0; }
.hcr .hcr-whats-new-title { display: block; margin: 0 0 8px; font-size: 14px; color: #1d3a31; }
.hcr .hcr-whats-new ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 6px; }
.hcr .hcr-whats-new li { display: flex; gap: 8px; margin: 0; font-size: 12.5px; line-height: 1.5; }
.hcr .hcr-whats-new li b {
  flex: 0 0 auto;
  min-width: 96px;
  padding: 1px 8px;
  border-radius: 999px;
  background: #e1f0e8;
  color: #2f7a5f;
  font-size: 11.5px;
  text-align: center;
  align-self: flex-start;
}
.hcr .hcr-whats-new form { margin: 0; flex: 0 0 auto; align-self: center; }
@media (max-width: 700px) {
  .hcr .hcr-whats-new { flex-wrap: wrap; }
  .hcr .hcr-whats-new li { flex-direction: column; gap: 2px; }
  .hcr .hcr-whats-new li b { align-self: flex-start; }
  .hcr .hcr-whats-new form { width: 100%; }
}

/* Presence: "Online" / "Last seen …" (admin accounts are not shown) */
.hcr .hcr-presence {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #7a8883;
  font-size: 11px;
  font-style: normal;
  line-height: 1.3;
}
.hcr .hcr-presence-dot {
  flex: 0 0 auto;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #c3ccc8;
}
.hcr .hcr-presence.is-online { color: #1f7a4d; }
.hcr .hcr-presence.is-online .hcr-presence-dot { background: #22a15d; box-shadow: 0 0 0 2px rgba(34, 161, 93, .18); }
.hcr .hcr-presence.is-unknown { display: none; }
.hcr .hcr-chat-person > .hcr-presence { margin-left: auto; }
.hcr .hcr-chat-team summary {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  list-style: none;
}
.hcr .hcr-chat-team summary::-webkit-details-marker { display: none; }
.hcr .hcr-chat-team summary h3 { margin: 0; }
.hcr .hcr-chat-team-online {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-left: auto;
  color: #1f7a4d;
  font-size: 11px;
  font-weight: 600;
}
.hcr .hcr-chat-team-online .hcr-presence-dot { background: #22a15d; }
.hcr .hcr-chat-team ul {
  display: grid;
  gap: 2px;
  margin: 8px 0 0;
  padding: 0;
  list-style: none;
  max-height: 320px;
  overflow-y: auto;
}
.hcr .hcr-chat-team li {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px 6px;
  border-radius: 8px;
}
.hcr .hcr-chat-team li:hover { background: #f3f7f5; }
.hcr .hcr-chat-team li > span { display: grid; min-width: 0; font-size: 12.5px; }
.hcr .hcr-chat-team li small { color: #7a8883; font-size: 11px; }
.hcr .hcr-chat-team .hcr-chat-avatar { width: 28px; height: 28px; font-size: 12px; }

/* Store channels: store abbreviation as the icon (SA, QLD) */
.hcr .hcr-chat-avatar.is-store {
  font-size: 11px;
  letter-spacing: -.02em;
}

/* Role and presence on one line: "SA Sales  ● Online" */
.hcr .hcr-chat-person-line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 2px 10px;
  min-width: 0;
}
.hcr .hcr-chat-person-line > small { min-width: 0; }

/* RV Owners now belongs to Staff, not wp-admin. Keep promotional modules
   with the main navigation even when an extension injects one after the
   contextual Active Records / Trash buttons. */
.hcr .hcr-mod-owners { --mod: #17696d; --mod-soft: #e5f4f2; }
@media (min-width:761px) {
  .hcr .hcr-primary-nav > :not(.hcr-tabs-spacer):not(.hcr-context-tab) {
    order: 0;
    margin-left: 0!important;
  }
  .hcr .hcr-primary-nav > .hcr-tabs-spacer { order: 1; }
  .hcr .hcr-primary-nav > .hcr-context-tab { order: 2; }
}

.hcr .hcr-owner-staff { max-width: 1320px; margin: 0 auto 26px; color: #163444; }
.hcr .hcr-owner-staff .hc-rv-owner-card {
  background: #ffffff; border: 1px solid #dbe7e4; border-radius: 16px;
  padding: 22px 24px; margin: 0 0 22px;
  box-shadow: 0 3px 16px rgba(18,52,46,.04);
}
.hcr .hcr-owner-staff h2 { font-size: 20px!important; color: #163444; margin: 0 0 12px; }
.hcr .hcr-owner-staff .hc-rv-intro { color: #5a6268; font-size: 13.5px; margin: 0 0 18px; }
.hcr .hcr-owner-staff .form-table { width: 100%; margin: 0 0 18px; border-collapse: collapse; }
.hcr .hcr-owner-staff .form-table tr { border-bottom: 1px solid #edf1ef; }
.hcr .hcr-owner-staff .form-table th {
  width: 195px; padding: 12px 14px 12px 0; text-align: left;
  vertical-align: middle; font-size: 13px; color: #3b5950;
}
.hcr .hcr-owner-staff .form-table td { padding: 10px 0; }
.hcr .hcr-owner-staff .form-table label { font-weight: 700; }
.hcr .hcr-owner-staff input[type=text],
.hcr .hcr-owner-staff input[type=email],
.hcr .hcr-owner-staff input[type=tel],
.hcr .hcr-owner-staff input[type=date],
.hcr .hcr-owner-staff select {
  box-sizing: border-box; border: 1px solid #d4ddd9; border-radius: 9px;
  min-height: 39px; max-width: 100%; font-size: 13px;
}
.hcr .hcr-owner-staff .form-table input,
.hcr .hcr-owner-staff .form-table select {
  width: min(100%,440px);
}
.hcr .hcr-owner-staff .hc-rv-btn {
  display: inline-flex; justify-content: center; align-items: center;
  padding: 8px 13px; background: #fff; border: 1px solid #c9d8d6;
  border-radius: 9px; color: #17696d; font-size: 12.5px; font-weight: 700;
  cursor: pointer; line-height: 1.35; margin: 5px 0;
}
.hcr .hcr-owner-staff .hc-rv-btn:hover,
.hcr .hcr-owner-staff .hc-rv-btn:focus-visible {
  background: #eaf4f2; color: #125459;
}
.hcr .hcr-owner-staff .hc-rv-btn-primary { background: #17696d; color: #fff; border-color: #17696d; }
.hcr .hcr-owner-staff .hc-rv-btn-primary:hover,
.hcr .hcr-owner-staff .hc-rv-btn-primary:focus-visible { background: #125459; color: #fff; }
.hcr .hcr-owner-staff .notice { margin: 0 0 14px; border-left: 4px solid #b45a00; background: #fff8ef; padding: 12px 14px; border-radius: 7px; }
.hcr .hcr-owner-staff .notice.notice-success { border-left-color: #17696d; background: #eaf4f2; }
.hcr .hcr-owner-staff .notice p { margin: 0; font-size: 13px; }
.hcr .hcr-owner-staff .widefat {
  width: 100%; border-collapse: separate; border-spacing: 0;
  border: 1px solid #dce8e5; border-radius: 12px; overflow: hidden; background: #fff;
  box-shadow: 0 2px 10px rgba(18,54,46,0.03);
}
.hcr .hcr-owner-staff .widefat thead th {
  background: #f1f7f5; padding: 13px 14px; color: #21433b;
  font-size: 11.5px; text-align: left; font-weight: 700;
  text-transform: uppercase; letter-spacing: .04em;
  border-bottom: 2px solid #d3e4e0;
}
.hcr .hcr-owner-staff .widefat tbody td {
  padding: 13px 14px; border-top: 1px solid #eef3f1;
  vertical-align: middle; font-size: 13px; line-height: 1.5; color: #1e3933;
}
.hcr .hcr-owner-staff .widefat tbody tr { transition: background .12s ease-in-out; }
.hcr .hcr-owner-staff .widefat tbody tr:nth-child(even) { background: #fafcfb; }
.hcr .hcr-owner-staff .widefat tbody tr:hover { background: #f3f8f7!important; }
.hcr .hcr-owner-staff code,
.hcr .hcr-owner-staff .widefat code,
.hcr .hcr-owner-staff .hc-rv-vin {
  display: inline-block;
  font-family: ui-monospace, "SFMono-Regular", Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace!important;
  font-size: 11.5px!important;
  font-weight: 600!important;
  letter-spacing: .05em!important;
  padding: 2px 8px!important;
  margin-top: 4px;
  border-radius: 6px!important;
  background: #edf5f4!important;
  color: #125459!important;
  border: 1px solid #cce2df!important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.7);
  white-space: normal;
  overflow-wrap: anywhere;
}
.hcr .hcr-owner-staff .hc-rv-model {
  font-weight: 700;
  color: #163444;
  font-size: 13px;
}
.hcr .hcr-owner-staff .hc-rv-store-badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 6px;
  background: #edf5f4;
  color: #17696d;
  font-weight: 700;
  font-size: 11px;
  letter-spacing: .05em;
  border: 1px solid #cee0dc;
}
.hcr .hcr-owner-staff .widefat td form { margin: 0 0 10px; }
.hcr .hcr-owner-staff .widefat input[type=date] { width: 160px; max-width: 100%; }
.hcr .hcr-owner-staff .widefat input[type=text] { width: 185px; max-width: 100%; }
.hcr .hcr-owner-staff .description { color: #5a6268; font-size: 11px; margin: 2px 0 5px; }
@media (max-width:980px) {
  .hcr .hcr-owner-staff .hc-rv-owner-card { padding: 15px; }
  .hcr .hcr-owner-staff .form-table th { width: 150px; }
  .hcr .hcr-owner-staff .widefat { display: block; overflow-x: auto; }
}
@media (max-width:600px) {
  .hcr .hcr-owner-staff .form-table, .hcr .hcr-owner-staff .form-table tbody,
  .hcr .hcr-owner-staff .form-table tr, .hcr .hcr-owner-staff .form-table th,
  .hcr .hcr-owner-staff .form-table td { display: block; width: 100%; }
  .hcr .hcr-owner-staff .form-table th { padding: 10px 0 0; }
  .hcr .hcr-owner-staff .form-table td { padding: 4px 0 10px; }
}

/* RV Owners 2.20: customers, caravans, files, bookings and service records. */
.hcr .hcr-owner-staff .hc-rv-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 16px; }
.hcr .hcr-owner-staff .hc-rv-tab {
  padding: 9px 16px; border-radius: 999px; border: 1px solid #d4ddd9; background: #fff;
  color: #163444; font-size: 13px; font-weight: 700; text-decoration: none;
}
.hcr .hcr-owner-staff .hc-rv-tab.is-active { background: #eaf4f2; border-color: #9cc7c3; color: #125459; }
.hcr .hcr-owner-staff .hc-rv-tab.is-primary { margin-left: auto; background: #17696d; border-color: #17696d; color: #fff; }
.hcr .hcr-owner-staff .hc-rv-toolbar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 0 0 12px; }
.hcr .hcr-owner-staff .hc-rv-toolbar input[type=search] {
  flex: 1 1 280px; min-height: 39px; border: 1px solid #d4ddd9; border-radius: 9px; padding: 0 12px; font-size: 13px;
}
.hcr .hcr-owner-staff .hc-rv-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 14px; }
.hcr .hcr-owner-staff .hc-rv-chip {
  padding: 6px 12px; border-radius: 999px; background: #f3f1ec; color: #3b5950;
  font-size: 12px; font-weight: 600; text-decoration: none;
}
.hcr .hcr-owner-staff .hc-rv-chip b { margin-left: 4px; }
.hcr .hcr-owner-staff .hc-rv-chip.is-active { background: #17696d; color: #fff; }
.hcr .hcr-owner-staff .hc-rv-chip.is-danger:not(.is-active) { background: #fdeee3; color: #b45a00; }
.hcr .hcr-owner-staff .hc-rv-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 600;
  line-height: 1.4;
  background: #edf5f4;
  color: #125459;
  white-space: nowrap;
  vertical-align: middle;
}
.hcr .hcr-owner-staff .hc-rv-pill::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  opacity: .85;
  flex-shrink: 0;
}
.hcr .hcr-owner-staff .hc-rv-pill.is-ok { background: #eaf6f0; color: #196945; border: 1px solid #bce6d2; }
.hcr .hcr-owner-staff .hc-rv-pill.is-warn { background: #fff8eb; color: #8c5b00; border: 1px solid #fce2b8; }
.hcr .hcr-owner-staff .hc-rv-pill.is-danger { background: #fdf1f0; color: #b52c22; border: 1px solid #f9cac6; }
.hcr .hcr-owner-staff .hc-rv-pill.is-muted { background: #f1f4f3; color: #5c6e6b; border: 1px solid #dde5e3; }
.hcr .hcr-owner-staff .hc-rv-pill.is-muted::before { opacity: .5; }
.hcr .hcr-owner-staff .hc-rv-sub { color: #5a6268; font-size: 12px; }
.hcr .hcr-owner-staff .hc-rv-strong { font-weight: 700; color: #17696d; text-decoration: none; font-size: 13.5px; }
.hcr .hcr-owner-staff .hc-rv-strong:hover { color: #0f484b; text-decoration: underline; }
.hcr .hcr-owner-staff .hc-rv-cell-action { text-align: right; white-space: nowrap; }
.hcr .hcr-owner-staff .hc-rv-btn-open {
  min-height: 31px!important;
  padding: 5px 14px!important;
  border-radius: 8px!important;
  background: #fff!important;
  color: #17696d!important;
  border: 1px solid #b3d5d1!important;
  font-size: 12px!important;
  font-weight: 600!important;
  text-decoration: none!important;
  box-shadow: 0 1px 2px rgba(23,105,109,0.06)!important;
  transition: all .15s ease-in-out!important;
}
.hcr .hcr-owner-staff .hc-rv-btn-open:hover {
  background: #17696d!important;
  color: #fff!important;
  border-color: #17696d!important;
  box-shadow: 0 2px 6px rgba(23,105,109,0.22)!important;
  transform: translateY(-1px);
}
.hcr .hcr-owner-staff .hc-rv-btn-open .hc-rv-arrow {
  display: inline-block;
  transition: transform .15s ease-in-out;
  margin-left: 2px;
}
.hcr .hcr-owner-staff .hc-rv-btn-open:hover .hc-rv-arrow {
  transform: translateX(2px);
}
.hcr .hcr-owner-staff .hc-rv-app-info {
  font-size: 12.5px;
  color: #163444;
  font-weight: 600;
}
.hcr .hcr-owner-staff .hc-rv-device-badge {
  display: inline-block;
  padding: 1px 6px;
  border-radius: 4px;
  font-size: 10.5px;
  font-weight: 600;
  background: #e7eff5;
  color: #1c5277;
  border: 1px solid #c9dbe7;
  margin-left: 3px;
  vertical-align: baseline;
}
.hcr .hcr-owner-staff .hc-rv-device-badge.hc-rv-device-android {
  background: #eaf5ed;
  color: #1c6838;
  border-color: #c9e6d0;
}
.hcr .hcr-owner-staff .hc-rv-head { margin: 0 0 16px; }
.hcr .hcr-owner-staff .hc-rv-head h2 { font-size: 24px!important; margin: 6px 0 4px; }
.hcr .hcr-owner-staff .hc-rv-back { color: #17696d; font-size: 13px; font-weight: 700; text-decoration: none; }
.hcr .hcr-owner-staff details > summary { cursor: pointer; list-style: none; }
.hcr .hcr-owner-staff details > summary::-webkit-details-marker { display: none; }
.hcr .hcr-owner-staff details > summary h2,
.hcr .hcr-owner-staff details > summary h3 { display: inline-block; margin: 0; }
.hcr .hcr-owner-staff details > summary::after { content: '▾'; color: #5a6268; margin-left: 8px; font-size: 12px; }
.hcr .hcr-owner-staff details[open] > summary { margin-bottom: 14px; }
.hcr .hcr-owner-staff details[open] > summary::after { content: '▴'; }
.hcr .hcr-owner-staff .hc-rv-form h3 { font-size: 14px; margin: 6px 0 10px; color: #3b5950; text-transform: uppercase; letter-spacing: .5px; }
.hcr .hcr-owner-staff .hc-rv-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px 16px; margin: 0 0 14px; }
.hcr .hcr-owner-staff .hc-rv-field { display: flex; flex-direction: column; gap: 5px; font-size: 12.5px; }
.hcr .hcr-owner-staff .hc-rv-field > span { font-weight: 700; color: #3b5950; }
.hcr .hcr-owner-staff .hc-rv-field em { font-weight: 400; color: #858b90; font-style: normal; }
.hcr .hcr-owner-staff .hc-rv-field input,
.hcr .hcr-owner-staff .hc-rv-field select,
.hcr .hcr-owner-staff .hc-rv-field textarea { width: 100%; }
.hcr .hcr-owner-staff textarea {
  box-sizing: border-box; border: 1px solid #d4ddd9; border-radius: 9px; padding: 8px 10px; font-size: 13px; font-family: inherit;
}
.hcr .hcr-owner-staff .hc-rv-wide { grid-column: 1 / -1; }
.hcr .hcr-owner-staff .hc-rv-check { grid-column: 1 / -1; display: flex; gap: 8px; align-items: center; font-size: 13px; }
.hcr .hcr-owner-staff .hc-rv-vehicle-head { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; flex-wrap: wrap; }
.hcr .hcr-owner-staff .hc-rv-vehicle-head h2 { margin: 0 0 2px; }
.hcr .hcr-owner-staff .hc-rv-block { border-top: 1px solid #edf1ef; padding: 16px 0 4px; margin-top: 14px; }
.hcr .hcr-owner-staff .hc-rv-block h3 { font-size: 15px; margin: 0 0 10px; color: #163444; }
.hcr .hcr-owner-staff .hc-rv-count {
  display: inline-block; min-width: 20px; padding: 1px 7px; border-radius: 999px; background: #f0f1ef;
  font-size: 11px; color: #5a6268; text-align: center; margin-left: 4px;
}
.hcr .hcr-owner-staff .hc-rv-sub-block { margin: 12px 0 6px; }
.hcr .hcr-owner-staff .hc-rv-sub-block > summary { font-weight: 700; color: #17696d; font-size: 13px; }
.hcr .hcr-owner-staff .hc-rv-inline { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 8px 0; }
.hcr .hcr-owner-staff .hc-rv-inline .description { flex-basis: 100%; }
.hcr .hcr-owner-staff .hc-rv-mini input[type=file] { max-width: 190px; font-size: 11.5px; }
.hcr .hcr-owner-staff .hc-rv-files { list-style: none; margin: 0 0 8px; padding: 0; }
.hcr .hcr-owner-staff .hc-rv-files li { display: flex; flex-wrap: wrap; gap: 6px; align-items: baseline; padding: 5px 0; border-bottom: 1px dashed #edf1ef; font-size: 12.5px; }
.hcr .hcr-owner-staff .hc-rv-files a { color: #17696d; font-weight: 700; overflow-wrap: anywhere; }
.hcr .hcr-owner-staff .hc-rv-delete { display: inline; margin: 0 0 0 auto!important; }
.hcr .hcr-owner-staff .hc-rv-link { background: none; border: 0; color: #b45a00; font-size: 12px; cursor: pointer; padding: 0; }
.hcr .hcr-owner-staff .hc-rv-booking-form { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px!important; }
.hcr .hcr-owner-staff .hc-rv-history { list-style: none; margin: 0; padding: 0; }
.hcr .hcr-owner-staff .hc-rv-history li { padding: 9px 0; border-bottom: 1px solid #edf1ef; font-size: 13px; }
@media (max-width:600px) {
  .hcr .hcr-owner-staff .hc-rv-tab.is-primary { margin-left: 0; }
  .hcr .hcr-owner-staff .hc-rv-grid { grid-template-columns: 1fr; }
}
.hcr .hcr-owner-staff a.hc-rv-btn { text-decoration: none; }
.hcr .hcr-owner-staff .hc-rv-check input[type=checkbox] {
  width: 18px!important; height: 18px!important; min-height: 0; margin: 0; flex: 0 0 auto; accent-color: #17696d;
}
.hcr .hcr-owner-staff .hc-rv-toolbar input[type=search] { width: auto; }
.hcr .hcr-owner-staff .hc-rv-toolbar select { flex: 0 0 190px; width: auto; }
.hcr .hcr-owner-staff .hc-rv-toolbar .hc-rv-btn,
.hcr .hcr-owner-staff .hc-rv-inline .hc-rv-btn,
.hcr .hcr-owner-staff .hc-rv-booking-form .hc-rv-btn { margin: 0; }
.hcr .hcr-owner-staff .hc-rv-inline input[type=text],
.hcr .hcr-owner-staff .hc-rv-inline input[type=file] { flex: 1 1 220px; width: auto; }
.hcr .hcr-owner-staff .hc-rv-inline label { display: inline-flex; gap: 8px; align-items: center; font-size: 13px; }
.hcr .hcr-owner-staff .hc-rv-booking-form select { width: auto; flex: 0 0 140px; }
.hcr .hcr-owner-staff .hc-rv-booking-form input[type=date] { width: 160px; }
.hcr .hcr-owner-staff .hc-rv-booking-form input[type=text] { flex: 1 1 180px; width: auto; }
.hcr .hcr-owner-staff .hc-rv-booking-form .description { flex-basis: 100%; }
/* RV Owners: quieter tabs; New Customer is an ordinary button in the toolbar. */
.hcr .hcr-owner-staff .hc-rv-tabs { gap: 6px; margin: 0 0 14px; }
.hcr .hcr-owner-staff .hc-rv-tab { padding: 6px 14px; font-size: 12.5px; }
.hcr .hcr-owner-staff .hc-rv-new { margin-left: auto; white-space: nowrap; }
.hcr .hcr-owner-staff .hc-rv-new-card { margin-top: 10px; }
@media (max-width:600px) {
  .hcr .hcr-owner-staff .hc-rv-new { margin-left: 0; }
}
.hcr .hcr-owner-staff .hc-rv-toolbar .hc-rv-btn { min-height: 39px; box-sizing: border-box; }

/* RV Owners 2.20.2: clear sections, visible buttons, confirmations. */
.hcr .hcr-owner-staff .hc-rv-btn,
.hcr .hcr-owner-staff button.hc-rv-btn {
  display: inline-flex!important; align-items: center; justify-content: center; gap: 6px;
  min-height: 36px; padding: 7px 14px!important; border-radius: 9px!important;
  background: #fff!important; color: #17696d!important; border: 1px solid #9cc7c3!important;
  font-size: 12.5px!important; font-weight: 700!important; line-height: 1.3!important;
  text-decoration: none!important; box-shadow: none!important; cursor: pointer; opacity: 1!important;
  visibility: visible!important; white-space: nowrap; margin: 0;
}
.hcr .hcr-owner-staff .hc-rv-btn:hover { background: #eaf4f2!important; }
.hcr .hcr-owner-staff .hc-rv-btn-primary,
.hcr .hcr-owner-staff button.hc-rv-btn-primary { background: #17696d!important; color: #fff!important; border-color: #17696d!important; }
.hcr .hcr-owner-staff .hc-rv-btn-primary:hover { background: #125459!important; }
.hcr .hcr-owner-staff .hc-rv-btn-danger,
.hcr .hcr-owner-staff button.hc-rv-btn-danger { color: #b45a00!important; border-color: #efc9a8!important; }
.hcr .hcr-owner-staff .hc-rv-btn-danger:hover { background: #fdeee3!important; }
.hcr .hcr-owner-staff .hc-rv-btn-danger-solid,
.hcr .hcr-owner-staff button.hc-rv-btn-danger-solid { background: #b45a00!important; color: #fff!important; border-color: #b45a00!important; }
.hcr .hcr-owner-staff .hc-rv-btn-quiet,
.hcr .hcr-owner-staff button.hc-rv-btn-quiet { border-color: transparent!important; color: #5a6268!important; }
.hcr .hcr-owner-staff .hc-rv-btn-small,
.hcr .hcr-owner-staff button.hc-rv-btn-small { min-height: 28px; padding: 4px 10px!important; font-size: 11.5px!important; }
.hcr .hcr-owner-staff .hc-rv-btn[aria-expanded=true] { background: #eaf4f2!important; }
.hcr .hcr-owner-staff .hc-rv-btn-primary[aria-expanded=true] { background: #125459!important; }

.hcr .hcr-owner-staff .hc-rv-app-line { margin: 6px 0 0; }
.hcr .hcr-owner-staff .hc-rv-kicker { font-size: 11px; font-weight: 800; letter-spacing: .7px; text-transform: uppercase; color: #858b90; }
.hcr .hcr-owner-staff .hc-rv-section-head {
  display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; flex-wrap: wrap; margin: 0 0 10px;
}
.hcr .hcr-owner-staff .hc-rv-section-head h2,
.hcr .hcr-owner-staff .hc-rv-section-head h3 { margin: 0!important; }
.hcr .hcr-owner-staff .hc-rv-section-head h3 { font-size: 15.5px!important; color: #163444; }
.hcr .hcr-owner-staff .hc-rv-purpose { margin: 3px 0 0; color: #5a6268; font-size: 12.5px; max-width: 640px; }
.hcr .hcr-owner-staff .hc-rv-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.hcr .hcr-owner-staff .hc-rv-section { border-top: 1px solid #edf1ef; padding: 18px 0 6px; margin-top: 16px; }
.hcr .hcr-owner-staff .hc-rv-compact .hc-rv-section-head { margin: 0; }
.hcr .hcr-owner-staff .hc-rv-panel {
  display: block; background: #f6faf9; border: 1px solid #d3e5e4; border-radius: 12px; padding: 16px; margin: 10px 0 14px;
}
.hcr .hcr-owner-staff .hc-rv-panel[hidden],
.hcr .hcr-owner-staff .hc-rv-field[hidden] { display: none!important; }
.hcr .hcr-owner-staff .hc-rv-panel h4 { margin: 0 0 12px; font-size: 13.5px; color: #163444; }
.hcr .hcr-owner-staff .hc-rv-form-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.hcr .hcr-owner-staff .hc-rv-facts { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px 18px; margin: 0; }
.hcr .hcr-owner-staff .hc-rv-facts dt { font-size: 11.5px; color: #858b90; font-weight: 700; margin: 0 0 2px; }
.hcr .hcr-owner-staff .hc-rv-facts dd { margin: 0; font-size: 13.5px; color: #163444; overflow-wrap: anywhere; }
.hcr .hcr-owner-staff .hc-rv-row-actions { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.hcr .hcr-owner-staff .hc-rv-cancel { display: inline; margin: 0!important; }
.hcr .hcr-owner-staff .hc-rv-records { display: grid; gap: 10px; }
.hcr .hcr-owner-staff .hc-rv-record { border: 1px solid #e8e1d8; border-radius: 12px; padding: 12px 14px; background: #fff; }
.hcr .hcr-owner-staff .hc-rv-record-head { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; font-size: 13.5px; }
.hcr .hcr-owner-staff .hc-rv-notes { margin: 8px 0 4px; font-size: 13px; color: #163444; }
.hcr .hcr-owner-staff .hc-rv-warning {
  margin: 0 0 12px; padding: 10px 12px; border-radius: 9px; background: #fdeee3; color: #8a4300; font-size: 13px; font-weight: 600;
}
.hcr .hcr-owner-staff .hc-rv-files li { align-items: center; }
/* RV Owners 2.20.5: cancel email tick, schedule start note. */
.hcr .hcr-owner-staff .hc-rv-inline-check { display: inline-flex; align-items: center; gap: 6px; margin: 0 0 0 10px; font-size: 12.5px; color: #5a6268; }
.hcr .hcr-owner-staff .hc-rv-section-head .hc-rv-actions form { display: inline; margin: 0; }
/* RV Owners 2.20.6: delivered orders. */
.hcr .hcr-rv-owner-issue { color: #b45a00; font-weight: 600; }
.hcr .hcr-rv-owner-register { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 6px 0 0; font-size: 12.5px; }
.hcr .hcr-owner-staff .hc-rv-list td .hc-rv-cancel { display: inline-flex; align-items: center; gap: 6px; }

/* RV Owners 2.20.10: CSV Bulk Import Tool */
.hcr .hcr-owner-staff .hc-rv-csv-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 12px;
  margin: 14px 0;
}
.hcr .hcr-owner-staff .hc-rv-stat-box {
  background: #f8fbfa;
  border: 1px solid #dce8e5;
  border-radius: 10px;
  padding: 12px;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.hcr .hcr-owner-staff .hc-rv-stat-box b {
  font-size: 22px;
  color: #163444;
  line-height: 1.1;
}
.hcr .hcr-owner-staff .hc-rv-stat-box span {
  font-size: 11px;
  color: #5a6268;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .03em;
}
.hcr .hcr-owner-staff .hc-rv-stat-box.is-success b { color: #196945; }
.hcr .hcr-owner-staff .hc-rv-stat-box.is-warn b { color: #8c5b00; }
.hcr .hcr-owner-staff .hc-rv-stat-box.is-danger b { color: #b52c22; }
.hcr .hcr-owner-staff .hc-rv-notes-list {
  margin: 8px 0 0;
  padding-left: 20px;
  font-size: 12px;
  color: #3b5950;
  max-height: 220px;
  overflow-y: auto;
}
.hcr .hcr-owner-staff .hc-rv-danger-box {
  background: #fff6f5;
  border: 1px solid #f9cac6;
  border-radius: 10px;
  padding: 10px 14px;
}
.hcr .hcr-owner-staff .hc-rv-report-details {
  border: 1px solid #e1ebe7;
  border-radius: 10px;
  padding: 10px 14px;
  background: #fafcfb;
}

/* RV Owners 2.20.18: 2-line Next Service & Booking, Chat-style badges, App column toggle, Next Service sorting */
.hcr .hcr-owner-staff .hc-rv-cell-service-booking {
  position: relative;
  padding-right: 36px!important;
  vertical-align: middle;
}
.hcr .hcr-owner-staff .hc-rv-service-line {
  margin-bottom: 4px;
  line-height: 1.35;
}
.hcr .hcr-owner-staff .hc-rv-booking-line {
  display: flex;
  align-items: center;
  gap: 5px;
  flex-wrap: wrap;
  line-height: 1.35;
  min-height: 18px;
}
.hcr .hcr-owner-staff .hc-rv-no-booking {
  color: #9aa2a8;
  font-size: 11.5px;
}
.hcr .hcr-owner-staff .hc-rv-booking-badge {
  position: absolute;
  top: 10px;
  right: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 19px;
  height: 19px;
  padding: 0 5px;
  border-radius: 999px;
  background: #e5484d;
  box-shadow: 0 0 0 2px #fff, 0 2px 6px rgba(229,72,77,.35);
  color: #fff!important;
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
  text-decoration: none!important;
  z-index: 2;
  pointer-events: none;
}
.hcr .hcr-owner-staff .hc-rv-col-app {
  display: none;
}
.hcr .hcr-owner-staff .hc-rv-list.hc-rv-show-app .hc-rv-col-app {
  display: table-cell;
}
.hcr .hcr-owner-staff .hc-rv-btn-toggle-app {
  transition: all .15s ease-in-out;
}
.hcr .hcr-owner-staff .hc-rv-btn-toggle-app.is-active {
  background: #17696d;
  color: #fff;
  border-color: #17696d;
}
.hcr .hcr-owner-staff .hc-rv-sort-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #21433b;
  text-decoration: none;
  font-weight: 700;
  cursor: pointer;
  transition: color .12s ease-in-out;
}
.hcr .hcr-owner-staff .hc-rv-sort-link:hover {
  color: #17696d;
  text-decoration: none;
}
.hcr .hcr-owner-staff .hc-rv-sort-link.is-active {
  color: #17696d;
}
.hcr .hcr-owner-staff .hc-rv-sort-badge {
  display: inline-block;
  padding: 2px 7px;
  border-radius: 5px;
  background: #e1edea;
  color: #17696d;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: normal;
  text-transform: none;
  transition: all .12s ease-in-out;
}
.hcr .hcr-owner-staff .hc-rv-sort-link:hover .hc-rv-sort-badge,
.hcr .hcr-owner-staff .hc-rv-sort-link.is-active .hc-rv-sort-badge {
  background: #17696d;
  color: #fff;
}
.hcr .hcr-owner-staff .hc-rv-chip-sort {
  background: #eaf4f2!important;
  color: #125459!important;
  border: 1px solid #b7dbd7;
}
.hcr .hcr-owner-staff .hc-rv-chip-sort:hover {
  background: #dbeee9!important;
}
