@import url("https://pro.fontawesome.com/releases/v6.0.0-beta1/css/all.css");
@import url("https://fonts.googleapis.com/css2?family=Inter:wght@100;200;300;400;500;600;700;800;900&display=swap");

* {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

/* @media (prefers-color-scheme: dark) {
 section#menu {
    background: #ff0000;
  }
} */
:root {
  --coluna-esquerda-largura: 15rem;
  --coluna-direita-largura: 16rem;
  --bar-menu-color: #37424d;
  --bar-menu-font-color: #fff;
  --col-gap: 1rem;
  --col-size: 4rem;
  --grid-size: 7rem;
  --grid-sub: 1rem;
}

:root[data-theme='light'] {
  --coluna-esquerda-largura: 0rem;
  --coluna-direita-largura: 0rem;
  --bar-menu-color: #fff;
  --bar-menu-font-color: #37424d;
}

html::after {
  content: " ";
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  z-index: -20;
  background-image: linear-gradient(#fcfcfc 2px, transparent 2px), linear-gradient(90deg, #fcfcfc 2px, transparent 2px), linear-gradient(#fcfcfc 1px, transparent 1px), linear-gradient(90deg, #fcfcfc 1px, #ffffff 1px);
  background-size: var(--grid-size) var(--grid-size), var(--grid-size) var(--grid-size), var(--grid-sub) var(--grid-sub), var(--grid-sub) var(--grid-sub);
  background-position: -2px -2px, -2px -2px, -1px -1px, -1px -1px;
}

html::before {
  /* content:" "; */
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  z-index: -19;
  background-image: linear-gradient(#ffffff 2px, transparent 2px), linear-gradient(270deg, #ffffff 1rem, transparent 1rem), linear-gradient(#fcfcfc 1px, transparent 1px), linear-gradient(360deg, #09343600 1px, #ffacac1a 1px);
  background-size: var(--col-gap), var(--col-size);
  background-position: calc(1rem / 2);
}

input[type=file] {
  position: absolute;
  top: 0;
  left: 0;
  width: 100px;
  height: 20px;
  display: none;
  pointer-events: auto;
}

div[data-formato] {
  padding: 0.25rem 0 0.25rem 0;
}

div[data-formato] a {
  display: flex;
  gap: 0.4rem;
  text-decoration: none;
  color: #666;
}

div[data-formato] a:hover {
  color: #666;
}

div[data-formato] a input[type='checkbox'] {
  /* margin-left:10px; */
  opacity: 0;
}

div[data-formato] a i {
  color: #56bcf9;
  font-size: 14px;
  pointer-events: none;
}

div[data-formato] a {}

div.diretorio input {
  width: 100%;
  font-size: 0.7rem;
  margin: 0 0 0.25rem 0;
}

iframe {
  border: none;
  width: 100%;
  height: 100%;
}



html {
  scroll-behavior: smooth;
  height: 100%;
  overflow: hidden;
  /*   color-scheme:dark; */
}

body {
  font-family: "Inter", sans-serif;
  font-weight: normal;
}

div.bts {
  display: flex;
  flex-direction: row;
}

[bt] {
  border: 1px solid #007ae5;
  background: #007ae5;
  color: #fff;
  font-weight: bold;
  padding: 0.3rem 0.6rem;
  font-family: "Inter", sans-serif;
  font-size: 0.75rem;
  border-radius: 4px;
  cursor: pointer;
}

button.addlinha,
button.addcoluna {
  color: #666;
  position: absolute;
  background: #fff;
  border-radius: 19px;
  border: 1px solid #f5f5f5;
  padding: 0.3rem 0.5rem;
  user-select: none;
  box-shadow: 1px 1px 3px #0000000d;
}

button.addcoluna {
  left: 50%;
  top: -15px;
  transform: translate(-50%, 0);
}

button.addlinha {
  right: -15px;
  top: 50%;
  transform: translate(0, -50%);
}

div.widget-tabela {
  display: flex;
  align-items: center;
  /*   justify-content: center; */
  padding: 0.25rem 0.25rem;
  border: 1px solid #f5f5f5;
  border-radius: 4px;
  box-shadow: 1px 1px 3px #0000000d;
}

div.logo {
  width: 2.5rem;
}

label {
  display: flex;
  font-size: 0.7rem;
  margin: 0.3rem;
  justify-content: center;
  align-items: center;
  gap: 0.2rem;
}

input[type="number"],
input[type="text"] {
  padding: 0.25rem 0.25rem;
  border: 1px solid #f5f5f5;
  border-radius: 4px;
  margin-right: 4px;
  margin-left: 4px;
  width: 2rem;
  font-size: 0.75rem;
}

section.camadas[data-link] {
  display: none;
  flex-direction: column;
}

div.theme {
  padding: 0rem 0.7rem 0 0;
  margin-left: auto
}

input[type="text"] {
  width: fit-content;
}

input:focus,
input:hover,
table:focus,
table:hover {
  outline: 1px solid #00c9ff;
}

table {
  position: relative;
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 20px;
  border: 1px solid #ddd;
  font-size: 0.8rem;
  display: table;
  table-layout:fixed;
  background-color: #fff;
}


th,
td {
  padding: 8px;
  text-align: left;
  border-bottom: 1px solid #ddd;
  border-right: 1px solid #ddd;
  position: relative;
  text-wrap: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
}

table td[data-coluna="texto"] {
  display: block;
  max-height: 79px;
  overflow: auto;
}

th {
  background-color: #f9f9f9;
  color: #fff;
}

table[data-tabela='tabela'] tr th {
  background-color: #384553;
  color: #fff;
  border-right: 1px solid #61676d;
  border-top: 1px solid #61676d;
}


tbody tr:nth-child(even) {
  background-color: #f5f5f5;
}

table tr:hover {
  background-color: #fffde557 !important;
}

table>tr:nth-child(odd) {
  background-color: #fdfdfd;
}


.button {
  background-color: #4caf50;
  border: none;
  color: white;
  padding: 0.5rem 1rem;
  text-align: center;
  text-decoration: none;
  display: inline-block;
  font-size: 14px;
  margin: 2px 2px;
  cursor: pointer;
  border-radius: 4px;
}


.primary-button {
  background-color: #008cba;
}


.secondary-button {
  background-color: #f44336;
}

.button:hover {
  opacity: 0.8;
}

section#menu {
  display: flex;
  background: var(--bar-menu-color);
  height: 2rem;
  line-height: 1.2;
  color: var(--bar-menu-font-color);
  font-size: 0.75rem;
}

section#menu ul {
  display: flex;
  list-style: none;
}

section#menu ul li {
  margin: 0.2rem 0.2rem;
  padding: 0.35rem;
  /* background-color: #667483; */
  border-radius: 5px;
}


