.brand-logo {
  display: block;
  width: 112px;
  height: 58px;
  object-fit: contain;
}

.brand-portal {
  padding-left: 12px;
  border-left: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
  line-height: 1.2;
  letter-spacing: 0;
  white-space: nowrap;
}

.login-logo-panel {
  display: flex;
  justify-content: center;
  margin: -20px 0 24px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--line);
}

.login-logo {
  display: block;
  width: min(100%, 250px);
  height: 170px;
  object-fit: contain;
}

@media (max-width: 820px) {
  .brand-logo {
    width: 94px;
    height: 48px;
  }

  .brand-portal {
    display: none;
  }

  .login-logo-panel {
    margin-top: -8px;
  }
}

/* Responsividade para produção. */
html {
  min-width: 320px;
  overflow-x: hidden;
}

body {
  min-height: 100dvh;
  overflow-x: hidden;
}

img,
svg,
video,
iframe {
  max-width: 100%;
}

.mobile-menu {
  display: none;
  position: relative;
}

.mobile-menu summary {
  display: grid;
  place-content: center;
  gap: 5px;
  width: 46px;
  height: 46px;
  padding: 0;
  border: 1px solid #343434;
  border-radius: 10px;
  background: #111;
  cursor: pointer;
  list-style: none;
}

.mobile-menu summary::-webkit-details-marker {
  display: none;
}

.mobile-menu summary span {
  display: block;
  width: 21px;
  height: 2px;
  border-radius: 2px;
  background: #fff;
}

.mobile-menu[open] summary {
  border-color: #00b1f0;
}

.mobile-menu nav {
  position: absolute;
  top: 54px;
  right: 0;
  display: grid;
  width: min(290px, calc(100vw - 32px));
  padding: 10px;
  border: 1px solid #303030;
  border-radius: 12px;
  background: #080808;
  box-shadow: 0 20px 55px rgba(0,0,0,.35);
}

.mobile-menu nav a,
.mobile-menu nav .link-button {
  display: flex !important;
  width: 100%;
  min-height: 46px;
  align-items: center;
  padding: 10px 12px;
  border-radius: 8px;
  color: #fff;
  text-align: left;
  text-decoration: none;
}

.mobile-menu nav a:hover,
.mobile-menu nav .link-button:hover {
  background: #171717;
  color: #00b1f0;
}

.mobile-menu nav form {
  margin: 0;
}

.card,
.document-card,
.metrics article,
.auth-card,
.auth-aside,
.two-columns > * {
  min-width: 0;
}

.stack input,
.stack select,
.stack textarea,
.stack button,
.button {
  min-height: 46px;
}

.stack textarea {
  display: block;
  width: 100%;
  min-height: 110px;
  margin-top: 6px;
  padding: 12px 13px;
  resize: vertical;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  font: inherit;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 14px;
}

.page-actions,
.decision-buttons,
.evidence-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.point-location {
  display: grid;
  gap: 4px;
  padding: 14px;
  border-left: 4px solid #00b1f0;
  background: #eef9fd;
}

.point-location span,
.point-location small {
  color: #566067;
}

.geo-status {
  padding: 11px 12px;
  border-radius: 8px;
  background: #eef6fa;
  color: #315464;
  font-size: 13px;
}

.geo-status.error {
  background: #fef3f2;
  color: #b42318;
}

.late-justification {
  margin-bottom: 22px;
  border-left: 5px solid #f59e0b;
}

.settings-list {
  margin-top: 24px;
}

.approval-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 20px;
}

.approval-card .section-title strong {
  color: #b45309;
  font-size: 24px;
}

.approval-card dl {
  grid-template-columns: 105px minmax(0,1fr);
}

.evidence-links {
  margin: 16px 0;
}

.danger {
  background: #b42318;
  color: #fff;
}

.badge.error {
  background: #fee4e2;
  color: #b42318;
}

button:disabled {
  cursor: not-allowed;
  opacity: .55;
}

.admin-session-notice {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 26px;
  padding: 13px 16px;
  border-left: 5px solid #f59e0b;
  border-radius: 8px;
  background: #fff8e7;
  color: #704400;
}

.admin-session-notice strong {
  flex: 0 0 auto;
  letter-spacing: .06em;
}

.employee-welcome {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 28px;
}

.employee-welcome h1 {
  margin-bottom: 6px;
}

.employee-welcome p {
  margin: 0;
}

.employee-access-badge {
  flex: 0 0 auto;
  padding: 8px 12px;
  border: 1px solid #8fdcf7;
  border-radius: 999px;
  background: #eaf9fe;
  color: #00688e;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .08em;
}

.employee-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 16px;
  margin-bottom: 14px;
}

