/* ========== RESET & MOBILE FIRST ========== */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: "Segoe UI", sans-serif;
  background-color: #f4f4f4;
}

.layout--sidebar-open .topbar,
.layout--sidebar-open .footer,
.layout--sidebar-open .toolbar {
  width: calc(100% - 100px);
  left: 100px;
  transition: all 0.3s ease;
}

.layout--sidebar-closed .topbar,
.layout--sidebar-closed .footer,
.layout--sidebar-closed .toolbar {
  width: 100%;
  left: 0;
  transition: all 0.3s ease;
}

.layout--sidebar-closed .toolbar,
.layout--sidebar-closed .toolbar table,
.layout--sidebar-closed .toolbar table tbody,
.layout--sidebar-closed .toolbar table tbody tr {
  overflow-y: auto;
  position: relative;
  max-height: calc(100% - 250px);
}

.layout--sidebar-closed .toolbar table {
  position: relative;
  max-height: calc(100% - 250px);
}



/* ========== HEADER (Topbar) ========== */
.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #005aab;
  color: white;
  padding: 10px 16px;
  height: 60px;
  position: fixed;
  width: 100%;
  top: 0px;
  right: 0px;
  z-index: 1002;
}

.topbar__hamburger {
  font-size: 28px;
  background: none;
  border: none;
  color: white;
  cursor: pointer;
}

.topbar__user {
  display: flex;
  align-items: center;
  gap: 6px;
}

.topbar__user-icon {
  font-size: 18px;
}

.topbar__user-name {
  font-size: 14px;
}

/* ========== SIDEBAR ========== */
.sidebar {
  position: fixed;
  top: 0;
  left: -100%;
  width: 100px;
  max-width: 250px;
  height: 100vh;
  background-color: white;
  transition: left 0.3s ease;
  z-index: 1001;
  overflow: auto;
}

.sidebar__logo-wrapper {
  display: flex;
  flex-direction: column;
  justify-content: Center;
  margin: 10px 0px 0px 0px;
}

.sidebar__logo-wrapper h1 {
  color: #222;
  text-align: center;
  font-size: 0.8rem;
  display: none;
}

.sidebar__logo {
  width: 40px;
  height: 40px;
  margin-left: 25px;
  margin-bottom: 20px;
}

.sidebar--open {
  left: 0;
}

.sidebar__menu {
  list-style: none;
}

.sidebar__link {
  display: block;
  color: #222;
  padding: 15px 15px 15px 35px;
  text-decoration: none;
}

.sidebar__link i {
  margin-right: 30px;
}

.sidebar__link span {
  display: none;
}

.sidebar__link:hover {
  background-color: rgb(240, 239, 239);
  color: #005aab;
}

.toolbar {
  display: flex;
  flex-direction: column;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 80px;
  width: 100%;
  padding: 10px;
  right: 0px;
  position: fixed;
  overflow-y: auto;
}

.main{
  display: flex;
  flex-direction: column;
  /* flex-wrap: wrap; */
  /* gap: 60px; */
  width: 100%;
  padding: 10px;
  /* margin-top: 10px; */
}

.main input {
  width: 100%;
  flex: 1;
  padding: 8px;
  border: 1px solid #ccc;
  border-radius: 6px;
}

.fixed{
  position: fixed;
  /* display: flex; */
  /* flex-direction: row; */
  /* flex-wrap: wrap; */
  /* gap: 20px; */
  width: auto;
  margin-top: 60px;
}

.toolbar input {
  width: 100%;
  flex: 1;
  padding: 8px;
  border: 1px solid #ccc;
  border-radius: 6px;
}

.btn {
  width: 100px;
  background-color: #2c9747;
  color: white;
  text-decoration: none;
  border: none;
  padding: 8px 12px;
  border-radius: 6px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 5px;
}

/* ==========TABLA=============== */
table-container {
  overflow-x: auto;
  overflow-y: auto;
  position: relative;
  max-height: calc(100% - 250px);
}

table tbody {
  position: relative;
  max-height: calc(100% - 250px);
}