section#menu ul li:hover {
  cursor: pointer;
  background: #6a757f;
}


ul.menu li {
  position: relative;
}

ul.menu ul {
  display: flex;
  flex-direction: column;
  position: absolute;
  top: 1.4rem;
  left: 0;
  width: 220px;
  height: auto;
  background: #2f3b47;
  border: 1px solid #555d65;
  border-radius: 9px;
  /* border-top-right-radius: 0; */
  /* border-top-left-radius: 0; */
  z-index: 9999;
}



ul.menu ul {}

ul.menu li ul li:hover {
  background-color: #18679f !important;
}

ul.menu li ul li ul {
  left: 214px;
  top: 0;
}


section#principal {
  display: grid;
  grid-template-columns: 2.5rem var(--coluna-esquerda-largura) 1fr var(--coluna-direita-largura);
  transition: all ease-in-out 300ms;
}

section>main {
  /*   padding: 1rem; */
}

section[data-link] {
  display: block;
}

section#content {
  height: 100%;
}


section>aside {
  /*   padding: 1rem; */
  display: flex;
  flex-direction: column;
  gap: 1rem;
  height: 100vh;
  overflow: auto;
}

main[data-link='database'] {
  padding: 2rem;
}

section[data-link='database'] ul {
  color: #fff;
  font-size: 0.75rem;
}


section[data-link='database']>ul>li {
  padding: 0.25rem;
  text-align: center;
  border: 1px solid #5c6773;
  margin: 0.25rem;
  border-radius: 4px;
}

