.customer-accounts-workspace {
  min-width: 0;
}

.customer-privacy {
  margin-top: 20px;
  padding: 13px 15px;
  border: 1px solid #d9e3ec;
  border-radius: 12px;
  color: #465268;
  background: #f7fafc;
  font-size: 13px;
  line-height: 1.6;
}

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

.customer-panel {
  min-width: 0;
  padding: 20px;
  border: 1px solid var(--hp-line);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 5px 18px rgba(23, 32, 51, 0.035);
  scroll-margin-top: 16px;
}

.customer-panel:target {
  border-color: #ef9bb1;
  box-shadow: 0 0 0 3px rgba(217, 33, 80, 0.10), 0 10px 28px rgba(217, 33, 80, 0.08);
}

.customer-panel h2 {
  margin: 0;
  font-size: 18px;
  line-height: 1.4;
}

.customer-panel > p {
  margin: 8px 0 0;
  color: #667085;
  font-size: 13px;
  line-height: 1.6;
}

.customer-panel:nth-child(1),
.customer-panel:nth-child(2),
.customer-panel:nth-child(3),
.customer-panel:nth-child(5) {
  grid-column: 1 / -1;
}

.kyc-data {
  display: grid;
  gap: 18px;
  margin-top: 22px;
  padding-top: 22px;
  border-top: 1px solid #e3e8ef;
}

.kyc-data > h3,
.kyc-subsection > h4 {
  margin: 0;
  color: var(--hp-ink);
}

.kyc-data > h3 {
  font-size: 17px;
}

.kyc-subsection {
  min-width: 0;
}

.kyc-subsection > h4 {
  font-size: 15px;
}

.kyc-document-rule,
.kyc-security-note {
  border: 1px solid #d9e3ec;
  border-radius: 12px;
  padding: 14px 16px;
  color: #364152;
  background: #f8fafc;
  font-size: 13px;
  line-height: 1.6;
}

.kyc-document-rule p,
.kyc-document-rule span,
.kyc-security-note ul {
  margin: 6px 0 0;
}

.kyc-security-note {
  margin-top: 10px;
  border-color: #b9dec8;
  background: #f1fbf5;
}

.kyc-security-note ul {
  padding-left: 20px;
}

.kyc-document-list {
  display: grid;
  gap: 12px;
  margin-top: 10px;
}

.kyc-document-card {
  min-width: 0;
  border: 1px solid #e1e6ed;
  border-radius: 12px;
  padding: 15px;
  background: #fff;
}

.kyc-document-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.kyc-document-heading > div {
  display: grid;
  gap: 3px;
}

.kyc-document-heading span,
.kyc-document-card small {
  display: block;
  color: #667085;
  font-size: 11px;
  line-height: 1.45;
}

.kyc-decision {
  flex: 0 0 auto;
  border-radius: 999px;
  padding: 5px 9px;
  font-size: 11px;
  font-weight: 800;
}

.kyc-decision-accepted,
.kyc-verified {
  color: #166534;
  background: #dcfce7;
}

.kyc-decision-rejected,
.kyc-not-verified {
  color: #991b1b;
  background: #fee2e2;
}

.kyc-decision-pending,
.kyc-not-reported {
  color: #6b4f00;
  background: #fff4cc;
}

.kyc-document-card dl {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 14px;
  margin: 14px 0 0;
}

.kyc-document-card dl > div {
  min-width: 0;
}

.kyc-document-card dt {
  color: #667085;
  font-size: 11px;
}

.kyc-document-card dd {
  margin: 3px 0 0;
  color: #20293a;
  font-size: 12px;
  overflow-wrap: anywhere;
}

.kyc-document-card dd p {
  margin: 5px 0 0;
  color: #991b1b;
}

.kyc-secure-view,
.kyc-inline-warning {
  margin: 12px 0 0;
  border-radius: 9px;
  padding: 9px 11px;
  color: #5e4c13;
  background: #fff9e7;
  font-size: 11px;
  line-height: 1.5;
}

.kyc-review-actions {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 10px;
  margin-top: 12px;
}

.kyc-review-actions form,
.kyc-reject-form {
  display: flex;
  min-width: 0;
  gap: 8px;
}

.kyc-review-actions input,
.kyc-note-form select,
.kyc-note-form textarea {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid #cdd3dd;
  border-radius: 9px;
  padding: 9px 11px;
  color: var(--hp-ink);
  background: #fff;
  font: inherit;
}

.kyc-review-actions button,
.kyc-note-form button {
  min-height: 38px;
  border: 0;
  border-radius: 9px;
  padding: 0 13px;
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}

.kyc-accept,
.kyc-note-form button {
  background: #15803d;
}