.employee-action {
  display: grid;
  grid-template-columns: 48px minmax(0,1fr) auto;
  align-items: center;
  gap: 14px;
  min-height: 104px;
  padding: 18px;
  border: 1px solid #d6dde1;
  border-radius: 12px;
  background: #fff;
  color: #111;
  text-align: left;
  text-decoration: none;
  box-shadow: 0 12px 32px rgba(0,0,0,.07);
}

.employee-action:hover {
  border-color: #00b1f0;
  transform: translateY(-1px);
}

.employee-action strong,
.employee-action small {
  display: block;
}

.employee-action strong {
  font-size: 17px;
}

.employee-action b {
  color: #00a7e2;
  font-size: 22px;
}

.point-action {
  border-color: #00b1f0;
  background: #050505;
  color: #fff;
}

.point-action small {
  color: #b8c1c5;
}

.action-icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 10px;
  background: #e8f8fe;
  color: #006d95;
  font-size: 12px;
  font-weight: 900;
}

.point-action .action-icon {
  background: #00b1f0;
  color: #050505;
  font-size: 24px;
}

.install-action {
  width: 100%;
  text-transform: none;
  letter-spacing: 0;
}

.install-help {
  margin-bottom: 36px;
  color: #657078;
  font-size: 12px;
}

.section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 16px;
  padding-top: 12px;
  scroll-margin-top: 110px;
}

.section-heading h2 {
  margin: 2px 0 0;
  font-size: 27px;
}

.table-wrap {
  max-width: 100%;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  -webkit-overflow-scrolling: touch;
}

.table-wrap table {
  min-width: 650px;
}

.hash,
dd,
.document-card h2,
.document-card p {
  overflow-wrap: anywhere;
}

@media (max-width: 1000px) {
  .topbar {
    padding-inline: 22px;
  }

  .desktop-nav {
    display: none !important;
  }

  .mobile-menu {
    display: block;
  }

  .container {
    padding-top: 38px;
  }

  .metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .auth-shell {
    grid-template-columns: minmax(0, 1fr) minmax(320px, .8fr);
    min-height: 620px;
  }

  .auth-card,
  .auth-aside {
    padding: 40px;
  }
}

@media (max-width: 820px) {
  .topbar {
    min-height: 76px;
    align-items: center;
    padding: 10px 16px;
  }

  .brand {
    min-width: 0;
  }

  .brand-logo {
    width: 108px;
    height: 56px;
  }

  .container {
    width: 100%;
    padding: 28px 16px 54px;
  }

  .auth-shell {
    display: block;
    width: 100%;
    margin: 0 auto;
    min-height: 0;
  }

  .auth-aside {
    display: none;
  }

  .auth-card {
    padding: 34px 26px;
  }

  .two-columns {
    grid-template-columns: minmax(0, 1fr);
  }

  .document-detail {
    gap: 18px;
  }

  .page-head {
    gap: 18px;
  }

  .page-head > *,
  .page-head .button {
    width: 100%;
  }

  .card {
    padding: 21px;
  }

  .section-title {
    align-items: flex-start;
    flex-direction: column;
    gap: 5px;
  }

  footer {
    padding: 22px 16px calc(22px + env(safe-area-inset-bottom));
    font-size: 13px;
  }
}

@media (max-width: 560px) {
  h1 {
    font-size: clamp(30px, 10vw, 40px);
  }

  .metrics {
    grid-template-columns: minmax(0, 1fr);
  }

  .metrics article {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
  }

  .metrics strong {
    flex: 0 0 auto;
    margin: 0;
    font-size: 30px;
  }

  .document-card {
    grid-template-columns: 46px minmax(0, 1fr);
    gap: 14px;
    padding: 17px;
  }

  .doc-icon {
    width: 46px;
    height: 56px;
  }

  .document-card .button {
    grid-column: 1 / -1;
    width: 100%;
  }

  .login-logo {
    height: 142px;
  }

  .login-logo-panel {
    margin-bottom: 20px;
    padding-bottom: 18px;
  }

  dl {
    grid-template-columns: minmax(0, 1fr);
  }

  dd {
    margin-bottom: 12px;
  }

  .button,
  button {
    width: 100%;
  }

  .mobile-menu summary {
    width: 44px;
    height: 44px;
  }
}

@media (max-width: 380px) {
  .container {
    padding-inline: 12px;
  }

  .auth-card,
  .card {
    padding-inline: 18px;
  }

  .brand-logo {
    width: 92px;
  }
}

.install-app {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 20;
  width: auto;
  min-height: 46px;
  padding: 11px 17px;
  background: #00b1f0;
  color: #050505;
  box-shadow: 0 12px 32px rgba(0,0,0,.28);
}

.install-app[hidden] {
  display: none;
}

.point-head {
  align-items: center;
}

.server-clock {
  min-width: 250px;
  padding: 18px 22px;
  border-radius: 12px;
  background: #050505;
  color: #fff;
  text-align: center;
}