section[data-link='database']>ul>ul {
  list-style: inside;
  padding: 0.45rem 1.65rem;
  display: block;
}

section[data-link='database'] ul>li[data-base] {
  cursor: pointer;
  user-select: none;
}

div.diagrama-container {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 1.4rem;

}

div.diagrama {
  display: flex;
  gap: 0.5rem;
  flex-direction: column;
  border: 1px solid #f5f5f5;
  border-radius: 7px;
  width: 180px;
  overflow: hidden;
  box-shadow: 4px 2px 4px 0px #fbfbfb;
  background-color: #fff;
}

div.diagrama h4 {
  padding: 0.35rem;
  padding-left: 0.75rem;
  font-size: 0.8rem;
  color: #fff;
  background-color: #29a0c1;
}

div.diagrama ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  padding: 0.7rem;
  padding-top: 0;
}

div.diagrama ul li {
  font-size: 0.75rem;
  display: flex;
  gap: 0.5rem;
}


div.titulo {
  background: #2f3b47 !important;
  color: #fff;
  padding: 0.4rem;
  font-size: 0.7rem !important;
  /* font-weight: 500; */
  text-transform: uppercase;
}

[fs-1] {
  font-size: 0.75rem;
}

[tab] {
  padding: 0;
  /*   border-right: 1px solid #f5f5f5; */
  background: #2f3b47;
  border-top: 1px solid #404c59;
}

[tab] ul {
  display: flex;
  flex-direction: row;
  list-style: none;
}

[tab][tab-y] ul {
  flex-direction: column !important;
}

[tab] ul li {
  padding: 0.5rem;
  text-align: center;
  color: #8f9ba7;
  border-bottom: 2px solid #2f3b47;
  transition: all ease-in-out 300ms;
}


[tab][tab-100] ul li {
  width: 100%;
}

[tab] ul li:hover,
[tab] ul li[selected-icon] {
  cursor: pointer;
  border-bottom: 2px solid #0089ff;
  color: #fff;
}

aside[bord-left] ul li {
  border: none;
  border-left: 2px solid #2f3b47 !important;
}

aside[bord-left] ul li:hover,
aside[bord-left] ul li[selected-icon] {
  border: none;
  border-left: 2px solid #0089ff !important;
}

[bord-top] ul li {
  border: none;
  border-top: 2px solid #2f3b47;
}

[bord-top] ul li:hover {
  border: none;
  border-top: 2px solid #3f4b57;
  background-color: #3f4b57;
}

[bord-top] ul li>button {
  color: #fff;
  visibility: hidden;
  background: transparent;
  border: none;
}

[bord-top] ul li>button {}

[bord-top] ul li {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  gap: 0.8rem;
}

[bord-top] ul li:hover>button {
  visibility: visible;
  cursor: pointer;
}

[bord-top] ul li[selected-icon] {
  border: none;
  border-top: 2px solid #0089ff;
  background-color: #3f4b57;
}


aside.esquerda {
  gap: 0;
  border: none;
  border-right: 1px solid #404c59;
  background-color: #1f2933;
}

aside.esquerda>section>div>div.bts {
  margin-left: auto;
}

aside.esquerda>section>div {
  display: flex;
  font-size: 0.7rem;
  width: 100%;
}

aside.esquerda>section>div a {
  color: #fff;
}

aside.esquerda>section>div a:hover {
  color: #fff;
}

aside.esquerda>section>div:hover {
  outline: 1px solid #65707d;
  outline-offset: -0.1rem;
  background: #65707d;
  user-select: none;
  cursor: pointer;
}

[selected] {
  outline: 1px solid #0078d4;
  outline-offset: -0.1rem;
  background-color: #04395e;
}

aside.direita {
  border: none;
  background: transparent;
  border-left: 1px solid #f5f5f5;
  color: #666;
}

button[mostrar],
button[excluir] {
  border: none;
  background: transparent;
  padding: 0.2rem;
  color: #666;
  height: 0.8rem;
  line-height: 0.3rem;
}

button[excluir] {
  color: #ff0000;
}