.kyc-reject {
  background: var(--hp-red);
}

.kyc-note-form {
  display: grid;
  gap: 9px;
  margin-top: 10px;
}

.kyc-note-form label {
  display: grid;
  gap: 6px;
  color: #364152;
  font-size: 12px;
  font-weight: 700;
}

.kyc-note-form textarea {
  min-height: 92px;
  resize: vertical;
}

.kyc-note-form button {
  justify-self: start;
}

.kyc-note-list {
  display: grid;
  gap: 9px;
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
}

.kyc-note-list li {
  border-left: 3px solid #d9e3ec;
  padding: 8px 11px;
  background: #f8fafc;
}

.kyc-note-list li > div {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px;
}

.kyc-note-list span,
.kyc-note-list p {
  color: #667085;
  font-size: 12px;
}

.kyc-note-list p {
  margin: 6px 0 0;
  color: #273249;
  white-space: pre-wrap;
}

.kyc-verified,
.kyc-not-verified,
.kyc-not-reported {
  display: inline-flex;
  border-radius: 999px;
  padding: 4px 8px;
  font-size: 11px;
  font-weight: 800;
}

.kyc-otp-table,
.kyc-terminal-table,
.kyc-activity-table {
  min-width: 820px;
}

@media (max-width: 760px) {
  .kyc-document-card dl,
  .kyc-review-actions {
    grid-template-columns: 1fr;
  }

  .kyc-document-heading {
    flex-direction: column;
  }
}

.customer-search {
  display: grid;
  grid-template-columns: 1fr;
  align-items: start;
  gap: 12px;
  margin-top: 16px;
}

.customer-search label {
  display: grid;
  min-width: 0;
  align-self: start;
  align-content: start;
  gap: 7px;
  color: #273249;
  font-size: 13px;
  font-weight: 750;
}

.customer-search label:first-child {
  grid-template-columns: 1fr;
}

.customer-search label:not(:first-child) {
  grid-template-columns: 240px minmax(0, 1fr);
  column-gap: 16px;
  row-gap: 7px;
}

.customer-search input,
.customer-search select {
  width: 100%;
  height: 44px;
  min-height: 44px;
  box-sizing: border-box;
  border: 1px solid #cdd3dd;
  border-radius: 10px;
  padding: 0 14px;
  color: var(--hp-ink);
  background: #fff;
  font: inherit;
  outline: none;
}

.customer-search select {
  grid-column: 1;
  grid-row: 2;
  padding-right: 34px;
}

.customer-search label:not(:first-child) > input {
  grid-column: 1;
  grid-row: 2;
}

.customer-search input:focus,
.customer-search select:focus {
  border-color: var(--hp-red);
  box-shadow: 0 0 0 3px rgba(217, 33, 80, 0.12);
}

.customer-filter-description {
  display: block;
  grid-column: 2;
  grid-row: 2;
  align-self: center;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
  margin: 0;
  color: #667085;
  font-size: 11px;
  font-weight: 500;
  line-height: 1.45;
  overflow-wrap: anywhere;
  white-space: normal;
}

.customer-filter-description[hidden] {
  display: none;
}

.customer-search-actions {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 10px;
}

.customer-search-actions button,
.customer-search-actions a,
.customer-primary-link,
.customer-link,
.customer-pagination a {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  justify-content: center;
  border-radius: 9px;
  padding: 0 14px;
  font-size: 13px;
  font-weight: 780;
  text-decoration: none;
}

.customer-search-actions button,
.customer-primary-link {
  color: #fff;
  background: var(--hp-red);
}

.customer-search-actions button:hover,
.customer-primary-link:hover {
  background: var(--hp-red-dark);
}

.customer-search-actions a,
.customer-link,
.customer-pagination a {
  border: 1px solid #d7dde6;
  color: #273249;
  background: #fff;
}

.customer-search-actions a:hover,
.customer-link:hover,
.customer-pagination a:hover {
  border-color: #ef9bb1;
  color: var(--hp-red);
  background: #fff7f9;
}

.customer-hint {
  margin: 12px 0 0;
  color: #667085;
  font-size: 12px;
  line-height: 1.55;
}

.customer-table-wrap {
  width: 100%;
  margin-top: 16px;
  overflow-x: auto;
  border: 1px solid #e3e8ef;
  border-radius: 11px;
}

.customer-qr-payload {
  display: block;
  max-width: 32rem;
  max-height: 8rem;
  overflow: auto;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.customer-table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
  font-size: 12px;
}

.customer-table th,
.customer-table td {
  padding: 11px 12px;
  border-bottom: 1px solid #edf0f4;
  text-align: left;
  vertical-align: middle;
  white-space: nowrap;
}

