:root {
  --menu-width: 200px;
  --content-width: calc(100% - var(--menu-width));
  --navbar-height: 80px;
}

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

body.menu-visible {
  overflow: hidden;
}

footer {
  display: flex;
  align-items: flex-end;
  justify-content: end;

  height: 82px;

  font-family: "Roboto", sans-serif;
  font-size: 0.875em;
  font-weight: 700;

  color: rgba(233, 237, 241, 0.2);
}

footer div {
  display: block;
}

footer * {
  margin: 0;
}

footer a {
  text-decoration: none;
  color: rgba(233, 237, 241, 0.4);
  transition: color 0.2s ease-in-out;
}

footer a:hover {
  color: rgba(233, 237, 241, 0.6);
}

.btn {
  padding: 12px 16px;
}

.btn-deletar {
  background: transparent !important;
  border: 1px solid transparent !important;
}

.menu {
  position: fixed;
  width: 100%;
  height: 100%;

  top: 0;
  left: 0;

  margin-left: -100%;

  transition: all 0.2s ease-in;
}

.menu.active {
  width: 100%;
  margin-left: 0px;

  z-index: 10;
}

.menu .avatar {
  display: flex;
  align-items: center;
  justify-content: center;

  padding: 4px 0px 0px 0px;
}

.menu .avatar img {
  height: 96px;
  width: auto;

  filter: invert(1) contrast(0.5);
}

.menu .hamburguer-button {
  position: absolute;

  top: 1rem;
  right: 1rem;
}

.menu ul {
  display: flex;
  flex-direction: column;

  padding: 0px;
  margin-top: 5rem;

  list-style-type: none;
}

.menu ul li {
  display: flex;

  align-items: center;
  justify-content: center;
  padding: 0 8px;

  margin: 1px 0px;
}

.menu ul li a {
  display: flex;
  flex: 1;

  align-items: center;

  padding: 8px 16px;
  font-weight: bold;

  border-left: 5px solid transparent;
  text-decoration: none;
}

.menu ul li.divider hr {
  width: 90%;
  height: 1px;

  opacity: 0.1;

  overflow: hidden;
}

.content {
  padding: 16px 12px 16px;
}

/* navbar-tools */
.navbar-tools .div-toggler {
  display: flex;
  align-items: center;
  justify-content: space-between;

  padding: 16px;
}

.navbar-tools .nav {
  display: flex;
  flex-direction: column;
}

.navbar-tools .collapse-options .image {
  display: none;
}

.navbar-tools .nav li {
  display: flex;
  align-items: center;
  justify-content: end;

  margin-right: 16px;
  padding: 8px 8px;
}

.navbar-tools .nav li a {
  display: flex;
  justify-content: end;

  width: 100%;
}

.navbar-tools .collapse-options {
  display: none;

  position: absolute;
  right: 18px;
  width: calc(100% - 36px);

  flex-direction: column;
  flex-wrap: nowrap;
  align-items: flex-end;

  padding: 16px 0px;

  box-shadow: 0px 0px 4px 0px rgba(0, 0, 0, 0.1);

  z-index: 9;
}

.hamburguer-button,
.hamburguer-button-tools {
  display: flex;
  align-items: center;
  justify-content: center;
}

.hamburguer-button > :not(:first-child),
.hamburguer-button-tools > :not(:first-child) {
  margin-left: 8px;
}

.hamburguer {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;

  width: 22px;
}

.hamburguer span {
  display: flex;
  position: relative;

  flex: 0 1 auto;

  width: 100%;
  height: 2px;
  background-color: rgba(0, 0, 0, 1);

  margin: 2px 0px;

  transition: transform, 0.3s ease-in-out;
}

.hamburguer.active span:nth-child(1),
.hamburguer.active span:nth-child(3) {
  opacity: 0;
}

.hamburguer.active span:nth-child(2) {
  transform: rotateZ(45deg);
}

.hamburguer.active span:nth-child(2)::after {
  content: "";
  width: 100%;

  background-color: inherit;
  transform: rotateZ(-90deg);
}

.grid-card {
  display: flex;
  justify-content: flex-start;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 4px;
}

.card {
  flex: 1 1 auto;
}

.card .card-footer {
  display: flex;
  align-items: stretch;
  justify-content: end;

  gap: 8px;
}

.card .card-footer a {
  flex: 1;
}

.dialog-popup {
  position: fixed;
  top: 0;
  left: 0;

  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;

  width: 100%;
  height: 100%;

  padding: 12px;

  z-index: 9999;
}

.dialog-content {
  width: 100%;
  max-width: 550px;
  height: auto;

  border-radius: 4px;

  padding: 18px;
}

.dialog-actions {
  width: 100%;
  max-width: 550px;

  display: flex;
  justify-content: end;

  gap: 8px;
}

.dialog-actions .cancelar {
  background: transparent;
  border: 1px solid transparent;
}

.dialog-actions .cancelar:hover {
  background: transparent;
  border: 1px solid transparent;
}

.custom-checkbox {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;

  width: 26px;
  height: 26px;

  cursor: pointer;
}

