@font-face {
  font-family: Inter;
  src: url("/assets/Inter.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}
html {
  min-height: 100%;
}
body {
  color: var(--tx);
  font-size: 14px;
}
a {
  color: var(--lk);
}
button,
input,
select,
textarea {
  font-family: inherit;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--ac);
  outline-offset: 2px;
}
.skip {
  position: fixed;
  left: 8px;
  top: -100px;
  z-index: 20;
  background: var(--sf);
  padding: 10px;
}
.skip:focus {
  top: 8px;
}
.tela {
  width: 100%;
  min-height: 100dvh;
}
.menu {
  min-height: 100dvh;
  align-self: flex-start;
  position: sticky;
  top: 0;
  max-height: 100dvh;
  overflow-y: auto;
}
.conteudo {
  min-height: 100dvh;
}
.corpo {
  padding: 18px 24px 32px;
}
.cel-topo,
.cel-abas,
.drawer {
  display: none;
}
.marca span {
  overflow-wrap: anywhere;
}
.page {
  display: grid;
  gap: 14px;
  min-width: 0;
}
.cartao {
  min-width: 0;
  overflow: hidden;
}
.c-cab {
  justify-content: space-between;
}
.c-cab h2 {
  white-space: normal;
}
.tabwrap {
  overflow: auto;
}
.tab th,
.tab td {
  overflow-wrap: anywhere;
}
.tab td .btn {
  margin: 2px;
}
.muted {
  color: var(--mu);
}
.empty {
  margin: 0;
  padding: 19px 16px;
  color: var(--mu);
  line-height: 1.5;
}
.cfg .tx small {
  line-height: 1.5;
}
.actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.actions .btn {
  white-space: normal;
  height: auto;
  min-height: 36px;
  padding-block: 7px;
}
.abas {
  max-width: 100%;
  min-width: 0;
}
.abas a {
  color: var(--mu);
  padding: 11px 12px;
  font-weight: 500;
  white-space: nowrap;
  text-decoration: none;
  border-bottom: 2px solid transparent;
}
.abas a.on {
  color: var(--tx);
  border-color: var(--ac);
}
.selo {
  white-space: normal;
}
.res {
  margin-top: 8px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.tilelink {
  text-decoration: none;
  color: inherit;
}
.tilelink:hover {
  border-color: var(--ac);
}
.li {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 0;
  align-items: center;
  border-bottom: 1px solid var(--bd);
}
.li:last-child {
  border-bottom: 0;
}
.li small {
  color: var(--mu);
}
.btnlink {
  background: none;
  border: 0;
  color: var(--lk);
  cursor: pointer;
  font: inherit;
}
.online-off {
  background: var(--wnbg);
  color: var(--wn);
  padding: 8px 16px;
}
.block {
  display: grid;
  gap: 10px;
}
.campo-offline [hidden] {
  display: none;
}
.campo-offline .btn {
  min-height: 44px;
  height: auto;
  padding-block: 8px;
  white-space: normal;
  justify-self: start;
}
.campo-offline .campo input,
.campo-offline .campo select {
  min-height: 44px;
}
.campo-offline .campo input,
.campo-offline .campo select,
.campo-offline .campo textarea,
.loginform .campo input {
  box-sizing: border-box;
}
.campo-offline .c-cab h1 {
  margin: 0;
  font-size: 20px;
}
.campo-offline fieldset {
  min-width: 0;
  margin: 0;
  padding: 12px;
  border: 1px solid var(--bd);
  border-radius: 8px;
}
.campo-checkbox {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  gap: 8px;
  justify-self: start;
}
.secnav {
  margin-left: auto;
}
.entries {
  border: 0;
  margin: 0;
  padding: 0;
}
.entries legend {
  font-weight: 600;
  margin-bottom: 6px;
}
.entrylist {
  padding: 8px 0;
}
.entrylist .row {
  border: 1px solid var(--bd);
  border-radius: 8px;
  padding: 10px;
  margin-bottom: 8px;
}
.long {
  overflow-wrap: anywhere;
}
.inline {
  display: inline;
}
.form-error {
  color: var(--dg);
  margin: 0;
}
.help {
  color: var(--mu);
  font-size: 13px;
  line-height: 1.5;
}
dialog {
  color: var(--tx);
  background: var(--sf);
  border: 1px solid var(--bd);
  border-radius: 14px;
  padding: 0;
  width: min(590px, calc(100vw - 28px));
  max-height: 85dvh;
  overflow: auto;
}
dialog::backdrop {
  background: rgb(13 19 25 / 55%);
}
.dialog-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--bd);
}
.dialog-head h2 {
  font-size: 18px;
  margin: 0;
}
.dialog-body {
  padding: 16px 20px;
}
.dialog-actions {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
  padding-top: 12px;
}
.signin {
  display: grid;
  min-height: 100dvh;
  grid-template-columns: minmax(210px, 36%) 1fr;
}
.brandwall {
  background: var(--sb);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px;
}
.brandwall img {
  display: block;
  max-width: 280px;
  width: 90%;
}
.signin main {
  display: grid;
  place-items: center;
  padding: 22px;
}
.loginform {
  width: min(430px, 100%);
}
.loginform h1 {
  margin: 0;
  font-size: 22px;
}
.loginform .campo {
  font-size: 13px;
}
.loginform .btn {
  width: 100%;
}
#feedback.visible {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 15;
  padding: 10px 16px;
  background: var(--tx);
  color: var(--sf);
  border-radius: 10px;
  max-width: 90vw;
}
.sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
}
.fabrica-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}
.counter {
  padding: 9px 8px;
  background: var(--bg);
  border-radius: 8px;
}
.counter b {
  display: block;
  font-size: 18px;
}
.counter small {
  color: var(--mu);
}
@media (max-width: 1050px) {
  .menu {
    width: 200px;
    padding: 14px 9px;
  }
  .marca img {
    max-width: 100%;
  }
  .topo {
    padding: 12px;
  }
  .corpo {
    padding: 14px;
  }
  .kpis {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .grade2,
  .grade2i {
    grid-template-columns: minmax(0, 1fr);
  }
  .topo .assist {
    display: none;
  }
}
@media (max-width: 700px) {
  .menu,
  .topo {
    display: none;
  }
  .cel-topo {
    display: flex;
    padding: 9px 10px;
  }
  .cel-topo .nome img {
    width: 142px;
    max-width: 100%;
  }
  .cel-topo .icone-btn {
    border: 0;
    background: transparent;
    cursor: pointer;
  }
  .cel-abas {
    display: grid;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    z-index: 6;
    border-top: 1px solid var(--bd);
    background: var(--sf);
    padding: 4px 3px max(4px, env(safe-area-inset-bottom));
  }
  .cel-abas a,
  .cel-abas button {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 2px;
    color: var(--mu);
    font: inherit;
    font-size: 11px;
    background: none;
    border: 0;
    text-decoration: none;
    min-height: 46px;
  }
  .cel-abas .ativo {
    color: var(--ac);
    font-weight: 600;
  }
  .corpo {
    padding: 14px 12px 75px;
  }
  .cab {
    align-items: flex-start;
    flex-direction: column;
  }
  .cab h1 {
    font-size: 20px;
  }
  .cab .acoes {
    justify-content: flex-start;
  }
  .kpis {
    gap: 8px;
  }
  .kpi {
    padding: 10px;
    gap: 8px;
  }
  .kpi b {
    font-size: 19px;
  }
  .ladrilho {
    height: 36px;
    width: 36px;
  }
  .form,
  .grade3 {
    grid-template-columns: minmax(0, 1fr);
  }
  .form .w2 {
    grid-column: auto;
  }
  .fabrica-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  #feedback.visible {
    bottom: 64px;
  }
  .signin {
    display: flex;
    flex-direction: column;
  }
  .brandwall {
    min-height: 100px;
    padding: 25px;
  }
  .brandwall img {
    width: 193px;
  }
  .signin main {
    flex: 1;
    align-content: center;
  }
  .cfg {
    flex-wrap: wrap;
  }
  .drawer {
    display: flex;
    flex-direction: column;
    gap: 4px;
  }
  .drawer a {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    padding: 10px;
    color: var(--tx);
    border-radius: 8px;
  }
  .drawer a.ativo {
    background: var(--acbg);
    color: var(--actx);
  }
}