.customer-table th {
  color: #596477;
  background: #f7f9fb;
  font-size: 11px;
  font-weight: 850;
  letter-spacing: .02em;
}

.customer-table tbody tr:last-child td {
  border-bottom: 0;
}

.customer-table tbody tr:hover {
  background: #fffafb;
}

.customer-table code,
.customer-detail code {
  color: #273249;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 11px;
}

/* 02.11 card-product catalog: keep every field and the save action visible. */
.management-workspace > .management-panel,
.card-products-panel {
  min-width: 0;
}

.card-products-table-wrap {
  max-width: 100%;
  overflow-x: auto;
  scrollbar-gutter: stable;
  -webkit-overflow-scrolling: touch;
}

.card-products-table {
  min-width: 1280px;
}

.card-products-table th,
.card-products-table td {
  vertical-align: top;
}

.card-products-table th:last-child,
.card-products-table td:last-child {
  width: 560px;
  min-width: 560px;
}

.card-products-table .card-product-actions-cell {
  white-space: normal;
}

.card-product-update-form {
  display: block;
  min-width: 0;
  white-space: normal;
}

.card-product-editor {
  border: 1px solid #d9e0ea;
  border-radius: 10px;
  background: #f8fafc;
}

.card-product-editor summary {
  padding: 10px 12px;
  color: #172033;
  cursor: pointer;
  font-weight: 750;
}

.card-product-editor[open] summary {
  border-bottom: 1px solid #d9e0ea;
}

.card-product-editor-grid,
.card-product-toggle-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 12px;
  padding: 12px;
}

.card-product-editor-grid label,
.card-product-json-field {
  display: flex;
  flex-direction: column;
  min-width: 0;
  gap: 6px;
  color: #3d4a5f;
  line-height: 1.35;
  white-space: normal;
}

.card-product-image-field {
  grid-column: 1 / -1;
}

.card-product-json-field {
  margin: 12px;
}

.card-product-json-field textarea {
  min-height: 280px;
  resize: vertical;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12px;
  line-height: 1.45;
  white-space: pre;
}

.card-product-toggle-grid {
  padding-top: 0;
}

.card-product-toggle {
  display: flex;
  align-items: flex-start;
  gap: 7px;
  white-space: normal;
}

.card-product-toggle input {
  flex: 0 0 auto;
  margin: 0;
}

.card-product-save {
  width: calc(100% - 24px);
  min-height: 36px;
  margin: 0 12px 12px;
}

.card-product-delete-form {
  margin: 0 12px 12px;
  border-top: 1px solid #e2e8f0;
  padding-top: 12px;
}

.card-product-delete-form p {
  margin: 0 0 10px;
  color: #9b1c1c;
  font-size: 12px;
  line-height: 1.45;
}

.card-product-delete {
  width: 100%;
  margin-top: 10px;
  border-color: #b42318;
  background: #b42318;
  color: #fff;
}

.card-product-image-link {
  margin: 0 0 8px;
}

.card-product-updated {
  display: block;
  margin-top: 10px;
  color: #667085;
  overflow-wrap: anywhere;
  white-space: normal;
}

@media (max-width: 760px) {
  .card-products-table {
    min-width: 1120px;
  }

  .card-products-table th:last-child,
  .card-products-table td:last-child {
    width: 440px;
    min-width: 440px;
  }

  .card-product-editor-grid,
  .card-product-toggle-grid {
    grid-template-columns: 1fr;
  }
}

.customer-state {
  display: inline-flex;
  min-height: 24px;
  align-items: center;
  border-radius: 999px;
  padding: 0 9px;
  color: #3d4a5f;
  background: #eef2f6;
  font-size: 11px;
  font-weight: 750;
}

.customer-balance {
  color: #172033;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-weight: 800;
}

.customer-pagination {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 12px;
}

.customer-empty,
.customer-unavailable,
.customer-notice {
  display: grid;
  gap: 6px;
  margin-top: 16px;
  padding: 14px 15px;
  border-radius: 11px;
  font-size: 13px;
  line-height: 1.55;
}

.customer-empty,
.customer-unavailable {
  border: 1px solid #e0e5ec;
  color: #667085;
  background: #f7f9fb;
}

.customer-unavailable strong {
  color: #3b4658;
}

.customer-notice-error {
  border: 1px solid #f3b3c3;
  color: #8c1735;
  background: #fff5f7;
}

.customer-notice-permission {
  border: 1px solid #f0d29f;
  color: #7c4f0d;
  background: #fff8e9;
}

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

.customer-detail div {
  min-width: 0;
  padding: 13px 14px;
  border: 1px solid #e5e9ef;
  border-radius: 10px;
  background: #fafbfc;
}

