/*%%%%%%%%%%%%%%%%*/
/*-----  Top  -----*/
/*%%%%%%%%%%%%%%%%*/
/* #region */
html {
  box-sizing: border-box;
  font-size: 100%;
}

*,
*:before,
*:after {
  box-sizing: inherit;
}

body {
  font-family: "Poppins", sans-serif;
  font-size: 1rem;
  line-height: 2;
  padding: 0;
}
/* #endregion */

/*%%%%%%%%%%%%%%%%*/
/*-----  Globales  -----*/
/*%%%%%%%%%%%%%%%%*/
/* #region */
.contenedor {
  max-width: 75rem;
  margin: 0 auto;
}

h1,
h2,
h3,
h4 {
  text-align: center;
  color: black;
}

h1 {
  font-size: 2.8125rem;
}

h2 {
  font-size: 2.5rem;
}

h3 {
  font-size: 2.1875rem;
}

h4 {
  font-size: 1.875rem;
}

img {
  max-width: 100%;
}

p {
  font-size: 0.9375rem;
}

a {
  font-size: 0.9375rem;
  text-decoration: none;
}

/* width */

::-webkit-scrollbar {
  width: 10px;
}
/* Track */

::-webkit-scrollbar-track {
  background: #f1f1f1;
}

/* Handle */

::-webkit-scrollbar-thumb {
  background: rgb(177, 177, 177);
  border-radius: 3px;
}

/* Handle on hover */

::-webkit-scrollbar-thumb:hover {
  background: #000000;
}

.admin-content {
  height: 90vh;
  width: 100%;
}

.span-space {
  display: inline-block;
  width: 5px;
}
button {
  background-color: var(--mdark); /* Green */
  border: none;
  color: var(--light);
  padding: 5px;
  text-align: center;
  text-decoration: none;
  display: inline-block;
  font-size: 16px;
}
/* #endregion */

/*%%%%%%%%%%%%%%%%*/
/*-----  Variables  -----*/
/*%%%%%%%%%%%%%%%%*/
/* #region */
:root {
  --dark: #000000ff;
  --mdark: #1b2d53;
  --medium: #fca311ff;
  --mlight: #e5e5e5ff;
  --light: #ffffffff;

  --fontweight-light: 200;
  --fontweight-normal: 400;
  --fontweight-bold: 700;

  --shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
  --textshadow: 2px 2px 3px var(--dark);
}
/* #endregion */

/*%%%%%%%%%%%%%%%%*/
/*-----  Sidebar  -----*/
/*%%%%%%%%%%%%%%%%*/
/* #region */

.sidebar {
  position: fixed;
  background-color: var(--mdark);
  z-index: 5;
  height: 100vh;
  width: 40vw;
  left: -45vw;
  top: 0;
  max-width: 25rem;
  box-shadow: var(--shadow);
  transition: all 800ms ease-in-out;
  overflow-y: scroll;
  padding-top: 1rem;
}

.sidebar.active {
  left: 0;
  transition: all 600ms ease-in-out;
}

@media (max-width: 900px) {
  .sidebar {
    width: 80vw;
    left: -85vw;
    max-width: unset;
  }

  .sidebar.active {
    left: 0;
    transition: all 1s ease-in-out;
  }
}

.sidebar li {
  list-style-type: none;
  color: var(--light);
  font-size: 0.9375rem;
  margin-bottom: 0rem;
  text-shadow: var(--textshadow);
}

.sidebar i {
  margin: 0 0.625rem 0 0.625rem;
  font-size: 0.625rem;
}

.sidebar ul {
  padding: 0 1.25rem;
}

.sidebar a {
  text-decoration: none;
  color: var(--light);
  text-shadow: var(--textshadow);
  transition: all 300ms ease-in-out;
}

.sidebar a:hover {
  color: var(--medium);
  transition: all 300ms ease-in-out;
}

.sidebar-child ul {
  padding-left: 1.875;
}