thead {
  /* position: fixed; */
  background-color: #0055a5;
  color: white;
}

th,
td {
  padding: 12px 15px;
  text-align: left;
  font-size: 0.9rem;
}

td {
  color: #333;
}


button.edit {
  background-color: #4caf50;
  color: white;
  border: none;
  padding: 6px 10px;
  margin-right: 5px;
  border-radius: 4px;
  cursor: pointer;
}

button.delete {
  background-color: #f44336;
  color: white;
  border: none;
  padding: 6px 10px;
  border-radius: 4px;
  cursor: pointer;
}

/* ==========FOOTER=============== */

.footer {
  background-color: #005aab;
  color: white;
  font-size: 0.8rem;
  display: flex;
  position: fixed;
  justify-content: center;
  align-items: center;
  bottom: 0;
  height: 50px;
  line-height: 50px;
  text-align: center;
  z-index: 1001;
}

/* ==========SALIDA=============== */

.modal__input {
  width: 100%;
  padding: 8px;
  font-size: 14px;
  border: 1px solid #ccc;
  border-radius: 4px;
}

.salida {
  display: flex;
  flex-direction: column;
  margin: 1rem;
  margin-bottom: 50px;
  padding: 2rem;
}

.contenedorSalida{
  display: flex;
  flex-direction: column;
  margin-bottom: 50px;
  padding-left: 2rem;
}

#botonActualizar{
  width: 125px;
  justify-content: center;
}

#selectTiposEgreso{
  padding: 10px;
}

/* ========== MEDIA QUERY (desktop) ========== */
@media (min-width: 1024px) {

  .layout--sidebar-open .topbar,
  .layout--sidebar-open .footer,
  .layout--sidebar-open .toolbar {
    width: calc(100% - 250px);
    left: 250px;
    transition: all 0.3s ease;
  }

  .layout--sidebar-closed .topbar,
  .layout--sidebar-closed .footer,
  .layout--sidebar-closed .toolbar {
    width: 100%;
    left: 0;
    transition: all 0.3s ease;
  }

  .sidebar__logo-wrapper h1 {
    color: #222;
    text-align: center;
    font-size: 0.8rem;
    margin-bottom: 10px;
    display: block;
  }

  .sidebar {
    width: 250px;
  }

  .sidebar__link span {
    display: inline-block;
  }

  .topbar {
    width: 82%;
  }

  .toolbar {
    width: 82%;
    margin-right: 70px;
  }

  .topbar__user-name {
    font-size: 16px;
  }

  /* Logo en la barra lateral */
  .sidebar__logo-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 15px;
  }

  .sidebar__logo {
    width: 80px;
    height: 80px;
  }

  .toolbar input {
    width: 50%;
  }

  /* Salida Detenido */
  #fechaSalida input{
    width: 90%;
  }

  

}

@media screen and (max-width: 600px) {
  table {
    background-color: transparent;
    border-color: transparent;
    border: none;
  }

  table,
  thead,
  tbody,
  th,
  td,
  tr {
    display: block;
  }

  thead {
    display: none;
  }

  tr {
    background-color: white;
    margin-bottom: 20px;
    padding: 15px;
    border-radius: 10px;
    border-left: 5px solid #0055a5;
  }

  td {
    padding: 10px 15px;
    padding-left: 50%;
    position: relative;
  }

  td:last-child {
    border-bottom: none;
  }

  td::before {
    content: attr(data-label);
    position: absolute;
    left: 15px;
    top: 10px;
    bottom: 10px;
    font-weight: bold;
    color: #0055a5;
  }

  td:nth-of-type(1)::before {
    content: "Documento:";
  }

  td:nth-of-type(2)::before {
    content: "Nombre:";
  }

  td:nth-of-type(3)::before {
    content: "Apellido:";
  }

  td:nth-of-type(4)::before {
    content: "Fecha de Ingreso:";
  }

  td:nth-of-type(5)::before {
    content: "Acciones:";
  }

  /* .toolbar{
    margin-top: 60px;

  } */
}

::-webkit-scrollbar {
    display: none
}