:root {
  color-scheme: light;
  font-family: Arial, sans-serif;
  background: #f5f5f5;
}

* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  min-height: 100%;
  margin: 0;
  background: #f5f5f5;
}

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

.app-shell {
  min-height: 100dvh;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  background: #f5f5f5;
}

.app-header {
  min-height: 54px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding:
    max(9px, env(safe-area-inset-top))
    16px
    9px;
  background: #181818;
  color: #fff;
}

.brand {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
  font-size: 15px;
  font-weight: 700;
  white-space: nowrap;
}

.brand-icon {
  width: 30px;
  height: 30px;
  flex: 0 0 auto;
}

.estado-ligacao {
  color: #cfcfcf;
  font-size: 12px;
  white-space: nowrap;
}

.estado-ligacao.pronto {
  color: #b7f5ca;
}

.conteudo-app {
  position: relative;
  min-height: 0;
  overflow: hidden;
  background: #f5f5f5;
}

#sistemaFrame {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  background: #f5f5f5;
}

.aviso-offline {
  position: fixed;
  right: 14px;
  bottom: max(14px, env(safe-area-inset-bottom));
  left: 14px;
  z-index: 10;
  display: grid;
  gap: 3px;
  padding: 14px 16px;
  border-radius: 12px;
  background: #272727;
  color: #fff;
  box-shadow: 0 10px 28px rgba(0, 0, 0, .25);
  font-size: 14px;
}

.aviso-offline span {
  color: #d7d7d7;
  font-size: 12px;
}

@media (max-width: 420px) {
  .app-header {
    padding-right: 12px;
    padding-left: 12px;
  }

  .brand {
    font-size: 14px;
  }

  .estado-ligacao {
    font-size: 11px;
  }
}
