/* Presentation only. Renderers, data, handlers and print templates are unchanged. */
html body.ns-authed { padding-top:56px; }
body #ns-topbar { height:56px;border-bottom:2px solid #6aa0db;box-shadow:none; }
body #ns-topbar .ns-tb-back { box-sizing:border-box;height:24px;padding:0 12px;display:inline-flex;align-items:center;gap:4px; }
body #ns-topbar .ns-tb-brand .ns-tb-word { font-size:22px; }
body #ns-topbar .ns-tb-brand .ns-tb-grp { font-size:7px; }
body #ns-topbar .ns-tb-brand svg { width:24px;height:28px; }
body #ns-tool-wrap { height:calc(100vh - 56px); }
body #ns-side .ns-group[data-grp="discovery"],
body #ns-side .ns-group[data-grp="desk"] { display:none; }

body #biz-section-wrap:has(> #biz-clients[style*="display: block"]),
body #biz-section-wrap:has(> #biz-billing[style*="display: block"]),
body #biz-section-wrap:has(> #client-file-page:not([style*="display: none"])) {
  max-width:none!important;padding:0!important;min-height:calc(100vh - 56px);background:#f6f7fb;
}
body #biz-clients,body #biz-billing,body #client-file-page { box-sizing:border-box;padding:16px 22px 24px;background:#f6f7fb;min-width:0; }
body #biz-clients,body #biz-billing { color:#1e2228; }
body #biz-clients .clv2-sub,body #biz-clients .clv2-ghost,
body #biz-clients .clv2-avatar,body #biz-clients .clv2-pill { display:none; }
body #biz-clients .clv2-hero,body #client-file-page .cdv2-hero { padding:0 0 12px;margin:0 0 14px;border-radius:0;border-bottom:1px solid #e3e7ee;background:none;color:#1e2228;box-shadow:none;overflow:visible; }
body #biz-clients .clv2-hero-row { flex-wrap:nowrap;gap:12px; }
body #biz-clients .clv2-title,body #biz-billing .bt3-title,body #client-file-page .cdv2-name { margin:0;padding:0;border:0;color:#1e2228;font-family:'Cormorant Garamond',serif;font-size:26px;font-weight:700;line-height:1.1; }
body #biz-clients .clv2-add,body #biz-billing .bt3-create,body #biz-billing .blv2-add,body #client-file-page .cdv2-edit {
  box-sizing:border-box;height:30px;padding:0 13px;border:0;border-radius:7px;background:#4a6a9a;color:#fff;font:600 12.5px Inter,Arial,sans-serif;white-space:nowrap;box-shadow:none;transform:none;
}
body #biz-clients .clv2-add:hover,body #biz-billing .bt3-create:hover,body #biz-billing .blv2-add:hover,body #client-file-page .cdv2-edit:hover { background:#3f5e8d;transform:none;box-shadow:none; }
body #biz-clients .nl-clients-card,body #biz-billing .bt3-table-wrap,
body #client-file-page .cdv2-info,body #client-file-page .csec-section { border:1px solid #e3e7ee;border-radius:12px;background:#fff; }
body #biz-clients .nl-clients-card { overflow:hidden; }
body #biz-billing .bt3-table,body #biz-clients #biz-clients-list,body #biz-clients .nl-clients-head { font:500 13px Montserrat,Arial,sans-serif; }
body #biz-clients .nl-clients-head,body #biz-clients .clv2-row {
  grid-template-columns:minmax(0,1.8fr) minmax(0,1fr) 172px;gap:0;
}
body #biz-clients .nl-clients-head>span:nth-child(2) { display:none; }
body #biz-clients .nl-clients-head>span:nth-child(3) { grid-column:2; }
body #biz-clients .nl-clients-head>span:last-child { grid-column:3; }
body #biz-clients .clv2-row { margin:0;border:0;border-bottom:1px solid #e3e7ee;border-radius:0;box-shadow:none;transform:none;cursor:pointer; }
body #biz-clients .clv2-row:last-child { border-bottom:0; }
body #biz-clients .clv2-row:hover { background:#fafbfd;box-shadow:none;transform:none; }
body #biz-clients .clv2-row:focus-within { outline:2px solid #2c5a93;outline-offset:-2px; }
body #biz-clients .clv2-info { display:contents; }
body #biz-clients .clv2-client-cell { grid-column:1;grid-row:1; }
body #biz-clients .clv2-ind:empty::before { content:"\00a0"; }
body #biz-clients .clv2-added { grid-column:2;grid-row:1;margin:0;overflow-wrap:anywhere; }
body #biz-clients .clv2-added-phone { display:none; }
body #biz-clients .clv2-actions { grid-column:3;grid-row:1;justify-content:flex-end;gap:12px;flex-wrap:nowrap; }
body #biz-clients .clv2-open,body #biz-billing [data-bt-action="pay"] {
  box-sizing:border-box;height:28px;padding:0 12px;border:1px solid #cfd8e6;border-radius:7px;background:#fff;color:#3a6aa8;font:600 12.5px Inter,Arial,sans-serif;display:inline-flex;align-items:center;justify-content:center;white-space:nowrap;
}
/* Keep the existing Open File label/handler; suppress only its decorative arrow. */
body #biz-clients .clv2-open { font-size:0;flex-shrink:0; }
body #biz-clients .clv2-open::after { content:"Open File";font-size:12.5px; }
body #biz-clients .clv2-open:hover,body #biz-billing [data-bt-action="pay"]:hover { background:#f6f8fa; }
body #biz-clients .clv2-remove { border:0;border-radius:0;background:none;color:#6b7480;padding:0;font:600 12.5px Inter,Arial,sans-serif; }
body #biz-clients .clv2-remove:hover { color:#b8473d; }
body #biz-clients .clv2-remove[style] { min-width:0;white-space:normal!important; }