div.rotulo {
  background: #00a4d7;
  width: fit-content;
  padding: calc(0.5rem / 4) 0.7rem;
  border-radius: 4px;
  border-bottom-right-radius: 0;
  border-bottom-left-radius: 0;
  font-size: 0.65rem;
  color: #fff;
}

[oculto] {
  opacity: 0.55;
}

::selection {
  background-color: hsl(60deg 100% 84%);
  color: #666;
}

::-webkit-scrollbar {
  width: 0.4rem;
  background-color: #1f2933;
  height: 10px;
}

::-webkit-scrollbar-thumb {
  background: #dbdbdb;
  border-radius: 1px;
}

/* TOAST */

div.modal-mensagem {
  border-radius: 9px;
  border: 1px solid #d4d4d45c;
  border-left: 4px solid #09ab7bbd;
  padding: 17px;
  background-color: #fff;
  background-image: url(../imagens/check.svg);
  background-size: 22px;
  background-origin: content-box;
  background-position: 7px 13px;
  background-repeat: no-repeat;
  color: #09AB7B;
  position: absolute;
  bottom: 14px;
  left: -360px;
  width: 20rem;
  height: 4.5rem;
  transition: left ease-in-out 400ms;
  display: flex;
  flex-direction: row;
  padding: 12px;
  justify-content: center;
}

div.modal-texto {
  align-items: center;
  justify-content: flex-start;
  display: flex;
  flex-direction: row;
  height: 100%;
  /* margin-left: auto; */
}


div.modal-mensagem span {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  margin-left: auto;
  border-radius: 25px;
  background-color: #fdfdfd;
  width: 48px;
  height: 48px;
}

div.modal-mensagem span i {
  line-height: 48px;
  color: #dbdbdb;
}

div.modal-check {
  background-image: url(../imagens/check.svg);
  background-size: 22px;
  background-origin: content-box;
  background-position: 7px 13px;
  background-repeat: no-repeat;
  width: 50px;
  margin-right: auto;
}


[move] {
  left: 20px !important;
}

/* TOAST */


ul.paginacao {
  list-style: none;
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  align-items: center;
  margin: 0;
  height: 3rem;
}

ul.paginacao li {}

ul.paginacao li a,
div.limitapag li a {
  color: #ADAEBD;
  background-color: #f9f9f9;
  padding: 0.3rem 0.6rem;
  border-radius: 5px;
}

ul.paginacao li a:active,
ul.paginacao li a:focus,
a[selected] {
  color: #fff !important;
  background-color: #64CB83 !important;
}

ul.paginacao li a:hover {
  color: #fff;
  background-color: #64CB83;
  padding: 0.3rem 0.6rem;
  border-radius: 5px;
  cursor: pointer;
}



div.limitapag {
  display: flex;
  gap: 0.6rem;
  width: 300px;
  overflow: hidden;
  height: 2rem;
  align-items: center;
}



button.bt {
  /* width: 120px; */
  color: #fff;
  padding: 0.5rem 1rem;
  background-color: #039be5;
  border: none;
  margin-top: 22px;
  border-radius: 5px;
  cursor: pointer;
}

button.bt-excluir {
  background: #ffffff;
  color: #e58484 !important;
  border: 1px solid #ffe6e6;
  margin-top: 1rem;
  width: 160px;
  border-radius: 1rem;
  display: none;
  height: auto;
}

div.bts {
  display: flex;
  gap: 1rem;
  /* height: 2rem; */
  margin-bottom: 2rem;
}


div.perfil {
  height: 100vh;
  /* max-width: 1200px; */
  width: 100%;
  margin: 0 auto;
  background-color: #1c2229;
  padding: 0;
  margin: auto;
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: start;
  justify-content: start;
  gap: 1rem;
  padding: 4rem;
}

div.perfil h1 {
  color: #fff;
}

ul.menu-contexto {
  list-style: none;
  display: flex;
  flex-direction: column;
  font-size: 0.8rem;
  background: #2f3b47;

}

ul.menu-contexto li {
  color: #fff;
  margin: 4px;
}

ul.menu-contexto li a {
  color: #fff !important;
  padding: 0.5rem 1rem;
  display: block;
  border-radius: 4px;

}

ul.menu-contexto li a:hover {

  background-color: #18679f !important;
  color: #fff !important;
}