.desenho3d {
  width: 100%;
  height: clamp(225px, 43vh, 420px);
  display: block;
  touch-action: none;
  margin-bottom: 10px;
  border: 1px solid var(--bd);
  border-radius: 10px;
}
.prancha-svg {
  display: block;
  width: 100%;
  height: 10rem;
  object-fit: contain;
}
.croqui {
  width: 32px;
  height: 30px;
  vertical-align: middle;
  margin-right: 6px;
  color: var(--tx);
}
.c-corpo > .croqui {
  width: 160px;
  height: 100px;
}

.identity {
  border: 0;
  background: transparent;
  color: var(--tx);
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.cel-topo .avatar {
  border: 0;
  cursor: pointer;
}
.kpi .ladrilho {
  color: var(--actx);
}
.kpi .t-vm {
  color: var(--dg);
}
.kpi .t-am {
  color: var(--wn);
}
.kpi .t-ok {
  color: var(--ok);
}

.sketch {
  width: 100%;
  height: 230px;
  display: block;
  border: 1px solid var(--bd);
  border-radius: 8px;
  background: var(--bg);
  cursor: crosshair;
}
.sketch .curve,
.sketch .draft,
.sketch .reference {
  vector-effect: non-scaling-stroke;
  fill: none;
  stroke: var(--ac);
  stroke-width: 1.7;
}
.sketch .draft {
  stroke: var(--wn);
  stroke-dasharray: 4 3;
}
.sketch .reference {
  stroke: var(--mu);
  stroke-dasharray: 3 3;
  stroke-width: 1;
}

.assist-answer {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
@media print {
  body > *:not(dialog) {
    display: none !important;
  }
  dialog[open] {
    display: block !important;
    position: static;
    width: 100%;
    max-height: none;
    border: 0;
    color: #111;
    background: #fff;
    overflow: visible;
  }
  dialog::backdrop,
  .dialog-head,
  .dialog-actions,
  dialog button {
    display: none !important;
  }
  .tabwrap {
    overflow: visible;
  }
}

.busca {
  background: var(--sf);
  color: var(--mu);
  cursor: pointer;
  font: inherit;
  text-align: left;
}
.org-tree {
  min-width: 0;
}
.org-tree ul {
  list-style: none;
  margin: 4px 0 8px 8px;
  padding-left: 12px;
  border-left: 1px solid var(--bd);
}
.org-tree ul:empty {
  display: none;
}
.org-node {
  display: flex;
  align-items: center;
  gap: 8px;
  justify-content: space-between;
  padding: 5px 8px;
  background: var(--bg);
  border-radius: 7px;
  margin: 4px 0;
}
.home-todo {
  display: grid;
  gap: 4px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--bd);
}
.home-todo:last-child {
  border: 0;
}
.home-todo small {
  color: var(--mu);
}
.home-todo .btn {
  justify-self: start;
}
@media (max-width: 700px) {
  .cel-topo {
    min-height: 64px;
    padding: 10px 14px;
  }
  .cel-topo .nome img {
    width: 150px;
  }
  .cab .acoes {
    width: 100%;
  }
  .cab .acoes > .btn {
    flex: 1;
  }
  .kpi {
    min-height: 73px;
  }
  .kpi .ladrilho {
    height: 44px;
    width: 44px;
  }
  .kpi-badge {
    max-width: 100%;
  }
}
