/* v2.15.0 (Asset Tiger Integration): the Asset returns pages (the redesign look, .nr classes in repairs.css) and the A4 Asset Return Form.
   No horizontal page scroll at any width: wide tables scroll inside their card (.nr-scroll). No banners. */
/* v2.19.7 (item 8): the tabs (.ar-tabs) now sit beside the page heading and use the shared .pagetabs style in style.css */
.nr.ar .ar-brand{display:flex;align-items:center;gap:0.875rem;min-width:0}
.nr.ar .ar-logo{height:2.75rem;width:auto;flex:none}
.nr.ar .ar-search{max-width:34rem}
.nr.ar .ar-search input{font-size:1rem;padding:0.5rem 0.625rem}
.nr.ar .ar-people{list-style:none;margin:0.5rem 0 0;padding:0;display:grid;grid-template-columns:repeat(auto-fill,minmax(18rem,1fr));gap:0.375rem}
.nr.ar .ar-person{width:100%;text-align:left;font:inherit;padding:0.5rem 0.75rem;border:var(--card-bw) solid var(--card-bc);border-radius:0.5rem;background:var(--nr-card,var(--c-white));cursor:pointer;overflow-wrap:anywhere}
.nr.ar .ar-person:hover,.nr.ar .ar-person:focus-visible{border-color:var(--acc,var(--c-brand));background:var(--acc2,var(--c-brand-tint))}
.nr.ar .ar-person-det{display:grid;grid-template-columns:repeat(auto-fill,minmax(14rem,1fr));gap:0.25rem 1rem;margin:0 0 0.75rem}
.nr.ar .ar-person-det div{display:flex;gap:0.5rem;min-width:0} .nr.ar .ar-person-det dt{color:var(--nr-muted,var(--c-muted));min-width:6.5rem} .nr.ar .ar-person-det dd{margin:0;overflow-wrap:anywhere}
.nr.ar .ar-bar{display:flex;align-items:center;gap:0.5rem;flex-wrap:wrap;margin:0 0 0.5rem}
.nr.ar .ar-count{font-weight:600;margin-left:0.5rem}
.nr.ar .ar-table td,.nr.ar .ar-table th{vertical-align:top}
.nr.ar .ar-chk{width:2.25rem;text-align:center} .nr.ar .ar-chk input{width:1.125rem;height:1.125rem}
.nr.ar .ar-tag{font-weight:600}
.nr.ar .nr-num{text-align:right;white-space:nowrap}
.nr.ar .ar-printbar{margin-top:0.75rem;align-items:center;flex-wrap:wrap}
.nr.ar .ar-st{display:inline-block;padding:0.0625rem 0.5rem;border-radius:999px;font-size:0.8125rem;white-space:nowrap;border:1px solid transparent}
.ar-st-printed{background:var(--amberbg,var(--c-warn-bg));color:var(--amber,var(--c-warn))} .ar-st-received{background:var(--acc2,var(--c-brand-tint));color:var(--c-brand-dk)}
.ar-st-captured{background:var(--greenbg,var(--c-ok-bg));color:var(--green,var(--c-ok))} .ar-st-cancelled{background:var(--c-grey-bg);color:var(--c-grey)} .ar-st-void{background:var(--c-overdue-bg);color:var(--c-overdue)}
.nr.ar .ar-info{display:grid;grid-template-columns:max-content 1fr;gap:0.25rem 1rem} .nr.ar .ar-info dd{margin:0;overflow-wrap:anywhere}
.nr.ar .ar-acts{display:flex;flex-direction:column;gap:0.5rem;margin-top:0.75rem}
.nr.ar .ar-act>summary{list-style:none;cursor:pointer;width:max-content;max-width:100%} .nr.ar .ar-act>summary::-webkit-details-marker{display:none}
.nr.ar .ar-actform{margin:0.5rem 0 0;max-width:40rem;grid-template-columns:1fr}
.nr.ar .ar-files{list-style:none;padding:0;margin:0;display:flex;flex-direction:column;gap:0.25rem}
.nr.ar .ar-hist{margin:0;padding-left:1.25rem}
.nr.ar .ar-mail{border-top:1px solid var(--nr-line,var(--c-line));padding:0.75rem 0} .nr.ar .ar-mail.ar-hi{background:var(--acc2,var(--c-brand-tint));padding:0.75rem}
/* v2.20.3 (Signature check v2): a scan the signature check held back - the reason in red; the record's check state in plain text */
.nr.ar .ar-held{color:var(--red,var(--c-err))} .nr.ar .ar-heldbox{border-left:0.25rem solid var(--red,var(--c-err));padding:0.25rem 0 0.25rem 0.75rem;margin:0.5rem 0}
.nr.ar .ar-sigstate{margin:0 0 0.5rem;font-weight:600}
.nr.ar .ar-inline{grid-template-columns:minmax(0,28rem) auto;align-items:end}
.nr.ar .ar-tiles{display:grid;grid-template-columns:repeat(auto-fit,minmax(13rem,1fr));gap:0.5rem;margin:0 0 0.75rem}
.nr.ar .ar-tile{border:var(--card-bw) solid var(--card-bc);border-radius:0.625rem;padding:0.625rem 0.875rem;display:flex;flex-direction:column;gap:0.125rem}
.nr.ar .ar-n{font-size:1.75rem;font-weight:700;line-height:1.1}
.nr.ar .ar-t-out{border-left:0.3125rem solid var(--amber,var(--c-warn))} .nr.ar .ar-t-rec{border-left:0.3125rem solid var(--acc,var(--c-brand))} .nr.ar .ar-t-can{border-left:0.3125rem solid var(--c-muted)}
.nr.ar .ar-filters .nr-field input[type=search]{min-width:12rem}
.ar-table .sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0)}
/* the AssetTiger connection card (Settings) */
.ar-conn .ar-token{border:var(--card-bw) solid var(--card-bc);border-radius:0.625rem;padding:0.625rem 0.875rem;margin:0 0 0.625rem}
.ar-conn .ar-set{font-weight:700;color:var(--red,var(--c-err))} .ar-conn .ar-set.on{color:var(--green,var(--c-ok))}
.ar-conn .ar-tokform,.ar-conn .nr-actions{display:flex;flex-wrap:wrap;gap:0.5rem;align-items:flex-end;margin:0.375rem 0}
.ar-conn .ar-tokform input[type=password]{min-width:min(26rem,100%)}
.ar-conn .nr-btn{font:inherit;font-size:0.875rem;padding:0.375rem 0.75rem;border-radius:0.5rem;border:1px solid var(--line,var(--c-line));background:var(--c-white);cursor:pointer}
.ar-conn .nr-btn.nr-primary{background:var(--acc,var(--c-brand));color:var(--c-white);border-color:var(--acc,var(--c-brand))} .ar-conn .nr-btn.danger{color:var(--red,var(--c-err))}
.ar-conn .nr-field{display:flex;flex-direction:column;gap:0.25rem;font-size:0.8125rem;color:var(--muted,var(--c-muted))}