.server-clock span,
.server-clock small {
  display: block;
  color: #9fa6aa;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .12em;
}

.server-clock strong {
  display: block;
  margin: 3px 0;
  color: #00b1f0;
  font-size: 34px;
  font-variant-numeric: tabular-nums;
  letter-spacing: .04em;
}

.point-layout {
  display: grid;
  grid-template-columns: minmax(280px, .65fr) minmax(0, 1.35fr);
  gap: 24px;
}

.point-card {
  align-self: start;
  border-top: 4px solid #00b1f0;
}

.point-card-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.point-card-heading h2 {
  margin: 3px 0 0;
}

.point-ready-badge {
  flex: 0 0 auto;
  padding: 7px 10px;
  border-radius: 999px;
  background: #e8f8fe;
  color: #006d95;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.point-step {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  padding-top: 14px;
  border-top: 1px solid #e3e7e9;
}

.point-step-number {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #050505;
  color: #00b1f0;
  font-weight: 900;
}

.point-step label,
.point-step label strong,
.point-step label small {
  display: block;
}

.point-step label small {
  margin: 3px 0 9px;
  color: #657078;
  font-weight: 400;
}

.selfie-status {
  margin-top: 8px;
  color: #657078;
  font-size: 12px;
}

.selfie-status.ready {
  color: #137333;
  font-weight: 800;
}

.point-button {
  min-height: 58px !important;
  font-size: 16px;
  font-weight: 900;
  box-shadow: 0 10px 24px rgba(0,177,240,.24);
}

.point-privacy {
  color: #657078;
  text-align: center;
}

.live-camera {
  position: relative;
  overflow: hidden;
  min-height: 280px;
  border: 2px solid #dce4e8;
  border-radius: 14px;
  background: #101214;
}

.live-camera video {
  display: block;
  width: 100%;
  height: 360px;
  object-fit: cover;
  transform: scaleX(-1);
}

