/* lt-visum.css: Maintenance > Visit summary (today's Rekap kunjungan) in the approved card look (build plan P5-1, 10 Nov 2026).
   Ported ONCE by hand from design-gallery/tries/laptop/visum.css (its "Visit summary" part; the shell, card and pop-up rules
   there are other screens' and live in lt-maint.css / the kit); vs- became lvs-, its states lis-. Edit HERE from now on.
   Every rule sits under :where(body.lt-on) inside @media (min-width:761px): a phone never reads it.
   The Customer sheet is today's own paper (#rkPaper, rekap.css): on screen it gets the try's white sheet; the print frame has
   no body.lt-on, so the printout is today's to the letter. */
@media (min-width:761px) {
  /* ---- the page: customers > machines ---- */
  :where(body.lt-on) :where(#view-maintenance) .lvs-top .l-q { flex: 0 1 360px; }
  :where(body.lt-on) :where(#view-maintenance) .lvs-sp { flex: 1; }
  :where(body.lt-on) :where(#view-maintenance) .lvs-allb { min-width: 108px; justify-content: center; }
  :where(body.lt-on) :where(#view-maintenance) .lvs-groups .lmt-cust + .lmt-cust { margin-top: 18px; }
  :where(body.lt-on) :where(#view-maintenance) .lvs-groups .lmt-cust.is-shut + .lmt-cust.is-shut { margin-top: 4px; }
  /* speed (12 Nov 2026): a customer off screen is not laid out or painted (content-visibility): opening Visit summary laid out
     all ~700 customers (66-105 ms), now only the ones in view. A shut customer is 54 px high; once drawn its real size is kept. */
  :where(body.lt-on) :where(#view-maintenance) #ltVsGroups .lvs-g { content-visibility: auto; contain-intrinsic-size: auto 54px; }
  :where(body.lt-on) :where(#view-maintenance) .lvs-g[hidden],
  :where(body.lt-on) :where(#view-maintenance) .lvs-r[hidden] { display: none; }
  :where(body.lt-on) :where(#view-maintenance) .lvs-g .lmt-ch .lcu-face { width: 32px; height: 32px; }
  :where(body.lt-on) :where(#view-maintenance) .lvs-gn { flex: 0 1 auto; min-width: 0; }
  :where(body.lt-on) :where(#view-maintenance) .lvs-gn.lis-none { color: var(--sp-grey); font-weight: 600; }
  :where(body.lt-on) :where(#view-maintenance) .lvs-gc { flex: none; margin-left: 2px; }
  /* the last visit fills in once that customer's logs are read: a slot of its own, so the name and count never move */
  :where(body.lt-on) :where(#view-maintenance) .lvs-gl { flex: 0 1 auto; min-width: 0; font-size: 15px; color: var(--sp-grey); white-space: nowrap; }
  :where(body.lt-on) :where(#view-maintenance) .lvs-gbody { padding: 0 0 6px; }
  :where(body.lt-on) :where(#view-maintenance) .lvs-none { margin: 0 0 0 46px; padding: 12px 16px; border-radius: 12px; background: var(--sp-wash); font-size: 15px; color: var(--sp-grey); }

  /* one machine: a calm card-row inside its customer; the whole row opens the log */
  :where(body.lt-on) :where(#view-maintenance) .lvs-rows { display: grid; gap: 8px; margin-left: 46px; }
  :where(body.lt-on) :where(#view-maintenance) .lvs-r { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) 200px 36px; column-gap: 16px; align-items: center; min-height: 64px; padding: 10px 12px 10px 16px; border: 1px solid var(--sp-line); border-radius: 16px; background: var(--sp-bg); cursor: pointer; outline: none; transition: border-color 140ms ease, background-color 140ms ease; }
  :where(html[data-theme="dark"] body.lt-on) :where(#view-maintenance) .lvs-r { background: color-mix(in srgb, var(--sp-ink) 3%, var(--sp-bg)); }
  @media (hover: hover) and (pointer: fine) {
    :where(body.lt-on) :where(#view-maintenance) .lvs-r:hover { border-color: color-mix(in srgb, var(--sp-grey) 55%, var(--sp-line)); }
  }
  :where(body.lt-on) :where(#view-maintenance) .lvs-r:focus-visible { box-shadow: inset 0 0 0 2px var(--sp-red); }
  :where(body.lt-on) :where(#view-maintenance) .lvs-r.lis-menu { background: var(--sp-wash); border-color: var(--sp-ink); }
  :where(body.lt-on) :where(#view-maintenance) .lvs-mb { display: grid; min-width: 0; }
  :where(body.lt-on) :where(#view-maintenance) .lvs-mn { font-size: 16px; line-height: 1.4; font-weight: 600; }
  :where(body.lt-on) :where(#view-maintenance) .lvs-ms { font-size: 14px; line-height: 1.45; color: var(--sp-grey); }
  :where(body.lt-on) :where(#view-maintenance) .lvs-last { min-width: 0; font-size: 15px; white-space: nowrap; }
  :where(body.lt-on) :where(#view-maintenance, .lt-pop) .lvs-nil { color: var(--sp-grey); }
  :where(body.lt-on) :where(#view-maintenance) .lvs-r .k-fan { justify-self: end; }
  :where(body.lt-on) :where(#view-maintenance, .lt-pop) .lvs-r .k-fan-acts,
  :where(body.lt-on) :where(#view-maintenance, .lt-pop) .lvs-tr .k-fan-acts { position: absolute; right: 44px; top: 50%; translate: 0 -50%; z-index: 5; padding: 3px; border-radius: 999px; background: var(--sp-bg); box-shadow: 0 8px 22px var(--sp-shadow, rgba(0, 0, 0, .14)), 0 0 0 1px var(--sp-line); }
  @container lmt (max-width: 820px) {
    :where(body.lt-on) :where(#view-maintenance) .lvs-rows,
    :where(body.lt-on) :where(#view-maintenance) .lvs-none { margin-left: 0; }
    :where(body.lt-on) :where(#view-maintenance) .lvs-r { grid-template-columns: minmax(0, 1fr) 36px; row-gap: 4px; }
    :where(body.lt-on) :where(#view-maintenance) .lvs-r .lvs-last { grid-column: 1; grid-row: 2; }
    :where(body.lt-on) :where(#view-maintenance) .lvs-r .k-fan { grid-column: 2; grid-row: 1; }
  }

  /* ---- the box: the machine's log ---- */
  :where(body.lt-on) :where(.lt-pop) .lvs-lg .pp-box { width: min(1120px, 100%); height: min(860px, calc(100vh - 24px)); }
  :where(body.lt-on) :where(.lt-pop) .lvs-lg .pp-hd { padding-bottom: 12px; }
  :where(body.lt-on) :where(.lt-pop) .lvs-lg .pp-t,
  :where(body.lt-on) :where(.lt-pop) .lvs-pad .pp-t { margin: 0; font-size: 28px; line-height: 1.2; font-weight: 700; letter-spacing: -.01em; overflow-wrap: anywhere; }
  :where(body.lt-on) :where(.lt-pop) .lvs-lg .pp-m { margin: 4px 0 0; white-space: nowrap; overflow: hidden; }
  :where(body.lt-on) :where(.lt-pop) .lvs-ph { display: flex; align-items: center; gap: 14px; min-width: 0; }
  :where(body.lt-on) :where(.lt-pop) .lvs-phw { min-width: 0; }
  :where(body.lt-on) :where(.lt-pop) .lvs-ph .lcu-face.lis-big { width: 56px; height: 56px; font-size: 20px; }
  /* tabs, then the period held at the right; "All dates" keeps its room, so nothing moves when a period is picked */
  :where(body.lt-on) :where(.lt-pop) .lvs-bar { position: relative; z-index: 8; display: flex; align-items: center; gap: 10px; flex: none; padding: 0 24px 14px; box-shadow: inset 0 -1px 0 var(--sp-rule); }
  :where(body.lt-on) :where(.lt-pop) .lvs-tabs { width: auto; }
  :where(body.lt-on) :where(.lt-pop) .lvs-tabs .tb-list { grid-auto-columns: max-content; width: max-content; }
  :where(body.lt-on) :where(.lt-pop) .lvs-tabs .tb-tab { padding: 0 16px; }
  :where(body.lt-on) :where(.lt-pop) .lvs-sp { flex: 1; }
  :where(body.lt-on) :where(.lt-pop) .lvs-perl { font-size: 14px; font-weight: 600; color: var(--sp-grey); }
  :where(body.lt-on) :where(.lt-pop) .lvs-per { width: 300px; }
  :where(body.lt-on) :where(.lt-pop) .lvs-per .dp-lab { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  :where(body.lt-on) :where(.lt-pop) .lvs-per .dp { position: relative; }
  :where(body.lt-on) :where(.lt-pop) .lvs-per .dp-btn { height: 44px; min-height: 44px; }
  :where(body.lt-on) :where(.lt-pop) .lvs-per .dp-pop { z-index: 30; right: 0; left: auto; }
  :where(body.lt-on) :where(.lt-pop) .lvs-all { width: 96px; justify-content: center; color: var(--sp-grey); }
  :where(body.lt-on) :where(.lt-pop) .lvs-all[hidden] { display: inline-flex; visibility: hidden; }
  :where(body.lt-on) :where(.lt-pop) .lvs-lg .pp-bd { padding-top: 18px; gap: 0; align-content: start; }
  :where(body.lt-on) :where(.lt-pop) .lvs-log { display: grid; gap: 26px; align-content: start; }
  :where(body.lt-on) :where(.lt-pop) .lvs-log[hidden],
  :where(body.lt-on) :where(.lt-pop) .lvs-sheetv[hidden] { display: none; }
  :where(body.lt-on) :where(.lt-pop) .lvs-lg .pp-ft { justify-content: flex-start; box-shadow: inset 0 1px 0 var(--sp-rule); padding-top: 14px; }
  :where(body.lt-on) :where(.lt-pop) .lvs-lg .pp-ft .k-btn[hidden] { display: none; }
  :where(body.lt-on) :where(.lt-pop) .lvs-add { gap: 8px; }
  :where(body.lt-on) :where(.lt-pop) .lvs-add svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; }

  /* the table: his five columns, typed in place */
  :where(body.lt-on) :where(.lt-pop) .lvs-t { display: grid; }
  :where(body.lt-on) :where(.lt-pop) .lvs-th,
  :where(body.lt-on) :where(.lt-pop) .lvs-tr { display: grid; grid-template-columns: 52px 128px minmax(150px, 200px) minmax(0, 1fr) minmax(170px, 250px) 36px; column-gap: 6px; align-items: start; }
  :where(body.lt-on) :where(.lt-pop) .lvs-th { position: sticky; top: -18px; z-index: 4; padding: 6px 0 8px; background: var(--sp-bg); box-shadow: 0 1px 0 var(--sp-line); }
  :where(body.lt-on) :where(.lt-pop) .lvs-th > span { padding: 0 10px; font-size: 14px; font-weight: 500; color: var(--sp-grey); white-space: nowrap; }
  :where(body.lt-on) :where(.lt-pop) .lvs-tb { display: grid; }
  :where(body.lt-on) :where(.lt-pop) .lvs-tr { position: relative; padding: 4px 0; border-top: 1px solid var(--sp-rule); }
  :where(body.lt-on) :where(.lt-pop) .lvs-tr:first-child { border-top: 0; }
  :where(body.lt-on) :where(.lt-pop) .lvs-tr.lis-menu { background: var(--sp-wash); }
  :where(body.lt-on) :where(.lt-pop) .lvs-tr .k-fan { justify-self: end; margin-top: 2px; }
  :where(body.lt-on) :where(.lt-pop) .lvs-c { position: relative; min-width: 0; min-height: 40px; padding: 8px 10px; border-radius: 10px; font-size: 15px; line-height: 1.5; overflow-wrap: anywhere; outline: none; transition: background-color 140ms ease, box-shadow 140ms ease; }
  :where(body.lt-on) :where(.lt-pop) .lvs-c[contenteditable] { cursor: text; }
  @media (hover: hover) and (pointer: fine) {
    :where(body.lt-on) :where(.lt-pop) .lvs-c[contenteditable]:hover { background: var(--sp-wash); }
  }
  :where(body.lt-on) :where(.lt-pop) .lvs-c[contenteditable]:focus { background: var(--sp-bg); box-shadow: inset 0 0 0 1.5px var(--sp-grey), 0 0 0 3px var(--sp-soft); }
  :where(body.lt-on) :where(.lt-pop) .lvs-c.lis-no { font-variant-numeric: tabular-nums; text-align: right; }
  :where(body.lt-on) :where(.lt-pop) .lvs-c.lis-date { white-space: nowrap; font-variant-numeric: tabular-nums; }
  :where(body.lt-on) :where(.lt-pop) .lvs-c.lis-fill { animation: lvs-fill 900ms var(--sp-ease-out); }
  @keyframes lvs-fill { 0% { background: color-mix(in srgb, var(--sp-ok) 18%, transparent); } 100% { background: transparent; } }
  :where(body.lt-on) :where(.lt-pop) .lvs-tr.lis-cont .lvs-c.lis-no::before { content: ''; position: absolute; right: 12px; top: 10px; bottom: 10px; width: 2px; border-radius: 1px; background: var(--sp-rule); }
  /* "Saved" beside the line for a moment after a cell changed; it sits over the dots column so nothing moves */
  :where(body.lt-on) :where(.lt-pop) .lvs-tr::after { content: 'Saved'; position: absolute; right: 42px; top: 12px; padding: 1px 8px; border-radius: 999px; background: var(--sp-ok-bg); color: var(--sp-ok); font-size: 14px; font-weight: 600; opacity: 0; transform: translateY(3px); pointer-events: none; transition: opacity 160ms ease, transform 160ms var(--sp-ease-out); }
  :where(body.lt-on) :where(.lt-pop) .lvs-tr.lis-saved::after { opacity: 1; transform: none; }
  :where(body.lt-on) :where(.lt-pop) .lvs-empty { margin: 14px 0 0; padding: 16px; border-radius: 12px; background: var(--sp-wash); font-size: 15px; color: var(--sp-grey); }
  :where(body.lt-on) :where(.lt-pop) .lvs-empty[hidden] { display: none; }

  /* his phrases under the cell: the kit's pick-list, floating over the table (fixed), so nothing in it moves */
  :where(body.lt-on) :where(.lt-pop) .lvs-sug[hidden] { display: none; }
  :where(body.lt-on) :where(.lt-pop) .lvs-sug { position: fixed; top: 0; left: 0; right: auto; z-index: 60; transform-origin: top left; animation: none; }
  :where(body.lt-on) :where(.lt-pop) .lvs-sug .po-list { max-height: 260px; }
  :where(body.lt-on) :where(.lt-pop) .lvs-sug .po-list li[role="option"] { font-size: 15px; }
  :where(body.lt-on) :where(.lt-pop) .lvs-sug .po-list li[aria-selected="true"] { font-weight: 400; }

  /* the three signatures: fixed boxes, so signing never moves anything */
  :where(body.lt-on) :where(.lt-pop) .lvs-sh { display: flex; align-items: center; gap: 12px; min-height: 36px; margin-bottom: 10px; }
  :where(body.lt-on) :where(.lt-pop) .lvs-sh h3 { flex: 1; margin: 0; font-size: 14px; line-height: 1.4; font-weight: 600; color: var(--sp-grey); }
  :where(body.lt-on) :where(.lt-pop) .lvs-sgrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
  :where(body.lt-on) :where(.lt-pop) .lvs-sb { display: grid; grid-template-rows: auto 84px auto auto auto; gap: 4px; min-width: 0; padding: 14px 16px 16px; border: 1px solid var(--sp-line); border-radius: 16px; background: var(--sp-bg); }
  :where(html[data-theme="dark"] body.lt-on) :where(.lt-pop) .lvs-sb { background: color-mix(in srgb, var(--sp-ink) 3%, var(--sp-bg)); }
  :where(body.lt-on) :where(.lt-pop) .lvs-sk { font-size: 14px; font-weight: 600; color: var(--sp-grey); }
  /* the signature sits on a slip of paper in both looks: it is drawn in dark ink and prints on white */
  :where(body.lt-on) :where(.lt-pop) .lvs-sl { display: grid; place-items: center; margin-top: 4px; border-radius: 10px; background: #fbfbfa; box-shadow: inset 0 0 0 1px rgba(17, 17, 20, .1); overflow: hidden; }
  :where(body.lt-on) :where(.lt-pop) .lvs-sl img { display: block; max-width: 92%; max-height: 76px; }
  :where(body.lt-on) :where(.lt-pop) .lvs-sno { font-size: 14px; color: #5f5f66; }
  :where(body.lt-on) :where(.lt-pop) .lvs-sn { margin: 6px 0 0; font-size: 15px; font-weight: 600; min-height: 22px; white-space: nowrap; overflow: hidden; }
  :where(body.lt-on) :where(.lt-pop) .lvs-sat { margin: 0; font-size: 14px; color: var(--sp-grey); min-height: 20px; }
  :where(body.lt-on) :where(.lt-pop) .lvs-sbtn { justify-self: start; margin-top: 8px; min-width: 146px; justify-content: center; }
  :where(body.lt-on) :where(.lt-pop) .lvs-sb.lis-signed .lvs-sbtn[data-lvs-sign="dibuat"],
  :where(body.lt-on) :where(.lt-pop) .lvs-sb.lis-signed .lvs-sbtn[data-lvs-sign="diketahui"] { color: var(--sp-grey); }

  /* ---- the Customer sheet: today's paper, white in both looks, the try's sheet on screen ---- */
  :where(body.lt-on) :where(.lt-pop) #rkPaper { max-width: 900px; margin: 0 auto 4px; padding: 34px 40px 40px; border: 0; border-radius: 14px; background: #fff; color: #1d1d21; box-shadow: 0 0 0 1px rgba(17, 17, 20, .1), 0 10px 30px rgba(17, 17, 20, .08); font-size: 14px; line-height: 1.5; }
  :where(body.lt-on) :where(.lt-pop) #rkPaper > :first-child { display: flex; align-items: center; justify-content: space-between; padding-bottom: 12px; border-bottom: 1px solid #d9d9de; }
  :where(body.lt-on) :where(.lt-pop) #rkPaper > :first-child > * { font-size: 14px; color: #1d1d21; }
  :where(body.lt-on) :where(.lt-pop) #rkPaper > :first-child > :last-child { color: #5f5f66; }
  :where(body.lt-on) :where(.lt-pop) #rkPaper > [class~="pp-t"] { margin: 22px 0 0; font-size: 28px; line-height: 1.2; font-weight: 700; letter-spacing: -.01em; color: #1d1d21; overflow-wrap: anywhere; }
  :where(body.lt-on) :where(.lt-pop) #rkPaper > [class~="pp-s"] { margin: 4px 0 0; font-size: 14px; color: #5f5f66; }
  :where(body.lt-on) :where(.lt-pop) #rkPaper > [class~="pp-mach"] { margin: 16px 0 0; font-size: 18px; font-weight: 600; color: #1d1d21; overflow-wrap: anywhere; }
  :where(body.lt-on) :where(.lt-pop) #rkPaper > [class~="pp-mach"] > span { margin-left: 10px; font-weight: 400; color: #5f5f66; }
  :where(body.lt-on) :where(.lt-pop) #rkPaper > [class~="pp-p"] { margin: 2px 0 16px; font-size: 14px; color: #5f5f66; }
  :where(body.lt-on) :where(.lt-pop) #rkPaper table { width: 100%; min-width: 0; margin: 0; border-collapse: collapse; table-layout: fixed; border-top: 0; }
  :where(body.lt-on) :where(.lt-pop) #rkPaper th { padding: 8px; border-top: 1.5px solid #1d1d21; border-bottom: 1px solid #c4c4cb; text-align: left; font-size: 14px; font-weight: 600; color: #4a4a52; white-space: normal; }
  :where(body.lt-on) :where(.lt-pop) #rkPaper td { padding: 8px; border-bottom: 1px solid #e2e2e6; vertical-align: top; font-size: 14px; color: #1d1d21; overflow-wrap: anywhere; }
  :where(body.lt-on) :where(.lt-pop) #rkPaper > :last-child { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; margin-top: 30px; }
  :where(body.lt-on) :where(.lt-pop) #rkPaper > :last-child > div { min-width: 0; padding-bottom: 26px; }
  :where(body.lt-on) :where(.lt-pop) #rkPaper > :last-child span { font-size: 14px; color: #5f5f66; }
  /* a signature line: the drawing, then the name and the time under it (today's sit side by side and run into each other) */
  :where(body.lt-on) :where(.lt-pop) #rkPaper > :last-child > div > div { display: grid; align-content: end; gap: 2px; height: auto; min-height: 104px; margin-top: 8px; padding-bottom: 6px; border-bottom: 1px solid #1d1d21; }
  :where(body.lt-on) :where(.lt-pop) #rkPaper > :last-child > div > div > img { max-width: 100%; height: 60px; object-fit: contain; object-position: left; margin: 0; }
  :where(body.lt-on) :where(.lt-pop) #rkPaper > :last-child > div > div > span { position: static; display: block; max-width: none; margin: 0; white-space: normal; overflow-wrap: anywhere; font-variant-numeric: normal; font-feature-settings: normal; }
  :where(body.lt-on) :where(.lt-pop) #rkPaper > :last-child > div > div > span:not(:last-child) { color: #1d1d21; font-size: 15px; font-weight: 600; }
  :where(body.lt-on) :where(.lt-pop) #rkPaper > :last-child > div > div > span:only-child { color: #5f5f66; font-weight: 400; font-size: 14px; }
  :where(body.lt-on) :where(.lt-pop) #rkPaper * { font-feature-settings: normal; }

  /* ---- the pad: one for both jobs ---- */
  :where(body.lt-on) :where(.lt-pop) .lvs-pad .pp-box { width: min(560px, 100%); }
  :where(body.lt-on) :where(.lt-pop) .lvs-pad .pp-ft { justify-content: flex-start; }
  :where(body.lt-on) :where(.lt-pop) .lvs-pad .pp-bd { gap: 8px; }
  :where(body.lt-on) :where(.lt-pop) .lvs-pf { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px; margin-bottom: 4px; }
  :where(body.lt-on) :where(.lt-pop) .lvs-pf[hidden] { display: none; }
  :where(body.lt-on) :where(.lt-pop) .lvs-pf .ck-f { align-content: start; gap: 6px; }
  :where(body.lt-on) :where(.lt-pop) .lvs-pf .ck-in.lis-bad { border-color: var(--tg-red-t, var(--sp-red)); }
  :where(body.lt-on) :where(.lt-pop) .lvs-note { margin: 0 0 4px; font-size: 14px; line-height: 1.5; color: var(--sp-grey); }
  :where(body.lt-on) :where(.lt-pop) .lvs-err { min-height: 20px; margin: 0; font-size: 14px; color: var(--tg-red-t, var(--sp-red)); }
  :where(body.lt-on) :where(.lt-pop) .lvs-pd { position: relative; height: 170px; border-radius: 14px; background: #fff; box-shadow: inset 0 0 0 1px rgba(17, 17, 20, .14); overflow: hidden; }
  :where(body.lt-on) :where(.lt-pop) .lvs-pd canvas { display: block; width: 100%; height: 170px; touch-action: none; cursor: crosshair; }
  :where(body.lt-on) :where(.lt-pop) .lvs-pline { position: absolute; left: 20px; right: 20px; bottom: 40px; height: 1px; background: #c4c4cb; pointer-events: none; }
  :where(body.lt-on) :where(.lt-pop) .lvs-phint { position: absolute; left: 20px; bottom: 14px; font-size: 14px; color: #5f5f66; pointer-events: none; transition: opacity 160ms ease; }
  :where(body.lt-on) :where(.lt-pop) .lvs-pd.lis-inked .lvs-phint { opacity: 0; }
  :where(body.lt-on) :where(.lt-pop) .lvs-ftsp { flex: 1; }
}
