@font-face{
  font-family: 'Roboto';
  src: url('../../assets/fonts/roboto/Roboto-Thin.ttf');
  font-style: normal;
  font-weight: 300;
}

@font-face{
  font-family: 'Roboto';
  src: url('../../assets/fonts/roboto/Roboto-Regular.ttf');
  font-style: normal;
  font-weight: 400;
}

@font-face{
  font-family: 'Roboto';
  src: url('../../assets/fonts/roboto/Roboto-Bold.ttf');
  font-style: normal;
  font-weight: 700;
}

:root{
  --color-primary: #393E45;
  --color-secondary: #575E69;
  --color-complement: #292e35;
  --color-highlight: #72A7F2;
  --color-success: #385378;
  --color-ok: #387875;
  --color-danger: #C05050;
  --color-warning: #C4AD5C;
  --color-light: #E1E1E1;
  --color-dark: #1c1c1c;  
  --color-gray: #b9b9b9;
  --color-gray-ligth: #D9D9D9;
  --color-white: #FFFFFF;
}

/*Reset*/
*{
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html{
  width: 100%;
  height: 100%;
}

body {
  width: 100%;
  height: 100%;
  background-color: var(--color-gray);
  font-family: "Roboto", sans-serif;
  font-size: 16px;
  font-weight: 400;
  text-decoration: none;
}

/*Colors*/
.color-primary{
  color: var(--color-primary);
}

.color-secondary{
  color: var(--color-secondary);
}

.color-complement{
  color: var(--color-complement);
}

.color-highlight{
  color: var(--color-highlight);
}

.color-success{
  color: var(--color-success);
}

.color-ok{
  color: var(--color-ok);
}

.color-danger{
  color: var(--color-danger);
}

.color-warning{
  color: var(--color-warning);
}

.color-light{
  color: var(--color-light);
}

.color-dark{
  color: var(--color-dark);
}

.color-gray{
  color: var(--color-gray);
}

.color-gray-light{
  color: var(--color-gray-light);
}

.color-white{
  color: var(--color-white);
}

/*Backgrounds*/
.bg-primary{
  background-color: var(--color-primary);
}

.bg-secondary{
  background-color: var(--color-secondary);
}

.bg-complement{
  background-color: var(--color-complement);
}

.bg-highlight{
  background-color: var(--color-highlight);
}

.bg-success{
  background-color: var(--color-success);
}

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

.bg-danger{
  background-color: var(--color-danger);
}

.bg-warning{
  background-color: var(--color-warning);
}

.bg-light{
  background-color: var(--color-light);
}

.bg-dark{
  background-color: var(--color-dark);
}

.bg-gray{
  background-color: var(--color-gray);
}

.bg-gray-light{
  background-color: var(--color-gray-light);
}

.bg-white{
  background-color: var(--color-white);
}

/*Elements*/
dialog{
  margin: auto;
  padding: 10px;
  width: 100%;
  border-width: 0;
  border-radius: 5px;
  box-shadow: 0 0 0 100vw rgb(0 0 0 / 0%);
  transform: scale(0.1);
  transition: all 0.3s ease-in-out;
  min-height: 10vh;
  max-height: 95vh;
  overflow-y: auto;
  z-index: 200;
}

.dialog-full{
  width: 100%;
}

.dialog-lg{
  width: 80%;
}

.dialog-md{
  width: 50%;
}

.dialog-sm{
  width: 30%;
}

.dialog-scale{
  box-shadow: 0 0 0 100vw rgb(0 0 0 / 60%);
  transform: scale(1);
  transition: all 0.3s ease-in-out;
}

/*General*/
.uppercase{
  text-transform: uppercase;
}

.lowercase{
  text-transform: lowercase;
}

.text-left{
  text-align: left;
}

.text-right{
  text-align: right;
}

.text-center{
  text-align: center;
}

.text-justify{
  text-align: justify;
}

/*Menu*/
.menu_sidebar ul {
  padding: 0;
  margin: 0;
}

.menu_sidebar li {
  list-style-type: none;
}

.menu_sidebar input[type=radio],
.swanky_toogle_button input[type=checkbox]
{
  display: none;
}

.menu_sidebar label {
  cursor: pointer;
}

::-webkit-scrollbar {
  display: none;
}

main{
  position: relative;
  left: 250px;
  top: 0;
  width: calc(100vw - 250px);
  height: 100vh;
  background-color: var(--color-primary);
  z-index: 1;
  transition: all 0.5s ease-in-out;
}

.menu_sidebar{
  position: fixed;
  left: 0;
  top: 0;
  height: 100%;
  transition: all 0.5s ease-in-out;
  z-index: 1000;
  background-color: transparent;
}

.swanky_toogle_button{
  position:absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 60px;
  color: var(--color-light);
  background-color: var(--color-complement);
  border-radius: 0 5px 5px 0;
  top: 0;
  left: 250px
}

.swanky_toogle_button > label{
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  width: 100%;
  height: 100%
}

.swanky_wrapper {
  width: 250px;
  height: 100vh;
  overflow: hidden;
  background-color: var(--color-complement);
}

.swanky_wrapper .swanky_button{
  background-color: var(--color-complement);
  border-bottom: 1px solid var(--color-complement);
  font-size: 16px;
  text-decoration: none;
  color: var(--color-light);
  transition: text-indent 0.15s, height 0.3s;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  width: 100%;
  height: 60px;
  padding-left: 10px;
  transition: all 0.2s ease-in-out;
}

.swanky_wrapper .swanky_button:hover{
  border-bottom: 1px solid var(--color-light);
  background-color: var(--color-secondary);
  transition: all 0.2s ease-in-out;
}

.swanky_wrapper .swanky_button i{
  margin-right: 15px;
}

.swanky_wrapper .swanky_button span{
  width: 170px;
}

.swanky_wrapper .swanky_button .lil_arrow {
  width: 7px;
  height: 7px;
  transition: transform 0.2s;
  border-top: 2px solid var(--color-light);
  border-right: 2px solid var(--color-light);
  float: right;
  position: relative;
  transform: rotate(45deg);
}

.swanky_wrapper .swanky_wrapper__content{
 display: none;
 width: 100%;
}

.swanky_wrapper .swanky_wrapper__content a{
  display: block;
  width: 100%;
  background-color: var(--color-gray);
  color: var(--color-dark);
  height: 48px;
  font-size: 14px;
  font-weight: bold;
  text-decoration: none;
  padding-left: 15px;
  transition: all 0.2s ease-in-out;
}

.swanky_wrapper .swanky_wrapper__content a:hover{
  background-color: var(--color-gray-ligth);
  transition: all 0.2s ease-in-out;
}

.swanky_wrapper .swanky_wrapper__content li{
  display: flex;
  align-items: center;
  justify-content: flex-start;
  width: 100%;
  height: 100%;
  font-size: 14px;
}

.swanky_wrapper .swanky_wrapper__content li i{
  margin-right: 10px;
}
 
/*Estados*/
.swanky_wrapper input[type=radio]:checked + label  > .swanky_button{
  border-bottom: 1px solid var(--color-light);
  background-color: var(--color-secondary);
}

.swanky_wrapper input[type=radio]:checked + label  > .swanky_wrapper__content{
  display: block;
}

.swanky_wrapper input[type=radio]:checked + label .swanky_button .lil_arrow{
  transition: transform 0.2s;
  transform: rotate(135deg);
} 

.swanky_toogle_button input[type=checkbox]:checked + label > i{
  transform: rotate(180deg);
}

.menu_sidebar_closed{
  left: -250px;
  transition: all 0.5s ease-in-out;
}

.content-full{
  width: 100%;
  height: 100%;
  left: 0;
  transition: all 0.5s ease-in-out;
}

/*Componentes Formularios*/
.form-floating{
  position: relative;
  display: block;
  border: 0;
  margin: 0;
}

.form-control,
.form-select{
  display: block;
  width: 100%;
  height: 50px;
  border: 0;
  font-size: 16px;
  border-radius: 5px;
  background-color: var(--color-light);
  outline: 2px solid var(--color-gray);
  box-shadow: 0;
  padding: 5px 5px 5px 5px;
  z-index: 1;
}

.form-control:focus,
.form-select:focus
{
  outline: 2px solid rgb(82 140 222 / 100%);
  box-shadow: 0 0 5px 5px rgb(82 140 222 / 80%);
}

.form-control::placeholder{
  color: #1a1a1a;
  opacity: 0.8;
  font-weight: 700;
}

.form-floating label{
  position: absolute;
  top: 10px;
  left: 5px;
  color: transparent;
  font-size: 16px;
  font-weight: 700;
  pointer-events: none;
  transition: all 0.1s ease-in-out;
}

.form-floating .form-control:focus,
.form-floating .form-control:not(:placeholder-shown),
.form-floating .form-select{
  padding-top: 16px;
}

.form-floating .form-control:focus + label,
.form-floating .form-control:not(:placeholder-shown) + label,
.form-floating .form-select + label{
  position: absolute;
  color: #000;
  display: block;
  font-size: 12px;
  font-weight: 700;
  top: 5px;
  left: 5px;
  z-index: 100;
  transition: all 0.1s ease-in-out;
}

.form-floating .form-control:focus::placeholder  {
  color: transparent;
}

/*Headers*/
.top-header{
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: var(--color-primary);
}

.main-header{
  color: #fff;
  font-size: 30px;
  font-weight: 700;
  text-align: right;
  border-bottom: 1px solid var(--color-gray);
  padding: 30px;
}

.section-header{
  font-size: 20px;
  font-weight: bold;
  text-align: center;
  background-color: #575E69;
  color: #fff;
  padding: 10px;
  border: 0;
  border-radius: 5px;
}

/*Controles*/
.controls{
  display: block;
}

.controls .container-controls{
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--color-gray);
  padding: 10px;
}

