/* Phones and touch screens, for every page of the Import Bridge.
   Linked with media="screen and (max-width: 600px), screen and (any-hover: none)",
   and every rule sits inside one of the three queries below again, each one
   limited to the screen. So a desktop with a mouse never uses a line of this
   file, and neither does a printed page or "Save as PDF".
   mobile.js adds the classes used here: .on on an open tip, the .tipbar,
   .stk / .cmp / data-label on tables shown as cards, .lookup, .seg, .fl/.fr,
   and (phone fixes, 9 Oct) .busy and .pressed for the tap line, .sheet-open,
   .back-results and .phone-view. The head script adds .mb-wait. */

/* ------------------------------------- phones and touch: tips open on tap */
@media screen and (max-width: 600px), screen and (any-hover: none) {
  .i{cursor:pointer}
  /* A tap answers at once (mobile.js): a gold line runs at the top until the
     next page arrives, and the tapped card or button looks pressed. */
  html.busy::before,html.busy::after{content:"";position:fixed;z-index:2147483002;left:0;top:env(safe-area-inset-top,0px);height:3px}
  html.busy::before{right:0;background:#fdd284}
  html.busy::after{width:40%;background:#a34a2c;border-radius:0 2px 2px 0;animation:busy 1s linear infinite}
  @keyframes busy{from{transform:translateX(-60%)}to{transform:translateX(250%)}}
  a:active,.btn:active,button:active,a.pressed{opacity:.6}
  .pressed,tr.pressed td{background:#f1e2c4}
  a.btn.pressed,.nav a.pressed,.top>.who a.pressed{background:#700024;color:#fff;border-color:#700024}
  .tile.pressed{opacity:.75;background:var(--deep)}
  a.big.pressed{background:#3e140b}
  /* The Feedback button steps aside while the column sheet is open. */
  html.sheet-open #fb-root{display:none}
  /* A phone that chose the full version: back to manager mode. */
  a.phone-view{flex:0 0 auto;display:inline-flex;align-items:center;min-height:44px;padding:0 16px;border:1px solid #700024;border-radius:22px;
    background:#700024;color:#fff;text-decoration:none;font-size:15px;white-space:nowrap}
  .wrap>a.phone-view{margin:0 0 12px}
  a.back-results{margin:0 0 14px}
  .i:hover::after,.i.on::after{content:none}
  .i.on{background:#a34a2c;color:#fff;border-color:#a34a2c}
  /* The open tip: one bar at the bottom of the screen, above everything, with a close button. */
  .tipbar{position:fixed;left:12px;right:12px;bottom:calc(12px + env(safe-area-inset-bottom, 0px));z-index:2147483001;
    max-width:560px;margin:0 auto;background:#151d30;color:#fff;border:1px solid #fdd284;border-radius:12px;
    padding:14px 52px 14px 16px;font:400 15px/1.5 Inter,"Helvetica Neue",Helvetica,Arial,sans-serif;
    text-align:left;text-transform:none;letter-spacing:0;box-shadow:0 10px 30px rgba(0,0,0,.3)}
  .tipbar[hidden]{display:none}
  .tipbar .x{position:absolute;top:0;right:0;width:48px;height:48px;min-height:48px;margin:0;padding:0;border:0;border-radius:0 12px 0 0;
    background:none;color:#fff;font:400 26px/1 Inter,"Helvetica Neue",Helvetica,Arial,sans-serif;cursor:pointer}
  /* Sign-in: the name the phone's password manager files the code under. Not shown. */
  input.kc{position:absolute !important;left:-9999px;width:1px !important;height:1px;opacity:0;pointer-events:none;margin:0;padding:0;border:0}
}

/* ------------------------- touch screens up to 932px (a phone on its side) */
@media screen and (any-hover: none) and (max-width: 932px) {
  /* 16px fields, so the iPhone does not zoom in; 44px controls. */
  input[type=text],input[type=number],input[type=password],input[type=search],input[type=email],select,textarea,
  .row3 select,.row3 input{font-size:16px}
  input[type=text],input[type=number],input[type=password],input[type=search],select{min-height:44px}
  .btn,form.q button,form.re button{min-height:44px}
  .btn{display:inline-flex;align-items:center;justify-content:center}
  label.switch,.cols .panel label,.lg label{min-height:44px}
  /* Small links keep their look and get a larger area to tap. */
  .nav a,.top>.who a,a.reg,.bar>a:not(.btn){position:relative}
  .nav a::before,.top>.who a::before,a.reg::before,.bar>a:not(.btn)::before{content:"";position:absolute;top:-14px;bottom:-14px;left:-9px;right:-9px}
  .i::before{content:"";position:absolute;top:-14px;left:-14px;right:-14px;bottom:-14px}
  /* A tapped button does not stay gold (a touch screen keeps :hover after the tap). */
  .btn:hover{border-color:var(--line)}
  .btn.dark:hover{border-color:var(--accent)}
  /* "Choose the checks" next to Practice run: a full finger's height (phone review 12). */
  .opts a{display:inline-flex;align-items:center;min-height:44px}
}

/* ------------------------------------------------------------ phone width */
@media screen and (max-width: 600px) {
  html{-webkit-text-size-adjust:100%;text-size-adjust:100%}
  /* Until the phone script has laid the page out, it waits hidden (1.5 s at most). */
  html.mb-wait .wrap>*:not(.top),html.mb-wait .top>.nav,html.mb-wait .top>.who{visibility:hidden}
  /* border-box: the sign-in page must not scroll (Android then opens the next page part way down). */
  body{box-sizing:border-box;padding:16px 16px 28px}
  .wrap{max-width:100%}

  /* Header: a smaller brand and title, then the menu as ONE sliding row of buttons. */
  .top{flex-direction:column;align-items:stretch;gap:2px;flex-wrap:nowrap}
  .top>div:first-child{min-width:0}
  /* The logo (Brand fixes, 14 Oct): 22px tall, its N mark about 21px, and
     clear space of that height around it: above 16 + 5, left 16 + 5, below 21. */
  .brand{height:22px;margin:5px 0 21px 5px}
  h1{font-size:21px;line-height:1.2}
  .sub{font-size:14px;line-height:1.45;margin:0 0 10px}
  .nav,.top>.who{display:flex;flex-wrap:nowrap;overflow-x:auto;overflow-y:hidden;overscroll-behavior-x:contain;-webkit-overflow-scrolling:touch;
    scrollbar-width:none;gap:8px;align-items:center;justify-content:flex-start;margin:0 -16px;padding:2px 16px 12px;
    white-space:nowrap;text-align:left;font-size:15px;color:var(--dim)}
  .nav::-webkit-scrollbar,.top>.who::-webkit-scrollbar{display:none}
  .nav.fr,.top>.who.fr{-webkit-mask-image:linear-gradient(90deg,#000 calc(100% - 44px),transparent);mask-image:linear-gradient(90deg,#000 calc(100% - 44px),transparent)}
  .nav.fl,.top>.who.fl{-webkit-mask-image:linear-gradient(90deg,transparent,#000 44px);mask-image:linear-gradient(90deg,transparent,#000 44px)}
  .nav.fl.fr,.top>.who.fl.fr{-webkit-mask-image:linear-gradient(90deg,transparent,#000 44px,#000 calc(100% - 44px),transparent);
    mask-image:linear-gradient(90deg,transparent,#000 44px,#000 calc(100% - 44px),transparent)}
  .nav a,.top>.who a{flex:0 0 auto;display:inline-flex;align-items:center;min-height:44px;margin:0;padding:0 16px;border:1px solid var(--line);
    border-radius:22px;background:#fff;color:var(--ink);text-decoration:none;font-size:15px}
  .nav a:hover{border-bottom-width:1px}
  .nav a.on,.top>.who a.on{background:var(--accent);color:#fff;border-color:var(--accent)}
  .nav .who{flex:0 0 auto;display:inline-flex;align-items:center;min-height:44px;padding:0 0 0 4px !important;color:var(--dim);font-size:14px;white-space:nowrap}
  .nav .who a{min-height:44px;padding:0 12px;background:none;border:0;text-decoration:underline;font-size:14px}
  /* Replayed and At a glance: the dots between the links go; the name stays. */
  .top>.who .me{flex:0 0 auto;padding:0 4px;font-size:14px;color:var(--dim)}

  .note{font-size:14px;margin:0 0 16px}
  .card{padding:18px 16px;border-radius:12px}
  .card.new{padding:20px 16px}

  /* New batch page on a phone: a look-up first (search and cheques due). */
  .lookup{padding:16px}
  .lookup .step{margin-bottom:8px}
  .lookup form{display:flex;gap:6px;margin:0 0 12px}
  .lookup input[type=search]{flex:1 1 auto;min-width:0;width:auto;min-height:48px;margin:0;padding:0 12px;border:1px solid var(--line);border-radius:11px;
    font:inherit;font-size:16px;background:#fff;color:var(--ink);-webkit-appearance:none;appearance:none}
  .lookup input[type=search]:focus{outline:2px solid var(--gold);border-color:var(--gold)}
  .lookup button,form.q button.ico{flex:0 0 48px;width:48px;min-height:48px;margin:0;padding:0;border-radius:11px;background:var(--accent);color:#fff;
    display:inline-flex;align-items:center;justify-content:center}
  .lookup button svg,form.q button.ico svg{display:block}
  .lookup input[type=search]::placeholder,form.q input[name=q]::placeholder{font-size:15px}
  .lookup input[type=search]::placeholder{font-size:14.5px}
  .lookup .h{font-size:13px;color:var(--dim);margin:0 0 6px}
  .lookup .due{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
  .lookup .due a{display:flex;align-items:center;justify-content:center;min-height:44px;border:1px solid var(--line);border-radius:10px;
    background:#fff;color:var(--ink);text-decoration:none;font-size:15px}

  /* Number tiles: two to a row; an odd last tile takes the whole row. */
  .tiles,.strip,div.big{grid-template-columns:1fr 1fr;gap:10px}
  .tiles>.tile:last-child:nth-child(odd),.strip>.t:last-child:nth-child(odd),div.big>.stat:last-child:nth-child(odd){grid-column:1/-1}
  .tiles>.tile:last-child:nth-child(odd){flex-direction:row;align-items:baseline;justify-content:flex-start;gap:14px}
  .tiles>.tile:last-child:nth-child(odd) .l{margin-top:0}
  .tile,.strip .t,div.big .stat{padding:14px 14px 13px;min-height:0;border-radius:12px;position:relative}
  .tile .n,.strip .n,div.big .stat .n{font-size:24px;line-height:1.1}
  .tile .n.s{font-size:16px;line-height:1.3}
  .tile .n small,.strip .n small,div.big .stat .of{font-size:13px}
  .tile .l,.strip .l,div.big .stat .l{font-size:12px;margin-top:8px;letter-spacing:.04em}
  .tile .l em,.strip .l em{font-size:13px}
  .tile a::after{content:"";position:absolute;inset:0;z-index:1}
  .tile .i,.strip .i{z-index:2}
  .l .i,.tile .i,.strip .i,.stat .i{text-transform:none}

  /* Tips: a larger tap area; the text shows in the .tipbar (mobile.js). */
  .i{width:22px;height:22px;font-size:12px;margin-left:8px}
  .i::before{content:"";position:absolute;top:-11px;left:-11px;right:-11px;bottom:-11px}

  /* Fields: 16px, so the iPhone does not zoom in; 44px tall. */
  input[type=text],input[type=number],input[type=password],input[type=search],input[type=email],select,textarea{font-size:16px}
  input[type=text],input[type=number],input[type=password],select{min-height:44px}
  input[type=file]{font-size:16px}
  label.switch{min-height:44px;flex-wrap:wrap;gap:2px 12px;align-items:center}
  label.switch input{width:22px;height:22px}
  label.switch span.d{order:3;flex:1 1 100%;padding-left:34px}
  label.switch .i{margin-left:auto}
  .need{margin:8px 0 0;padding:10px 12px;border-radius:9px;background:#fef1d4;color:#7a5600;font-size:14px}
  .drop.need-on{border-color:#c98a00}

  /* Buttons and button-like links. */
  .btn{display:inline-flex;align-items:center;justify-content:center;min-height:44px;padding:0 16px;font-size:15px}
  .btn.big{min-height:48px}
  a.reg,p>a[href^="/export.xlsx"],.bar>a:not(.btn),p>a[href="/feedback"]{display:inline-flex;align-items:center;min-height:44px}
  details>summary{padding:12px 0}
  form.re button,form.q button{min-height:44px}
  /* A list's bar: what it shows on one line, then Columns and Excel side by side. */
  .bar .sp{display:none}
  .bar>span:first-child{flex:1 1 100%}
  .bar>.cols,.bar>a.btn[data-export]{flex:1 1 auto;min-width:0}
  .bar>.cols>.btn{width:100%}
  /* Cheques due: the four periods as one row. */
  .bar.seg{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:6px}
  .bar.seg .btn{padding:0 4px;font-size:14.5px;white-space:nowrap}
  /* The other lists after the periods (Returned cheques, Past their date, To deposit): two to a row, half width each. */
  .bar.seg .gap{display:none}
  .bar.seg a.btn:not([href^="/due?days="]){grid-column:span 2}
  form.q input[type=text]{min-width:0}

  /* The column chooser: a sheet from the bottom of the screen. */
  .cols.open::before{content:"";position:fixed;left:0;top:0;right:0;bottom:0;background:rgba(0,0,0,.28);z-index:69}
  .cols.open .panel{position:fixed;left:0;right:0;bottom:0;top:auto;max-height:72vh;overflow:auto;min-width:0;z-index:70;
    border-radius:16px 16px 0 0;padding:6px 16px calc(16px + env(safe-area-inset-bottom, 0px));box-shadow:0 -10px 30px rgba(0,0,0,.18)}
  .cols.open{cursor:pointer}
  .cols.open .panel{cursor:default;overscroll-behavior:contain}
  .cols .panel .hd{position:sticky;top:-6px;z-index:1;display:flex;justify-content:space-between;align-items:center;gap:12px;
    font-weight:600;font-size:15px;padding:8px 0;margin:0 0 2px;background:#fff;border-bottom:1px solid #f3e7cf}
  .cols .panel label{min-height:48px;font-size:16px;border-bottom:1px solid #f3e7cf}
  .cols .panel input{width:20px;height:20px}
  .cols .panel .done{width:auto;min-height:44px;margin:0;padding:0 20px}
  .lg label{min-height:44px;margin-left:0}
  .lg label input{width:20px;height:20px}

  /* New batch: the result after a run. */
  #out{scroll-margin-top:16px}
  a.big{flex-direction:column;align-items:flex-start;gap:4px;padding:16px 18px}
  .headline{font-size:20px}
  .sum{font-size:16px}
  .chk li{flex-wrap:wrap;gap:2px 12px}
  .chk li span{flex:1 1 55%;min-width:0}
  .chk li b{flex:0 1 auto;white-space:nowrap;max-width:100%;margin-left:auto;text-align:right}
  .files a{padding:12px 14px}
  ul.f{max-height:none}

  /* At a glance: the company and bank rows, the bar on its own line. */
  .rows .r{grid-template-columns:minmax(0,1fr) auto;gap:6px 12px}
  .rows .r i{grid-column:1/-1;grid-row:2}
  .legend{flex-wrap:wrap;gap:6px 16px}
  .bars .b b,.axis span{font-size:12px}
  .bars .b b{letter-spacing:-.02em}
  .pill,.tag{font-size:12px}

  /* Files: the two fields one under the other (as before); the kind list as a plain 44px box. */
  .drop{padding:22px 16px}
  .row3 select,.row3 input{font-size:16px;min-height:44px}
  .row3 select{-webkit-appearance:none;appearance:none;padding-right:36px;background:#fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23541c0f' stroke-width='1.6'/%3E%3C/svg%3E") no-repeat right 14px center;color:var(--ink)}

  /* Checks: Save stays in reach while the list scrolls. */
  form[action="/checks"] div:has(>button[type=submit]){position:sticky;bottom:12px;z-index:5;margin-top:12px !important}
  form[action="/checks"] button[type=submit]{min-height:48px;padding:0 22px;box-shadow:0 6px 20px rgba(0,0,0,.22)}

  /* Feedback pages. */
  .fbr .th{max-height:220px}

  /* Tables shown as cards (mobile.js marks them .stk and names every cell). */
  table.stk,table.stk>tbody{display:block;width:100%}
  table.stk tr.stk-head{display:none}
  table.stk tr{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:2px 14px;position:relative;
    padding:10px 14px;margin:0 0 10px;background:#fff;border:1px solid var(--line);border-radius:12px}
  table.stk tr:hover td{background:none}
  table.stk td{display:block;position:relative;padding:5px 0;border:0;min-width:0;width:auto !important;
    white-space:normal !important;text-align:left !important;font-size:15px;overflow-wrap:anywhere;background:none}
  table.stk td::before{content:attr(data-label);display:block;font:600 12px/1.5 Inter,"Helvetica Neue",Helvetica,Arial,sans-serif;
    text-transform:uppercase;letter-spacing:.05em;color:var(--dim);margin:0 0 1px}
  table.stk td.w{grid-column:1/-1}
  /* Short tables (the two lists on Checks): the name and its pill on one line, what it does under them. */
  table.stk-plain tr{grid-template-columns:minmax(0,1fr) auto;gap:4px 12px}
  table.stk-plain td::before{display:none}
  table.stk-plain td:first-child:not(.mark){font-size:15.5px}
  table.stk-plain td[data-label="Check"]{grid-area:1/1/2/2;font-size:15.5px}
  table.stk-plain td[data-label="If it finds something"]{grid-area:1/2/2/3;padding-top:6px}
  table.stk-plain td[data-label="What it does"]{grid-area:2/1/3/3;padding-top:0;font-size:14px;color:var(--dim)}
  table.stk td.mark{position:absolute;top:12px;right:12px;padding:0}
  table.stk td.mark::before{display:none}
  table.stk tr:has(td.mark){padding-right:52px}
  table.stk td.one a::after{content:"";position:absolute;inset:0}
  table.stk td:not(.one) a[href]{display:inline-flex;align-items:center;min-height:44px;min-width:44px}
  table.stk td.links{font-size:0}
  table.stk td.links a[href]{font-size:14.5px;padding:0 12px;margin:4px 6px 0 0;border:1px solid var(--line);border-radius:22px;
    text-decoration:none;color:var(--ink)}
  table.stk td input[type=checkbox]{width:26px !important;height:26px !important;margin:0}
  table.stk tr[data-tap-row]{cursor:pointer}
  table.stk td .pill{font-size:12px}
  table.stk td.hint:empty,table.stk td:empty{display:none}
  /* Replayed: the row colour on the whole card; the cheque rows line across the card. */
  table.stk tr.r{background:#fdf1f0} table.stk tr.a{background:#fff8e8}
  table.stk td[data-label="Cheque rows"]{grid-column:1/-1}
  /* Tables without a header row (What you can look up, What helps most): one line under the other. */
  table.t:not(.stk) tr{display:block;padding:10px 0;border-bottom:1px solid #f3e7cf}
  table.t:not(.stk) tr:last-child{border-bottom:0}
  table.t:not(.stk) td{display:block;padding:2px 0;border:0;width:auto !important}

  /* Lists read on a phone (cheques due, a lease's cheques, leases): short cards
     in four lines, no column names. A tap anywhere on the card opens the lease. */
  table.cmp tr:not(.stk-head){gap:3px 12px;padding:12px 14px;margin:0 0 8px}
  table.cmp td{grid-column:1/-1;padding:0;position:static;font-size:14px;line-height:1.45;color:var(--dim)}
  table.cmp td::before{display:none}
  table.cmp td a[href]{display:inline !important;min-height:0 !important;min-width:0 !important;padding:0;color:inherit;text-decoration:none}
  table.cmp td:not(.lead) a::after{content:none}
  table.cmp td.lead a::after{content:"";position:absolute;inset:0;border-radius:12px}
  table.cmp tr:has(td.lead a):active{background:#f1e2c4}
  /* Cheques due: date and amount; tenant; lease, unit and property; cheque number and bank; narration. */
  table.cmp[data-table=due] tr:not(.stk-head){grid-template-columns:auto auto minmax(0,1fr) auto}
  table.cmp[data-table=due] td[data-label="Due date"]{grid-area:1/1/2/4;font-size:16px;font-weight:600;color:var(--ink)}
  table.cmp[data-table=due] td[data-label="Amount"]{grid-area:1/4/2/5;font-size:16px;font-weight:600;color:var(--ink);text-align:right !important;font-variant-numeric:tabular-nums}
  table.cmp[data-table=due] td[data-label="Tenant"]{grid-area:2/1/3/5;font-size:15px;color:var(--ink)}
  table.cmp[data-table=due] td[data-label="Lease"]{grid-area:3/1/4/2}
  table.cmp[data-table=due] td[data-label="Unit"]{grid-area:3/2/4/3}
  table.cmp[data-table=due] td[data-label="Property"]{grid-area:3/3/4/5;white-space:nowrap !important;overflow:hidden;text-overflow:ellipsis}
  table.cmp[data-table=due] td[data-label="Cheque no"]{grid-area:4/1/5/2}
  table.cmp[data-table=due] td[data-label="Bank"]{grid-area:4/2/5/5}
  table.cmp[data-table=due] td[data-label="Narration"],table.cmp[data-table=due] td[data-label="Description"]{grid-area:5/1/6/5;font-size:13.5px}
  /* A lease's cheques: date and amount; cheque number, bank and status; narration. */
  table.cmp[data-table=cheques] tr:not(.stk-head){grid-template-columns:auto minmax(0,1fr) auto}
  table.cmp[data-table=cheques] td[data-label="Due date"]{grid-area:1/1/2/3;font-size:16px;font-weight:600;color:var(--ink)}
  table.cmp[data-table=cheques] td[data-label="Amount"]{grid-area:1/3/2/4;font-size:16px;font-weight:600;color:var(--ink);text-align:right !important;font-variant-numeric:tabular-nums}
  table.cmp[data-table=cheques] td[data-label="Cheque no"]{grid-area:2/1/3/2}
  table.cmp[data-table=cheques] td[data-label="Bank"]{grid-area:2/2/3/3}
  table.cmp[data-table=cheques] td[data-label="Status"]{grid-area:2/3/3/4;text-align:right !important}
  table.cmp[data-table=cheques] td[data-label="Narration"],table.cmp[data-table=cheques] td[data-label="Description"]{grid-area:3/1/4/4;font-size:14.5px;color:var(--ink)}
  table.cmp[data-table=cheques] td[data-label="Source"]{grid-area:4/1/5/4;font-size:13px}
  /* Leases (search, a tenant, a unit): tenant and rent; lease, unit and property; dates and change; payment rows. */
  table.cmp[data-table=leases] tr:not(.stk-head),table.cmp[data-table=tenant] tr:not(.stk-head),
  table.cmp[data-table=unit] tr:not(.stk-head){grid-template-columns:auto auto minmax(0,1fr) auto}
  table.cmp td[data-label="Tenant"]{grid-area:1/1/2/4;font-size:16px;font-weight:600;color:var(--ink)}
  table.cmp td[data-label="Annual rent"]{grid-area:1/4/2/5;font-size:16px;font-weight:600;color:var(--ink);text-align:right !important;font-variant-numeric:tabular-nums}
  table.cmp td[data-label="Lease"]{grid-area:2/1/3/2}
  table.cmp td[data-label="Unit"]{grid-area:2/2/3/3}
  table.cmp td[data-label="Property"]{grid-area:2/3/3/5;font-size:13.5px;white-space:nowrap !important;overflow:hidden;text-overflow:ellipsis}
  table.cmp td[data-label="Start"]{grid-area:3/1/4/2}
  table.cmp td[data-label="End"]{grid-area:3/2/4/5}
  table.cmp td[data-label="End"]::before{content:"to ";display:inline;font:inherit;text-transform:none;letter-spacing:0;color:inherit;margin:0}
  table.cmp td[data-label="Payment rows"],table.cmp td[data-label="Cheques and transfers"]{grid-area:4/1/5/3;font-size:13.5px}
  table.cmp td[data-label="Row total"],table.cmp td[data-label="Their total"]{grid-area:4/3/5/5;font-size:13.5px}
  table.cmp td[data-label="Change"]{grid-area:5/1/6/5;color:var(--ink)}
  table.cmp td[data-label="Change"]::before{content:"Rent change: ";display:inline;font:inherit;text-transform:none;letter-spacing:0;color:var(--dim);margin:0}
  table.cmp td[data-label="Payment rows"]::before{content:"Payment rows ";display:inline;font:inherit;text-transform:none;letter-spacing:0;color:inherit;margin:0}
  table.cmp td[data-label="Cheques and transfers"]::before{content:"Cheques and transfers ";display:inline;font:inherit;text-transform:none;letter-spacing:0;color:inherit;margin:0}
  table.cmp td[data-label="Row total"]::before,table.cmp td[data-label="Their total"]::before{content:"total ";display:inline;font:inherit;text-transform:none;letter-spacing:0;color:inherit;margin:0}
  table.cmp td[data-label="Source"]{grid-area:6/1/7/5;font-size:13px}
}
