/* The brand's three fonts, served by the site itself: no CDN and no Node, like HTMX. They are variable,
   so one file per family covers every weight. Origin and licence in wwwroot/lib/fonts/LEIAME.md. */
@font-face{
  font-family:"Roboto";
  font-style:normal;
  font-weight:400 700;
  font-display:swap;
  src:url("../lib/fonts/roboto-latin.woff2") format("woff2");
  unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face{
  font-family:"Roboto";
  font-style:normal;
  font-weight:400 700;
  font-display:swap;
  src:url("../lib/fonts/roboto-latin-ext.woff2") format("woff2");
  unicode-range:U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face{
  font-family:"Roboto Mono";
  font-style:normal;
  font-weight:400 600;
  font-display:swap;
  src:url("../lib/fonts/roboto-mono-latin.woff2") format("woff2");
  unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face{
  font-family:"Roboto Mono";
  font-style:normal;
  font-weight:400 600;
  font-display:swap;
  src:url("../lib/fonts/roboto-mono-latin-ext.woff2") format("woff2");
  unicode-range:U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face{
  font-family:"Montserrat";
  font-style:normal;
  font-weight:600 800;
  font-display:swap;
  src:url("../lib/fonts/montserrat-latin.woff2") format("woff2");
  unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face{
  font-family:"Montserrat";
  font-style:normal;
  font-weight:600 800;
  font-display:swap;
  src:url("../lib/fonts/montserrat-latin-ext.woff2") format("woff2");
  unicode-range:U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* Black, white and red, like the shop's own site. The tokens come from docs/prototipo/sgs-prototipo.html. */
:root{
  color-scheme:light;
  --bg:#F3F3F3; --surface:#FFFFFF; --surface-2:#F7F7F7; --surface-3:#EBEBEB;
  --line:#E3E3E3; --line-strong:#CCCCCC;
  --ink:#111111; --ink-2:#4D4D4D; --ink-3:#6B6B6B;
  --accent:#DA1515; --accent-hover:#B81010; --accent-ink:#B8120F; --accent-wash:rgba(218,21,21,.08);
  --ok:#1E8A47; --ok-wash:rgba(30,138,71,.10);
  --warn:#A36700; --warn-dot:#E5A000; --warn-wash:rgba(242,178,51,.18);
  --crit:#C42020; --crit-wash:rgba(196,32,32,.09);
  --info:#2B63C4; --info-wash:rgba(43,99,196,.09);
  --violet:#6A4FCF;--teal:#0E7C7B; --violet-wash:rgba(106,79,207,.10);
  --shadow:0 12px 32px rgba(0,0,0,.13);
  --card:0 1px 1px rgba(0,0,0,.04),0 12px 28px -20px rgba(0,0,0,.45);
  --logo-filter:invert(1); --logo-blend:multiply;
  --faixa:#000000; --drawer-band:#232323; --on-faixa:#FFFFFF; --on-faixa-2:#B3B3B3; --faixa-alerta:#FF8A80; --faixa-ok:#5BD08A; --faixa-info:#8FBCFF;
  --primary:#000000; --primary-hover:#2B2B2B; --on-primary:#FFFFFF;
  --r:10px; --trilho:60px; --bar:58px;
}
:root[data-theme="dark"]{
  color-scheme:dark;
  --bg:#0B0B0B; --surface:#151515; --surface-2:#1C1C1C; --surface-3:#262626;
  --line:#2A2A2A; --line-strong:#3A3A3A;
  --ink:#F2F2F2; --ink-2:#BDBDBD; --ink-3:#8C8C8C;
  --accent:#DA1515; --accent-hover:#EF2A22; --accent-ink:#FF6B5E; --accent-wash:rgba(218,21,21,.15);
  --ok:#43C06F; --ok-wash:rgba(67,192,111,.14);
  --warn:#F2B233; --warn-dot:#F2B233; --warn-wash:rgba(242,178,51,.14);
  --crit:#FF6161; --crit-wash:rgba(255,97,97,.14);
  --info:#78AEFF; --info-wash:rgba(120,174,255,.14);
  --violet:#B39CFF;--teal:#4FC9C4; --violet-wash:rgba(179,156,255,.14);
  --shadow:0 12px 32px rgba(0,0,0,.5);
  --card:0 0 0 1px var(--line);
  --logo-filter:none; --logo-blend:screen;
  --faixa:#232323; --drawer-band:var(--faixa); --on-faixa:#F2F2F2; --on-faixa-2:#A6A6A6; --faixa-alerta:#FF8A80; --faixa-ok:#5BD08A; --faixa-info:#8FBCFF;
  --primary:#F2F2F2; --primary-hover:#FFFFFF; --on-primary:#111111;
}

*{box-sizing:border-box}
[hidden]{display:none!important}
html,body{height:100%}
body{margin:0;background:var(--bg);color:var(--ink);font:14px/1.5 "Roboto",system-ui,-apple-system,"Segoe UI",sans-serif;-webkit-font-smoothing:antialiased}
h1,h2,h3{font-family:"Montserrat","Roboto",system-ui,sans-serif;margin:0;line-height:1.2;text-wrap:balance}
p{margin:0}
a{color:inherit}
button,input,select,textarea{font:inherit;color:inherit}
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.i{width:18px;height:18px;flex:none}

/* ===== The shell: a strip on top, a rail of icons on the left, the page in the rest ===== */
.app{display:grid;grid-template-columns:var(--trilho) minmax(0,1fr);grid-template-rows:var(--bar) minmax(0,1fr);height:100%}
.wide .app{grid-template-columns:240px minmax(0,1fr)}

.top{grid-column:1/-1;grid-row:1;display:flex;align-items:center;gap:14px;padding:0 18px 0 12px;background:var(--faixa);color:var(--on-faixa);border-bottom:2px solid var(--accent)}
.top .menu{display:grid;place-items:center;width:36px;height:36px;border-radius:8px;border:1px solid rgba(255,255,255,.16);background:transparent;color:var(--on-faixa);cursor:pointer;flex:none}
.top .menu:hover{background:rgba(255,255,255,.08)}
html:not(.js) .top .menu{display:none}
.top .brand{flex:none;display:flex;align-items:center;margin-right:4px}
.top .brand img{height:34px;width:auto;filter:none;mix-blend-mode:screen}
.crumb{display:flex;align-items:center;gap:7px;font-size:13px;color:var(--on-faixa-2);white-space:nowrap;min-width:0;overflow:hidden}
.crumb b{color:var(--on-faixa);font-weight:600;overflow:hidden;text-overflow:ellipsis}
.top .quem-box{margin-left:auto;min-width:0;display:flex}
.top .quem{display:flex;background:transparent;cursor:pointer;font:inherit;max-width:100%;align-items:center;gap:8px;height:36px;padding:0 12px;border-radius:999px;border:1px solid rgba(255,255,255,.16);font-size:13px;white-space:nowrap;color:inherit;text-decoration:none}
.top .quem:hover{background:rgba(255,255,255,.08)}
.top .quem .papel{color:var(--on-faixa-2)}
.top .quem>svg{width:14px;height:14px;transform:rotate(90deg)}
.me-pop{inset:auto;top:62px;right:8px;position:fixed;width:210px;min-width:0}
.me-pop form,.me-pop .opt{width:100%}
.me-pop .opt::before{content:none}
.me-pop>.idle-opt{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:44px;border-top:1px solid var(--line);margin-top:4px;padding:4px 10px 0;cursor:pointer}
.idle-opt small{color:var(--ink-3);font-size:12px}
.idle-txt{display:grid}
.idle-txt>small{grid-area:1/1}
html.awake [data-idle-on],html:not(.awake) [data-idle-off]{visibility:hidden}
.sw{appearance:none;flex:none;width:34px;height:20px;margin:0;padding:0;border:0;border-radius:999px;background:var(--line-strong);position:relative;cursor:pointer;transition:background .15s}
.sw::after{content:"";position:absolute;top:2px;left:2px;width:16px;height:16px;border-radius:50%;background:#fff;transition:transform .15s}
.sw:checked{background:var(--accent)}
.sw:checked::after{transform:translateX(14px)}
.top .icon-btn{display:grid;place-items:center;width:36px;height:36px;border-radius:8px;border:1px solid rgba(255,255,255,.16);background:transparent;color:var(--on-faixa);cursor:pointer;flex:none}
.top .icon-btn:hover{background:rgba(255,255,255,.08)}
.top form{display:flex;margin:0}

.nav{grid-column:1;grid-row:2;display:flex;flex-direction:column;align-items:center;gap:4px;padding:12px 0;background:var(--bg)}
.nav .nl{position:relative;display:flex;align-items:center;justify-content:center;width:36px;height:36px;border-radius:8px;color:var(--ink-2);text-decoration:none}
.nav .nl:hover{background:var(--surface-3);color:var(--ink)}
.nav .nl[aria-current="page"]{background:var(--faixa);color:var(--on-faixa)}
.nav .nl[aria-disabled="true"]{color:var(--ink-3);cursor:default}
.nav .nl[aria-disabled="true"]:hover{background:none;color:var(--ink-3)}
/* collapsed, the name becomes the tip beside the icon */
.nav .nl span{position:absolute;left:calc(100% + 12px);top:50%;transform:translateY(-50%);background:var(--faixa);color:var(--on-faixa);padding:5px 9px;border-radius:6px;font-size:12px;font-weight:500;white-space:nowrap;pointer-events:none;opacity:0;transition:opacity .12s;z-index:30}
.nav .nl:hover span,.nav .nl:focus-visible span{opacity:1}
.nav-sep{width:28px;height:1px;margin:8px 0;background:var(--line);font-size:0;color:transparent}
.nav-veu{display:none}
.wide .nav{align-items:stretch;padding:12px 10px}
.wide .nav .nl{width:auto;justify-content:flex-start;gap:10px;padding:0 10px}
.wide .nav .nl span{position:static;transform:none;opacity:1;background:none;color:inherit;padding:0;font-size:14px}
.wide .nav-sep{margin:8px 10px;width:auto}
.wide .nav-sep:not(:empty){height:auto;background:none;font:600 10px/1.3 "Montserrat","Roboto",sans-serif;letter-spacing:.08em;text-transform:uppercase;color:var(--ink-3);margin:14px 10px 4px}
/* A group opens its items in place: no browser marker, and in the wide menu a chevron that turns. */
.nav-grp{display:flex;flex-direction:column;align-items:center;gap:4px}
.nav-grp>summary{list-style:none;cursor:pointer}
.nav-grp>summary::-webkit-details-marker{display:none}
.nav-grp>summary>.i:last-child{display:none}
.wide .nav-grp{align-items:stretch}
.wide .nav-grp>summary>.i:last-child{display:block;width:14px;height:14px;margin-left:auto;color:var(--ink-3);transition:transform .15s}
.nav-grp[open]>summary>.i:last-child{transform:rotate(90deg)}
/* The screens under an item: smaller, and tied to it by a line, so the closed menu still reads as a tree. */
.nav-sub{display:flex;flex-direction:column;align-items:center;gap:2px;margin:-2px 0 2px 12px;padding:2px 0 2px 7px;border-left:1px solid var(--line-strong)}
.nav-sub .nl{width:28px;height:28px}
.nav-sub .nl .i{width:15px;height:15px}
.wide .nav-sub{align-items:stretch;margin:0 0 4px 19px;padding:0 0 0 10px}
.wide .nav-sub .nl{width:auto;height:32px}
.wide .nav-sub .nl span{font-size:13.5px}

main{grid-column:2;grid-row:2;overflow:auto;padding:26px 34px 56px}
.page{display:flex;flex-direction:column;gap:18px;max-width:2040px;margin:0 auto}
.page.narrow{max-width:900px;width:100%}
.ph{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}
.ph h1{font-size:26px}
.ph h1 small{display:block;margin-bottom:4px;font:600 11px/1.2 "Montserrat","Roboto",sans-serif;letter-spacing:.06em;text-transform:uppercase;color:var(--ink-3)}

/* ===== The pieces ===== */
.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;height:38px;padding:0 14px;border-radius:999px;border:1px solid var(--line-strong);background:var(--surface);color:var(--ink);cursor:pointer;font-weight:500;text-decoration:none;white-space:nowrap}
.btn:hover{background:var(--surface-2)}
.btn.primary{background:var(--primary);border-color:var(--primary);color:var(--on-primary)}
.btn.primary:hover{background:var(--primary-hover);border-color:var(--primary-hover)}
.btn.ghost{background:transparent;border-color:transparent}
.btn.sm{height:32px;padding:0 11px;font-size:13px}
.btn.add-row{width:100%;margin-top:10px;border-style:dashed}
@media (max-width:560px){.btn.add-row{height:44px}.gc-a>.btn,.gc-a>form>.btn{height:44px}}
.btn:disabled,.btn:disabled:hover{opacity:.45;cursor:not-allowed}
.btn.primary:disabled:hover{background:var(--primary);border-color:var(--primary)}
.tip{position:relative}
.tip-t{position:absolute;left:0;bottom:calc(100% + 8px);width:max-content;max-width:260px;background:var(--faixa);color:var(--on-faixa);padding:6px 10px;border-radius:6px;font-size:12px;font-weight:400;line-height:1.35;white-space:normal;text-align:left;pointer-events:none;opacity:0;transition:opacity .12s;z-index:30}
.tip:hover .tip-t,.tip:focus-visible .tip-t{opacity:1}

.field{display:flex;flex-direction:column;gap:6px;min-width:0}
.field label{font-size:12px;color:var(--ink-2);font-weight:500}
input,select,textarea{height:40px;padding:0 12px;border-radius:9px;border:1px solid var(--line-strong);background:var(--surface);color:var(--ink);width:100%;min-width:0}
input:focus-visible,button:focus-visible,select:focus-visible,a:focus-visible{outline:2px solid var(--accent);outline-offset:2px}
.money-in{position:relative;display:block;min-width:0}
.money-in>span{position:absolute;left:12px;top:50%;transform:translateY(-50%);font-size:13px;color:var(--ink-3);pointer-events:none}
.money-in>input{padding-left:36px}

.senha{position:relative}
.senha input{padding-right:44px}
.ver{position:absolute;right:4px;top:4px;width:32px;height:32px;display:grid;place-items:center;padding:0;border:0;border-radius:8px;background:none;color:var(--ink-3);cursor:pointer}
.ver:hover{background:var(--surface-3);color:var(--ink)}
.ver svg{width:19px;height:19px}
/* A whole eye while the password is hidden; with the password showing, the eye comes struck through. */
.ver[aria-pressed="false"] .corte{display:none}

.note{display:flex;gap:8px;align-items:flex-start;font-size:13px;color:var(--ink-2)}
.note.warn{color:var(--warn);font-weight:600}
.erro,.alert-strip{display:flex;gap:8px;padding:10px 12px;border-radius:9px;background:var(--accent-wash);border:1px solid var(--accent);color:var(--ink);font-size:13px}

/* a block: the strip names the subject, the body is data on white */
.grp{background:var(--surface);border-radius:var(--r);box-shadow:var(--card);min-width:0;overflow:hidden}
.fx{display:flex;align-items:center;justify-content:space-between;gap:8px 18px;min-height:48px;padding:8px 18px;background:var(--faixa);color:var(--on-faixa);flex-wrap:wrap}
.fx h2{display:flex;align-items:center;gap:9px;font:700 14px/1.3 "Montserrat","Roboto",sans-serif;color:var(--on-faixa)}
.fx h2 small{font:400 13px "Roboto",sans-serif;color:var(--on-faixa-2)}
.gb{padding:18px}
.kpis{display:flex;gap:22px;margin-left:auto;flex-wrap:wrap}
.kpi{text-align:right;line-height:1.2}
.kpi small{display:block;font:600 10px/1.3 "Montserrat","Roboto",sans-serif;letter-spacing:.08em;text-transform:uppercase;color:var(--on-faixa-2)}
.kpi b{font:600 14px/1.35 "Roboto Mono",ui-monospace,monospace;color:var(--on-faixa)}
.kpi.warn b{color:var(--faixa-alerta)}

/* The status badge: the coloured dot says the state before the word does. */
[data-s]{--dot:var(--ink-3)}
[data-s="orcamento"]{--dot:var(--warn-dot)}
[data-s="autorizado"]{--dot:var(--info)}
[data-s="conserto"]{--dot:var(--teal)}
[data-s="peca"]{--dot:var(--violet)}
[data-s="pronto"]{--dot:var(--ok)}
.st{display:inline-flex;align-items:center;gap:7px;height:26px;padding:0 11px;border-radius:999px;border:1px solid var(--line-strong);font-size:13px;font-weight:500;white-space:nowrap}
.st::before,.dot{content:"";display:inline-block;width:8px;height:8px;border-radius:50%;background:var(--dot);flex:none}
.st[data-s="naoaut"]::before,.st[data-s="devolucao"]::before,.st[data-s="cancelada"]::before,.dot[data-s="naoaut"],.dot[data-s="devolucao"],.dot[data-s="cancelada"]{background:transparent;box-shadow:inset 0 0 0 2px var(--ink-3)}
.st[data-s="cancelada"]{color:var(--ink-3);border-style:dashed}
.st[data-s="conferir"]{border-style:dashed;border-color:var(--warn);color:var(--warn)}

/* the list: search and filters in one strip, the answer in rows */
/* The search takes what it needs and no more: it holds an order number or a name, and a field as wide
   as the screen makes the eye travel to find where the filters are.

   THE BAR IS ONE LINE, AT EVERY WIDTH. Broken in two it doubles in height and the search — the thing
   most used there — ends up squeezed between two buttons. What gives way is the search; and where it no
   longer has room to write, the buttons become the icon alone.

   Filters and order are the same gesture — deciding what the list shows — and sit glued in one pair at
   the right-hand end, away from the search, because nobody touches all three at once. */
.tool{display:flex;gap:10px;align-items:center;flex-wrap:nowrap}
.tool .find{position:relative;flex:0 1 380px;min-width:0}
.acoes{display:flex;align-items:center;margin-left:auto;flex:none}
.acoes>.filtros>summary{border-radius:999px 0 0 999px}
.acoes>.ord>summary{border-radius:0 999px 999px 0;margin-left:-1px}
.acoes>.filtros>.painel{left:auto;right:0}
/* A filter that is on paints the button, and not only the number on it: the count answers "how
   many", and what the counter asks from across the room is "is this list the whole list". The
   number IS the condition — it is only drawn when something is on — so `:has` reads it straight
   off the markup instead of a second flag that can disagree with it. */
.filtros>summary:has(.badge){background:var(--faixa);border-color:var(--faixa);color:var(--on-faixa)}
.filtros[open]>summary:has(.badge){background:var(--primary-hover)}
.filtros>summary:has(.badge) .badge{background:var(--on-faixa);color:var(--faixa)}
.tool .find .i{position:absolute;left:13px;top:50%;transform:translateY(-50%);color:var(--ink-3)}
.tool .find input{height:40px;padding-left:40px;background:var(--surface);border-radius:999px}
.tool select{width:auto;height:40px;border-radius:999px;background:var(--surface);padding:0 14px}
.tool .btn{height:40px}
.badge{display:inline-grid;place-items:center;min-width:18px;height:18px;padding:0 5px;border-radius:9px;background:var(--accent);color:#fff;font-size:11px;font-weight:700}

.filtros{position:relative}
.filtros>summary{display:inline-flex;align-items:center;justify-content:center;gap:8px;height:40px;padding:0 14px;border-radius:999px;border:1px solid var(--line-strong);background:var(--surface);cursor:pointer;font-weight:500;white-space:nowrap;list-style:none}
.filtros>summary::-webkit-details-marker{display:none}
.filtros[open]>summary{background:var(--surface-2)}
.filtros .painel{position:absolute;z-index:48;top:calc(100% + 6px);left:0;display:flex;flex-direction:column;gap:12px;width:max-content;min-width:250px;max-width:min(360px,calc(100vw - 24px));padding:14px;border:1px solid var(--line-strong);border-radius:12px;background:var(--surface);box-shadow:var(--shadow)}
.filtros .chips{display:flex;flex-direction:column;gap:8px}
.filtros label.tg{display:flex;align-items:center;gap:8px;font-size:13px;cursor:pointer}
.filtros label.tg input{width:auto;height:auto;margin:0}

/* The sort wears the same pill, and its panel opens against the right: it lives at the end of the bar,
   and aligned from the left the panel ran past the edge of the screen. */
.ord .painel{left:auto;right:0;min-width:190px;gap:2px;padding:6px}
.opt{display:flex;align-items:center;gap:9px;padding:8px 10px;border-radius:8px;font-size:13px;color:var(--ink-2);text-decoration:none;white-space:nowrap}
.opt::before{content:"";flex:none;width:7px;height:7px;border-radius:50%;background:transparent}
.opt:hover{background:var(--surface-2);color:var(--ink)}
.opt.on{color:var(--ink);font-weight:600}
.opt.on::before{background:var(--accent)}

/* The arrow is ours, and it has room to breathe. The operating system's came glued to the edge and was
   drawn differently by every browser — in a bar with no native frame left, it was the one thing
   announcing that the screen is a form. */
.tool select,.filtros .painel select{appearance:none;padding-right:34px;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236B6B6B' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right 12px center;background-size:15px 15px}
:root[data-theme="dark"] .tool select,:root[data-theme="dark"] .filtros .painel select{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238C8C8C' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E")}

/* ===== The house's select =====
   The native <select> hidden and drawn over, copied from the Intertox prototype. It is not a replacement:
   the <select> stays in the page being the truth, so the form sends what it always sent and the script
   being off simply gives the native field back. What it buys is a field with the house's frame instead
   of the operating system's, and — the reason it was worth copying — an image beside the option, which
   the native one cannot have: in "Situação" each choice wears the same dot the list wears. */
.selc{position:relative;display:block;min-width:0}
.selc>select{position:absolute;width:1px;height:1px;opacity:0;pointer-events:none}
.selc-b{display:flex;align-items:center;gap:8px;width:100%;min-width:0;height:40px;padding:0 10px 0 12px;background:var(--surface);border:1px solid var(--line-strong);border-radius:9px;color:var(--ink);text-align:left;cursor:pointer}
.selc-b:hover{border-color:var(--ink-3)}
.selc.on .selc-b{border-color:var(--ink);box-shadow:0 0 0 3px var(--surface-3)}
.selc.off .selc-b{background:var(--surface-2);color:var(--ink-3);cursor:not-allowed}
.selc-t{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
/* The longest option, at zero height: it is neither seen nor read, but it counts in the field's
   intrinsic width — which is what stops the choice from resizing the thing that makes the choice. The
   ceiling is there so a sixty-character option cannot push the whole panel wider. */
.selc-fantasma{display:block;height:0;overflow:hidden;visibility:hidden;max-width:18rem}
.selc-v{flex:none;width:15px;height:15px;color:var(--ink-3);transition:transform .12s ease}
.selc.on .selc-v{transform:rotate(180deg);color:var(--ink)}
@media (prefers-reduced-motion:reduce){.selc-v{transition:none}}
/* `left:0;right:0` — the list is as wide as the field. With `min-width:max-content` it beat the field
   every time the longest option was wider, and inside a filter panel the list left through the border. */
.selc-pop{position:absolute;top:calc(100% + 5px);left:0;right:0;z-index:40;max-height:280px;overflow:hidden auto;overscroll-behavior:contain;display:grid;gap:1px;padding:5px;background:var(--surface);border:1px solid var(--line-strong);border-radius:10px;box-shadow:var(--shadow)}
.selc.acima .selc-pop{top:auto;bottom:calc(100% + 5px)}
/* The <optgroup> heading. It is not an option: it takes no focus, wears no dot, and what it does is say
   what the rows below it are. */
.selc-g{display:block;padding:8px 8px 4px;font:600 10px/1.3 "Montserrat","Roboto",sans-serif;letter-spacing:.08em;text-transform:uppercase;color:var(--ink-3)}
.selc-o{display:flex;align-items:center;gap:9px;width:100%;text-align:left;padding:7px 9px;background:none;border:0;border-radius:7px;font-size:13px;color:var(--ink-2);cursor:pointer}
.selc-o .selc-t{white-space:normal;overflow:visible;text-overflow:clip}
.selc-o:hover{background:var(--surface-2);color:var(--ink)}
.selc-o.on{background:var(--surface-2);color:var(--ink);font-weight:600}
.selc-o[disabled]{color:var(--ink-3);cursor:not-allowed;background:none}
/* The house's focus ring sits two pixels outside what it marks, which is right for a field with air
   around it and wrong for a row in a list: there it climbs over the rows above and below. Inside the
   list it goes inwards. */
.selc-o:focus-visible{outline-offset:-2px}

.chip{display:inline-flex;align-items:center;gap:5px;height:22px;padding:0 8px;border-radius:999px;font-size:12px;font-weight:500;background:var(--surface-3);color:var(--ink-2);white-space:nowrap;text-decoration:none;border:0}
a.chip:hover{text-decoration:underline}
.chip.crit{background:var(--crit-wash);color:var(--crit)}
.chip.warranty{background:var(--violet-wash);color:var(--violet)}

.lcount{color:var(--ink-2);font-size:13px;margin:0 0 -8px 2px}
/* "Buscando…" — gone while no request is in flight; htmx lights it up through the htmx-request class.
   On this machine the answer is instant and nobody needs telling; on the shop's line it is the
   difference between waiting and pressing the key again.

   Hidden with visibility, not opacity alone: a transparent word is still a word to a screen reader,
   which would find "Buscando…" sitting in the toolbar of a screen that is doing nothing. And because
   the words never change, hiding this way is also what makes the live region speak — it is the
   showing that is the news, not the text. The space it takes is held either way, so the toolbar does
   not jump when the search starts. */
.espera{display:inline-flex;align-items:center;gap:7px;font-size:13px;color:var(--ink-2);white-space:nowrap;visibility:hidden;opacity:0;transition:opacity .15s,visibility .15s}
.espera.htmx-request,.espera.on{visibility:visible;opacity:1}
.giro{width:14px;height:14px;flex:none;border-radius:50%;border:2px solid var(--line-strong);border-top-color:var(--ink-2);animation:gira .7s linear infinite}
@keyframes gira{to{transform:rotate(360deg)}}
/* The word follows the search box: text in it means searching, empty means filtering. */
.tool:has(input[type="search"]:placeholder-shown) .buscando{display:none}
.tool:not(:has(input[type="search"]:placeholder-shown)) .filtrando{display:none}
/* The list dims until the answer arrives, so nobody reads old rows as if they were the new ones. */
#ol-res{transition:opacity .15s}
#ol-res.htmx-request:not(:has(>.load)){opacity:.4}
@media (prefers-reduced-motion:reduce){.giro{animation-duration:2s}}

/* A new batch: the scroll lands on its first row and the highlight says which ones have just arrived.
   It fades by itself, because a highlight that stays stops highlighting. Whoever asked for less movement
   gets none. */
.lr.novo{animation:chegou 2.4s ease-out}
@keyframes chegou{from{background:var(--accent-wash)}60%{background:var(--accent-wash)}to{background:transparent}}
html{scroll-behavior:smooth}
@media (prefers-reduced-motion:reduce){
  .lr.novo{animation:none}
  html{scroll-behavior:auto}
}
.more{display:flex;flex-wrap:wrap;align-items:center;gap:10px 12px;padding:10px 14px;border-top:1px solid var(--line)}
.sits{flex:1;min-width:0;display:flex;flex-wrap:wrap;align-items:center;gap:6px 12px}
.sits .lb{margin:0 0 0 4px}
.leg{display:inline-flex;align-items:center;gap:7px;padding:4px 10px;border-radius:999px;border:1px solid transparent;font-size:12.5px;color:var(--ink-2);text-decoration:none;white-space:nowrap}
a.leg:hover{background:var(--surface-2);border-color:var(--line)}
.leg[aria-current="true"]{background:var(--surface-3);border-color:var(--line-strong);color:var(--ink);font-weight:500}
.leg .i{width:13px;height:13px;color:var(--ink-3)}
.mais{margin-left:auto}

.lr{display:grid;grid-template-columns:12px minmax(0,1fr) auto;gap:4px 22px;align-items:center;padding:10px 18px;min-height:62px;border-top:1px solid var(--line);color:inherit;text-decoration:none}
.fx+.lr{border-top:0}
a.lr:hover{background:var(--surface-2)}
.lr .dot{width:11px;height:11px}
.lr .nm{min-width:0}
.lr>.nm:first-child{grid-column:1/3}
.lr .nm b{font-size:15px;font-weight:600;margin-right:6px}
.lr .nm .chip{height:20px;vertical-align:1px;margin-right:4px}
.lr .nm small{display:block;font-size:12.5px;color:var(--ink-3);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.lr .nm .chip.crit{display:none}
.st-sm{display:none}
.mono,input[data-mask],input[inputmode="tel"]{font-family:"Roboto Mono",ui-monospace,monospace}
/* Fixed tracks: the last fact goes from "—" to "10/11 14:00", and a row sized by its own text moves the
   status column of every row around it. The last track is as wide as "Parados +90 dias" and the gap is the
   strip's, so Entrada and Prazo end under the strip's two last counters. */
.facts{display:grid;grid-template-columns:150px auto minmax(115px,auto);gap:22px}
.facts:empty{display:none}
/* A row with fewer facts than the three of the order list takes only the columns it needs: no empty column at its end. */
.lr .facts:has(>:only-child){grid-template-columns:auto}
.lr .facts:has(>:nth-child(2):last-child){grid-template-columns:150px auto}
.fact{text-align:right;line-height:1.25;min-width:52px}
.fact small{display:block;font:600 10px/1.3 "Montserrat","Roboto",sans-serif;letter-spacing:.08em;text-transform:uppercase;color:var(--ink-3)}
.fact span{font:500 12.5px "Roboto Mono",ui-monospace,monospace;color:var(--ink-2)}
.fact.st-f{min-width:150px;text-align:left}
.fact span.w{font:500 13px "Roboto",sans-serif;color:var(--ink)}
.fact.late span{color:var(--accent-ink);font-weight:600}

/* An empty list: a card the size of the list it replaced, with a drawing, the reason in one line and the
   way out. The same on every list here, so nobody learns two ways of reading "there is nothing here". */
.vazio{display:flex;flex-direction:column;align-items:center;gap:10px;padding:40px 22px 34px;background:var(--surface);border-radius:var(--r);box-shadow:var(--card);color:var(--ink-3);text-align:center}
.vazio b{color:var(--ink);font:600 16px/1.3 "Montserrat","Roboto",sans-serif;margin-top:4px}
.vazio p{max-width:44ch;font-size:13.5px}
.vazio .btn{margin-top:8px}
.vazio .i{width:26px;height:26px}
.status-page{max-width:520px;margin:48px auto 0}
.status-btns{display:flex;flex-wrap:wrap;justify-content:center;gap:10px}

/* The drawing: the icons' thin stroke, a soft disc behind it and one detail in colour. Red is the brand's
   and marks what came to nothing; green is this system's "all clear", and a clear bench is that. */
.arte{width:132px;height:106px;color:var(--ink-3)}
.arte .disco{fill:var(--surface-3);stroke:none}
.arte .papel,.arte .lente{fill:var(--surface)}
.arte .cabo{stroke:var(--accent)}
.arte .ok{stroke:var(--ok)}

/* The record that is not there. Sister of the empty list above, and drawn apart from it on purpose: that
   one is centred round a drawing because it states a fact about the data, and this is a plain card
   aligned left because it states that one record is missing. No shadow: it sits inside something that is
   already a card. No ink either — nothing here went wrong, so nothing here is red. */
.bloq{display:grid;grid-template-columns:22px minmax(0,1fr);gap:12px;align-items:start;padding:16px 14px;background:var(--surface);border:1px solid var(--line);border-radius:var(--r)}
.bloq>.i{width:22px;height:22px;margin-top:2px;color:var(--ink-3)}
.bloq b{display:block;font:600 15px/1.3 "Montserrat","Roboto",sans-serif;color:var(--ink)}
.bloq p{margin:5px 0 0;max-width:60ch;font-size:13.5px;color:var(--ink-3)}
.bloq .btn{margin-top:12px}

/* The notices, copied from the Intertox prototype, which is where they exist whole — the React
   component in that project is the poorer half. The queue is a stack, one over the other, and it opens
   when the pointer arrives; the clock belongs to whoever is in front; an error does not go by itself.
   The skin is this house's: the black band with the state's dot, which is how these screens mark state
   in the list, in the drawer and in the header of a card.

   Anchored to the foot, the stack grows upwards and the dismiss-all button sits below it — above, it
   would run from the pointer at the instant it was clicked. */
.toasts{position:fixed;left:18px;bottom:18px;z-index:70;display:flex;flex-direction:column;align-items:flex-start;gap:6px;width:min(400px,calc(100vw - 36px));pointer-events:none}
.toasts-stack{display:grid;width:100%;pointer-events:auto}
.toasts-stack>.toast{grid-area:1/1;align-self:end;transform-origin:bottom center;transform:translateY(calc(var(--i,0) * -9px)) scale(calc(1 - var(--i,0) * .04));opacity:calc(1 - var(--i,0) * .22);transition:transform .16s ease,opacity .16s ease}
.toasts-stack>.toast.back{opacity:0;pointer-events:none}

/* Open, the queue can outgrow the window, and what leaves over the top is the oldest — which is
   exactly what has not been read yet. So it scrolls. */
.toasts:hover .toasts-stack,.toasts:focus-within .toasts-stack{gap:8px;max-height:calc(100vh - 120px);overflow-y:auto;padding:2px;margin:-2px}
.toasts:hover .toasts-stack>.toast,.toasts:focus-within .toasts-stack>.toast{grid-area:auto;transform:none;opacity:1;pointer-events:auto}

.toasts-clear{pointer-events:auto;padding:4px 11px;border-radius:999px;border:1px solid var(--line);background:var(--surface);color:var(--ink-3);font:600 11px "Montserrat","Roboto",sans-serif;cursor:pointer;box-shadow:var(--shadow)}
.toasts-clear:hover{background:var(--surface-2);color:var(--ink)}
/* At the foot of a phone screen a toast sits on the drawer's buttons and takes their click. */
@media (max-width:560px){.toasts{top:12px;bottom:auto}}

.toast{--tone:var(--faixa-alerta);position:relative;overflow:hidden;display:flex;align-items:center;gap:10px;padding:11px 13px;border-radius:10px;background:var(--faixa);color:var(--on-faixa);box-shadow:var(--shadow);animation:toastin .16s ease-out}
.toast:has(p),.toast:has(.toast-go){align-items:flex-start}
.toast>.dot{width:9px;height:9px;background:var(--tone);align-self:center}
.toast:has(p)>.dot,.toast:has(.toast-go)>.dot{align-self:flex-start;margin-top:5px}
.toast>div{flex:1;min-width:0}
.toast b{display:block;font:600 13.5px/1.35 "Montserrat","Roboto",sans-serif}
.toast p{margin:4px 0 0;font-size:12.5px;line-height:1.45;color:var(--on-faixa-2)}
.toast-go{margin-top:8px;padding:4px 10px;border-radius:7px;border:1px solid rgba(255,255,255,.28);background:transparent;color:var(--on-faixa);font:600 12px "Montserrat","Roboto",sans-serif;cursor:pointer}
.toast-go:hover{background:rgba(255,255,255,.14)}
.toast-close{flex:none;width:24px;height:24px;padding:0;border:0;border-radius:7px;background:none;color:var(--on-faixa-2);font-size:12px;line-height:1;cursor:pointer}
.toast-close:hover{background:rgba(255,255,255,.14);color:var(--on-faixa)}
.toast[data-tone="ok"]{--tone:var(--faixa-ok)}
.toast[data-tone="info"]{--tone:var(--faixa-info)}

/* How much is left before the notice goes. The prototype did not show it, and somebody who reads half
   a sentence that vanishes with no warning reopens the screen to find out what it said. An animation
   and not a transition: pausing an animation keeps the exact point it had reached. */
/* Full while nothing is counting: a notice waiting its turn at the back of the queue has all of its
   time left, and an empty line there would read as time already spent. */
.toast-time{position:absolute;left:0;right:0;bottom:0;height:2px;background:var(--tone);opacity:.5;transform-origin:left center;transform:scaleX(1)}
@keyframes drain{from{transform:scaleX(1)}to{transform:scaleX(0)}}
@keyframes toastin{from{transform:translateY(10px);opacity:0}to{transform:none;opacity:1}}
@media (prefers-reduced-motion:reduce){.toasts-stack>.toast{transition:none;animation:none}}

/* ===== Signing in, asking for a new password, setting one: no shell around them ===== */
.login{min-height:100%;display:grid;place-items:center;padding:24px 16px}
.login-card{width:min(400px,100%);background:var(--surface);border:1px solid var(--line);border-radius:18px;padding:28px 24px;display:flex;flex-direction:column;gap:14px;box-shadow:var(--shadow)}
.login-card img{width:190px;max-width:70%;margin:0 auto 4px;display:block;filter:var(--logo-filter);mix-blend-mode:var(--logo-blend)}
.login-card h1{font-size:20px;text-align:center}
.login-card.wide{width:min(600px,100%)}
.login-card .center{text-align:center;color:var(--ink-2)}
.people{display:flex;flex-wrap:wrap;justify-content:center;gap:10px}
.people a{width:128px;display:flex;flex-direction:column;align-items:center;gap:6px;padding:16px 8px;border-radius:14px;border:1px solid var(--line);background:var(--surface-2);color:inherit;text-decoration:none;text-align:center}
.people a:hover,.people a:focus-visible{border-color:var(--accent)}
.people small{color:var(--ink-3)}
.login-card>form{display:flex;flex-direction:column;gap:14px}
.pin-entry,.pass-entry{margin:0 auto;display:flex;flex-direction:column;gap:14px}
.pin-entry{width:min(224px,100%)}
.pass-entry{width:min(300px,100%)}
.pin-entry input{text-align:center;font-size:22px;letter-spacing:.4em}
.pin-pad{display:grid;grid-template-columns:repeat(3,68px);gap:10px;justify-content:center}
.pin-pad>button{height:54px;border-radius:14px;border:1px solid var(--line);background:var(--surface-2);color:inherit;font-size:19px;font-weight:500;cursor:pointer;display:grid;place-items:center}
.pin-pad>button:hover{border-color:var(--line-strong);background:var(--surface-3)}
.pin-out{display:flex;gap:8px;justify-content:center;border-top:1px solid var(--line);padding-top:12px}

/* ===== The drawer: the order over the list =====
   It comes from the right, covers the list with a veil and gives the focus back to the row when it
   closes. The width is the prototype's; on a phone it takes the whole screen, which is where 600px no
   longer fits. */
.gv-ov{position:fixed;inset:0;z-index:45;background:rgba(0,0,0,.4);display:flex;justify-content:flex-end}
.gv{width:min(600px,100%);height:100%;background:var(--bg);display:flex;flex-direction:column;box-shadow:-18px 0 40px -20px rgba(0,0,0,.45);animation:gvin .18s ease-out}
@keyframes gvin{from{transform:translateX(24px);opacity:.6}to{transform:none;opacity:1}}
@media (prefers-reduced-motion:reduce){.gv{animation:none}}
.gv-ov.stacking{z-index:46;background:transparent}
.gv-ov.pushed>.gv{animation:gvpush .22s ease-out}
.gv-ov.leaving>.gv{animation:gvpop .2s ease-in forwards}
.gv-ov.back>.gv{animation:none}
@keyframes gvpush{from{transform:translateX(100%)}to{transform:none}}
@keyframes gvpop{to{transform:translateX(100%)}}
@media (prefers-reduced-motion:reduce){.gv-ov.pushed>.gv,.gv-ov.leaving>.gv{animation:none}}
body:has(.gv-ov:not([hidden])){overflow:hidden}

/* The overlay darkens the page header behind the drawer, and black cannot get darker: the band is grey
   so the drawer header stands apart in both themes. */
.gv-h{display:flex;align-items:center;gap:12px;min-height:58px;padding:9px 12px 9px 18px;background:var(--drawer-band);color:var(--on-faixa);flex:none;border-bottom:2px solid var(--accent)}
.gv-h .dot{width:11px;height:11px}
.gv-h .tt{flex:1;min-width:0;line-height:1.25}
.gv-h .tt small{display:block;font:600 10px/1.3 "Montserrat","Roboto",sans-serif;letter-spacing:.08em;text-transform:uppercase;color:var(--on-faixa-2)}
.gv-h .tt b{display:block;font:700 15px/1.3 "Montserrat","Roboto",sans-serif;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.gv-x{display:grid;place-items:center;width:32px;height:32px;border-radius:8px;border:1px solid rgba(255,255,255,.2);background:transparent;color:var(--on-faixa);cursor:pointer;flex:none}
.gv-x:hover{background:rgba(255,255,255,.1)}

/* The strip at the top of a drawer, in one shape for both of the things it does: links to the sections
   of a record being read, and the steps of one being filled in. With the script off the links still lead
   to the right place and the steps still send the form. */
.gv-tabs{display:flex;gap:4px 10px;padding:0 12px;background:var(--surface);border-bottom:1px solid var(--line);overflow-x:auto;scrollbar-width:none;flex:none}
.gv-tabs>*{display:flex;align-items:center;gap:6px;padding:12px 6px 10px;border:0;border-bottom:2px solid transparent;background:none;font:600 11px/1.2 "Montserrat","Roboto",sans-serif;letter-spacing:.06em;text-transform:uppercase;color:var(--ink-3);text-decoration:none;white-space:nowrap}
.gv-tabs>span{cursor:default}
.gv-tabs>button{cursor:pointer}
.gv-tabs>*:hover{color:var(--ink)}
.gv-tabs>[aria-current="true"],.gv-tabs>[aria-selected="true"]{color:var(--ink);border-bottom-color:var(--accent)}
.gv-tabs .n{display:grid;place-items:center;width:18px;height:18px;border-radius:50%;background:var(--surface-3);font-size:10px}
.gv-tabs .n .i{width:12px;height:12px}
.gv-tabs>[aria-selected="true"] .n{background:var(--accent);color:#fff}
.gv-b{position:relative;flex:1;overflow:auto;padding:14px 16px 28px;display:flex;flex-direction:column;gap:14px;scroll-behavior:smooth}
.gv-why{flex:none;margin:12px 16px 0}
.alert-strip{align-items:center;gap:12px;line-height:1.4}
.alert-strip.blink{animation:gvblink .5s ease-out}
@keyframes gvblink{0%{box-shadow:0 0 0 0 var(--accent)}50%{box-shadow:0 0 0 4px var(--accent)}100%{box-shadow:0 0 0 0 transparent}}
@media (prefers-reduced-motion:reduce){.alert-strip.blink{animation:none}}
.alert-strip-icon{flex:none;width:36px;height:36px;border-radius:50%;display:grid;place-items:center;background:var(--accent-wash);color:var(--accent-ink);border:1px solid var(--accent)}
.alert-strip-icon .i{width:19px;height:19px}
.alert-strip.calm{background:var(--surface-2);border-color:var(--line-strong)}
.alert-strip.calm .alert-strip-icon{background:var(--surface-3);color:var(--ink-2);border-color:var(--line-strong)}
.alert-strip-body{flex:1}
.alert-strip-body>strong,.alert-strip-body>span{display:block;margin-bottom:2px}
.alert-strip .btn{flex:none;font-size:14px}
.alert-strip>.x{display:grid;place-items:center;width:32px;height:32px;margin:-6px -6px 0 0;border:0;border-radius:8px;background:none;color:inherit;cursor:pointer;flex:none}
/* On a phone the text keeps the width and the button goes under it. */
@media (max-width:560px){
  .alert-strip{display:grid;grid-template-columns:auto 1fr auto;align-items:start;column-gap:12px;row-gap:10px}
  .alert-strip>.alert-strip-icon{grid-column:1;grid-row:1}
  .alert-strip>.alert-strip-body{grid-column:2;grid-row:1}
  .alert-strip>.x{grid-column:3;grid-row:1;width:44px;height:44px;margin:-12px -10px -8px 0}
  .alert-strip>.btn{grid-column:2/4;grid-row:2;justify-self:start}
}

/* Waiting and failing (loading.js): a card over a skeleton of what is coming. The card sticks to the
   screen and not to the list, so a list scrolled far down still sees it. */
.load-host{position:relative}
.load-hold{overflow:hidden}
.load{position:absolute;inset:0;z-index:30;background:var(--bg)}
.load-sk{position:absolute;inset:0;overflow:hidden}
.sk{display:block;background:linear-gradient(90deg,var(--surface-2) 0%,var(--surface-3) 40%,var(--surface-2) 80%);background-size:300% 100%;animation:skm 1.4s ease-in-out infinite;border-radius:6px}
@keyframes skm{0%{background-position:100% 0}100%{background-position:0 0}}
.load.failed .sk{animation:none}
.sk-row{display:flex;align-items:center;gap:16px;padding:14px 18px;border-bottom:1px solid var(--line)}
.sk-dot{width:10px;height:10px;border-radius:50%;flex:none}
.sk-col{display:flex;flex-direction:column;gap:7px;flex:1}
.sk-l{height:12px}
.sk-s{height:9px;opacity:.7}
.sk-pill{width:92px;height:22px;border-radius:999px;flex:none}
.sk-head{position:relative;padding:18px 60px 18px 16px;display:flex;flex-direction:column;gap:9px;background:var(--drawer-band)}
.sk-head .x{position:absolute;top:8px;right:8px;display:grid;place-items:center;width:44px;height:44px;border:0;border-radius:8px;background:none;color:var(--on-faixa);cursor:pointer}
.sk-tabs{display:flex;gap:18px;padding:12px 16px;border-bottom:1px solid var(--line)}
.sk-card{background:var(--surface);border:1px solid var(--line);border-radius:var(--r);padding:16px;margin:14px 16px;display:flex;flex-direction:column;gap:10px}
.load-pin{position:absolute;inset:0;display:flex;justify-content:center;align-items:flex-start;padding:min(24vh,200px) 16px 0;pointer-events:none}
.load-card{position:sticky;top:30vh;pointer-events:auto;width:min(360px,100%);background:var(--surface-2);border:1px solid var(--line-strong);border-radius:14px;box-shadow:var(--shadow);padding:24px 24px 0;text-align:center;overflow:hidden}
.load-card strong{display:block;margin:14px 0 4px;font-size:16px;color:var(--ink)}
.load-card p{margin:0 0 20px;font-size:13px;line-height:1.45;color:var(--ink-2)}
.load-card.failed{padding-bottom:20px}
.load-card.failed p{margin-bottom:18px}
.load-card .alert-strip-icon{width:46px;height:46px;margin:0 auto}
.load-card .alert-strip-icon .i{width:22px;height:22px}
.load-ring{display:block;width:38px;height:38px;margin:0 auto;border-radius:50%;border:3px solid var(--surface-3);border-top-color:var(--accent);animation:gira .8s linear infinite}
.load-track{display:block;position:relative;height:3px;margin:0 -24px;background:var(--surface-3);overflow:hidden}
.load-track i{position:absolute;top:0;bottom:0;width:35%;background:var(--accent);animation:ldb 1.2s ease-in-out infinite}
@keyframes ldb{0%{left:-35%}100%{left:100%}}
.load-count{display:block;margin-top:12px;font-size:12px;color:var(--ink-3)}
.load-count i{display:block;position:relative;height:3px;margin-top:8px;background:var(--surface-3);border-radius:3px;overflow:hidden}
.load-count i::after{content:"";position:absolute;inset:0;background:var(--ink-3);transform-origin:left;animation:ldc 10s linear forwards}
@keyframes ldc{from{transform:scaleX(1)}to{transform:scaleX(0)}}
/* A button that sends waits in its own place; the others in its row rest until the answer comes. */
.btn.busy{pointer-events:none}
.btn.busy>.i{display:none}
.busy-ring{display:inline-block;width:15px;height:15px;flex:none;border-radius:50%;border:2px solid currentColor;border-right-color:transparent;animation:gira .7s linear infinite}
.busy-off{opacity:.45;pointer-events:none}
.btn.failed{outline:2px solid var(--accent);outline-offset:2px}
@media (prefers-reduced-motion:reduce){.sk,.load-track i{animation:none}.load-ring,.busy-ring{animation-duration:2s}}
@media (prefers-reduced-motion:reduce){.gv-b{scroll-behavior:auto}}

/* Each section is a card with a header, and the header carries the number that sums the section up. */
.gc{background:var(--surface);border:1px solid var(--line);border-radius:var(--r);flex:none;scroll-margin-top:14px}
.gc-h{display:flex;align-items:center;gap:9px;min-height:46px;padding:9px 16px;border-bottom:1px solid var(--line);flex-wrap:wrap}
.gc-h h3{flex:1 1 auto;margin:0;display:flex;align-items:center;gap:9px;font:700 14px/1.3 "Montserrat","Roboto",sans-serif}
.gc-h h3 small{font:400 13px "Roboto",sans-serif;color:var(--ink-3)}
.gc-h .dot{width:9px;height:9px}
.gc-h .gc-a{display:flex;flex-wrap:wrap;gap:9px;align-items:center;margin-left:auto}
.gc-h .gk{display:flex;gap:16px;margin-left:auto}
.gc-h .gk div{text-align:right;line-height:1.2}
.gc-h .gk small{display:block;font:600 10px/1.3 "Montserrat","Roboto",sans-serif;letter-spacing:.08em;text-transform:uppercase;color:var(--ink-3)}
.gc-h .gk b{font:600 13px "Roboto Mono",ui-monospace,monospace;white-space:nowrap}
.gc-h .gk b.warn{color:var(--accent-ink)}
.gc-b{padding:14px 16px}
.gc-b+.gc-b{border-top:1px solid var(--line)}
.gc-b>:first-child{margin-top:0}
.gc-b>*+:is(.field,.form-grid,.qs){margin-top:14px}

.kv{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:12px 22px}
.kv>div{min-width:0;overflow-wrap:anywhere}
.kv>div>span:first-child,.lb{display:block;font:600 10px/1.3 "Montserrat","Roboto",sans-serif;letter-spacing:.08em;text-transform:uppercase;color:var(--ink-3)}
.kv>div>span:first-child{margin-bottom:3px}
.kv b{font-weight:500}
.kv b.late{color:var(--accent-ink)}
.kv.pairs{grid-template-columns:repeat(2,minmax(0,1fr))}
.kv>.wide{grid-column:1/-1}
.kv>.wide b{white-space:pre-line}
.lb{margin-bottom:6px}
.lb.mt{margin-top:14px}
.muted{color:var(--ink-3)}
.mt{margin-top:12px}
.row-w{display:flex;flex-wrap:wrap;gap:8px;align-items:center}
.chip.warn{background:var(--warn-wash);color:var(--warn)}
.chip.info{background:var(--info-wash);color:var(--info)}

.pay{display:flex;justify-content:space-between;gap:12px;padding:8px 0;border-bottom:1px solid var(--line);font-size:13px}
.pay-end{display:flex;align-items:center;gap:10px}
.pay:last-child{border-bottom:0}
.qs-line{display:flex;justify-content:space-between;align-items:baseline;gap:12px;padding:8px 0;border-bottom:1px solid var(--line);font-size:14px}
.qs-line small{display:block;margin-top:2px;font-size:12px;color:var(--ink-3)}
.qs-line b,.qs-row b{font-weight:500;font-variant-numeric:tabular-nums;white-space:nowrap}
.qs-sum{padding-top:6px}
.qs-row{display:flex;justify-content:space-between;gap:12px;padding:3px 0;font-size:14px;color:var(--ink-2)}
.qs-tot{margin-top:2px;font-size:15px;color:var(--ink)}
.qs-tot span,.qs-tot b{font-weight:700}
.qs-old{display:flex;align-items:center;gap:8px;min-height:40px;border-bottom:1px solid var(--line);font-size:13px;color:var(--ink-2);text-decoration:none}
.qs-old:hover{color:var(--ink)}
.qs-old span{flex:1}
.qs-old b{font-weight:500;font-variant-numeric:tabular-nums;white-space:nowrap}
.qs-old .i{width:16px;height:16px;color:var(--ink-3)}

/* The timeline: a thread joining the dots, and the last one with no thread below it. */
.tl{list-style:none;margin:0;padding:0}
.tl li{display:grid;grid-template-columns:30px minmax(0,1fr);gap:10px;position:relative;padding-bottom:16px}
.tl li::before{content:"";position:absolute;left:14.5px;top:32px;bottom:2px;width:1px;background:var(--line-strong)}
.tl li:last-child{padding-bottom:0}
.tl li:last-child::before{display:none}
.tl .ic{width:30px;height:30px;border-radius:50%;display:grid;place-items:center;background:var(--surface-3);color:var(--ink-2)}
.tl .ic .i{width:15px;height:15px}
.tl .t{font-size:13px;padding-top:5px}
.tl .m{font-size:12px;color:var(--ink-3)}

.chip.ok{background:var(--ok-wash);color:var(--ok)}

.panel{background:var(--surface);border:1px solid var(--line);border-radius:14px;min-width:0}
.rv-why{font-size:14px;color:var(--ink-2)}
.rv-sub{display:flex;flex-direction:column;gap:2px;margin:18px 0 10px;padding-top:14px;border-top:1px solid var(--line)}
.rv-sub b{font:700 14px/1.3 "Montserrat","Roboto",sans-serif}
.rv-sub small{color:var(--ink-3);font-size:13px}
.rv-devs{list-style:none;margin:4px 0 0;padding:0;display:flex;flex-direction:column;gap:6px}
.rv-devs li{display:flex;flex-direction:column;padding-left:8px;border-left:2px solid var(--line)}
.rv-devs li.hit-ok{border-left-color:var(--ok)}
.rv-devs b{font-size:14px}
.rv-devs small{color:var(--ink-2);font-size:13.5px;font-weight:400}
.rv-stays{width:max-content;margin-bottom:4px}
.rv-how{margin:0;padding-left:18px;font-size:14px;display:flex;flex-direction:column;gap:6px}
.gc-b>.rv-how{margin-top:22px;padding-top:16px;border-top:1px solid var(--line)}
.rv-picked{margin:0;display:flex;flex-direction:column;gap:2px}
.rv-picked small{color:var(--ink-3);font-size:12.5px}
.rv-done{background:var(--ok-wash);border:1px solid var(--ok);border-radius:var(--r);padding:10px 14px;animation:rvdone 1.6s ease-out}
@keyframes rvdone{0%{box-shadow:0 0 0 4px var(--ok-wash)}100%{box-shadow:0 0 0 0 transparent}}
@media (prefers-reduced-motion:reduce){.rv-done{animation:none}}
.rv-ask{flex-basis:100%;margin:0 0 2px;font:600 14px/1.3 "Montserrat","Roboto",sans-serif}
.rv-howd>summary{cursor:pointer;list-style:none}
.rv-howd>summary::-webkit-details-marker{display:none}
:where(form):not(:has(#state option[value="answered"]:checked)) .rv-answered{display:none}
.rv-howd>summary h3::after{content:"＋";margin-left:auto;color:var(--ink-3);font-weight:400}
.rv-howd[open]>summary h3::after{content:"－"}
.rv-howd:not([open])>summary{border-bottom:0}
.facts.rv-f{grid-template-columns:none;grid-auto-flow:column;grid-auto-columns:112px}
.rv-panel{display:flex;flex-direction:column;gap:14px}
.rv-panel .gc-b{display:flex;flex-direction:column;gap:12px}
.rv-panel .field{max-width:320px}
.rv-pair .field{flex:0 1 200px}
.rv-ch{margin:0;padding-left:18px;display:flex;flex-direction:column;gap:4px}
.rv-ch-o{margin:4px 0 0;padding-left:18px}
.rv-ch s{color:var(--ink-3)}
.rv-pick-client{border:0;padding:0;margin:0;display:flex;flex-direction:column;gap:8px}
.rv-pick-client legend{font-weight:500;margin-bottom:6px}
.rv-cand{display:flex;gap:10px;align-items:flex-start;padding:10px 12px;border-radius:12px;border:1px solid var(--line);background:var(--surface);cursor:pointer;font-size:14px}
.rv-cand:has(input:checked){border:2px solid var(--primary);padding:9px 11px}
.rv-cand>div{flex:1;min-width:0}
.rv-cand>input{flex:none;width:auto;height:auto;margin:2px 0 0}
.rv-cand small{display:block;font-size:13px;color:var(--ink-3)}
.rv-pair{display:flex;gap:12px;flex-wrap:wrap;flex-basis:100%}
.cmp{display:grid;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);gap:12px;align-items:stretch}
.sides{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:12px}
.cmp>div,.sides>div{padding:12px 14px;border-radius:12px;border:1px solid var(--line);background:var(--surface-2);font-size:14px;min-width:0}
.cmp small,.sides small{display:block;color:var(--ink-2);margin-bottom:4px;font-size:13.5px}
.cmp>div>b,.sides>div>b{font-size:15px}
.cmp .vs{display:grid;place-items:center;border:0;background:none;padding:0;color:var(--ink-3)}
.rv-more>summary{cursor:pointer;width:max-content;padding:4px 0;font-weight:500;text-decoration:underline;text-underline-offset:2px}
.rv-os-link{color:inherit;font-weight:500;text-decoration:underline;text-underline-offset:2px;width:max-content}
.rv-ol{list-style:none;margin:6px 0 0;padding:0;display:flex;flex-direction:column;gap:8px;max-height:320px;overflow:auto}
.rv-ol li{display:flex;flex-direction:column;gap:2px;padding-top:8px;border-top:1px solid var(--line)}
.rv-ol-h{display:flex;flex-wrap:wrap;gap:2px 10px}
.cmp .rv-t small,.sides .rv-t small,.rv-t small{display:inline;margin:0 4px 0 0;color:var(--ink-3)}
.hit-ok{color:var(--ok);font-weight:500}

@media (max-width:860px){
  .cmp{grid-template-columns:minmax(0,1fr)}
  .cmp .vs{transform:rotate(90deg)}

  .rv-panel .field{max-width:none}
  .rv-panel .btn{width:100%;height:40px}
  .rv-more>summary,.rv-os-link{min-height:40px;display:flex;align-items:center}

  /* A scrolling bar of destinations is the worst of both worlds: it costs height AND hides items. Our
     eight added up to 996px, and what scrolled sideways was the whole page — the list went with it and
     the rows left through the edge. So on a narrow screen the menu is not on screen at all: the button
     in the header brings it over the page, with the names spelled out, and it leaves on Escape, on a tap
     outside and on picking a destination. The Intertox prototype hit the same wall and answers the same
     way; this is its answer, in our shell. */
  .app,.wide .app{grid-template-columns:minmax(0,1fr);grid-template-rows:52px minmax(0,1fr) auto}
  .top{grid-column:1;padding:0 12px;gap:8px}
  .crumb{display:none}
  /* Without a script there is nothing to open the menu with, so it is not hidden: it becomes a plain
     list of destinations at the foot of the page, which is reachable by scrolling and by the Tab key. */
  .nav,.wide .nav{grid-column:1;grid-row:3;align-items:stretch;gap:2px;padding:12px 10px;border-top:1px solid var(--line)}
  .js .nav,.js.wide .nav{position:fixed;left:0;top:52px;bottom:0;z-index:50;width:min(264px,82vw);padding:12px 10px;border-top:0;border-right:1px solid var(--line);box-shadow:var(--shadow);overflow-y:auto;transform:translateX(-100%);visibility:hidden;transition:transform .16s ease-out,visibility .16s}
  /* Hidden, and not merely pushed off the edge: a menu that is only translated still takes the Tab key,
     and the first thing the keyboard would find on any screen is eight links nobody can see. */
  .menu-on .nav,.menu-on.wide .nav{transform:none;visibility:visible}
  .nav .nl,.wide .nav .nl{width:auto;height:40px;justify-content:flex-start;gap:10px;padding:0 10px}
  .nav .nl span,.wide .nav .nl span{position:static;transform:none;opacity:1;background:none;color:inherit;padding:0;font-size:14px}
  .nav-sep,.wide .nav-sep{width:auto;margin:8px 10px}
  .nav-sep:not(:empty),.wide .nav-sep:not(:empty){height:auto;background:none;font:600 10px/1.3 "Montserrat","Roboto",sans-serif;letter-spacing:.08em;text-transform:uppercase;color:var(--ink-3);margin:14px 10px 4px}
  .nav-sub,.wide .nav-sub{align-items:stretch;margin:0 0 4px 19px;padding:0 0 0 10px}
  .nav-grp,.wide .nav-grp{align-items:stretch}
  .nav-grp>summary>.i:last-child,.wide .nav-grp>summary>.i:last-child{display:block;width:14px;height:14px;margin-left:auto;color:var(--ink-3)}
  .menu-on .nav-veu{display:block;position:fixed;inset:52px 0 0;z-index:49;background:rgba(0,0,0,.4)}
  /* The role spelled out costs about ninety pixels, and at 390px those were the ones that pushed the
     logout button past the edge and gave the whole page a sideways scroll. The name stays — it is what
     answers "am I logged in as me" — and it shortens with an ellipsis instead of shoving. */
  .top .quem{min-width:0;overflow:hidden;padding:0 10px}
  .top .quem>svg{display:none}
  .top .quem .papel{display:none}
  @media (prefers-reduced-motion:reduce){.nav,.wide .nav{transition:none}}
  main{grid-column:1;padding:16px 14px 32px}
  .lr{grid-template-columns:11px minmax(0,1fr) auto;gap:2px 12px}
  .lr .facts{display:none}
  .lr .nm .chip.crit{display:inline-flex}
  .st-sm{display:inline}
  .kpis{gap:14px}
  /* THE LEGEND DOES NOT FIT ON A PHONE, and forcing it is choosing between hiding four of the six
     behind a scroll nobody sees, or spending 185px of footer under twenty-five rows. Neither: here the
     word for the situation goes back into the row itself (`.st-sm` above), which is where it settles the
     doubt in the place the doubt is born. Filtering by situation stays in the Filters panel, which is
     where one filters on a narrow screen. */
  .sits{display:none}
  .more>.mais{margin-left:0;flex-basis:100%}
  .more>.mais .btn{width:100%;justify-content:center}
  .gv-b{padding:10px 10px 24px;gap:10px}
  .gc-b,.gc-h{padding-left:12px;padding-right:12px}
  .kv{grid-template-columns:repeat(auto-fit,minmax(125px,1fr));gap:10px 16px}
}

/* Where the search has no room left to write, the buttons become the icon alone: `font-size:0` wipes
   the label with no conditional markup, and the count of filters that are on has a size of its own, so
   it goes on showing. The chosen order stops being written on the bar and appears on opening the panel.
   The waiting notice loses its words and keeps the spinner — the list dimming already says the rest. */
@media (max-width:560px){
  .acoes>details>summary{font-size:0;gap:0;width:40px;padding:0;justify-content:center}
  .acoes>details>summary .badge{font-size:11px}
  .espera .buscando,.espera .filtrando{display:none}
}

@media print{
  .top,.nav,.toasts,.noprint{display:none!important}
  .app{display:block;height:auto}
  main{overflow:visible;padding:0}
  .page{max-width:none}
}

/* ===== Check-in: the device comes in and the order is born ===== */
/* Straight from docs/prototipo/sgs-prototipo.html, where these blocks were drawn. */

/* The form wraps the steps, the body and the foot so every button is its own submitter. It lays out as
   if it were not there, or it would become one flex child and flatten the card.

   The panel around all of it is what the steps swap, for the same reason and with the same trick: the
   card itself is never replaced, so ticking a radio does not replay the drawer sliding in. */
.gv-form,.gv-panel{display:contents}

.gv-tabs>.done .n{background:var(--ok-wash);color:var(--ok)}

/* The foot of the drawer: what happens next, at the end of the card and not at the end of the page. */
.gv-f{flex:none;display:flex;flex-wrap:wrap;gap:8px;align-items:center;padding:12px 16px;background:var(--surface);border-top:1px solid var(--line)}
/* By width and not by pointer: the narrow screen is also checked with a mouse, and a line of buttons
   that wraps fills it instead of leaving a short button alone on its line. */
@media (max-width:560px){
  .gv-f>.btn{flex:1 1 auto;height:auto;min-height:44px}
  /* The order foot holds at most two actions and the round "Mais ações": one line at every phone width. */
  .gv-f:has(>.mais){flex-wrap:nowrap}
  .gv-f:has(>.mais)>.btn,.gv-f>form.notify>.btn{flex:1 1 0;min-width:0;height:auto;min-height:44px;padding:4px 10px;white-space:normal;text-align:center;line-height:1.2}
  .gv-f>.mais{flex:none}
  .gv-f>.mais>summary{width:44px;height:44px;padding:0}
  .gv-f>.mais>summary .lbl{display:none}
  .gv-f>.mais>summary .i{transform:rotate(-90deg)}
}
/* "Mais ações" lives in the foot, so it opens upwards and against the right edge. */
.mais .painel{top:auto;bottom:calc(100% + 6px);left:auto;right:0;min-width:220px;gap:2px;padding:6px}
.mais .opt,.pt-more .opt{justify-content:flex-start;align-items:center;border-color:transparent;background:none}
.mais .opt:hover,.pt-more .opt:hover{background:var(--surface-2)}
.mais .opt::before,.pt-more .opt::before{content:none}
.mais .opt.ends{color:var(--accent-ink)}
.mais .painel hr,.pt-more .painel hr{width:100%;border:0;border-top:1px solid var(--line);margin:4px 0}
.gc-b:has(>.pay.pt){display:grid;grid-template-columns:11px minmax(0,1fr) auto auto;column-gap:14px}
.gc-b:has(>.pay.pt)>*{grid-column:1/-1}
.pay.pt{display:grid;grid-template-columns:subgrid;row-gap:2px;align-items:center}
.pt-name{display:contents}
.pt-desc{grid-column:2;grid-row:1;min-width:0;overflow-wrap:anywhere}
.pt-name>small{grid-column:2;grid-row:2;font-size:12.5px;color:var(--ink-2)}
.pt-st{grid-column:3;grid-row:1;font-size:13px;color:var(--ink-2);white-space:nowrap}
.pt-dot{grid-column:1;grid-row:1/3;width:11px;height:11px;--dot:var(--ink-3)}
.dot[data-s="info"]{--dot:var(--info)}
.dot[data-s="crit"]{--dot:var(--crit)}
.dot[data-s="ok"]{--dot:var(--ok)}
.dot[data-s="off"]{background:transparent;box-shadow:inset 0 0 0 2px var(--ink-3)}
.pt-cost{grid-column:4;grid-row:1;text-align:right;white-space:nowrap}
.pt-acts{grid-column:3/-1;grid-row:2;display:flex;align-items:center;justify-content:flex-end;gap:6px;margin-top:6px}
.pt-line{display:grid;grid-template-columns:11px minmax(0,1fr) auto;column-gap:14px;align-items:center}
.pt-line>.opts{grid-column:2/-1}
.pt-line+.pt-line{margin-top:14px;padding-top:14px;border-top:1px solid var(--line)}
.pt-ans{grid-template-columns:repeat(3,minmax(0,1fr));margin-top:8px}
.pt-more>summary{height:32px;padding:0 11px;font-size:13px}
.pt-more .painel{left:auto;right:0;min-width:200px;gap:2px;padding:6px}
.pt-row{display:grid;grid-template-columns:minmax(0,3fr) minmax(0,2fr);gap:8px;align-items:start}
.pt-row>.field:first-child{grid-column:1/-1}
.pt-row:has(>.btn){grid-template-columns:minmax(0,3fr) minmax(0,2fr) 36px}
.pt-row:has(>.btn)>.field:first-child{grid-column:1/3}
.pt-row>.btn{grid-column:3;grid-row:1}
.pt-row+.pt-row{margin-top:14px;padding-top:14px;border-top:1px solid var(--line)}
.pt-row>.pt-wide{grid-column:1/-1}
@media (min-width:561px){.pt-row:has(>.btn)>.field:nth-child(2n){grid-column:1}.pt-row:has(>.btn)>.field:nth-child(2n+3){grid-column:2}.pt-row:has(>.btn)>.field.pt-wide{grid-column:1/3}}
.pt-row>.btn{margin-top:24px;padding:0;width:36px;height:36px;justify-content:center}
@media (max-width:560px){.pt-row:has(>.btn)>.field:first-child{grid-column:1}.pt-row>.btn{grid-column:2}.pt-row>.field:not(:first-child){grid-column:1/-1}}
@media (max-width:560px){.gc-b:has(>.pay.pt){display:block}.pay.pt{grid-template-columns:11px minmax(0,1fr) auto}.pt-desc,.pt-name>small{grid-column:2/-1}.pt-st{grid-column:2;grid-row:3;margin-top:4px}.pt-cost{grid-column:3;grid-row:3;margin-top:4px}.pt-acts{grid-column:2/-1;grid-row:4;margin-top:8px}.pt-ans{grid-template-columns:1fr}.pt-row{grid-template-columns:minmax(0,1fr)}.pt-row:has(>.btn){grid-template-columns:minmax(0,1fr) 44px}.pt-row>.field:first-child{grid-column:1/-1}.pt-row+.pt-row{margin-top:14px;padding-top:14px;border-top:1px solid var(--line)}.pt-row>.btn{width:44px;height:44px}}
.ps-row{display:grid;grid-template-columns:minmax(0,3fr) minmax(0,2fr) 36px;gap:8px;align-items:start}
.ps-row+.ps-row{margin-top:10px}
.ps-row>.btn{margin-top:24px;padding:0;width:36px;height:36px;justify-content:center}
.ps-row~.add-row,.ps-row~.note{margin-top:10px}
@media (max-width:560px){.ps-row{grid-template-columns:minmax(0,1fr) 44px}.ps-row>.field:first-child{grid-column:1/-1}.ps-row+.ps-row{margin-top:14px;padding-top:14px;border-top:1px solid var(--line)}.ps-row>.btn{width:44px;height:44px}}
.gv-n{flex:none;margin:0;padding:12px 16px;font-size:12.5px;color:var(--ink-2);background:var(--surface);border-top:1px solid var(--line)}

/* The two ways in. One of them is not built yet and says so, in place, instead of disappearing. */
.boxes{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:8px}
.box{display:flex;gap:11px;align-items:flex-start;justify-content:space-between;padding:12px;border-radius:10px;border:1px solid var(--line);background:var(--surface-2);text-align:left;cursor:pointer}
.box input{width:auto;height:auto;flex:none;margin:2px 0 0;accent-color:var(--primary)}
.box b{display:block;font:600 14px/1.3 "Montserrat","Roboto",sans-serif}
.box small{display:block;margin-top:3px;color:var(--ink-3);font-size:12.5px}
.box>span{flex:1}
.box:has(input:checked){border-color:var(--primary);background:var(--surface);box-shadow:inset 0 0 0 1px var(--primary)}
.box:has(input:focus-visible){outline:2px solid var(--primary);outline-offset:2px}

/* A textarea is not a one-line field: the shared height above would squash it to 40px. */
textarea{height:auto;min-height:74px;padding:10px 12px;line-height:1.45;resize:vertical}

/* Wrapped and not a grid: whatever is left alone on the last line stretches across it, so no field is a stub. */
.form-grid{display:flex;flex-wrap:wrap;gap:14px}
.form-grid>*{flex:1 1 210px;min-width:0}
.form-grid>.whole{flex-basis:100%}
/* The spinner sits inside the zip code box while ViaCEP is asked. */
.zip{position:relative}
.zip>.giro{position:absolute;right:12px;top:50%;margin-top:-7px}

/* The field that was left empty, said beside the field and not in a list at the top. The sentence
   alone tells half of it: whoever has a client in front of them reads the colour before the words, and
   without it the counter hunts through ten fields for the one that is missing. */
.erro-campo{display:flex;align-items:center;gap:5px;margin-top:4px;font-size:12.5px;font-weight:600;color:var(--accent-ink)}
.erro-campo::before{content:"!";display:grid;place-items:center;flex:none;width:15px;height:15px;border-radius:50%;background:var(--accent);color:#fff;font-size:10px;font-weight:700}
.erro-campo:empty{display:none}
.erro-campo>span{font-weight:500}
.erro-campo b{font-weight:700}
.input-validation-error,[data-money][aria-invalid="true"]{border-color:var(--accent);background:var(--accent-wash)}
/* The choice is drawn by a button of ours and the <select> that holds the answer hides behind it, so
   the error mark lands on what nobody sees and the field went on looking filled in. */
.selc:has(select.input-validation-error) .selc-b{border-color:var(--accent);background:var(--accent-wash)}
.input-validation-error:focus-visible,[data-money][aria-invalid="true"]:focus-visible{outline-color:var(--accent)}

/* The dot beside the name of a field the form will not go on without. It goes out when the field is
   answered, so what is left lit on the screen is what is left to do. */
.field[data-req]>label{display:inline-flex;align-items:center;gap:6px}
.req-dot{flex:none;width:6px;height:6px;border-radius:50%;background:var(--accent);transition:opacity .15s,transform .15s}
.field[data-filled]>label{color:var(--ink-3)}
.field[data-filled] .req-dot{opacity:0;transform:scale(.4)}

/* Answered and still refused — a phone with nine digits — is refused first: the field that is wrong
   cannot be reading as one that is settled. */
.field:has(.input-validation-error)>label{color:var(--accent-ink)}
.field:has(.input-validation-error) .req-dot{opacity:1;transform:none}

/* The two letters in the circle, so a list of people reads as people. */
.av{display:inline-grid;place-items:center;width:26px;height:26px;border-radius:50%;background:var(--surface-3);color:var(--ink);font:700 10px/1 "Roboto",sans-serif;flex:none}
.av.big{width:48px;height:48px;font-size:15px}

.res-more{min-height:1px}
.res-it{display:flex;flex-shrink:0;align-items:center;gap:12px;padding:10px 12px;border-radius:10px;border:1px solid var(--line);background:var(--surface-2);cursor:pointer;text-align:left;width:100%}
.res-it:hover,.res-it.on{border-color:var(--accent)}
.res-it>span:nth-child(2){flex:1;min-width:0}
.res-it b{font-weight:600}
.res-it small{display:block;color:var(--ink-3)}

/* Whose device this is, at the top of the steps that follow: a card, because a loose line up there is
   not checked at a glance — and this is the name that goes printed on the paper the client signs. */
.who{display:flex;align-items:center;gap:10px;padding:9px 11px;border-radius:10px;border:1px solid var(--line);background:var(--surface)}
.who>div{min-width:0}
.who b{display:block;font:600 13.5px/1.3 "Montserrat","Roboto",sans-serif;color:var(--ink)}
.who small{display:block;color:var(--ink-3);font-size:12.5px}

.found{display:flex;gap:14px;align-items:flex-start;padding:14px;border-radius:12px;background:var(--surface-2);border:1px solid var(--line)}
.found>div:nth-child(2){flex:1;min-width:0}
.found .note{margin-top:6px}

.opts{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:8px}
.opt{display:flex;gap:12px;align-items:flex-start;justify-content:space-between;padding:11px 12px;border-radius:10px;border:1px solid var(--line);background:var(--surface-2);cursor:pointer}
.opt:has(input:checked){border-color:var(--primary);background:var(--surface);box-shadow:inset 0 0 0 1px var(--primary)}
.opt:has(input[type=checkbox]:checked){border-color:var(--line);box-shadow:none}
.opt input{width:auto;height:auto;flex:none;margin:2px 0 0;accent-color:var(--primary)}
/* At the far end of a wide row a radio goes unseen, so it comes before the text whatever the markup order. */
.opt input[type=radio],.box input{order:-1}
/* A yes or no is a switch: a box among option cards reads as one more choice. */
.opt input[type=checkbox]{appearance:none;-webkit-appearance:none;position:relative;width:36px;height:20px;margin:0;padding:0;border:0;border-radius:999px;background:var(--line-strong);cursor:pointer;transition:background .15s}
.opt input[type=checkbox]::after{content:"";position:absolute;top:2px;left:2px;width:16px;height:16px;border-radius:50%;background:#fff;box-shadow:0 1px 2px rgb(0 0 0 / .25);transition:transform .15s}
.opt input[type=checkbox]:checked{background:var(--primary)}
.opt input[type=checkbox]:checked::after{transform:translateX(16px)}
.opt input[type=checkbox]:focus-visible{outline:2px solid var(--primary);outline-offset:2px}
@media (prefers-reduced-motion:reduce){.opt input[type=checkbox],.opt input[type=checkbox]::after{transition:none}}
/* The filter menu's little dot is a flex item too, and here it would push the label off to the middle. */
.opts .opt::before{content:none}
.opts .opt>span{flex:1}
.opt small{display:block;color:var(--ink-3)}
/* An accessory card reads itself out loud: ticked it stays here, unticked it goes home with the client. */
.opt .ficou{display:none;color:var(--ok)}
.opt:has(input:checked) .ficou{display:block}
.opt:has(input:checked) .foi{display:none}

/* A device off the client's own shelf is chosen, not typed: with one of them marked, the fields for a
   device the shop has never seen have nothing to do. "Outro aparelho" is the empty value, so its being
   unchecked is exactly the case where the fields are in the way. */
.gc-b:has(.opts input[value=""]:not(:checked)) .form-grid{display:none}

/* ===== The inspection, item by item ===== */
.ck-row{display:flex;justify-content:space-between;align-items:center;gap:10px;padding:9px 0;border-bottom:1px solid var(--line);flex-wrap:wrap}
.ck-row>span{flex:1 1 0;min-width:0}
.tri{display:inline-flex;flex:none;border:1px solid var(--line-strong);border-radius:9px;overflow:hidden}
.tri label{display:inline-flex;align-items:center;padding:5px 11px;font-size:12px;font-weight:500;cursor:pointer;color:var(--ink-3)}
.tri label+label{border-left:1px solid var(--line-strong)}
.tri input{position:absolute;width:1px;height:1px;opacity:0;pointer-events:none}
.tri label:has(input:checked)[data-v="ok"]{background:var(--ok-wash);color:var(--ok)}
.tri label:has(input:checked)[data-v="fail"]{background:var(--accent-wash);color:var(--accent-ink)}
.tri label:has(input:checked)[data-v="nottested"]{background:var(--surface-3);color:var(--ink)}
.tri label:has(input:focus-visible){outline:2px solid var(--accent);outline-offset:-2px}
/* Say which problem, on the line below, and only where somebody said there was one. */
.ck-note{display:none;flex-basis:100%;height:34px;font-size:13px}
.ck-row:has(.tri input[value="Fail"]:checked) .ck-note{display:block}
.ck-list{list-style:none;margin:6px 0 0;padding:0;display:grid;grid-template-columns:repeat(auto-fill,minmax(230px,1fr));gap:0 18px}
.ck-list li{display:flex;justify-content:space-between;align-items:baseline;gap:10px;padding:5px 0;border-bottom:1px solid var(--line)}
.ck-list b{font:600 12px "Roboto",sans-serif;white-space:nowrap;color:var(--ink-3)}
.ck-list b[data-v="ok"]{color:var(--ok)}
.ck-list b[data-v="fail"]{color:var(--accent-ink)}
.ck-list b[data-v="present"]{color:var(--ok)}

/* The term, as the client reads it before signing the paper. */
.termo{margin:0;padding-left:18px;display:flex;flex-direction:column;gap:7px;font-size:13.5px;color:var(--ink-2)}
.gc-b>details>summary{cursor:pointer;font-size:13px;color:var(--ink-2)}
.gc-b>details[open]>summary{margin-bottom:9px}

/* The read-back before the order is written: label on the left, what was chosen on the right. */
.sum{display:grid;grid-template-columns:auto 1fr;gap:7px 14px;margin:0;font-size:13.5px}
.sum dt{font-size:11px;letter-spacing:.06em;text-transform:uppercase;color:var(--ink-3);padding-top:2px}
.sum dd{margin:0;color:var(--ink)}

/* ===== A sheet of paper ===== */
.folha{background:var(--surface-2);padding:18px 0 40px}
.folha-barra{display:flex;gap:8px;justify-content:center;padding:0 16px 16px}
.folha-versao{max-width:640px;margin:0 auto 16px;padding:10px 14px;border:1px solid var(--warn);border-radius:8px;background:var(--warn-wash);color:var(--ink);font-weight:600;text-align:center}
.sheet{width:210mm;min-height:297mm;max-width:100%;margin:0 auto;background:#fff;color:#111;padding:13mm 14mm;box-shadow:var(--shadow);font-size:11.5px;line-height:1.45;display:flex;flex-direction:column;gap:11px}
.sheet h4{margin:0 0 5px;font:700 10px/1.2 "Roboto",sans-serif;letter-spacing:.1em;text-transform:uppercase;color:#5E5E5E}
.sheet p{margin:0}
.sh-h{display:flex;justify-content:space-between;align-items:center;gap:16px;padding-bottom:10px;border-bottom:2px solid #111}
/* The file has a white border: the mark is 462×128 of its 490×187, so the frame cuts the border off and the
   mark stands as tall as the shop's five lines beside it. */
.sh-logo{--h:calc(5 * 10.5px * 1.45);flex:none;position:relative;display:block;height:var(--h);width:calc(var(--h) * 462 / 128);overflow:hidden}
.sh-logo img{position:absolute;max-width:none;height:calc(var(--h) * 187 / 128);left:calc(var(--h) * -14 / 128);top:calc(var(--h) * -24 / 128);filter:invert(1) grayscale(1) contrast(1.6);mix-blend-mode:multiply}
.sh-co{text-align:right;font-size:10.5px;color:#444}
.sh-title{display:grid;grid-template-columns:1.2fr 1fr 1fr 1fr;gap:14px;align-items:center;padding:10px 12px;border:1px solid #D6D6D6;border-radius:6px}
.sh-title small{display:block;font-size:9.5px;color:#5E5E5E;text-transform:uppercase;letter-spacing:.08em}
.sh-title b{font:800 15px/1.2 "Montserrat",sans-serif}
.sh-title b.big{font-size:22px}
.sh-2{display:grid;grid-template-columns:1fr 1fr;gap:11px}
.sh-box{padding:10px 12px;border:1px solid #D6D6D6;border-radius:6px}
.sh-kv{display:grid;grid-template-columns:auto 1fr;gap:3px 10px;margin:0}
.sh-kv dt{color:#5E5E5E}
.sh-kv dd{margin:0;font-weight:600}
.sh-checks{list-style:none;margin:0;padding:0;columns:2;column-gap:18px}
.sh-checks li{display:flex;justify-content:space-between;gap:10px;padding:2px 0;break-inside:avoid;border-bottom:1px dotted #D6D6D6}
.sh-termo{margin:0;padding-left:16px;display:flex;flex-direction:column;gap:5px}
.sh-money{display:grid;grid-template-columns:1fr auto;gap:3px 14px;margin:0}
.sh-money dt{color:#444}
.sh-money dd{margin:0;text-align:right;font-variant-numeric:tabular-nums}
.sh-money .tot{font-weight:700;color:#111;border-top:1px solid #D6D6D6;padding-top:4px}
.sh-nota{margin-top:6px;font-size:10.5px;color:#444}
.sh-sign{margin-top:auto;padding:26px 14% 0;text-align:center}
.sh-sign span{display:block;border-top:1px solid #111}
.sh-sign small{display:block;margin-top:4px;font-size:10px;color:#5E5E5E}
.sh-items{width:100%;border-collapse:collapse;font-variant-numeric:tabular-nums}
.sh-items th{font:700 9.5px/1.2 "Roboto",sans-serif;letter-spacing:.08em;text-transform:uppercase;color:#5E5E5E;text-align:left;padding:0 6px 5px;border-bottom:1px solid #D6D6D6}
.sh-items td{padding:5px 6px;border-bottom:1px dotted #D6D6D6;vertical-align:top}
.sh-items .n{text-align:right;white-space:nowrap}
.sh-items b{font-weight:700}
.sh-tag{display:inline-block;font:600 9px/1 "Roboto",sans-serif;letter-spacing:.06em;text-transform:uppercase;color:#5E5E5E;border:1px solid #D6D6D6;border-radius:4px;padding:2px 4px;margin-right:4px}
.sh-sum{display:grid;grid-template-columns:1fr 62mm;gap:11px;align-items:start}
.sh-sum > .sh-box:only-child{grid-column:1 / -1}
.sh-sum .sh-money .tot{font:800 15px/1.3 "Montserrat",sans-serif}
.sh-approve{display:grid;grid-template-columns:minmax(0,1fr) 26mm;gap:6px 14px;align-items:center}
.sh-approve .sh-qr{grid-column:2;grid-row:1 / span 2;width:26mm;height:26mm}
.sh-approve .sh-qr svg{width:100%;height:100%;display:block}
.sh-signs{margin-top:auto;display:grid;grid-template-columns:1fr 1fr;gap:28px}
.sh-signs .sh-sign{position:relative;margin-top:0;padding:12mm 0 0}
.sig-atual{margin-bottom:12px;padding:10px;border:1px solid var(--line);border-radius:8px;background:#fff;text-align:center}
.sig-atual img{max-height:72px;max-width:100%}
.pick-img{display:block;cursor:pointer;border:2px dashed var(--line-strong);border-radius:10px;padding:18px 16px;text-align:center;background:var(--surface);transition:border-color .15s,background .15s}
.pick-img:hover,.pick-img.sobre{border-color:var(--accent);background:var(--accent-wash)}
.pick-img:has(input:focus-visible){outline:2px solid var(--accent);outline-offset:2px}
.pick-img .pick-img-vazio{display:flex;flex-direction:column;align-items:center;gap:4px}
.pick-img .pick-img-vazio svg{width:28px;height:28px;color:var(--accent)}
.pick-img .pick-img-vazio b{font-size:15px}
.pick-img small{color:var(--ink-2);font-size:12.5px}
.pick-img .pick-img-cheio{display:none}
.pick-img.cheio .pick-img-vazio{display:none}
.pick-img.cheio .pick-img-cheio{display:flex;flex-direction:column;align-items:center;gap:8px}
.pick-img.cheio{border-style:solid}
.pick-img-cheio small{display:inline-flex;align-items:center;gap:6px}
.pick-img-cheio small svg{width:16px;height:16px}
/* The preview stands on a white strip with the line under it, as it will on paper. */
.pick-img-folha{display:block;width:100%;max-width:320px;padding:8px 12px 0;background:#fff;border-radius:6px}
.pick-img-folha img{display:block;height:64px;width:auto;max-width:100%;margin:0 auto -14px;object-fit:contain}
.pick-img-folha::after{content:"";display:block;border-top:1px solid #111;margin-bottom:10px}
/* Hung from the line (12mm down, the padding above it), so a two-line caption does not push the ink over it. */
.sh-ink{position:absolute;left:50%;top:12mm;transform:translate(-50%,-85%);height:16mm;max-width:100%;width:auto;object-fit:contain;pointer-events:none}

/* The two halves of the sheet, and the line the shop cuts between them. */
.via{display:flex;flex-direction:column;gap:11px}
.via:first-child{flex:1}
.corte{margin:4px 0;border-top:1px dashed #9A9A9A;text-align:center;line-height:0}
.corte span{position:relative;top:-6px;padding:0 10px;background:#fff;font:600 9px/1 "Roboto",sans-serif;letter-spacing:.14em;text-transform:uppercase;color:#7A7A7A}
.canhoto{padding-top:4px}
.canhoto .sh-logo{--h:calc(4 * 10.5px * 1.45)}
.canhoto .sh-h{align-items:flex-start;border-bottom-width:1px;padding-bottom:8px}
.canhoto .sh-co{text-align:left;flex:1;margin-left:14px}
.sh-os{text-align:right}
.sh-os small{display:block;font-size:9.5px;color:#5E5E5E;text-transform:uppercase;letter-spacing:.08em}
.sh-os b{font:800 20px/1.1 "Montserrat",sans-serif}
.sh-kv-4{grid-template-columns:auto 1fr auto 1fr;gap:4px 10px}
.sh-stub{display:grid;grid-template-columns:minmax(0,1fr) 24mm;gap:6px 14px;align-items:start}
.sh-qr{grid-column:2;grid-row:1 / span 2;width:24mm;height:24mm}
.sh-qr svg{display:block;width:100%;height:100%}
.sh-track{grid-column:1;margin:0;font-size:10.5px;color:#5E5E5E}
.sh-link{font:600 12px/1.3 "Roboto Mono",monospace;color:#111;white-space:nowrap}
.sh-clamp{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden}

/* A phone reads the sheet in one column; the paper keeps A4, since this is the screen only. */
@media screen and (max-width:560px){
  .sheet{min-height:0;padding:20px 16px}
  .sh-h{flex-direction:column;align-items:flex-start;gap:8px}
  .sh-co,.canhoto .sh-co{text-align:left;margin-left:0}
  .sh-os{text-align:left}
  .sh-title{grid-template-columns:1fr 1fr}
  .sh-2{grid-template-columns:minmax(0,1fr)}
  .sh-checks{columns:1}
  .sh-kv-4{grid-template-columns:auto 1fr}
  .sh-sign{padding:26px 0 0}
}

@media print{
  @page{size:A4;margin:0}
  html,body{height:auto;background:#fff}
  .noprint{display:none !important}
  .folha{padding:0;background:#fff}
  .sheet{box-shadow:none;margin:0;width:auto;min-height:100vh;zoom:var(--fit,1)}
}


/* The lines of a quote: what it is, a description, the amount and the way out of the row. On a narrow
   screen the description takes a row of its own, and the X grows to a finger's width. */
.q-line{display:grid;grid-template-columns:160px minmax(0,1fr) 132px;gap:8px;align-items:center;margin-top:8px}
.q-line>.btn{padding:0;width:36px;height:36px;justify-content:center}
.q-line>.erro-campo{grid-column:1/-1;margin-top:0}
/* Subtotal, discount and total sit under the amounts like a receipt, on the grid of the lines: the label
   beside the column, the figure where the typed ones start. The discount box shown is the unit picked. */
.q-sum{margin-top:14px;padding-top:6px;border-top:1px solid var(--line)}
.q-row{display:grid;grid-template-columns:160px minmax(0,1fr) 132px;gap:8px;align-items:center;margin-top:8px}
.gv-b:has(.q-line>.btn) :is(.q-line,.q-row){grid-template-columns:160px minmax(0,1fr) 132px 36px}
.q-lb{grid-column:1/3;display:flex;justify-content:flex-end;align-items:center;gap:8px;font-size:14px;color:var(--ink-2)}
.q-val{grid-column:3}
.q-fig{grid-column:3;position:relative;padding-left:37px;font-weight:500}
.q-fig::before{content:'R$';position:absolute;left:13px;font-size:13px;font-weight:400;color:var(--ink-3)}
.q-tot .q-lb{font-weight:700;font-size:15px;color:var(--ink)}
.q-tot input{font-weight:700;font-size:15px}
.q-note{display:flex;justify-content:flex-end;flex-wrap:wrap;gap:4px 12px;margin:4px 0 0;min-height:16px;font-size:12px;color:var(--ink-3)}
.gv-b:has(.q-line>.btn) .q-note{margin-right:44px}
.q-note .erro-campo{margin:0}
.q-sum:has(#Percent_true:checked) .q-reais,.q-sum:not(:has(#Percent_true:checked)) .q-percent{display:none}
.gv-form:not(:has(#Changed_true:checked)) .q-change,.gv-form:not(:has(input[data-accept]:checked)) .q-accept,.gv-form:has(#Changed_true:checked) .qs{display:none}
.q-change{margin-top:14px}
.gv-form:not(:has(#Matches_false:checked)) .rt-changes{display:none}
.gv-n.alerta{background:var(--accent-wash);color:var(--accent-ink)}
.gv-enter{position:absolute;width:1px;height:1px;padding:0;border:0;opacity:0;pointer-events:none}
div.ck-step{display:contents}
div.ck-step[hidden]{display:none}
.btn.dash{border-style:dashed;border-color:var(--line-strong)}
.ck-kpis{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
.ck-kpis>div{padding:10px 12px;border:1px solid var(--line);border-radius:10px;background:var(--surface-2)}
.ck-kpis small{display:block;font:600 10px/1.3 "Montserrat",sans-serif;letter-spacing:.08em;text-transform:uppercase;color:var(--ink-3)}
.ck-kpis b{display:block;margin-top:4px;font:700 16px/1.2 "Montserrat",sans-serif}
.ck-kpis .hl{border-color:var(--primary);background:var(--surface)}
.ck-kpis.one{grid-template-columns:1fr}
.ck-kpis.one b{font-size:20px}
.ck-disc-on{position:relative;display:inline-flex;margin-top:12px;font-size:13.5px;color:var(--primary);text-decoration:underline;cursor:pointer}
.ck-disc-on input{position:absolute;width:1px;height:1px;opacity:0}
.ck-disc{display:none;justify-content:space-between;align-items:center;gap:12px;margin-top:12px;font-size:14px}
.gc:has(.ck-disc-on input:checked) .ck-disc{display:flex}
.gc:has(.ck-disc-on input:checked) .ck-disc-on{display:none}
.ck-disc small{color:var(--ink-3)}
.ck-disc-in{flex:0 0 150px}
.ck-disc-why{display:none;margin-top:4px}
.gc:has(.ck-disc-on input:checked) .ck-disc-why{display:block}
.ck-pay{padding:12px 0;border-bottom:1px dashed var(--line-strong)}
.ck-pay:first-of-type{padding-top:4px}
.ck-pay:has(+ .add-row){border-bottom:0}
.ck-ways{grid-template-columns:repeat(4,minmax(0,1fr));gap:6px}
.ck-ways .opt{padding:10px 8px;gap:6px}
.ck-pay-row{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:6px;align-items:center;margin-top:8px}
.ck-amount{grid-column:span 2;min-width:0}
.ck-inst{min-width:0}
.ck-end{display:flex;align-items:center;gap:4px;min-width:0}
.ck-end>.btn{margin-left:auto}
.ck-each{display:flex;flex-direction:column;padding-left:6px;line-height:1.25;font-size:14px;font-weight:600;white-space:nowrap}
.ck-each small{font-size:11.5px;font-weight:400;color:var(--ink-3)}
.ck-each:has(b:empty),.ck-pay:not(:has(input[value="Credit"]:checked)) :is(.ck-inst,.ck-each){visibility:hidden}
.ck-left[hidden],.ck-over[hidden]{display:none}
.ck-alert{margin:12px 0 0;padding:10px 12px;border-radius:10px;background:var(--accent-wash);color:var(--accent-ink);font-size:13.5px}
.ck-over{display:flex;align-items:center;gap:12px;margin-top:12px;padding:10px 12px;border-radius:10px;background:color-mix(in srgb,var(--warn) 14%,transparent);font-size:13.5px}
.ck-over>span{flex:1;min-width:0}
.ck-over small{display:block;margin-top:2px;font-size:12.5px;color:var(--ink-2)}
.ck-over .btn{flex:none;background:var(--surface)}
.ck-lines{display:grid;grid-template-columns:minmax(0,1fr) auto;margin:0;font-size:14px}
.ck-lines dt,.ck-lines dd{padding:9px 0;border-bottom:1px solid var(--line)}
.ck-lines dd{margin:0;padding-left:12px;text-align:right;font-weight:600}
.ck-lines .tot{font-weight:700;border-top:1px solid var(--line-strong)}
.ck-lines>:nth-last-child(-n+2){border-bottom:0}
.ck-lines b[data-v="ok"]{color:var(--ok)}
.ck-lines b[data-v="fail"]{color:var(--accent-ink)}
.ck-lines b[data-v="warn"]{color:var(--warn)}
.cn-way{display:none}
.gc-b:has(.cn-give input:checked) .cn-way{display:block}
.sn-code{display:none;margin-top:8px}
.sn:has(input[value="code"]:checked) .sn-code{display:block}
.sn-pattern{display:none}
.sn:has(input[value="pattern"]:checked) .sn-pattern{display:flex}
.pat-wrap{align-items:flex-end;gap:16px;margin-top:10px}
.pat{position:relative;display:grid;grid-template-columns:repeat(3,48px);gap:24px;width:192px;height:192px}
.pat-lines{position:absolute;inset:0;width:192px;height:192px;pointer-events:none}
.pat-lines polyline,.pat-view polyline{fill:none;stroke:var(--accent);stroke-width:6;stroke-linecap:round;stroke-linejoin:round;opacity:.55}
.pat-dot{position:relative;z-index:1;width:48px;height:48px;padding:0;border-radius:50%;border:2px solid var(--line-strong);background:var(--surface);color:#fff;font-size:15px;font-weight:600;cursor:pointer}
.pat-dot.on{border-color:var(--accent);background:var(--accent)}
.pat-view{width:112px;height:112px;flex:none}
.pat-view circle{fill:var(--surface);stroke:var(--line-strong);stroke-width:4}
.pat-view circle.on{fill:var(--accent);stroke:var(--accent)}
.pat-view text{fill:#fff;font-size:20px;font-weight:700;text-anchor:middle}
.kv .sn-fact{grid-column:1/-1}
.sn-fact b{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.sn-act{display:contents}
.cn-list{margin:0;padding-left:18px;display:grid;gap:6px;font-size:13.5px;color:var(--ink-2)}
@media (max-width:560px){
  .ck-ways{grid-template-columns:repeat(2,minmax(0,1fr))}
  .ck-pay-row{grid-template-columns:repeat(2,minmax(0,1fr))}
  .ck-kpis:not(.one){grid-template-columns:1fr}
}
.pct-in{position:relative;display:block;min-width:0}
.pct-in>span{position:absolute;right:12px;top:50%;transform:translateY(-50%);font-size:13px;color:var(--ink-3);pointer-events:none}
.pct-in>input{padding-right:30px}
.seg{display:inline-flex;border:1px solid var(--line-strong);border-radius:999px;overflow:hidden}
.seg label{position:relative;display:inline-flex}
.seg input{position:absolute;width:1px;height:1px;opacity:0}
.seg span{display:inline-flex;align-items:center;height:26px;padding:0 10px;font-size:12px;color:var(--ink-2);background:var(--surface);cursor:pointer}
.seg input:checked+span{background:var(--primary);color:var(--on-primary)}
.seg input:focus-visible+span{outline:2px solid var(--accent);outline-offset:-2px}
@media (max-width:560px){
  .q-row{grid-template-columns:minmax(0,1fr) 132px}
  .q-lb{grid-column:1}
  .q-val,.q-fig{grid-column:2}
  .seg span{height:36px;padding:0 14px}
  .q-line{grid-template-columns:minmax(0,1fr) 132px}
  .gv-b:has(.q-line>.btn) :is(.q-line,.q-row){grid-template-columns:minmax(0,1fr) 132px 44px}
  .q-line>.q-desc{grid-column:1/-1;grid-row:2}
  .q-line>.btn{width:44px;height:44px}
  .qs-old{min-height:48px}
}

/* Clients list: the strip and the row share four fixed tracks and one gap, so each column ends under its counter. */
.facts.cl-cols,.kpis.cl-cols{display:grid;grid-template-columns:70px 130px 130px 140px;gap:22px}
.kpis.cl-cols{margin-left:auto}
.kpis.cl-cols>.kpi{min-width:0}
.kpis.cl-cols>.kpi small{white-space:nowrap}
.facts.ct-cols{grid-template-columns:auto}
.dot[data-s="saiu"]{--dot:var(--crit)}
.dot[data-s="aberto"],.dot[data-s="ativo"]{--dot:var(--info)}
.dot[data-s="convidado"]{--dot:var(--warn-dot)}
.dot[data-s="vazio"],.dot[data-s="inativo"]{background:transparent;box-shadow:inset 0 0 0 2px var(--ink-3)}
@media (max-width:860px){.kpis.cl-cols{display:flex;margin-left:0}}

/* Rows inside a drawer card: a device or an order, the whole row a link. */
.mr{display:flex;align-items:center;gap:12px;min-height:48px;padding:8px 0;border-top:1px solid var(--line);color:inherit;text-decoration:none}
.mr:first-child{border-top:0}
a.mr:hover{background:var(--surface-2)}
.mr .t{flex:1;min-width:0}
.mr .t b{display:block;font-weight:600}
.mr .t small{display:block;font-size:12.5px;color:var(--ink-3)}
.mr .r{font-size:12.5px;color:var(--ink-3);text-align:right}
.mr .r.late{color:var(--accent-ink);font-weight:600}
a.wa{display:inline-flex;align-items:center;gap:5px;color:inherit}
a.wa .i{width:14px;height:14px;color:var(--ok)}

.found-acts{display:flex;flex-wrap:wrap;gap:8px}
@media (max-width:560px){.found{flex-wrap:wrap}.found>div:nth-child(2){flex:1 1 calc(100% - 70px)}.found-acts{flex:1 1 100%}.found-acts>.btn{flex:1 1 0;justify-content:center;min-height:44px}}

/* A typed-and-picked box (city, brand, kind) and its suggestions: a solid panel, because text under a see-through one cannot be read. */
.pick,.finder{position:relative}
.pick-list,.res{position:absolute;left:0;right:0;top:calc(100% + 4px);z-index:20;background:var(--surface);border:1px solid var(--line-strong);border-radius:8px;box-shadow:0 8px 24px rgba(0,0,0,.18);overflow:hidden}
.res{display:flex;flex-direction:column;gap:6px;max-height:360px;padding:6px;overflow-y:auto}
.pick-opt,.pick-none{padding:10px 12px;font-size:14px;background:var(--surface)}
.pick-list{max-height:320px;overflow-y:auto;container-type:inline-size}
.pick-opt{cursor:pointer}
.pick-opt.on,.pick-opt:hover{background:var(--surface-3)}
.pick-none{color:var(--ink-3)}
@media (max-width:860px){.pick-opt{display:flex;align-items:center;gap:6px;min-height:44px}}
.pick-act{display:flex;align-items:center;gap:6px;color:var(--accent);border-top:1px solid var(--line)}
.pp-opt{display:flex;align-items:baseline;gap:12px}
.pp-opt>span{flex:1 1 auto;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.pp-opt>small{flex:none;white-space:nowrap}
@container (max-width:459px){.pp-opt{display:grid;gap:2px}.pp-opt>span{white-space:normal}}
.pp-head{font-weight:600}
.pp-sub{padding-left:28px}
.pp-loose{display:none;position:absolute;right:8px;top:50%;transform:translateY(-50%);padding:1px 8px;border-radius:999px;background:var(--surface-3);color:var(--ink-3);font-size:12px;pointer-events:none}
.pick:has(.pp-loose) [data-pick-text]{padding-right:72px}
.q-line:has(select option[value=Part]:checked) .pick:has([data-pick-id]:is([value=""],:not([value]))):has([data-pick-text]:not(:placeholder-shown)) .pp-loose,
.pick[data-pick-loose]:not([data-pick-when]):has([data-pick-id]:is([value=""],:not([value]))):has([data-pick-text]:not(:placeholder-shown)) .pp-loose{display:block}
.tv-list{display:grid;gap:10px;margin:0;padding:0;list-style:none}
.tv-list li{display:flex;align-items:center;justify-content:space-between;gap:12px}
.tv-list small{color:var(--ink-3)}
.tv-changes{display:grid;grid-template-columns:auto 1fr;gap:6px 14px;margin:0}
.tv-changes dt{color:var(--ink-3)}
.tv-changes dd{margin:0}
.tv-changes s{color:var(--ink-3)}
.sv-lead .gc-b{display:flex;flex-direction:column;gap:12px}
.sv-big{margin:0;font:600 16px/1.35 "Montserrat","Roboto",sans-serif}
.sv-tip{margin:0;display:flex;gap:8px;align-items:flex-start;font-size:14px;color:var(--ink-2)}
.sv-tip .i{flex:none;width:16px;height:16px;margin-top:2px}
.sv-nums{display:grid;grid-template-columns:auto 1fr;gap:4px 16px;align-items:baseline;font-size:14px;color:var(--ink-2)}
.sv-nums code{font:500 15px "Roboto Mono",ui-monospace,monospace;color:var(--ink)}
.sv-nums mark{background:var(--accent-wash);color:var(--accent-ink);font-weight:700;border-radius:3px}
.sv-sides{border-collapse:collapse;font-size:14px;width:100%}
.sv-sides th{text-align:left;font-weight:500;color:var(--ink-3);padding:4px 12px 4px 0;white-space:nowrap}
.sv-sides td{padding:4px 12px 4px 0;vertical-align:top}
.sv-sides tr.hit-ok td{color:var(--ok);font-weight:500}
.sv-facts{margin:0;display:grid;grid-template-columns:auto 1fr;gap:4px 16px;font-size:14px}
.sv-facts dt{color:var(--ink-3)}
.sv-facts dd{margin:0}
.rv-client{display:flex;flex-direction:column;gap:8px}
.rv-cn{font-size:15px}
.rv-cl{margin:0;display:grid;grid-template-columns:auto 1fr;gap:6px 14px;font-size:14px}
.rv-cl dt{color:var(--ink-3)}
.rv-cl dd{margin:0;display:flex;flex-wrap:wrap;gap:2px 12px;min-width:0}
.rv-cl dd.late{color:var(--accent-ink);font-weight:600}
.rv-cl dd .rv-devs{margin:0}
.rv-cl dd .rv-more{flex-basis:100%}
.rv-row{flex-basis:100%;display:flex;gap:6px;flex-wrap:nowrap}
.rv-row.wrap{flex-wrap:wrap}
.rv-row>.btn{white-space:nowrap;padding-inline:12px;flex:0 1 auto}
.rv-row>.rv-skip{margin-left:auto}
.facts.au-f{grid-template-columns:96px 110px 130px minmax(0,240px) 96px}
.lr .nm small.au-n{display:none}
@media (max-width:860px){.lr .nm small.au-n{display:block}}
.au-c{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.fact .au-c .au-l{display:block;font:inherit;color:inherit;overflow:hidden;text-overflow:ellipsis}
.au-t{border-collapse:collapse;font-size:13px;width:100%;table-layout:fixed}
.au-t th,.au-t td{text-align:left;padding:6px 12px 6px 0;vertical-align:top;overflow-wrap:anywhere}
.au-t th{color:var(--ink-3);font-weight:500}
.au-t td:first-child{color:var(--ink-2)}
.au-p{display:flex;flex-wrap:wrap;gap:8px}
.copy-row{display:flex;flex-wrap:wrap;gap:8px}
.copy-row>input{flex:1 1 220px;min-width:0}
/* Novo técnico: the choice of who it is shows only the fields of that choice. */
.gv-form:has(input[name=Who][value=user]:checked) .tc-free{display:none}
.gv-form:not(:has(input[name=Who][value=user]:checked)) .tc-user{display:none}
.gv-form:has(input[type=checkbox][name=TracksStock]:not(:checked)) .pc-min{display:none}

/* A list edited as rows: one field per item, in the order the check-in asks. The grip drags with a mouse;
   a finger uses the arrows, so on a narrow screen the grip goes and the buttons grow. */
.rows{display:flex;flex-direction:column;gap:10px;align-items:flex-start}
.rows-l{list-style:none;margin:0;padding:0;align-self:stretch;border:1px solid var(--line);border-radius:10px;overflow:hidden;background:var(--surface)}
.rows-l:empty{display:none}
.rows-i{display:flex;align-items:center;gap:4px;padding:3px 4px;border-top:1px solid var(--line)}
.rows-i:first-child{border-top:0}
.rows-i.drag{opacity:.4}
.rows-grip{display:grid;place-items:center;width:20px;align-self:stretch;flex:none;cursor:grab;color:var(--ink-3);user-select:none}
.rows-grip::before{content:"\22EE\22EE";letter-spacing:-4px;font-size:15px}
.rows-n{width:18px;flex:none;text-align:right;color:var(--ink-3);font-size:12px;font-variant-numeric:tabular-nums}
.rows-i input{flex:1;min-width:0;height:38px;padding:0 8px;border:1px solid transparent;border-radius:8px;background:transparent;color:var(--ink);font:inherit;font-size:14px}
.rows-i input:hover{border-color:var(--line)}
.rows-i input:focus{outline:0;border-color:var(--accent);background:var(--surface-2)}
.rows-b{display:grid;place-items:center;width:32px;height:32px;flex:none;border:0;border-radius:8px;background:none;color:var(--ink-3);cursor:pointer}
.rows-b:hover{background:var(--surface-3);color:var(--ink)}
.rows-b .i{width:15px;height:15px}
.rows-b .i.up{transform:rotate(-90deg)}
.rows-b .i.down{transform:rotate(90deg)}
.rows-i:first-child [data-up],.rows-i:last-child [data-down]{visibility:hidden}
@media (max-width:640px),(pointer:coarse){.rows-grip{display:none}.rows-b{width:40px;height:40px}.rows-i input{height:44px}}
main:has(.board){overflow:hidden;padding-bottom:16px}
main:has(.board)>.page{height:100%;min-height:0}
#qd-res,#qd-res>div,#qd-res .grp:has(>.board){flex:1;min-height:0;display:flex;flex-direction:column}
.board{flex:1;min-height:0;display:grid;grid-auto-flow:column;grid-auto-columns:minmax(164px,1fr);grid-template-rows:auto minmax(0,1fr);gap:0 8px;overflow-x:auto;padding:10px 8px;align-items:stretch}
.col{background:var(--surface-2);border:1px solid var(--line);border-radius:14px;display:grid;grid-row:span 2;grid-template-rows:subgrid;min-width:0}
.col.ok{outline:2px dashed var(--accent-ink);outline-offset:-3px}
.col.drop{outline:2px solid var(--accent-ink);outline-offset:-3px;background:color-mix(in srgb,var(--accent-ink) 8%,var(--surface-2))}
.col.no{position:relative}
.col.no::after{content:"Não pode ir para cá";position:absolute;inset:0;display:grid;place-items:center;padding:16px;text-align:center;font-weight:600;color:var(--ink-2);background:color-mix(in srgb,var(--surface-2) 82%,transparent);border-radius:inherit}
.col-h{display:flex;justify-content:space-between;align-items:flex-start;gap:8px;padding:9px 10px;border-bottom:1px solid var(--line)}
.col-h h3{display:flex;align-items:center;gap:8px;font:600 13px/1.3 "Roboto",sans-serif;margin:0}
.col-h small{display:block;color:var(--ink-3);margin-left:16px}
.col-h .n{font-variant-numeric:tabular-nums;color:var(--ink-3);font-weight:500}
.col-b{flex:1;padding:7px;display:flex;flex-direction:column;gap:6px;min-height:80px;overflow-y:auto;overscroll-behavior:contain}
.col-empty{color:var(--ink-3);font-size:13px;text-align:center;margin:18px 0}
.col-more{align-self:center;flex:none}
.qd-acts{margin-left:auto;display:flex;flex-wrap:wrap;gap:8px}
.qd-full .on,.qd-on .qd-full .off{display:none}
.qd-on .qd-full .on{display:inline}
.qd-on #qd-res{position:fixed;inset:0;z-index:60;background:var(--bg);padding:16px;overflow:hidden}
.card{position:relative;background:var(--surface);border:1px solid var(--line);border-radius:11px;padding:7px 9px;display:flex;flex-direction:column;gap:2px;font-size:13px;transition:background-color .15s,border-color .15s}
.card:hover{border-color:var(--line-strong);background:var(--surface-3)}
.card.dragging{opacity:.4}
.card-go{position:absolute;inset:0;border-radius:inherit}
.card-go:focus-visible{outline:2px solid var(--accent-ink);outline-offset:2px}
.card>div{position:relative;pointer-events:none}
.card .r1,.card .r3{display:flex;justify-content:space-between;align-items:center;gap:6px}
.card .osn{font-size:12px;color:var(--ink-3);font-variant-numeric:tabular-nums}
.card .dev{font-weight:600;line-height:1.3}
.card .cli{color:var(--ink-2);font-size:12px}
.card .r3{margin-top:4px;justify-content:flex-start}
.card .tech{display:flex;align-items:center;gap:6px;font-size:12px;color:var(--ink-2);min-width:0}
.card .tech .i{width:14px;height:14px}
.card .adv{pointer-events:auto;margin-left:auto;display:inline-grid;place-items:center;width:28px;height:28px;border-radius:50%;border:1px solid var(--line-strong);background:var(--surface);color:var(--ink-2)}
.card .adv:hover{background:var(--faixa);color:var(--on-faixa);border-color:var(--faixa)}
.card .adv .i{width:15px;height:15px}
.card .chip.tip{position:static;cursor:default}
@media (hover:hover){.card .chip.tip{pointer-events:auto}}
.card .tip-t{left:0;right:0;bottom:auto;top:calc(100% + 6px);width:auto;max-width:none;padding:8px 10px;box-shadow:var(--shadow)}
.card .tip-t b{display:block;font-weight:600;font-size:12.5px}
.card .tip-t small{display:block;margin-top:2px;font-size:11.5px;opacity:.8}
.card button.adv{padding:0;cursor:pointer;font:inherit}
.mv-pop{pointer-events:auto;position:fixed;inset:auto;margin:0;min-width:230px;max-width:min(300px,calc(100vw - 16px));padding:6px;border:1px solid var(--line-strong);border-radius:12px;background:var(--surface);color:var(--ink);box-shadow:var(--shadow);flex-direction:column;gap:2px}
.mv-pop:popover-open{display:flex}
.mv-pop>small{padding:6px 10px 4px;color:var(--ink-3);font-size:12px}
.mv-pop .opt{white-space:normal;align-items:center;justify-content:flex-start;gap:10px;min-height:44px;padding:6px 10px;border:0;border-radius:8px;background:none;color:var(--ink)}
.mv-pop .opt:hover,.mv-pop .opt:focus-visible{background:var(--surface-2)}
.mv-pop .opt span{display:flex;flex-direction:column;gap:1px}
.mv-pop .opt b{font-weight:600}
.mv-pop .opt small{color:var(--ink-3);font-size:12px}
@media (max-width:640px){.board{grid-auto-columns:86%;scroll-snap-type:x mandatory}.col{scroll-snap-align:start}.card .adv{width:44px;height:44px}}
@media (min-width:641px){.col-h small{display:none}}
.mesa-why{display:flex;flex-wrap:wrap;gap:6px}
@media (max-width:640px){
  .fx:has(>.kpis){flex-direction:column;align-items:stretch;gap:4px}
  .kpis,.kpis.cl-cols{display:flex;margin-left:0;gap:2px 0;font-size:13px}
  .kpi{display:flex;flex-direction:row-reverse;align-items:baseline;gap:5px;text-align:left}
  .kpi:not(:last-child)::after{content:"·";order:-1;margin:0 8px 0 3px;color:var(--on-faixa-2)}
  .kpi small{font:400 13px/1.3 "Roboto",sans-serif;letter-spacing:0;text-transform:none}
}
.pn-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,460px),1fr));gap:18px}
.pn-h{font:600 14px/1.3 "Roboto",sans-serif;margin:0}
.pn-sub{color:var(--ink-3);font-size:13px;margin:4px 0 12px}
.pn-muted{color:var(--ink-3)}
.pn-t{width:100%;border-collapse:collapse;font-size:13.5px}
.pn-t th{font:600 11px/1.2 "Montserrat","Roboto",sans-serif;letter-spacing:.06em;text-transform:uppercase;color:var(--ink-3);text-align:left;padding:8px 10px;border-bottom:1px solid var(--line)}
.pn-t td{padding:8px 10px;border-bottom:1px solid var(--line)}
.pn-t .num{text-align:right;font-variant-numeric:tabular-nums}
.pn-t .dot{margin-right:8px}
.pn-cols{margin:0}
.pn-cols-plot{display:flex;align-items:flex-end;gap:2px;height:180px;border-bottom:1px solid var(--line-strong);padding-top:22px}
.pn-col{flex:1;height:100%;display:flex;flex-direction:column;justify-content:flex-end;align-items:center;position:relative;min-width:0}
.pn-col i{display:block;width:min(70%,28px);background:color-mix(in srgb,var(--info) 55%,transparent);border-radius:4px 4px 0 0}
.pn-col:hover i{background:var(--info)}
.pn-col.hl i{background:var(--info)}
.pn-col-v{position:absolute;left:50%;transform:translateX(-50%);font-size:12px;font-weight:600;white-space:nowrap;color:var(--ink)}
.pn-cols-axis{display:flex;gap:2px;margin-top:6px}
.pn-cols-axis span{flex:1;min-width:0;font-size:11px;color:var(--ink-3);text-align:center;white-space:nowrap;overflow:visible}
.pn-table{margin-top:10px;font-size:13px}
.pn-table summary{cursor:pointer;color:var(--ink-2)}
.pn-bars{display:flex;flex-direction:column;gap:10px}
.pn-bar{display:grid;grid-template-columns:minmax(90px,30%) 1fr auto;align-items:center;gap:10px;font-size:13.5px}
.pn-bar-l{color:var(--ink-2);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.pn-bar-t{height:14px}
.pn-bar-t i{display:block;height:100%;background:var(--info);border-radius:0 4px 4px 0}
.pn-bar-v{font-variant-numeric:tabular-nums;font-weight:600}
@media (max-width:640px){.pn-t{font-size:12.5px}.pn-t th,.pn-t td{padding:6px}}
.pn-scroll{overflow-x:auto;max-width:100%}
.pn-scroll .pn-t{min-width:560px}
.pn-col.part i{min-height:3px;background:color-mix(in srgb,var(--info) 25%,transparent);border-top:2px dashed var(--info)}
.pn-cols figcaption{margin:6px 0 0}
.pn-t th{white-space:nowrap}
.tiles{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,170px),1fr));gap:12px}
.tile{padding:14px 16px;background:var(--surface);border:1px solid var(--line);border-radius:14px;display:flex;flex-direction:column;gap:2px;min-width:0}
.tile .l{display:flex;align-items:center;gap:6px;color:var(--ink-2);font-size:13px}
.tile .l .i{width:16px;height:16px}
.tile .v{font-size:28px;font-weight:600;letter-spacing:-.01em;line-height:1.25;font-variant-numeric:tabular-nums}
.tile .s{font-size:12px;color:var(--ink-3)}
.tile.crit .l{color:var(--crit)}
.tile.warn .l{color:var(--warn)}
.pn-hero{overflow:visible;display:flex;flex-wrap:wrap;align-items:flex-end;gap:10px 28px;padding:20px 22px}
.pn-hero .l{display:block;color:var(--ink-2)}
.pn-hero .v{display:block;font-size:52px;font-weight:600;letter-spacing:-.02em;line-height:1.05;font-variant-numeric:tabular-nums}
.pn-hero .d{font-weight:500}
.pn-hero .d.up{color:var(--ok)}
.pn-hero .d.down{color:var(--crit)}
.pn-hero .s{color:var(--ink-3);font-size:13px}
.pn-legend{display:flex;flex-wrap:wrap;gap:6px 16px;font-size:12px;color:var(--ink-2);margin-bottom:12px}
.pn-legend span{display:inline-flex;align-items:center;gap:6px}
.pn-legend .pn-age{width:12px;height:12px;border-radius:3px}
.pn-age{display:block}
.pn-age[data-age="1"]{background:color-mix(in srgb,var(--info) 30%,var(--surface))}
.pn-age[data-age="2"]{background:color-mix(in srgb,var(--info) 55%,var(--surface))}
.pn-age[data-age="3"]{background:color-mix(in srgb,var(--info) 80%,var(--surface))}
.pn-age[data-age="4"]{background:var(--info)}
.pn-stack{display:flex;flex-direction:column;gap:10px}
.pn-stack-r{display:grid;grid-template-columns:minmax(120px,180px) 1fr 44px;align-items:center;gap:10px;font-size:13.5px}
.pn-stack-t{display:flex;gap:2px;height:20px}
.pn-stack-t .pn-age{height:100%}
.pn-stack-t .pn-age:last-child{border-radius:0 4px 4px 0}
.pn-bar-l .dot{margin-right:8px}
.pn-cols-body{display:grid;grid-template-columns:auto 1fr;column-gap:8px}
.pn-cols-y{position:relative;height:158px;margin-top:22px;min-width:34px}
.pn-cols-y span{position:absolute;right:0;transform:translateY(50%);font-size:11px;color:var(--ink-3);white-space:nowrap;font-variant-numeric:tabular-nums}
.pn-cols-plot{position:relative}
.pn-cols-lines{position:absolute;left:0;right:0;top:22px;bottom:0;pointer-events:none}
.pn-cols-lines i{position:absolute;left:0;right:0;border-top:1px dashed var(--line)}
.pn-col-v{top:auto}
.pn-cols-body .pn-cols-axis{grid-column:2}
.ct{position:fixed;z-index:70;pointer-events:none;display:grid;gap:6px;min-width:10rem;max-width:min(320px,calc(100vw - 16px));padding:10px 12px;border:1px solid var(--line-strong);border-radius:10px;background:var(--surface);color:var(--ink);box-shadow:var(--shadow);font-size:13px}
.ct[hidden]{display:none}
.ct-t{font-weight:600}
.ct-rows{display:grid;gap:4px;margin:0}
.ct-row{display:flex;justify-content:space-between;gap:16px}
.ct-row dt{display:flex;align-items:center;gap:6px;color:var(--ink-2)}
.ct-row dt .pn-age{width:10px;height:10px;border-radius:2px}
.ct-row dd{margin:0;font-weight:600;font-variant-numeric:tabular-nums;white-space:nowrap}
.pn-col.tip-on i{background:var(--info)}
.pn-col.tip-on{background:color-mix(in srgb,var(--info) 8%,transparent);border-radius:4px}
.pn-stack-r.tip-on,.pn-bar.tip-on{background:color-mix(in srgb,var(--info) 8%,transparent);border-radius:6px}
.pn-month .selc{display:inline-block;vertical-align:baseline}
.pn-month .selc-fantasma{display:none}
.pn-month .selc-b{display:inline-flex;gap:4px;width:auto;height:auto;padding:0 0 1px;background:none;border:0;border-bottom:1px dashed var(--ink-3);border-radius:0;font-weight:600}
.pn-month .selc-b:hover,.pn-month .selc.on .selc-b{border-bottom-color:var(--ink);box-shadow:none}
.pn-month .selc-pop{right:auto;min-width:max-content}
@media (max-width:640px),(pointer:coarse){.pn-month .selc-b{min-height:44px;margin:4px 0;padding:0 12px 0 14px;border:1px solid var(--line-strong);border-radius:999px}}
.pn-hero-d{display:flex;flex-direction:column;gap:2px}
.pn-alert{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:10px 16px;padding:12px 16px;border:1px solid var(--line);border-radius:var(--r);background:var(--surface)}
.pn-alert .note,.pn-alert>div:first-child{margin:0}
@media (max-width:640px){.pn-hero .v{font-size:38px}.pn-stack-r{grid-template-columns:minmax(96px,34%) 1fr 36px}}
dialog.switch{border:0;padding:0;background:transparent;width:min(600px,calc(100vw - 32px));max-width:none}
dialog.switch::backdrop,dialog.idle-warn::backdrop{background:rgba(0,0,0,.45)}
.switch .login-card{width:100%;position:relative}
.switch .who-x{position:absolute;top:12px;right:12px}
.people a[aria-current="true"]{border-color:var(--accent)}
dialog.idle-warn{border:1px solid var(--line);border-radius:18px;padding:24px;background:var(--surface);color:var(--ink);box-shadow:var(--shadow);width:min(380px,calc(100vw - 32px));text-align:center}
.idle-warn{--alarm:var(--accent)}
.idle-warn .btn:focus-visible{outline:none;box-shadow:none}
:root[data-theme="dark"] .idle-warn{--alarm:var(--accent-hover)}
.idle-warn h2{display:flex;align-items:center;justify-content:center;gap:8px;font-size:17px}
.idle-warn p{margin:6px 0 14px;color:var(--ink-2)}
.idle-ring{position:relative;width:120px;height:120px;margin:0 auto 12px;color:var(--alarm)}
.idle-ring svg{width:100%;height:100%;transform:rotate(-90deg)}
.idle-ring circle{fill:none;stroke-width:10}
.idle-ring circle:first-child{stroke:var(--surface-3)}
.idle-ring circle+circle{stroke:currentColor;stroke-linecap:round;stroke-dasharray:326.7;transition:stroke-dashoffset 1s linear}
.idle-ring b{position:absolute;inset:0;display:grid;place-items:center;font:800 40px "Montserrat",sans-serif}
.bubble{background:var(--ok-wash);color:var(--ink);padding:10px 12px;border-radius:12px 12px 12px 4px;font-size:13px;line-height:1.5;max-width:420px;white-space:pre-wrap;overflow-wrap:anywhere}
.marks{display:flex;flex-wrap:wrap;gap:6px;margin-top:8px}
.btnchip{cursor:pointer}
.btnchip:hover{color:var(--ink)}
@media (max-width:860px){.marks .btnchip{height:44px;padding:0 12px}}
.gv-f form.notify,.mais .painel form.notify{display:contents}

/* The browser's bar is hidden but in a text box; scroll-thumb.js draws a thin one over the content. */
*{scrollbar-width:none}
textarea{scrollbar-width:thin}
.sth{position:absolute;z-index:5;width:10px;height:10px;display:flex;justify-content:flex-end;align-items:flex-end;touch-action:none}
.sth[hidden]{display:none}
.sth-page{position:fixed;z-index:16}
.sth::before{content:"";border-radius:999px;background:color-mix(in srgb,var(--ink-3) 25%,transparent);transition:width .2s,height .2s,background-color .2s}
.sth[data-axis="y"]::before{width:6px;height:100%}
.sth[data-axis="x"]::before{height:6px;width:100%}
.sth[data-active]::before{background:color-mix(in srgb,var(--ink-3) 50%,transparent)}
.sth:hover::before,.sth[data-dragging]::before{background:color-mix(in srgb,var(--ink-3) 60%,transparent)}
.sth[data-axis="y"]:hover::before,.sth[data-axis="y"][data-dragging]::before{width:10px}
.sth[data-axis="x"]:hover::before,.sth[data-axis="x"][data-dragging]::before{height:10px}
@media print{.sth{display:none}}
.track-link{margin:0 0 6px;font:600 17px/1.4 "Roboto Mono",ui-monospace,monospace;overflow-wrap:anywhere;user-select:all}
.track-code{white-space:nowrap}
.cv{margin:0;min-height:100vh;background:var(--bg);color:var(--ink);font-size:15px}
.cv-top{display:flex;justify-content:center;padding:16px 16px 12px;border-bottom:1px solid var(--line);background:#000}
.cv-top img{height:44px;width:auto;mix-blend-mode:screen}
.cv-b{max-width:440px;margin:0 auto;padding:18px 16px 28px;display:flex;flex-direction:column;gap:14px}
.cv-hi{margin:0;font:700 22px/1.2 "Montserrat",sans-serif}
.cv-card{margin:0;background:var(--surface);border:1px solid var(--line);border-radius:16px;padding:14px;display:flex;flex-direction:column;gap:3px}
.cv-card small{color:var(--ink-3);font-size:13px}
.cv-card b{font-size:18px}
.cv-st{display:inline-flex;align-self:flex-start;margin-top:6px;padding:4px 12px;border-radius:99px;background:var(--accent-wash);color:var(--accent-ink);font-size:14px;font-weight:600}
.cv-card .cv-more{margin-top:6px}
.cv-steps{list-style:none;margin:0;padding:0;display:flex;flex-direction:column}
.cv-steps li{display:grid;grid-template-columns:22px 1fr;gap:10px;align-items:center;padding:7px 0;color:var(--ink-3)}
.cv-steps li i{width:14px;height:14px;border-radius:50%;box-shadow:inset 0 0 0 2px var(--line-strong);justify-self:center}
.cv-steps li.done{color:var(--ink-2)}
.cv-steps li.done i{background:var(--accent);box-shadow:none}
.cv-steps li.now{color:var(--ink);font-weight:600}
.cv-steps li.now i{background:var(--accent);box-shadow:0 0 0 4px var(--accent-wash)}
.cv-foot{font-size:13px;color:var(--ink-3);border-top:1px solid var(--line);padding-top:14px}
.cv-wa{display:flex;justify-content:center;align-items:center;min-height:46px;margin-top:12px;border-radius:12px;background:var(--surface-2);border:1px solid var(--line-strong);color:var(--ink);text-decoration:none;font-weight:600}
.cv-next{margin:8px 0 0;color:var(--ink-2);font-size:14px;line-height:1.4}
.role-reach td,.role-reach thead th:not(:first-child){text-align:center}
.role-reach tbody th{font:inherit;letter-spacing:0;text-transform:none;color:var(--ink);text-align:left}
.role-reach .i{vertical-align:-2px}
form:has(#Role option[value="Admin"]:checked) .role-reach [data-role="Admin"],form:has(#Role option[value="Attendant"]:checked) .role-reach [data-role="Attendant"],form:has(#Role option[value="Technician"]:checked) .role-reach [data-role="Technician"]{background:var(--accent-wash);color:var(--ink)}
@media (max-width:560px){.role-reach th,.role-reach td{padding:8px 4px}.role-reach thead th{font-size:12px;letter-spacing:0;text-transform:none}}
/* The logo stands as the screens show it: on the dark top bar, with no signature line under it. */
.pick-img.logo .pick-img-folha{background:#111;padding:8px 12px}
.pick-img.logo .pick-img-folha img{margin:0 auto}
.pick-img.logo .pick-img-folha::after{display:none}
.logo-atual{padding:10px;border-radius:8px;background:#111;text-align:center}
.logo-atual img{max-height:72px;max-width:100%}
.shop-name{font-family:Montserrat,sans-serif;font-weight:700;font-size:15px;letter-spacing:.02em}
