/* Smooth UI parts: cards. Office screens only: js/su-cards.js never draws these for a technician or a
   driver, and the preview card never opens on a phone.

   Layer: above a pop-up (.ov 1000), under the picture viewers (1200), the sign-in gate and the question box. */

/* The preview card (library Preview card): beside the name, 160 ms in, 100 ms out.
   pointer-events:none: a press on it lands on the row underneath. */
.su-card{position:fixed;left:0;top:0;z-index:1150;width:280px;padding:12px 14px;box-sizing:border-box;
  background:var(--surface);color:var(--ink);border:1px solid var(--rule);border-radius:var(--r-card);
  box-shadow:0 12px 30px -10px rgba(var(--shade-rgb),.38),0 1px 3px rgba(var(--shade-rgb),.12);
  font-size:14px;line-height:1.4;pointer-events:none;user-select:none}
.su-card[hidden],.su-card [hidden]{display:none}
.su-card-top{display:flex;gap:10px;align-items:center}
.su-card-av{flex:none;width:36px;height:36px;display:grid;place-items:center;border-radius:var(--r-control);
  color:#fff;font-size:13px;font-weight:600}
.su-card-hd{min-width:0;flex:1}
.su-card-nm{font-size:15px;font-weight:600;color:var(--ink);overflow-wrap:anywhere}
.su-card-ar{font-size:14px;color:var(--ink-soft);overflow-wrap:anywhere}
.su-card-rows{display:grid;grid-template-columns:auto minmax(0,1fr);gap:4px 12px;align-items:baseline;
  margin-top:10px;padding-top:10px;border-top:1px solid var(--rule)}
.su-card-l{font-size:13px;color:var(--ink-soft)}
.su-card-v{font-size:14px;color:var(--ink);overflow-wrap:anywhere}
.su-card-none{margin-top:10px;padding-top:10px;border-top:1px solid var(--rule);font-size:14px;color:var(--ink-soft)}
@media (prefers-reduced-motion:no-preference){
  @keyframes suCardIn{from{opacity:0;transform:scale(.97)}to{opacity:1;transform:none}}
  @keyframes suCardOut{from{opacity:1;transform:none}to{opacity:0;transform:scale(.98)}}
  .su-card.su-in{animation:suCardIn .16s var(--ease-out)}
  .su-card.su-out{animation:suCardOut .1s ease-out forwards}
}
.jd-28[tabindex]:focus{outline:none}
.jd-28[tabindex]:focus-visible{outline:2px solid var(--accent);outline-offset:2px;border-radius:2px}

/* The copy button (library Button copy). The negative margins keep the line it sits on the same height. */
.su-copy.su-copy{display:inline-grid;place-items:center;flex:none;width:24px;height:24px;min-width:0;min-height:0;
  margin:-5px 0 -5px 2px;padding:0;border:0;border-radius:var(--r-control);background:none;box-shadow:none;
  color:var(--ink-soft);cursor:pointer;vertical-align:middle;transition:background-color .12s ease,color .12s ease,transform .14s var(--ease-out)}
.su-copy.su-copy svg{grid-area:1/1;width:15px;height:15px;display:block;pointer-events:none;transition:opacity .16s ease,transform .2s var(--ease-out)}
.su-copy .i2{opacity:0;transform:scale(.5);color:var(--good)}
.su-copy.su-ok .i1{opacity:0;transform:scale(.5)}
.su-copy.su-ok .i2{opacity:1;transform:none}
.su-copy.su-now svg{transition:none}
.su-copy.su-copy:active{transform:scale(.92)}
.su-copy.su-copy:focus-visible{outline:2px solid var(--accent);outline-offset:1px}
@media (hover:hover) and (pointer:fine){.su-copy.su-copy:hover{background:var(--bt-line-h);color:var(--ink)}}
@media (prefers-reduced-motion:reduce){.su-copy.su-copy,.su-copy.su-copy svg{transition:none}.su-copy.su-copy:active{transform:none}}
/* a phone's press wants a bigger target than this small one: the phone keeps what it has */
@media (max-width:760px){.su-copy.su-copy{display:none}}
.su-said{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