.customer-detail dt {
  color: #758094;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .025em;
}

.customer-detail dd {
  margin: 6px 0 0;
  overflow-wrap: anywhere;
  color: #202b42;
  font-size: 13px;
  font-weight: 700;
}

.customer-primary-link {
  margin-top: 16px;
}

html[data-layout="mobile"] .customer-search label:not(:first-child) {
  grid-template-columns: 1fr;
}

html[data-layout="mobile"] .customer-search label:not(:first-child) select,
html[data-layout="mobile"] .customer-filter-description {
  grid-column: 1;
  grid-row: auto;
}

html[data-layout="mobile"] .customer-filter-description {
  align-self: start;
  width: 100%;
  max-width: 100%;
  overflow-wrap: anywhere;
  word-break: normal;
}

@media (max-width: 980px) {
  .customer-grid {
    grid-template-columns: 1fr;
  }

  .customer-panel,
  .customer-panel:nth-child(1),
  .customer-panel:nth-child(2),
  .customer-panel:nth-child(3),
  .customer-panel:nth-child(5) {
    grid-column: auto;
  }
}

@media (max-width: 620px) {
  .customer-detail {
    grid-template-columns: 1fr;
  }

  .customer-search label:not(:first-child) {
    grid-template-columns: 1fr;
  }

  .customer-search label:not(:first-child) select,
  .customer-filter-description {
    grid-column: 1;
    grid-row: auto;
  }

  .customer-filter-description {
    align-self: start;
  }

  .customer-search-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .customer-search-actions button,
  .customer-search-actions a,
  .customer-primary-link {
    width: 100%;
  }

  .customer-pagination {
    justify-content: stretch;
    flex-direction: column;
  }

  .customer-pagination a {
    width: 100%;
  }
}


/* 02.8 Online & Device Management */
.customer-panel#\30 2\.8 { grid-column: 1 / -1; }
.customer-session-summary { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; margin-top: 16px; }
.customer-session-stat { min-width: 0; padding: 12px; border: 1px solid #e3e8ef; border-radius: 10px; background: #fafbfc; }
.customer-session-stat span { display: block; color: #667085; font-size: 10px; line-height: 1.3; }
.customer-session-stat strong { display: block; margin-top: 5px; color: #172033; font-size: 18px; line-height: 1.1; }
.customer-session-title { margin: 0; color: #273249; font-size: 13px; }
.customer-session-list-heading { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-top: 18px; }
.customer-session-page-size { display: flex; align-items: end; gap: 10px; }
.customer-session-page-size label { display: grid; gap: 7px; width: 240px; color: #273249; font-size: 13px; font-weight: 750; }
.customer-session-page-size input { width: 240px; height: 44px; box-sizing: border-box; border: 1px solid #cdd3dd; border-radius: 10px; padding: 0 14px; color: var(--hp-ink); background: #fff; font: inherit; outline: none; }
.customer-session-page-size input:focus { border-color: var(--hp-red); box-shadow: 0 0 0 3px rgba(217, 33, 80, 0.12); }
.customer-session-page-size button { min-height: 44px; border: 0; border-radius: 9px; padding: 0 14px; color: #fff; background: var(--hp-red); font-size: 13px; font-weight: 780; cursor: pointer; }
.customer-session-pagination { align-items: center; }
.customer-session-pagination span { margin-right: auto; color: #667085; font-size: 12px; font-weight: 650; }
.customer-session-table { min-width: 980px; }
@media (max-width: 980px) { .customer-session-summary { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 620px) { .customer-session-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); } .customer-session-stat strong { font-size: 16px; } .customer-session-list-heading { align-items: stretch; flex-direction: column; } .customer-session-page-size { align-items: stretch; flex-direction: column; } .customer-session-page-size label, .customer-session-page-size input, .customer-session-page-size button { width: 100%; } .customer-session-pagination span { margin-right: 0; text-align: center; } }


.customer-record-row .customer-link { font-weight: 650; text-decoration: underline; text-underline-offset: 2px; }
.customer-record-detail { margin: 0 0 18px; padding: 16px; border: 1px solid rgba(31,41,55,.15); border-radius: 12px; background: rgba(255,255,255,.82); }
.customer-record-detail-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.customer-record-detail-heading h3 { margin: 0; font-size: 16px; }
.customer-record-detail-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(220px,1fr)); gap: 8px 16px; margin: 0; }
.customer-record-detail-grid div { min-width: 0; padding: 8px 0; border-bottom: 1px solid rgba(31,41,55,.08); }
.customer-record-detail-grid dt { color: #6b7280; font-size: 12px; }
.customer-record-detail-grid dd { margin: 4px 0 0; overflow-wrap: anywhere; font-size: 13px; }