/* ------------------------------------------------------------------ the Asset Return Form: A4 portrait (the mockup "Asset Return Form mockup v1") */
.arf{--ink:var(--c-text);width:210mm;max-width:100%;margin:0 auto 1rem;padding:12mm 15mm 20mm;background:var(--c-white);color:var(--ink);font:9pt/1.3 "Liberation Sans",Arial,Helvetica,sans-serif;
  box-shadow:0 1px 4px rgba(0,0,0,.15);overflow-x:auto}
.arf *{box-sizing:border-box}
.arf-head{display:grid;grid-template-columns:50mm 1fr 24mm;gap:5mm;align-items:center;border-bottom:0.4mm solid var(--ink);padding-bottom:3mm;margin-bottom:3mm}
.arf-logo{width:50mm;height:auto;display:block}
.arf-title{text-align:right}
.arf-h1{font-size:17pt;font-weight:700;letter-spacing:0.02em}
.arf-id{font-size:11pt;margin-top:1mm}
.arf-small{font-size:8pt;color:var(--c-grey)}
.arf-qrbox{width:24mm;height:24mm} .arf-qr{display:block;width:24mm;height:24mm}
.arf-bar{background:var(--c-line);border-top:0.4mm solid var(--ink);font-weight:700;font-size:10pt;text-transform:uppercase;padding:1mm 2mm;margin:3.5mm 0 2mm;break-after:avoid}
.arf-emp{width:100%;border-collapse:collapse;border:0.3mm solid var(--c-muted)}
.arf-emp th{width:24mm;text-align:left;font-weight:700;padding:1.6mm 2mm;white-space:nowrap}
.arf-emp td{border-bottom:0.25mm solid var(--c-muted);padding:1.6mm 2mm;width:66mm;height:7mm}
.arf-reason{display:flex;flex-wrap:wrap;align-items:center;gap:2mm 7mm;padding:1mm 2mm}
.arf-box{display:inline-flex;align-items:center;gap:1.5mm;white-space:nowrap}
.arf-sq{display:inline-block;width:3.2mm;height:3.2mm;border:0.3mm solid var(--ink);background:var(--c-white);flex:none}
.arf-other{display:inline-block;width:45mm;border-bottom:0.25mm solid var(--c-muted);height:4mm;margin-left:-5mm}
.arf-assets{width:180mm;border-collapse:collapse;table-layout:fixed;font-size:7.5pt}
.arf-assets th{background:var(--c-line);font-weight:700;text-align:left;border:0.25mm solid var(--c-grey);padding:1mm 1.2mm;vertical-align:bottom}
.arf-assets td{border:0.25mm solid var(--c-grey);padding:1mm 1.2mm;height:16mm;vertical-align:top;overflow-wrap:anywhere}
.arf-assets thead{display:table-header-group} .arf-assets tr{break-inside:avoid}
.arf-tag{font-weight:700} .arf-c{text-align:center}
.arf-cond{line-height:1.2} .arf-cond .arf-box{display:flex;margin:0 0 0.8mm;font-size:7pt} .arf-cond .arf-sq{width:2.8mm;height:2.8mm}
.arf-keep{break-inside:avoid}
.arf-decl{font-size:8.8pt;margin:0 0 2mm;text-align:justify}
.arf-sigs{display:grid;grid-template-columns:1fr 1fr;gap:8mm;margin-top:3mm;position:relative}
/* v2.20.3 (Signature check v2, item 2): the gap comes from web/sig_layout.js (inline style, 16 mm) and holds the small locator QR "<form ID>-S" */
.arf-sigqr{position:absolute} .arf-sigqr .arf-qr{width:100%;height:100%}
.arf-sig{border:0.3mm solid var(--c-muted);padding:2mm 3mm 3mm}
.arf-sigtitle{font-weight:700;font-size:9pt;margin-bottom:2mm}
.arf-line{display:flex;align-items:flex-end;gap:2mm;margin-top:3mm} .arf-line span{width:18mm;flex:none} .arf-line b{flex:1;border-bottom:0.25mm solid var(--c-muted);min-height:5mm;font-weight:400}
.arf-signline b{min-height:11mm}
.arf-screenfoot{margin-top:8mm;border-top:0.25mm solid var(--c-muted);padding-top:1.5mm;font-size:7.5pt;color:var(--c-grey)}
.ar-printacts{max-width:210mm;margin:0 auto 0.75rem}
@media print{
  body.arprint header,body.arprint #alerts,body.arprint .syncbar,body.arprint main>*:not(.arf){display:none!important}
  /* v2.20.6: nothing but the form prints - the Chat launcher and panel, the feedback button, toasts, pop-ups and every other element appended to <body>
     (position:fixed ones repeat on every page), and no height or margin of the shell may add a blank sheet */
  body.arprint>*:not(#app){display:none!important}
  /* v2.20.7: Chrome breaks the page at every change of page name. The form is on the named page, so the document itself (html and body) is put on it
     too and everything else under <html> is hidden: an element a browser extension appends after <body> (even an empty one) printed a blank sheet 2 */
  html:has(body.arprint),body.arprint{page:arform}
  html:has(body.arprint)>*:not(body){display:none!important}
  body.arprint #app>*:not(main){display:none!important}
  html:has(body.arprint),body.arprint,body.arprint #app,body.arprint main{height:auto!important;min-height:0!important;max-height:none!important;overflow:visible!important;margin:0!important;padding:0!important;border:0!important}
  body.arprint,body.arprint main{background:var(--c-white);margin:0;padding:0}
  body.arprint .arf{page:arform;width:180mm;max-width:none;margin:0;padding:0;box-shadow:none;overflow:visible}
  body.arprint .arf-screenfoot{display:none}
}
/* v2.16.0 (Asset Tiger Integration item 22): the ten-column asset table of the 2.16.0 layout – a little tighter, so four assets with long texts still
   fit on one A4 page with the declaration and both signatures (forms printed by 2.15.0 keep the rules above) */
.arf-assets.arf-v2{font-size:6.8pt;line-height:1.18} .arf-assets.arf-v2 th{padding:0.8mm 0.9mm;font-size:6.6pt}
.arf-assets.arf-v2 td{padding:0.7mm 0.9mm;height:13mm} .arf-assets.arf-v2 .arf-cond .arf-box{font-size:6.6pt;margin-bottom:0.5mm} .arf-assets.arf-v2 .arf-cond .arf-sq{width:2.5mm;height:2.5mm}
