.customer-admin-page { min-width: 0; color: #24435f; font-size: 16px; }
.customer-admin-icon { display: inline-block; flex: 0 0 auto; width: 22px; height: 22px; vertical-align: middle; }
.customer-admin-eyebrow { display: block; margin-bottom: 9px; color: #5d7085; font-size: 14px; font-weight: 600; letter-spacing: 1px; }
.customer-admin-heading { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-bottom: 24px; }
.customer-admin-heading h1 { font-size: 31px; line-height: 1.45; font-weight: 650; letter-spacing: -.4px; }
.customer-admin-heading p { max-width: 800px; margin-top: 11px; color: #5d7085; font-size: 16px; line-height: 1.85; }
.customer-admin-scope { display: flex; align-items: center; flex: 0 0 auto; gap: 9px; padding: 9px 12px; color: #47769f; border: 1px solid #cce0f4; border-radius: 5px; background: #edf6ff; font-size: 14px; }
.customer-admin-scope .customer-admin-icon { width: 18px; height: 18px; }
.customer-admin-page .customer-admin-button { display: inline-flex; align-items: center; justify-content: center; gap: 12px; min-height: 48px; padding: 10px 18px; border: 1px solid transparent; border-radius: 6px; font-size: 15px; font-weight: 600; line-height: 1.5; white-space: nowrap; }
.customer-admin-page .customer-admin-button.primary { color: #fff; background: #0066cc; }
.customer-admin-page .customer-admin-button.primary:hover { background: #0053a7; }
.customer-admin-page .customer-admin-button.secondary { color: #456581; border-color: #c2d5e8; background: #fff; }
.customer-admin-page .customer-admin-button.secondary:hover { color: #0066cc; border-color: #82afda; background: #f1f7fe; }
.customer-admin-page .customer-admin-button.warning { color: #875c14; border-color: #e4cda3; background: #fff6e6; }
.customer-admin-page .customer-admin-button:disabled { cursor: default; opacity: .55; }
.customer-admin-page .customer-admin-text-button { display: inline-flex; align-items: center; gap: 8px; min-height: 48px; padding: 8px 0; color: #0066cc; border: 0; background: transparent; font-size: 14px; text-align: left; }
.customer-admin-page .customer-admin-text-button:hover { text-decoration: underline; }
.customer-admin-page .customer-admin-text-button:disabled { cursor: default; opacity: .55; }
.customer-related-records { display: flex; flex-wrap: wrap; gap: 0 16px; }
.customer-related-records-detail { gap: 12px; margin: -8px 0 24px; }
.customer-admin-page .customer-admin-icon-button { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; width: 43px; min-height: 43px; padding: 8px; color: #5d7085; border: 1px solid #dbe6f1; border-radius: 5px; background: #fff; }
.customer-admin-page .customer-admin-icon-button:hover { color: #0066cc; background: #f0f6fe; }
.customer-admin-badge { display: inline-flex; align-items: center; justify-content: center; min-height: 28px; padding: 4px 8px; color: #5d7085; background: #edf2f7; border-radius: 4px; font-size: 14px; line-height: 1.5; white-space: nowrap; }
.customer-admin-badge.success { color: #256c49; background: #e9f7ef; }
.customer-admin-badge.blue { color: #2265a5; background: #eaf3fe; }
.customer-admin-badge.warning { color: #875c14; background: #fff5df; }
.customer-admin-list-panel { min-width: 0; overflow: hidden; border: 1px solid #dce5ef; border-radius: 8px; background: #fff; }
.customer-admin-list-panel > header { display: flex; align-items: center; justify-content: space-between; gap: 23px; padding: 23px 24px; }
.customer-admin-list-panel h2 { font-size: 21px; font-weight: 600; }
.customer-admin-list-panel > header p { margin-top: 7px; color: #5d7085; font-size: 14px; line-height: 1.8; }
.customer-admin-query { display: flex; align-items: flex-end; flex-wrap: wrap; gap: 16px; padding: 19px 24px 23px; border-top: 1px solid #e8eff6; background: #fcfdff; }
.customer-admin-query > .customer-admin-field { flex: 1 1 210px; max-width: 390px; }
.customer-query-actions { display: flex; gap: 11px; }
.customer-admin-field { min-width: 0; }
.customer-admin-field > label { display: block; margin-bottom: 9px; color: #456580; font-size: 15px; font-weight: 600; }
.customer-admin-page input, .customer-admin-page select { min-width: 0; width: 100%; min-height: 50px; padding: 11px 14px; color: #294d6c; border: 1px solid #bfd1e3; border-radius: 6px; background: #fff; font: inherit; font-size: 16px; line-height: 1.65; }
.customer-admin-page input::placeholder { color: #5d7085; opacity: 1; }
.customer-admin-page input:focus, .customer-admin-page select:focus { border-color: #0066cc; box-shadow: 0 0 0 3px #0066cc0c; }
.customer-admin-page input:disabled, .customer-admin-page input[readonly], .customer-admin-page select:disabled { color: #5d7085; background: #f4f8fc; }
.customer-admin-page input[type="checkbox"] { flex: 0 0 auto; width: 20px; height: 20px; min-height: 20px; margin: 3px 0 0; padding: 0; accent-color: #0066cc; }
.customer-admin-field > small { display: block; margin-top: 7px; color: #5d7085; font-size: 14px; line-height: 1.85; }
.customer-admin-tabs { display: flex; gap: 25px; padding: 0 24px; overflow-x: auto; border-top: 1px solid #e7eef6; scrollbar-width: thin; }
.customer-admin-tabs > button { position: relative; flex: 0 0 auto; min-height: 59px; padding: 12px 3px; color: #5d7085; border: 0; background: transparent; font-size: 16px; white-space: nowrap; }
.customer-admin-tabs > button.is-active { color: #0066cc; font-weight: 600; }
.customer-admin-tabs > button.is-active::after { position: absolute; inset: auto 0 0; height: 3px; background: #0066cc; border-radius: 2px 2px 0 0; content: ""; }
.customer-admin-table-scroll { width: 100%; overflow-x: auto; scrollbar-width: thin; scrollbar-color: #bed0e1 #f6f9fc; overscroll-behavior-inline: contain; }
.customer-admin-page table { width: 100%; min-width: 850px; border-collapse: collapse; font-size: 15px; text-align: left; white-space: nowrap; }
.customer-admin-page th { padding: 15px 21px; color: #4d6c87; border-block: 1px solid #dfe9f3; background: #f0f5fc; font-size: 14px; font-weight: 600; }
.customer-admin-page td { padding: 17px 21px; color: #4e6e88; border-bottom: 1px solid #e9f0f7; line-height: 1.7; vertical-align: middle; }
.customer-admin-page tbody tr:last-child td { border-bottom: 0; }
.customer-admin-page td > strong { display: block; color: #2e5473; font-weight: 550; }
.customer-admin-page td > small { display: block; margin-top: 5px; color: #5d7085; font-size: 14px; }
.customer-admin-page .customer-id { font-variant-numeric: tabular-nums; }
.customer-admin-page .customer-name, .customer-admin-page .customer-email { min-width: 9em; max-width: 19em; white-space: normal; overflow-wrap: anywhere; }
.customer-admin-page .number { text-align: right; font-variant-numeric: tabular-nums; }
.customer-admin-page td.customer-audit-request { max-width: 260px; color: #5d7085; font-family: Consolas,"Segoe UI",monospace; font-size: 14px; white-space: normal; overflow-wrap: anywhere; }
.customer-audit-request > small { max-width: 240px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.customer-admin-pagination { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 20px 24px; border-top: 1px solid #e9f0f6; }
.customer-admin-pagination > span { color: #5d7085; font-size: 14px; }
.customer-admin-pagination > div { display: flex; gap: 11px; }
.customer-admin-pagination .customer-admin-button { min-height: 46px; padding: 9px 15px; font-size: 14px; }
.customer-admin-record-note { display: flex; align-items: flex-start; gap: 10px; padding: 16px 24px; color: #5d7085; border-top: 1px solid #e8f0f7; background: #fbfdff; font-size: 14px; line-height: 1.9; }
.customer-admin-record-note .customer-admin-icon { width: 19px; height: 19px; margin-top: 3px; }
.customer-admin-empty { display: flex; align-items: center; justify-content: center; flex-direction: column; min-height: 270px; padding: 32px 24px; text-align: center; }
.customer-admin-empty > .customer-admin-icon { width: 33px; height: 33px; color: #5d7085; }
.customer-admin-empty h3 { margin-top: 16px; color: #426681; font-size: 18px; font-weight: 600; }
.customer-admin-empty p { max-width: 650px; margin-top: 10px; color: #5d7085; font-size: 14px; overflow-wrap: anywhere; }
.customer-admin-empty .customer-admin-button { margin-top: 23px; }
.customer-admin-page .customer-table-empty { height: 230px; padding: 30px; text-align: center; white-space: normal; }
.customer-table-empty > .customer-admin-icon { width: 30px; height: 30px; margin-bottom: 12px; color: #5d7085; }
.customer-table-empty h3 { color: #426681; font-size: 18px; }
.customer-table-empty p { margin-top: 10px; color: #5d7085; font-size: 14px; }
.customer-admin-spinner { width: 29px; height: 29px; border: 3px solid #dfebf7; border-top-color: #6a9bc8; border-radius: 50%; animation: customer-admin-spin 1s linear infinite; }
@keyframes customer-admin-spin { to { transform: rotate(360deg); } }
.customer-admin-profile { min-width: 0; padding: 25px 27px; margin-bottom: 26px; border: 1px solid #bed7ee; border-radius: 8px; background: #fff; box-shadow: 0 4px 16px #0066cc06; scroll-margin-top: 95px; }
.customer-admin-profile > header { display: flex; align-items: flex-start; justify-content: space-between; gap: 22px; margin-bottom: 24px; }
.customer-admin-profile h2 { color: #294d6b; font-size: 22px; font-weight: 600; }
.customer-admin-profile header p { margin-top: 9px; color: #5d7085; font-size: 15px; line-height: 1.85; }
.customer-profile-boundary { display: flex; align-items: flex-start; gap: 11px; padding: 15px 18px; border: 1px solid #dce8f4; border-radius: 6px; background: #f2f7fe; }
.customer-profile-boundary > .customer-admin-icon { width: 19px; height: 19px; margin-top: 3px; color: #5d7085; }
.customer-profile-boundary p { color: #5d7085; font-size: 14px; line-height: 1.9; }
.customer-profile-restricted { padding: 15px 18px; margin-top: 18px; color: #8a621d; border: 1px solid #efddba; border-radius: 6px; background: #fff9ed; font-size: 15px; line-height: 1.85; }
.customer-profile-section { padding-top: 25px; margin-top: 25px; border-top: 1px solid #e3ecf5; }
.customer-profile-section > header { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; margin-bottom: 22px; }
.customer-profile-section h2 { color: #416583; font-size: 20px; }
.customer-profile-section header p { margin-top: 7px; font-size: 14px; }
.customer-contact-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); align-items: stretch; gap: 18px; }
.customer-contact-card { min-width: 0; padding: 18px 19px; border: 1px solid #dfe9f3; border-radius: 6px; background: #fbfdff; }
.customer-contact-card > header { display: flex; align-items: flex-start; flex-wrap: wrap; gap: 10px 15px; }
.customer-contact-card h3 { color: #406482; font-size: 17px; font-weight: 600; }
.customer-contact-card dl { display: grid; gap: 15px; margin: 19px 0 22px; }
.customer-contact-card dt { color: #5d7085; font-size: 14px; }
.customer-contact-card dd { min-height: 25px; margin: 5px 0 0; color: #355b79; font-size: 15px; line-height: 1.85; overflow-wrap: anywhere; white-space: pre-wrap; }
.customer-new-contact { margin-top: 18px; }
.customer-reason-field { margin-top: 24px; }
.customer-admin-form-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }
.customer-admin-form-message { margin-top: 15px; color: #a13b49; font-size: 15px; line-height: 1.85; overflow-wrap: anywhere; }
.customer-admin-form-message:empty { margin: 0; }
.customer-admin-form-message.is-error { padding: 13px 15px; border: 1px solid #ebcbd0; border-radius: 5px; background: #fff3f5; }
.customer-admin-new-draft { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 5px 20px; padding-top: 15px; margin-top: 20px; border-top: 1px solid #e5edf5; }
.customer-admin-new-draft > label { display: flex; align-items: flex-start; gap: 9px; color: #5d7085; font-size: 14px; line-height: 1.8; cursor: pointer; }
.customer-admin-locked { display: flex; align-items: flex-start; gap: 12px; padding: 16px 18px; margin-bottom: 24px; color: #886329; border: 1px solid #eeddbc; border-radius: 6px; background: #fff9ed; }
.customer-admin-locked > .customer-admin-icon { margin-top: 3px; }
.customer-admin-locked strong { font-size: 15px; font-weight: 600; }
.customer-admin-locked p { margin-top: 6px; color: #7e6742; font-size: 14px; line-height: 1.85; }
.customer-admin-locked code { display: block; margin-top: 10px; font-family: Consolas,"Segoe UI",monospace; font-size: 14px; overflow-wrap: anywhere; }
.customer-access-summary { padding: 17px 19px; border: 1px solid #e0eaf4; border-radius: 6px; background: #f6f9fd; }
.customer-access-summary p { margin-top: 8px; color: #5d7085; font-size: 15px; line-height: 1.85; }
.customer-status-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 20px; }
.customer-admin-small { margin-top: 14px; color: #5d7085; font-size: 14px; line-height: 1.85; }
.customer-admin-small.warning { color: #886329; }
.customer-admin-confirm { display: flex; align-items: flex-start; gap: 11px; padding: 15px 17px; margin-top: 22px; color: #4f6c85; border: 1px solid #d9e6f4; border-radius: 6px; background: #f3f8fe; font-size: 15px; line-height: 1.85; cursor: pointer; }
#customer-status-form { margin-top: 23px; }
.customer-admin-result { display: flex; align-items: flex-start; gap: 12px; padding: 16px 18px; margin-bottom: 23px; color: #2d7450; border: 1px solid #c8e1d2; border-radius: 6px; background: #f2faf5; font-size: 15px; line-height: 1.85; }
.customer-admin-result > .customer-admin-icon { margin-top: 3px; }
.customer-admin-result > p { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.customer-admin-result .customer-admin-icon-button { width: 33px; min-height: 33px; padding: 5px; border: 0; background: transparent; }
.customer-admin-result.error { color: #a13c49; border-color: #e8cdd2; background: #fff4f5; }
@media (max-width: 1250px) {
  .customer-contact-grid { grid-template-columns: 1fr; gap: 18px; }
  .customer-contact-card dl { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 1050px) {
  .customer-admin-heading { align-items: flex-start; flex-direction: column; gap: 17px; }
  .customer-admin-heading h1 { font-size: 29px; }
}
@media (max-width: 560px) {
  .customer-admin-heading h1 { font-size: 27px; }
  .customer-admin-heading p { font-size: 15px; }
  .customer-admin-list-panel > header { align-items: flex-start; flex-direction: column; gap: 15px; padding: 20px 18px; }
  .customer-admin-list-panel > header > .customer-admin-button { width: 100%; }
  .customer-admin-query { align-items: stretch; flex-direction: column; gap: 15px; padding: 18px; }
  .customer-admin-query > .customer-admin-field { flex: 1 1 auto; max-width: none; }
  .customer-query-actions > .customer-admin-button { flex: 1; }
  .customer-admin-tabs { gap: 22px; padding-inline: 18px; }
  .customer-admin-tabs > button { min-height: 57px; font-size: 15px; }
  .customer-admin-pagination { align-items: flex-start; flex-direction: column; gap: 15px; padding: 18px; }
  .customer-admin-pagination > div { width: 100%; }
  .customer-admin-pagination .customer-admin-button { flex: 1; min-height: 48px; font-size: 15px; }
  .customer-admin-page th, .customer-admin-page td { padding-inline: 17px; }
  .customer-admin-record-note { gap: 9px; padding-inline: 18px; }
  .customer-admin-profile { padding: 22px 18px; scroll-margin-top: 85px; }
  .customer-admin-profile > header { gap: 13px; }
  .customer-admin-profile h2 { font-size: 20px; }
  .customer-profile-section > header { align-items: flex-start; flex-direction: column; gap: 12px; }
  .customer-contact-card { padding: 18px 16px; }
  .customer-contact-card dl { grid-template-columns: 1fr; }
  .customer-admin-form-actions > .customer-admin-button { width: 100%; }
  .customer-admin-new-draft { align-items: flex-start; flex-direction: column; }
  .customer-admin-locked { gap: 10px; padding: 14px; }
  .customer-access-summary { padding: 15px 16px; }
  .customer-status-actions > .customer-admin-button { width: 100%; }
  .customer-admin-confirm { gap: 10px; padding: 14px; font-size: 14px; }
  .customer-admin-result { gap: 9px; padding: 14px; font-size: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  .customer-admin-page *, .customer-admin-page *::before, .customer-admin-page *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

.customer-dossier { min-width: 0; color: #24415d; }
.customer-dossier .dossier-head { display:flex; align-items:center; justify-content:space-between; gap:20px; padding: 3px 0 22px; }
.dossier-head h1 { font-size:clamp(25px,2.2vw,36px); line-height:1.25; margin:13px 0 7px; overflow-wrap:anywhere; }
.dossier-head span { color:#536e85; font-size:15px; }
.customer-dossier a,.customer-name a,.customer-id a,.dossier-link { color:#075dbb; text-decoration:none; }
.customer-dossier a:hover,.customer-name a:hover,.customer-id a:hover,.dossier-link:hover { text-decoration:underline; }
.dossier-tabs { display:flex; gap:2px; flex-wrap:wrap; border-bottom:1px solid #d7e2ef; background:#fff; border-radius:12px 12px 0 0; padding:0 12px; }
.dossier-tabs a { color:#36516b; padding:16px 13px 13px; white-space:nowrap; border-bottom:3px solid transparent; font-weight:550; }
.dossier-tabs a[aria-current=page] { color:#0062ba; border-color:#006bc8; }
.dossier-body { min-width:0; margin-top:18px; }
.dossier-metrics,.dossier-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(min(285px,100%),1fr)); gap:16px; margin-bottom:16px; }
.dossier-metric,.dossier-panel { border:1px solid #dae5f1; border-radius:12px; background:white; padding:clamp(16px,1.6vw,28px); min-width:0; }
.dossier-metric { background:linear-gradient(105deg,#fff,#f2f7ff); display:grid; gap:7px; }
.dossier-metric span,.dossier-facts dt { color:#546c82; font-size:15px; }
.dossier-metric strong { color:#163f70; font-size:clamp(21px,1.7vw,29px); }
.dossier-panel h2 { margin:0 0 15px; font-size:20px; }
.dossier-body>.dossier-panel { margin-bottom:16px; }
.dossier-facts { margin:0 0 14px; display:grid; grid-template-columns:repeat(auto-fit,minmax(min(168px,100%),1fr)); gap:16px; }
.dossier-facts dd { margin:4px 0 0; color:#213e57; font-weight:550; overflow-wrap:anywhere; }
.dossier-sources,.dossier-pager { display:flex; flex-wrap:wrap; align-items:center; gap:8px; margin:0 0 14px; }
.dossier-sources button,.dossier-pager button { background:white; border:1px solid #bdd0e2; padding:8px 14px; border-radius:6px; color:#36536e; cursor:pointer; font:inherit; }
.dossier-sources button[aria-pressed=true] { color:#075eb2; background:#ecf5ff; border-color:#80b2e5; }
.dossier-pager { justify-content:flex-end; margin:16px 0 0; }
.dossier-pager span { margin-right:auto; }
.dossier-pager button:disabled { opacity:.5; cursor:default; }
.dossier-link { font:inherit; padding:2px 0; background:transparent; border:0; cursor:pointer; }
.dossier-panel .customer-admin-table-scroll td { max-width:36em; white-space:normal; overflow-wrap:anywhere; }
.dossier-empty { padding:20px 0; color:#556e83; }
.dossier-error { color:#9c301e; }
.dossier-message { padding:14px 0; border-bottom:1px solid #dce6ef; }
.dossier-message p { white-space:pre-wrap; overflow-wrap:anywhere; }
.dossier-message small { margin-left:12px; }
@media(max-width:760px) {
  .dossier-tabs { flex-wrap:nowrap; overflow:auto; padding-inline:4px; }
  .dossier-tabs a { padding:13px 10px 9px; }
  .dossier-metrics { gap:8px; }
  .dossier-sources { gap:6px; }
  .dossier-head h1 { font-size:24px; }
}
