.owner-root{min-width:0}.owner-eyebrow{font-size:9px;color:#6393a7;letter-spacing:1.5px;font-weight:600;margin-bottom:9px}.owner-workspace-notice{display:flex;align-items:center;gap:12px;border:1px solid #dcebf1;background:#eef7fa;border-radius:9px;padding:13px 16px;font-size:10px;line-height:1.6;color:#6b8a9b;margin-bottom:20px}.owner-workspace-notice .badge{white-space:nowrap}.owner-metrics{margin-bottom:26px}.owner-main-tabs{margin-bottom:22px}.owner-workspace{display:grid;grid-template-columns:minmax(260px,320px) minmax(0,1fr);gap:22px;align-items:start}.owner-directory{min-width:0}.owner-directory-head{padding:22px 20px 17px;border-bottom:1px solid var(--line)}.owner-directory-head h2{margin-bottom:20px}.owner-directory-head .field{margin-bottom:12px}.owner-directory-head .field:last-child{margin-bottom:0}.owner-directory-head input,.owner-directory-head select{font-size:11px;padding:10px}.owner-directory-head label{font-size:10px}.owner-customer-list{max-height:650px;overflow:auto}.owner-customer{display:flex;align-items:center;gap:10px;text-align:left;width:100%;padding:18px 16px;border:0;border-bottom:1px solid #edf2f5;background:white;transition:background .15s;position:relative}.owner-customer:last-child{border-bottom:0}.owner-customer:hover{background:#f7fbfc}.owner-customer.selected{background:#edf8fc}.owner-customer.selected:before{content:'';position:absolute;inset:0 auto 0 0;width:3px;background:var(--blue)}.owner-customer-avatar{width:32px;height:32px;flex:0 0 32px;border-radius:10px;background:#eaf3f7;color:#4c8a9f;display:grid;place-items:center;font-size:12px;font-weight:600}.owner-customer-main{display:grid;gap:5px;min-width:0;flex:1}.owner-customer-main strong{font-size:11px;font-weight:600;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.owner-customer-main small{font-size:9px;color:#8299a7;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.owner-customer-main>span{display:flex;gap:6px;align-items:center;margin-top:3px}.owner-customer-balance{text-align:right;font-size:10px;font-weight:500;align-self:flex-start;margin-top:2px;white-space:nowrap}.owner-customer-balance small{display:block;color:#91a4af;font-size:8px;font-weight:400;margin-top:7px}.owner-pill{display:inline-flex;font-size:9px;font-weight:500;padding:4px 8px;border-radius:20px;color:#577a8c;background:#edf4f7;white-space:nowrap;line-height:1.3}.owner-pill-active,.owner-pill-approved{color:#3d8063;background:#edf7f1}.owner-pill-pending{color:#997a37;background:#fbf5e7}.owner-pill-suspended,.owner-pill-rejected{color:#a75952;background:#fcf0ee}.owner-pill-archived{color:#80909a;background:#eff2f4}.owner-role{font-size:8px;color:#6b8a9b}.owner-detail{min-width:0}.owner-detail-head{padding:24px;display:flex;justify-content:space-between;align-items:flex-start;gap:20px;border-bottom:1px solid var(--line);background:linear-gradient(120deg,#fff,#f8fcfd)}.owner-detail-head h2{font-size:19px;letter-spacing:-.3px;margin-bottom:8px;overflow-wrap:anywhere}.owner-detail-head p{font-size:11px;overflow-wrap:anywhere}.owner-detail-meta{display:grid;justify-items:end;gap:10px;white-space:nowrap}.owner-detail-meta strong{font-size:20px;font-weight:500}.owner-detail-meta small{font-size:9px;color:#8ca1ad;margin-top:-4px}.owner-detail-toolbar{display:flex;align-items:center;justify-content:space-between;padding:16px 24px;gap:14px}.owner-detail-toolbar .sub{margin:0}.owner-detail-toolbar .button{padding:8px 10px;font-size:10px}.owner-customer-tabs{padding:0 24px;margin-bottom:0;gap:22px}.owner-customer-tabs button{font-size:11px;padding-top:5px}.owner-detail-content{padding:24px}.owner-account-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.owner-account{background:#fafcfd;border:1px solid #e2ebef;border-radius:10px;padding:18px;min-width:0}.owner-account-head{display:flex;justify-content:space-between;align-items:center;gap:8px;margin-bottom:16px}.owner-account-head .button{font-size:9px;padding:0}.owner-account-type{font-size:9px;color:#879eac}.owner-account h3{font-size:12px}.owner-account-balance{font-size:24px;font-weight:500;letter-spacing:-.5px;margin-top:12px}.owner-iban{font-size:9px;line-height:1.8;color:#809baa;overflow-wrap:anywhere;margin:13px 0 20px}.owner-account .button-row{gap:6px}.owner-account .button{padding:8px 10px;font-size:9px}.owner-section-head{display:flex;justify-content:space-between;align-items:flex-start;gap:15px;margin-bottom:22px}.owner-section-head p{font-size:10px;margin-top:7px}.owner-section-head .button{font-size:10px;white-space:nowrap;padding:9px 11px}.owner-table-wrap{overflow-x:auto;max-width:100%}.owner-table{width:100%;border-collapse:collapse;text-align:left;font-size:10px}.owner-table th{font-size:9px;font-weight:500;color:#8ca2af;background:#f8fbfc;padding:12px 10px;border-top:1px solid #e7eff3;border-bottom:1px solid #e7eff3;white-space:nowrap}.owner-table td{padding:15px 10px;border-bottom:1px solid #edf2f5;vertical-align:middle;line-height:1.5}.owner-table td:first-child{min-width:140px;max-width:250px;overflow-wrap:anywhere}.owner-table td strong{font-size:10px;font-weight:500;display:block}.owner-table td small{display:block;font-size:9px;color:#91a5b1;margin-top:5px;overflow-wrap:anywhere}.owner-table td .owner-pill{margin-top:7px}.owner-table .owner-numeric{font-variant-numeric:tabular-nums;white-space:nowrap;text-align:right;font-size:11px}.owner-row-actions{display:flex;align-items:center;gap:6px}.owner-row-actions .button{font-size:9px;padding:7px 9px;white-space:nowrap}.owner-archived{background:#fcfcfd;color:#94a5ae}.owner-archived .owner-numeric{text-decoration:line-through;color:#94a5ae}.owner-loan{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:20px 0;border-top:1px solid var(--line);flex-wrap:wrap}.owner-loan>div:first-child{flex:1;min-width:160px}.owner-loan p{font-size:10px;margin-top:7px}.owner-loan>strong{font-size:14px;font-weight:500}.owner-profile{margin:0}.owner-profile>div{display:grid;grid-template-columns:145px minmax(0,1fr);gap:15px;border-bottom:1px solid var(--line);padding:15px 0}.owner-profile dt{font-size:11px;color:#8b9fab}.owner-profile dd{margin:0;font-size:11px;overflow-wrap:anywhere;line-height:1.6}.owner-audit{padding:22px 0;border-top:1px solid var(--line)}.owner-audit-top{display:flex;justify-content:space-between;gap:15px;align-items:center}.owner-audit-top strong{font-size:12px;font-weight:600}.owner-audit-top time{font-size:9px;color:#94a7b2;white-space:nowrap}.owner-audit-target{font-size:11px;margin-top:9px;color:#5e8092;overflow-wrap:anywhere}.owner-audit-target span{font-size:10px;color:#94a7b2;margin-left:8px}.owner-audit-reason{font-size:11px;color:#7995a5;margin-top:7px}.owner-audit details{margin-top:13px}.owner-audit summary{font-size:10px;cursor:pointer;color:#3696b5}.owner-audit-diff{display:grid;grid-template-columns:1fr 1fr;gap:15px;margin-top:15px}.owner-audit-diff>div{min-width:0}.owner-audit-diff h3{font-size:10px;color:#7593a4;margin-bottom:8px}.owner-audit-diff pre{font-size:9px;line-height:1.65;padding:13px;background:#f5f8fa;border:1px solid var(--line);border-radius:7px;white-space:pre-wrap;overflow-wrap:anywhere;max-height:250px;overflow:auto;margin:0}.owner-no-selection{min-height:270px;display:flex;flex-direction:column;justify-content:center;align-items:center;text-align:center;gap:14px}.owner-no-selection .round-icon{margin-bottom:0}.owner-no-selection p{max-width:280px}.owner-loading{text-align:center;padding:55px 25px}.owner-loading h2{margin:20px 0 10px}.owner-spinner{display:inline-block;width:25px;height:25px;border:3px solid #e3f0f6;border-top-color:var(--blue);border-radius:50%;animation:owner-spin .8s linear infinite}@keyframes owner-spin{to{transform:rotate(360deg)}}#owner-dialog{width:min(510px,94vw)}#owner-dialog .form-grid{margin-bottom:18px}#owner-dialog .form-grid+.field{margin-top:0}#owner-dialog .field input[type=hidden]{display:none}#owner-dialog .summary-line strong{max-width:65%;overflow-wrap:anywhere}#owner-dialog .summary-box{margin-bottom:18px}#owner-dialog .summary-line{font-size:11px}#owner-dialog .summary-line.total{font-size:13px}.owner-dialog-actions{display:flex;justify-content:flex-end;gap:10px;margin-top:22px}.owner-dialog-actions .button{font-size:11px}.owner-root .footer{margin-top:26px}@media(max-width:1250px){.owner-workspace{grid-template-columns:minmax(240px,280px) minmax(0,1fr);gap:18px}.owner-account-grid{grid-template-columns:1fr}.owner-customer-balance{display:none}.owner-detail-content{padding:20px}.owner-detail-head{padding:20px}.owner-detail-toolbar{padding:15px 20px}.owner-customer-tabs{padding:0 20px}.owner-detail-meta strong{font-size:18px}.owner-detail-head h2{font-size:17px}}@media(max-width:980px){.owner-workspace{grid-template-columns:1fr}.owner-directory-head{display:grid;grid-template-columns:1fr 1fr;gap:12px;padding:20px}.owner-directory-head h2{grid-column:1/-1;margin-bottom:5px}.owner-directory-head .field{margin:0}.owner-customer-list{max-height:270px}.owner-customer-balance{display:block}.owner-account-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.owner-no-selection{min-height:220px}.owner-workspace-notice{align-items:flex-start}.owner-metrics .kpi strong{font-size:18px}.owner-directory{max-height:none}}@media(max-width:730px){.owner-root .page-head{flex-wrap:wrap}.owner-root .page-head .button-row{margin-top:4px}.owner-workspace-notice{flex-direction:column;gap:9px;padding:13px}.owner-metrics .kpi strong{font-size:15px;letter-spacing:-.4px}.owner-metrics .kpi span{font-size:8px}.owner-metrics .kpi small{font-size:8px;line-height:1.5}.owner-account-grid{grid-template-columns:1fr}.owner-directory-head{padding:18px;gap:10px}.owner-directory-head .field label{font-size:9px}.owner-directory-head input,.owner-directory-head select{padding:9px;font-size:10px}.owner-detail-head{padding:20px 18px;flex-wrap:wrap}.owner-detail-meta{display:flex;flex-wrap:wrap;align-items:center;justify-items:start;gap:12px}.owner-detail-meta strong{font-size:18px}.owner-detail-meta small{margin-top:0}.owner-detail-toolbar{padding:15px 18px;flex-wrap:wrap;gap:12px}.owner-customer-tabs{padding:0 18px;gap:20px}.owner-customer-tabs button{font-size:10px}.owner-detail-content{padding:18px}.owner-profile>div{grid-template-columns:105px minmax(0,1fr);gap:10px}.owner-profile dt,.owner-profile dd{font-size:10px}.owner-audit-top{flex-wrap:wrap;gap:7px}.owner-audit-target span{display:block;margin:6px 0 0}.owner-audit-diff{grid-template-columns:1fr}.owner-table td{padding:13px 8px}.owner-table th{padding:10px 8px}.owner-table .owner-row-actions{flex-direction:column;align-items:stretch}.owner-table .owner-row-actions .button{padding:6px 8px}.owner-table{min-width:420px}.owner-section-head{flex-wrap:wrap;gap:12px}.owner-account-balance{font-size:25px}.owner-customer-balance{font-size:10px}.owner-customer-list{max-height:260px}.owner-dialog-actions{flex-wrap:wrap}.owner-dialog-actions .button{flex:1}#owner-dialog{padding:24px 20px}#owner-dialog .summary-line{gap:12px}.owner-root .three.metrics{grid-template-columns:1fr 1fr}.owner-root .three.metrics .kpi:last-child{grid-column:1/-1}.owner-root .three.metrics .kpi:last-child strong{font-size:21px}}@media(prefers-reduced-motion:reduce){.owner-spinner{animation:none}.owner-customer{transition:none}}@media print{.owner-directory,.owner-main-tabs,.owner-detail-toolbar,.owner-customer-tabs,.owner-row-actions,.owner-account .button-row,.owner-account-head .button,.owner-workspace-notice,.owner-root .page-head .button-row{display:none!important}.owner-workspace{display:block}.owner-audit-diff{grid-template-columns:1fr 1fr}.owner-table{min-width:0}.owner-table-wrap{overflow:visible}.owner-detail-content{padding:20px}.owner-account-grid{grid-template-columns:1fr 1fr}}
/* Back-office reflow follows the available panel width, including split desktop layouts. */
@media screen {
  .owner-root .owner-detail { container: owner-detail / inline-size; }
  .owner-root .owner-directory,
  .owner-root .owner-detail-content,
  .owner-root .owner-section-head > *,
  .owner-root .owner-loan > *,
  .owner-root .owner-audit-top > *,
  .owner-root .owner-profile dt,
  .owner-root .owner-profile dd { min-width: 0; }

  .owner-root .button,
  .owner-root .tabs button,
  #owner-dialog .button { min-height: 44px; line-height: 1.5; }
  .owner-root .button,
  #owner-dialog .button { max-width: 100%; white-space: normal; overflow-wrap: anywhere; }
  .owner-root .button-row { gap: 8px; }
  .owner-root .owner-section-head { flex-wrap: wrap; }
  .owner-root .owner-section-head > div:first-child { flex: 1 1 180px; }
  .owner-root .owner-section-head > .button-row { flex: 1 1 220px; justify-content: flex-end; }
  .owner-root .owner-account-head { align-items: flex-start; }
  .owner-root .owner-account-head .button { flex: 0 0 auto; padding: 8px; margin: 0; }
  .owner-root .owner-account-type { min-width: 0; overflow-wrap: anywhere; line-height: 1.6; }
  .owner-root .owner-account h3,
  .owner-root .owner-account-balance { overflow-wrap: anywhere; }

  /* Show the full identity so similar email prefixes can still be distinguished. */
  .owner-root .owner-customer {
    display: grid;
    grid-template-columns: 32px minmax(0, 1fr);
    gap: 8px 10px;
    align-items: start;
  }
  .owner-root .owner-customer-avatar { grid-column: 1; grid-row: 1; }
  .owner-root .owner-customer-main { grid-column: 2; grid-row: 1; }
  .owner-root .owner-customer-main strong,
  .owner-root .owner-customer-main small { white-space: normal; overflow: visible; overflow-wrap: anywhere; line-height: 1.6; }
  .owner-root .owner-customer-main > span { flex-wrap: wrap; }
  /* Balances are essential information, including in narrow directories. */
  .owner-root .owner-customer-balance {
    display: block;
    grid-column: 2;
    grid-row: 2;
    min-width: 0;
    max-width: 100%;
    width: 100%;
    margin-top: 0;
    padding-top: 8px;
    border-top: 1px solid var(--line);
    text-align: left;
    white-space: normal;
    overflow-wrap: anywhere;
    line-height: 1.6;
  }
  .owner-root .owner-customer-balance strong {
    display: block;
    font-size: 16px;
    font-weight: 600;
    color: var(--ink, #254b60);
    font-variant-numeric: tabular-nums;
    overflow-wrap: anywhere;
  }
  .owner-root .owner-customer-balance small { margin-top: 0; font-size: 10px; }
  .owner-root .owner-directory-head > p { grid-column: 1 / -1; margin: -10px 0 18px; font-size: 11px; line-height: 1.6; }
  .owner-root .owner-pill { max-width: 100%; white-space: normal; overflow-wrap: anywhere; }
  .owner-root .owner-loan > div:first-child { flex: 1 1 220px; min-width: 0; }
  .owner-root .owner-loan h3,
  .owner-root .owner-loan p,
  .owner-root .owner-audit-top strong,
  .owner-root .owner-audit-reason { overflow-wrap: anywhere; }
  .owner-root .owner-audit-top { flex-wrap: wrap; }
  .owner-root .owner-audit summary { min-height: 44px; padding-block: 12px; line-height: 1.6; }
  .owner-root .owner-audit-diff pre { max-width: 100%; tab-size: 2; }

  /* Wide records scroll within their labelled table region, never the page. */
  .owner-root .owner-table-wrap { min-width: 0; padding-bottom: 6px; }
  .owner-root .owner-table { min-width: 560px; }
  .owner-root .owner-table th,
  .owner-root .owner-table td { overflow-wrap: anywhere; }
  .owner-root .owner-table td:nth-child(2) { min-width: 110px; }
  .owner-root .owner-row-actions { flex-wrap: wrap; }
  .owner-root .owner-row-actions .button { min-width: 64px; }

  #owner-dialog > h2,
  #owner-dialog > p,
  #owner-dialog .field label,
  #owner-dialog .field small,
  #owner-dialog .form-error { overflow-wrap: anywhere; }
  #owner-dialog .field,
  #owner-dialog .form-grid > *,
  #owner-dialog input,
  #owner-dialog select,
  #owner-dialog textarea { min-width: 0; max-width: 100%; }
  #owner-dialog .summary-line { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: 6px 16px; align-items: start; }
  #owner-dialog .summary-line > * { min-width: 0; overflow-wrap: anywhere; }
  #owner-dialog .summary-line strong { max-width: none; text-align: right; font-variant-numeric: tabular-nums; }
  #owner-dialog .owner-dialog-actions { flex-wrap: wrap; }
  #owner-dialog .owner-dialog-actions .button { flex: 1 1 150px; }
  #owner-dialog .close { min-width: 44px; min-height: 44px; margin: 0 0 8px 12px; }
}

@container owner-detail (max-width: 600px) {
  .owner-detail .owner-account-grid { grid-template-columns: minmax(0, 1fr); }
  .owner-detail .owner-section-head > .button-row { flex-basis: 100%; justify-content: flex-start; }
  .owner-detail .owner-detail-toolbar > .button-row { width: 100%; }
  .owner-detail .owner-detail-toolbar > .button-row .button { flex: 1 1 110px; }
}

@container owner-detail (max-width: 390px) {
  .owner-detail .owner-detail-head > div { width: 100%; }
  .owner-detail .owner-detail-meta { justify-items: start; }
  .owner-detail .owner-account .button-row .button,
  .owner-detail .owner-section-head > .button-row .button,
  .owner-detail .owner-loan .button-row .button,
  .owner-detail .owner-request .button-row .button { flex: 1 1 100%; }
}

@media screen and (max-width: 480px) {
  .owner-root .owner-section-head > .button-row { flex-basis: 100%; justify-content: flex-start; }
  .owner-root .owner-loan > .button { width: 100%; }
  .owner-root .owner-table th,
  .owner-root .owner-table td { font-size: 11px; }
  #owner-dialog .summary-box { padding: 14px; }
  #owner-dialog .summary-line { grid-template-columns: minmax(0, 1fr); gap: 3px; margin-block: 14px; }
  #owner-dialog .summary-line strong { text-align: left; }
  #owner-dialog .owner-dialog-actions .button { flex-basis: 100%; }
}

.owner-audit-correction { margin-block: 14px; padding: 14px; border-left: 3px solid #5199c8; background: #f2f8fc; border-radius: 8px; overflow-wrap: anywhere; }
.owner-audit-correction p { white-space: pre-wrap; margin-block: 8px; }
.owner-audit-correction small { display: block; }

.owner-reference-fix { margin-top: 8px; }
.owner-reference-fix[hidden] { display: none; }
.owner-reference-fix .button { max-width: 100%; white-space: normal; overflow-wrap: anywhere; }

/* Retain vertical scrolling and reachable actions on short landscape displays. */
@media screen and (max-height: 500px) {
  #owner-dialog[open] {
    --dialog-y: 16px;
    max-height: calc(100vh - 16px);
    max-height: calc(100dvh - 16px - env(safe-area-inset-top) - env(safe-area-inset-bottom));
    scroll-padding-block: 12px calc(var(--disclosure-height, 42px) + 16px);
  }
}