.sidebar-child li {
  font-size: 0.75rem;
  margin-bottom: 0rem;
}

.sidebar-btn-container {
  height: 1.875;
  width: 100%;
  position: relative;
}

.sidebar-btn {
  position: absolute;
  top: 0;
  right: 0;
  padding: 5px;
}

.sidebar-btn i {
  font-size: 1.375rem;
  color: var(--light);
}
/* #endregion */

/*%%%%%%%%%%%%%%%%*/
/*-----  Header  -----*/
/*%%%%%%%%%%%%%%%%*/
/* #region */
.header {
  height: 3.75rem;
  width: 100%;
  box-shadow: var(--shadow);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.625rem 1.875rem;
  margin-bottom: 1.25rem;
}

.header-logo {
  background-image: url(../imgs/logos/logo.png);
  height: 3.125rem;
  width: 6.25rem;
  background-position: center center;
  background-size: contain;
  background-repeat: no-repeat;
}

.header-user {
  color: var(--mlight);
}
/* #endregion */

/*%%%%%%%%%%%%%%%%*/
/*-----  Title  -----*/
/*%%%%%%%%%%%%%%%%*/
/* #region */
.title {
  padding: 0 2.5rem;
}

.title h1 {
  font-size: 1.875rem;
  text-align: left;
  font-weight: var(--fontweight-normal);
}
/* #endregion */

/*%%%%%%%%%%%%%%%%*/
/*-----  Datatable  -----*/
/*%%%%%%%%%%%%%%%%*/
/* #region */
.datatable-container {
  margin: 1.25rem;
  padding: 1.25rem;
  border: solid var(--mlight) 1px;
  border-radius: 0.625rem;
  max-width: 100%;
}

.paginate_button {
  padding: unset !important;
}

.datatable-img img {
  height: 9.375rem;
  width: 9.375rem;
  object-fit: cover;
  object-position: center center;
}

th {
  font-size: 0.875rem;
  font-weight: var(--fontweight-normal);
}
/* #endregion */

/*%%%%%%%%%%%%%%%%*/
/*-----  Accordion  -----*/
/*%%%%%%%%%%%%%%%%*/
/* #region */
.accordion {
  background-color: #eee;
  color: #444;
  cursor: pointer;
  padding: 18px;
  width: 100%;
  text-align: left;
  border: none;
  outline: none;
  transition: 0.4s;
}

.accordion.active,
.accordion:hover {
  background-color: #ccc;
}

.panel {
  display: block !important;
  animation: show-anim 500ms ease-out forwards;
}

.panel-hide {
  animation: hide-anim 500ms ease-out forwards;
}

@keyframes hide-anim {
  0% {
    max-height: min-content;
    opacity: 100%;
  }
  100% {
    opacity: 0%;
    max-height: 0;
    margin: 0;
    padding: 0;
    overflow: hidden;
  }
}
@keyframes show-anim {
  0% {
    opacity: 0%;
    max-height: 0;
    margin: 0;
    padding: 0;
    overflow: hidden;
  }
  100% {
    opacity: 100%;
    max-height: min-content;
  }
}
/* #endregion */

/*%%%%%%%%%%%%%%%%*/
/*-----  Form  -----*/
/*%%%%%%%%%%%%%%%%*/
/* #region */
.form-container {
  margin: 0.625rem;
  padding: 0.625rem;
  border: solid 1px var(--mlight);
  border-radius: 0.625rem;
  display: flex;
  justify-content: flex-start;
  align-items: center;
  flex-direction: column;
}

.form-container form {
  width: 100%;
}

.form-section {
  width: 100%;
  padding: 0.625rem;
  display: flex;
  justify-content: flex-start;
  align-items: center;
  flex-direction: column;
}