body #biz-billing .nl-billing-heading { position:relative;display:grid;grid-template-columns:minmax(0,1fr) max-content;grid-template-rows:43px auto;align-items:center;gap:0 12px;margin-bottom:14px; }
body #biz-billing .bt3-title { grid-column:1;grid-row:1;align-self:start; }
body #biz-billing .bt3-toolbar { display:contents; }
body #biz-billing .bt3-create { grid-column:2;grid-row:1;align-self:start;margin:0; }
body #biz-billing .nl-billing-heading::before { content:"";position:absolute;left:0;right:0;top:42px;border-bottom:1px solid #e3e7ee;pointer-events:none; }
body #biz-billing .bt3-tabs { grid-column:1/-1;grid-row:2;gap:24px;padding-top:4px; }
body #biz-billing .bt3-tab { font-size:13px;font-weight:600;color:#6b7480;border-bottom:2px solid transparent;padding:10px 0; }
body #biz-billing .bt3-tab.active { color:#1e2228;border-bottom-color:#1e2228; }
body #biz-billing .bt3-cards { gap:12px;margin-bottom:14px; }
body #biz-billing .bt3-card { padding:12px 16px;border:1px solid #e3e7ee;border-radius:12px; }
body #biz-billing .bt3-card-label { font-size:10.5px;letter-spacing:.07em;text-transform:uppercase;color:#4d5663; }
body #biz-billing .bt3-card-value { font-size:20px;font-weight:600;font-variant-numeric:tabular-nums; }
body #biz-billing .bt3-table { display:block;min-width:840px;width:100%; }
body #biz-billing .bt3-table thead,body #biz-billing .bt3-table tbody { display:block; }
body #biz-billing .bt3-table thead tr,body #biz-billing .bt3-table tr[data-invoice-row],
body #biz-clients .nl-clients-head,body #biz-clients .clv2-row {
  display:grid;padding:12px 20px;align-items:center;border-bottom:1px solid #e3e7ee;
}
body #biz-billing .bt3-table thead tr,body #biz-billing .bt3-table tr[data-invoice-row] {
  grid-template-columns:14px minmax(0,.55fr) minmax(0,1.8fr) minmax(0,1fr) minmax(0,.9fr) minmax(0,.8fr) minmax(0,.9fr) 212px;
}
body #biz-billing .bt3-table tbody tr:last-child { border-bottom:0; }
body #biz-billing .bt3-table th,body #biz-billing .bt3-table td,
body #biz-clients .nl-clients-head>span,body #biz-clients .clv2-client-cell,body #biz-clients .clv2-added,body #biz-clients .clv2-actions {
  display:block;padding:0 6px;border:0;min-width:0;color:#3b4350;font-size:13px;
}
body #biz-clients .nl-clients-head>span:nth-child(2) { display:none; }
body #biz-clients .clv2-actions { display:flex; }
body #biz-billing .bt3-table th,body #biz-clients .nl-clients-head>span { font-size:10.5px;letter-spacing:.07em;text-transform:uppercase;color:#4d5663; }
body #biz-billing tr[data-invoice-row]>td:nth-child(3),body #biz-clients .clv2-name { font-size:14px;font-weight:600;color:#1e2228;overflow-wrap:anywhere; }
body #biz-billing .bt3-job,body #biz-clients .clv2-ind { font-size:11.5px;font-weight:400;color:#6b7480;margin-top:3px; }
body #biz-billing tr[data-invoice-row]>td:nth-child(5) { font-weight:600;color:#1e2228; }
body #biz-billing .bt3-status { box-sizing:border-box;height:21px;padding:0 9px;border-radius:999px;font-size:11px;font-weight:600;line-height:19px;background:#fff; }
body #biz-billing tr[data-invoice-row] .bt3-actions { justify-content:flex-end;gap:12px; }
body #biz-billing [data-bt-action="edit-invoice"],body #biz-billing [data-bt-action="print"] { font-size:12.5px;font-weight:600;color:#6b7480; }
body #biz-billing [data-bt-action="edit-invoice"]:hover,body #biz-billing [data-bt-action="print"]:hover { color:#1e2228; }
body #biz-billing .bt3-trash { color:#8a929c; }
body #biz-billing .bt3-trash:hover { color:#b8473d; }
body #biz-billing .bt3-payment-area { display:block; }
body #biz-billing .bt3-payment-area>td { padding:14px 20px; }
body #biz-billing .bt3-extra .bt3-link,body #biz-billing .bt3-filter-clear .bt3-link { color:#3a6aa8;font-size:12.5px; }