.custom-checkbox input {
  position: absolute;
  top: 0;
  left: 0;

  width: 100%;
  height: 100%;

  opacity: 0;
  cursor: pointer;

  z-index: 2;
}

.custom-checkbox input:checked:disabled + .checkmark {
  opacity: 0.5;
}

.custom-checkbox .checkmark {
  position: absolute;
  display: flex;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 4px;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  cursor: pointer;
}

.custom-checkbox:hover input ~ .checkmark {
  background-color: rgba(43, 47, 51, 1);
}

.custom-checkbox input:checked ~ .checkmark {
  background-color: rgba(0, 191, 248, 1);
}

.checkmark:after {
  content: "";
  position: absolute;
  display: none;
}

.custom-checkbox input:checked ~ .checkmark:after {
  display: block;
}

.custom-checkbox .checkmark:after {
  left: calc(50% - 3.2px);
  top: 2px;
  width: 8px;
  height: 18px;
  border: 1px solid;
  border-width: 0 3px 3px 0;
  -webkit-transform: rotate(45deg);
  -ms-transform: rotate(45deg);
  transform: rotate(45deg);
}

#file-manager {
  display: block;

  position: fixed;
  top: 0;
  left: 0;

  width: 100%;
  height: 100%;

  z-index: 11;
}

#file-manager .file-manager-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;

  height: 60px;
  padding: 0px 8px;
}

#file-manager .file-manager-actions a {
  text-decoration: none;

  font-size: 0.875rem;
  text-transform: uppercase;
}

#file-manager #close-menu {
  display: flex;
  align-items: center;
  justify-content: flex-end;

  font-size: 0.875rem;
  height: 60px;
  padding: 0px 8px;

  text-transform: uppercase;
}

#file-manager .file-manager-wrapper {
  display: flex;
  height: 100%;

  position: relative;
  width: 100%;
  height: 100%;
}

#file-manager .file-manager-wrapper .folders {
  position: fixed;
  top: 0;
  left: 0;

  margin-left: -100%;

  display: flex;

  width: 100%;
  height: 100%;

  z-index: 9;

  overflow: auto;

  transition: all 0.2s ease-in;
}

#file-manager .file-manager-wrapper .folders.active {
  margin-left: 0;
}

#file-manager .file-manager-wrapper .folders ul {
  display: block;
  position: relative;

  margin: 0;
  padding: 0;

  width: 100%;
  height: auto;

  list-style-type: none;
}

#file-manager .file-manager-wrapper .folders ul li {
  padding: 6px 4px;
  margin: 0;
  margin-right: 1px;

  border-top: 0;
  border-bottom: 0;
}

#file-manager .file-manager-wrapper .files {
  width: 100%;
  overflow: auto;
  padding: 8px;
}

#file-manager .file-manager-wrapper .files .files-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

#file-manager .file-manager-wrapper .files .files-grid .file-item {
  position: relative;

  background-repeat: no-repeat;
  background-position: center center;
  background-size: cover;

  cursor: pointer;
}

#file-manager .file-manager-wrapper .files .files-grid .select-image input {
  position: absolute;
  top: 0;
  right: 0;

  display: block;
  width: 22px;
  height: 22px;

  cursor: pointer;
}

#file-manager .file-manager-wrapper .files .input-file {
  display: flex;
  align-items: center;
  justify-content: center;

  padding: 10px 20px;
  border-radius: 4px;
  cursor: pointer;
}

#file-manager .file-manager-wrapper .folders ul {
  list-style-type: none;
}

#file-manager .file-manager-wrapper .folders ul li {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

#file-manager .file-manager-wrapper .folders ul li button {
  background: none;
  padding: 0px 10px;
}

#file-manager .file-manager-wrapper .folders ul li a {
  text-decoration: none;
  cursor: pointer;
}

#file-manager .file-manager-menu {
  padding: 8px;
}

#file-manager .file-manager-menu ul {
  list-style-type: none;

  padding: 0;
  gap: 8px;

  display: flex;
  align-items: center;
  justify-content: center;
}

#file-manager .file-manager-menu ul li {
  flex: 1 1 auto;
}

#file-manager .file-manager-menu ul li button {
  width: 100%;
}

.selected-categories .btn {
  padding: 4px 12px;
}

#delete-selected, #resend-selected {
  opacity: 0;
  transition: opacity 0.2s ease-in-out;
}

#delete-selected.active, #resend-selected.active {
  opacity: 1;
}

input[data-delete],
input[data-delete-all] {
  width: 1.4rem;
  height: 1.4rem;

  cursor: pointer;
}

.grid-noticias {
  display: flex;
  flex-wrap: wrap;
}

.grid-noticias .noticia {
  display: grid;
  grid-template-columns: 30px auto;

  flex: 1 1 auto;

  width: 100%;
  padding: 12px 0px;
}