.camera-placeholder {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  gap: 7px;
  padding: 30px;
  background: linear-gradient(145deg, #0b0d0e, #20272a);
  color: #fff;
  text-align: center;
}

.camera-placeholder span {
  color: #00b1f0;
  font-size: 38px;
  line-height: 1;
}

.camera-placeholder strong {
  font-size: 19px;
}

.camera-placeholder small {
  max-width: 330px;
  color: #b8c1c5;
  line-height: 1.45;
}

.capture-button {
  background: #13b95d;
  box-shadow: 0 10px 24px rgba(19,185,93,.25);
}

.capture-button:hover {
  background: #27cf70;
}

.evidence-downloads {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.evidence-button {
  width: auto;
  min-height: 36px;
  padding: 7px 10px;
  background: #080808;
  color: #fff;
  font-size: 10px;
  white-space: nowrap;
}

.selfie-download {
  background: #e8f8fe;
  color: #005f82;
  border: 1px solid #00a7e2;
}

.temporary-password {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 22px;
}

.temporary-password div,
.temporary-password span {
  display: block;
}

.temporary-password span {
  margin-top: 3px;
}

.temporary-password code {
  flex: 0 0 auto;
  padding: 10px 14px;
  border: 1px dashed #48a868;
  border-radius: 8px;
  background: #fff;
  color: #0d5226;
  font-size: 18px;
  font-weight: 900;
  letter-spacing: .04em;
  user-select: all;
}

.employees-help {
  margin: -5px 0 18px;
  color: #657078;
  font-size: 13px;
}

.employees-table table {
  min-width: 900px;
}

.reset-password-button {
  width: auto;
  min-height: 38px;
  padding: 8px 11px;
  border: 1px solid #00a7e2;
  background: #e8f8fe;
  color: #005f82;
  font-size: 11px;
  white-space: nowrap;
}

.reset-password-button:hover {
  background: #00b1f0;
  color: #050505;
}

.employee-row-actions,
.edit-form-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.employee-row-actions form {
  margin: 0;
}

.edit-employee-button {
  width: auto;
  min-height: 38px;
  padding: 8px 11px;
  background: #080808;
  color: #fff;
  font-size: 11px;
  white-space: nowrap;
}

.employee-edit-form {
  max-width: 900px;
  margin-inline: auto;
}

.edit-form-actions {
  justify-content: flex-end;
  margin-top: 8px;
}

.edit-form-actions .button,
.edit-form-actions button {
  width: auto;
}

.pilot-notice {
  margin-top: 22px;
  padding: 14px 16px;
  border: 1px solid #f0c36a;
  border-radius: 10px;
  background: #fff8e7;
  color: #704400;
  font-size: 13px;
}

@media (max-width: 820px) {
  .point-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .server-clock {
    width: 100%;
  }

  .install-app {
    right: 12px;
    bottom: 12px;
    width: auto;
  }

  .approval-grid,
  .form-grid {
    grid-template-columns: minmax(0,1fr);
  }

  .page-actions,
  .decision-buttons {
    width: 100%;
  }

  .page-actions .button,
  .decision-buttons button {
    flex: 1 1 160px;
  }

  .employee-actions {
    grid-template-columns: minmax(0,1fr);
  }

  .employee-welcome,
  .section-heading,
  .admin-session-notice,
  .temporary-password {
    align-items: flex-start;
    flex-direction: column;
  }

  .temporary-password code {
    width: 100%;
    text-align: center;
  }

  .live-camera,
  .live-camera video {
    min-height: 330px;
    height: min(52vh, 480px);
  }

  .edit-form-actions {
    align-items: stretch;
    flex-direction: column-reverse;
  }

  .edit-form-actions .button,
  .edit-form-actions button {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .brand-logo {
    width: 82px;
    height: 44px;
  }
}

/* Identidade visual alinhada ao site institucional THERMOENG. */
:root {
  --navy: #050505;
  --blue: #00b1f0;
  --light: #f2f3f4;
  --line: #d8dde1;
  --text: #101214;
  --muted: #60676d;
  --shadow: 0 22px 65px rgba(0, 0, 0, 0.12);
}

body {
  background:
    linear-gradient(rgba(255,255,255,.94), rgba(242,243,244,.96)),
    repeating-linear-gradient(90deg, transparent 0 79px, rgba(0,177,240,.08) 80px);
  font-family: Inter, "Segoe UI", Arial, sans-serif;
}

.topbar {
  height: 86px;
  background: #050505;
  border-bottom: 1px solid #252525;
}

.brand-logo {
  width: 154px;
  height: 76px;
  padding: 1px 4px;
  background: transparent;
  border-radius: 0;
}

.brand-portal,
.topbar nav a,
.topbar .link-button {
  color: #fff;
}

.brand-portal {
  border-left-color: #3a3a3a;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.topbar nav a:hover,
.topbar .link-button:hover {
  color: #00b1f0;
}

h1, h2 {
  color: #080808;
  letter-spacing: -.035em;
}

.eyebrow {
  color: #007eac;
}

.card,
.metrics article,
.document-card,
.auth-shell {
  border-color: #d9dde0;
  border-radius: 12px;
}

.metrics article {
  border-top: 4px solid #00b1f0;
}

.button,
button {
  border-radius: 10px;
  text-transform: uppercase;
  letter-spacing: .035em;
  font-size: 13px;
}

.primary {
  background: #00b1f0;
  color: #050505;
}

.primary:hover {
  background: #19c5ff;
}

.secondary {
  background: #080808;
  color: #fff;
}

.auth-shell {
  max-width: 1080px;
  min-height: 690px;
  border: 1px solid #202020;
}

.auth-card {
  padding: 48px 58px;
}

.auth-aside {
  position: relative;
  overflow: hidden;
  justify-content: center;
  padding: 58px;
  background:
    linear-gradient(145deg, rgba(0,0,0,.96), rgba(5,5,5,.82)),
    repeating-linear-gradient(135deg, transparent 0 36px, rgba(0,177,240,.32) 37px 38px);
}

.auth-aside::before {
  content: "";
  position: absolute;
  width: 310px;
  height: 310px;
  right: -155px;
  top: -155px;
  border: 2px solid rgba(0,177,240,.65);
  border-radius: 50%;
  box-shadow: 0 0 0 34px rgba(0,177,240,.06), 0 0 0 70px rgba(0,177,240,.035);
}

.auth-aside > * {
  position: relative;
  z-index: 1;
}

.auth-aside h2 {
  max-width: 430px;
  color: #fff;
  font-size: clamp(30px, 3vw, 43px);
  line-height: 1.05;
  letter-spacing: -.04em;
}

.auth-aside h2 span {
  display: block;
  color: #00b1f0;
}

.auth-aside p {
  color: #d5d8da;
}

.auth-aside ul {
  margin: 24px 0 38px;
  padding-left: 20px;
  color: #fff;
}

.auth-aside li::marker {
  color: #00b1f0;
}

.portal-kicker,
.industrial-tag {
  color: #00b1f0;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .13em;
}

.industrial-tag {
  padding-top: 18px;
  border-top: 1px solid #353535;
  color: #aab0b4;
}

.login-logo-panel {
  margin-top: -12px;
}

footer {
  background: #050505;
  border-top-color: #242424;
  color: #aeb4b8;
}

@media (max-width: 820px) {
  .topbar {
    min-height: 78px;
    background: #050505;
  }

  .brand-logo {
    width: 118px;
    height: 62px;
  }

  .auth-shell {
    min-height: 0;
  }

  .auth-card {
    padding: 36px 26px;
  }
}