/* Client file: outer presentation only; existing panel content and handlers stay intact. */
body #biz-section-wrap:has(> #client-file-page:not([style*="display: none"])) { margin:0!important; }
body #client-file-page .cdv2-profile { display:contents; }
body #client-file-page .cdv2-avatar,body #client-file-page .cdv2-ghost { display:none; }
body #client-file-page .cdv2-name { white-space:normal;overflow:visible;text-overflow:clip;overflow-wrap:anywhere; }
body #client-file-page .cdv2-edit svg { width:12px;height:12px; }
body #client-file-page .cdv2-edit-label { display:inline; }
body #client-file-page .cdv2-edit:focus-visible { outline:2px solid #2c5a93;outline-offset:2px; }
body #client-file-page .cdv2-info {
  grid-template-columns:minmax(0,1.1fr) minmax(0,1fr) minmax(0,1.4fr) minmax(0,1fr) minmax(0,1.4fr) minmax(0,1.1fr);
  gap:0;margin:0 0 14px;
}
body #client-file-page .cdv2-info-cell { min-width:0;padding:12px 18px;border-right:1px solid #e3e7ee; }
body #client-file-page .cdv2-info-cell:last-child { border-right:0; }
body #client-file-page .cdv2-info-label { font-size:10.5px;letter-spacing:.07em;text-transform:uppercase;color:#4d5663;margin-bottom:5px; }
body #client-file-page .cdv2-info-val { font-size:14px;font-weight:500;color:#1e2228;white-space:pre-wrap;overflow-wrap:anywhere; }
body #client-file-page .cdv2-info-val[style] { color:#a4abb5!important; }