/*Botones*/
.btn{
  display: block;
  font-size: 16px;
  font-weight: 700;
  width: 100%;
  height: 40px;
  border: 0;
  border-radius: 5px;
  cursor: pointer;
  transition: all 0.2s ease-in-out;
  text-decoration: none;
}

.btn:hover{
  filter: brightness(130%);
  transition: all 0.2s ease-in-out;
}

.btn-table{
  display: block;
  font-size: 16px;
  font-weight: 700;
  width: 100%;
  height: 40px;
  border: 0;
  border-radius: 5px;
  cursor: pointer;
  transition: all 0.2s ease-in-out;
  text-decoration: none;
}

.btn-table:hover{
  filter: brightness(130%);
  transition: all 0.2s ease-in-out;
}

.btn-dashboard{
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  font-size: 16px;
  font-weight: 700;
  width: 100%;
  height: 100px;
  border: 0;
  border-radius: 5px;
  cursor: pointer;
  transition: all 0.2s ease-in-out;
  text-decoration: none;
}

.btn-dashboard:hover{
  filter: brightness(130%);
  transition: all 0.2s ease-in-out;
}

/*Tables*/
.table{
  width: 100%;
  height: calc( 100% - 168px);
}

.tabulator-cell{
  height: auto !important;
}

/*Catalog*/
.catalog{
  width: 100%;
  margin: auto;
}