.form-row {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.form-row > * {
  width: 100%;
  margin: 0.3125rem;
}

.form-row i {
  max-width: 1.25rem;
}

.form-item {
  width: 100%;
  padding: 0.625rem;
  margin: 0.625rem;
  background-color: var(--mlight);
  border: 1px transparent solid;
  border-radius: 0.625rem;
}

.form-row input[type="checkbox"] {
  width: max-content;
}

.form-row textarea {
  width: 100%;
}

fieldset {
  display: flex;
  justify-content: space-around;
  align-items: center;
}

fieldset > * {
  width: 100%;
  align-self: center;
}

.form-label {
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: left;
  width: 100%;
  text-align: left;
}

.form-button {
  margin: 0 0.3125rem;
  width: 1.25rem;
}

.form-button i {
  transform: rotateZ(0deg);
  transition: all 200ms ease-in-out;
}

.form-button i:hover {
  transform: rotateZ(90deg);
  transition: all 200ms ease-in-out;
}

.form-card {
  width: 100%;
  background-color: var(--mlight);
  box-shadow: var(--shadow);
  margin-bottom: 1.25rem;
}

.form-label-fixed {
  max-width: max-content;
}

input[type="radio"],
input[type="checkbox"] {
  margin-right: 0.625rem;
}
/* #endregion */

/*%%%%%%%%%%%%%%%%*/
/*-----  Button  -----*/
/*%%%%%%%%%%%%%%%%*/
/* #region */
.btn {
  transform: scale(1);
  transition: all 200ms ease-in-out;
}

.btn:hover {
  cursor: pointer;
  transform: scale(0.95);
  transition: all 200ms ease-in-out;
}
/* #endregion */

/*%%%%%%%%%%%%%%%%*/
/*-----  Images-grid  -----*/
/*%%%%%%%%%%%%%%%%*/
/* #region */
.img-grid {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(12.5rem, 1fr));
  gap: 1.25;
  padding: 1.25;
}

.img-grid-card {
  width: 12.5rem;
  height: 12.5rem;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: row;
  padding: 0.625rem;
  border-radius: 5%;
  box-shadow: var(--shadow);
  justify-self: center;
  overflow: hidden;
  background-size: cover;
  background-position: center center;
}

.img-grid-card p,
.img-grid-card i,
.img-grid-card a {
  margin: 8px;
  text-align: center;
  color: white;
  text-shadow: var(--textshadow);
}
/* #endregion */

/*%%%%%%%%%%%%%%%%*/
/*-----  Login  -----*/
/*%%%%%%%%%%%%%%%%*/
/* #region */
.login {
  height: 100vh;
  width: 100%;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: var(--mlight);
}

.login-container {
  padding: 3.125rem;
  background-color: var(--light);
}

.login-logo {
  background-image: url(../imgs/logos/logo.png);
  height: 9.375rem;
  width: 12.5rem;
  background-position: center center;
  background-size: contain;
  background-repeat: no-repeat;
}
/* #endregion */

/*%%%%%%%%%%%%%%%%*/
/*-----  mySweetalert  -----*/
/*%%%%%%%%%%%%%%%%*/
/* #region */
.swal2-popup {
  width: unset;
  font-size: 0.75rem;
}
/* #endregion */

.card-dash {
  transform: scale(.95);
  transition: all .15s ease-in;
}

.card-dash:hover, .card-dash:focus, .card-dash:active {
  transform: scale(1);
  filter: brightness(120%);
  box-shadow: rgba(149, 157, 165, 0.2) 0px 8px 24px;
}

.card-top {
  overflow: scroll;
  height: 352px;
}

.card-item {
  box-shadow: rgba(149, 157, 165, 0.2) 0px 8px 24px;
  border: 1px solid rgba(149, 157, 165, .5);
  border-radius: 4px;
  padding: 4px;
  transform: scale(.9);
  transition: all 115ms ease-in;
}

.card-item:hover {
  transform: scale(1);
  filter: brightness(120%);
  cursor: pointer;
}

.header-redirect a {
  text-decoration: none;
  color: inherit;
}

.card-item .card-item-eye {
  opacity: 0;
  transition: opacity 100ms ease-in-out;
}

.card-item:hover .card-item-eye {
  opacity: 100%;
}