@media(max-width:820px) {
  body #client-file-page .cdv2-name { font-size:22px; }
  body #client-file-page .cdv2-info { grid-template-columns:repeat(2,minmax(0,1fr)); }
  body #client-file-page .cdv2-info-cell { border-bottom:1px solid #e3e7ee; }
  body #client-file-page .cdv2-info-cell:nth-child(even) { border-right:0; }
  body #client-file-page .cdv2-info-cell:nth-child(n+5) { grid-column:1/-1;border-right:0; }
  body #client-file-page .cdv2-info-cell:last-child { border-bottom:0; }
  body #biz-clients .nl-clients-head { display:none; }
  body #biz-clients .clv2-row { display:block; }
  body #biz-clients .clv2-info { display:block; }
  body #biz-clients .clv2-client-cell,body #biz-clients .clv2-actions { padding:0; }
  body #biz-clients .clv2-added { display:none; }
  body #biz-clients .clv2-added-phone { display:block;color:#3b4350;font-size:13px;margin-top:3px; }
  body #biz-clients .clv2-actions { justify-content:flex-start;margin-top:12px; }
  body #biz-billing .bt3-cards { grid-template-columns:minmax(0,1fr); }
  body #biz-billing .bt3-card { display:flex;align-items:center;justify-content:space-between;gap:12px; }
  body #biz-billing .bt3-card-label { margin:0; }
  body #biz-billing .bt3-table { min-width:0; }
  body #biz-billing .bt3-table thead { display:none; }
  body #biz-billing .bt3-table tr[data-invoice-row] {
    grid-template-columns:max-content minmax(0,1fr) max-content;gap:8px 4px;align-items:start;
  }
  body #biz-billing .bt3-table tr[data-invoice-row],body #biz-clients .clv2-row { padding:12px 16px; }
  body #biz-billing .bt3-table tr[data-invoice-row]>td { padding:0; }
  body #biz-billing tr[data-invoice-row]>td:nth-child(1) { grid-column:3;grid-row:3;justify-self:end; }
  body #biz-billing tr[data-invoice-row]>td:nth-child(2) { grid-column:1;grid-row:2; }
  body #biz-billing tr[data-invoice-row]>td:nth-child(2)::before { content:"#"; }
  body #biz-billing tr[data-invoice-row]>td:nth-child(3) { grid-column:1/3;grid-row:1; }
  body #biz-billing tr[data-invoice-row]>td:nth-child(4) { grid-column:2;grid-row:2;white-space:normal; }
  body #biz-billing tr[data-invoice-row]>td:nth-child(4)::before { content:"· "; }
  body #biz-billing tr[data-invoice-row]>td:nth-child(5) { grid-column:3;grid-row:1; }
  body #biz-billing tr[data-invoice-row]>td:nth-child(6) { grid-column:3;grid-row:2;justify-self:end; }
  body #biz-billing tr[data-invoice-row]>td:nth-child(7) { display:none; }
  body #biz-billing tr[data-invoice-row]>td:nth-child(8) { grid-column:1/3;grid-row:3; }
  body #biz-billing tr[data-invoice-row] .bt3-actions { justify-content:flex-start;flex-wrap:wrap; }
  body #biz-billing .bt3-form { grid-template-columns:repeat(2,minmax(0,1fr)); }
  body #biz-billing .bt3-form label:nth-child(4) { grid-column:1/-1; }
  body #biz-billing .bt3-payment { flex-wrap:wrap;gap:10px; }
  body #biz-billing .bt3-payment-date,body #biz-billing .bt3-payment-check { min-width:0; }
}