.catalog .btn-square{
  display: inline-block;
  width: 30px;
  height: 30px;
  margin-right: 5px;
}

.catalog .header{
  display: flex;
  align-items: center;
  justify-content: flex-start;
  font-size: 16px;
  font-weight: 700;
  background-color: var(--color-white);
  border-bottom: 1px solid var(--color-gray);
  width: 100%;
}

.catalog .header > div{
  padding: 15px;
}

.catalog .header > div:not(:last-child){
  border-right: 1px solid var(--color-gray);
}

.catalog .level-1{
  display: flex;
  align-items: center;
  justify-content: flex-start;
  font-size: 16px;
  font-weight: 700;
  background-color: var(--color-white);
  border-bottom: 1px solid var(--color-gray);
}

.catalog .level-1:hover{
  background-color: var(--color-gray-ligth);
}

.catalog .level-1 > div{
  display: flex;
  align-items: center;
  height: 60px;
  padding: 15px;
  border-right: 1px solid var(--color-gray);
}

.catalog .level-1 > div:last-child{
  border-right: 0;
}

.catalog .level-2{
  display: flex;
  align-items: center;
  justify-content: flex-start;
  font-size: 16px;
  font-weight: 700;
  background-color: white;
  border-bottom: 1px solid var(--color-gray);
}

.catalog .level-2:hover{
  background-color: var(--color-gray-ligth);
}

.catalog .level-2 > div{
  display: flex;
  align-items: center;
  height: 60px;
  padding: 15px;
  border-right: 1px solid var(--color-gray);
}

.catalog .level-2 > div:first-child{
  padding-left: 45px;
}

.catalog .level-2 > div:last-child{
  border-right: 0;
}

.catalog .level-3{
  display: flex;
  align-items: center;
  justify-content: flex-start;
  font-size: 16px;
  font-weight: 700;
  background-color: var(--color-white);
  border-bottom: 1px solid var(--color-gray);
}

.catalog .level-3:hover{
  background-color: var(--color-gray-ligth);
}

.catalog .level-3 > div{
  display: flex;
  align-items: center;
  height: 60px;
  padding: 15px;
  border-right: 1px solid var(--color-gray);
}

.catalog .level-3 > div:first-child{
  padding-left: 75px;
}

.catalog .level-3 > div:last-child{
  border-right: 0;
}

.catalog .level-4{
  display: flex;
  align-items: center;
  justify-content: flex-start;
  font-size: 16px;
  font-weight: 700;
  background-color: var(--color-white);
  border-bottom: 1px solid var(--color-gray);
}

.catalog .level-4:hover{
  background-color: var(--color-gray-ligth);
}

.catalog .level-4 > div{
  display: flex;
  align-items: center;
  height: 60px;
  padding: 15px;
  border-right: 1px solid var(--color-gray);
}

.catalog .level-4 > div:first-child{
  padding-left: 105px;
}

.catalog .level-4 > div:last-child{
  border-right: 0;
}

.hide-entries{
  display: none;
}

.show-entries{
  display: block;
}