.grid-noticias .noticia + .noticia {
  border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.grid-noticias .noticia .title {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.grid-noticias .noticia .title span:first-of-type {
  display: flex;
  align-items: center;
  justify-content: center;

  height: 100%;
}

.grid-noticias .checkbox {
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

.pagination {
  display: flex;
}

.pagination li {
  display: flex;

  border-radius: 2px;
}

.pagination li + li {
  margin-left: 4px;
}

.pagination li a {
  padding: 8px 12px;
  text-decoration: none;
}

.grid-basic {
  display: flex;
  flex-wrap: wrap;
}

.grid-basic .grid-wrapper {
  display: grid;
  grid-template-columns: 30px auto;

  flex: 1 1 auto;

  width: 100%;
  padding: 12px 0px;
}

.grid-basic .grid-wrapper + .grid-wrapper {
  border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.grid-basic .grid-wrapper .title {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.grid-basic .grid-wrapper .title span:first-of-type {
  display: flex;
  align-items: center;

  height: 100%;
}

.grid-basic .checkbox {
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

.grid-fotos {
  display: flex;
  align-items: center;
  justify-content: center;

  flex-wrap: wrap;

  gap: 10px;

  list-style-type: none;
}

.grid-fotos li {
  width: 100px;
  height: 100px;

  display: flex;
  align-items: center;
  justify-content: center;

  background-repeat: no-repeat;
  background-position: center center;
  background-size: cover;
}

.grid-fotos li .overlay {
  width: 100%;
  height: 100%;

  cursor: pointer;
}

.grid-fotos img {
  width: 100%;
  max-width: 200px;
  height: auto;
}

@media (min-width: 768px) {
  .wrapper {
    display: grid;
    grid-template-columns: 225px auto;
    height: calc(100% - var(--navbar-height));
  }

  .menu {
    position: relative;
    display: block;
    margin-left: 0;
    overflow: auto;
  }

  .menu ul {
    margin-top: 1rem;
  }

  .navbar-tools {
    position: relative;

    display: flex;
    align-items: stretch;

    height: var(--navbar-height);
  }

  .navbar-tools .div-toggler {
    display: none;
  }

  .navbar-tools .collapse-options {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    justify-content: space-between;

    position: relative;
    width: 100%;

    padding: 0;

    right: auto;
  }

  .navbar-tools .collapse-options .nav {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    justify-content: center;
  }

  .navbar-tools .collapse-options .image {
    display: block;

    padding: 0px;
    width: 12rem;

    background-size: 90%;
    background-position: 16px center;
    background-repeat: no-repeat;
    background-image: url("../images/logo.png");

    transition: all 0.2s ease-in;
  }

  .navbar-tools .nav li a {
    display: block;
  }

  .navbar-tools .collapse-options .nav li + li {
    margin-left: 8px;
  }

  /* Content */
  .content {
    padding: 16px 24px 16px;
  }

  .menu.closed {
    margin-left: var(--menu-width);
  }

  .change-theme {
    display: flex;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.2s ease-in;
  }

  .navbar-tools .div-toggler .toggle-sidebar,
  .menu .toggle-sidebar {
    display: none;
  }

  .grid-card {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
  }

  .card {
    flex: 1 1 250px;
  }

  .card .card-footer a {
    flex: 0;
  }

  .dialog-content {
    width: 100%;
    max-width: 550px;
    height: auto;

    border-radius: 4px;

    padding: 24px;
  }

  #file-manager #open-menu-file-manager,
  #file-manager #close-menu {
    display: none;
  }

  #file-manager .file-manager-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
  }

  #file-manager .file-manager-wrapper {
    display: grid;
    grid-template-columns: 180px auto;
  }

  #file-manager .file-manager-wrapper .folders {
    display: flex;
    position: relative;

    margin-left: 0;

    width: 100%;
    height: 100%;

    overflow: auto;
    z-index: 9;

    transition: all 0.2s ease-in;
  }

  #file-manager .file-manager-wrapper .files {
    display: block;
    padding: 0px 8px;
  }

  #file-manager .file-manager-wrapper .files .files-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
  }

  #file-manager .file-manager-wrapper .files .files-grid .file-item {
    border-radius: 4px;
  }

  #file-manager .file-manager-menu ul {
    list-style-type: none;

    padding: 0;
    gap: 8px;

    display: flex;
    align-items: center;
    justify-content: flex-end;
  }

  #file-manager .file-manager-menu ul li {
    flex: 0;
  }

  #file-manager .file-manager-menu ul li button {
    width: auto;
  }
}

@media (min-width: 992px) {
  .grid-card {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
  }

  .navbar-tools {
    z-index: 10;
  }

  .navbar-tools .collapse-options .image {
    width: 15rem;
  }

  #file-manager {
    display: block;
  }

  #file-manager #close-menu {
    display: none;
  }

  #file-manager .file-manager-wrapper {
    display: grid;
    grid-template-columns: 180px auto;
  }

  #file-manager .file-manager-wrapper .folders {
    display: flex;
    position: relative;

    margin-left: 0;

    width: 100%;
    height: 100%;

    overflow: auto;
    z-index: 9;

    transition: all 0.2s ease-in;
  }

  #file-manager .file-manager-wrapper .files {
    display: block;
  }

  #file-manager .file-manager-wrapper .files .files-grid {
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    gap: 8px;
  }
}
