@import './animaciones.css';
@import './tabulador.css';
@import './empleadosPeticionNomina.css';
@import './pagoNominaCard.css';
@import './loader.css';

:root {
  --modal-height: calc(100vh - 74px);
  --bluegray: #3f4d67;
  --light-bluegray: #3f4d67ab;
  --lightgray: #f4f7fa;
  --error-red: rgb(255, 128, 128);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  scrollbar-width: thin;
  scroll-behavior: smooth;
}
table {
  border-collapse: collapse;
}
table,
th,
td {
  text-align: center !important;
  padding: 5px;
}
tr {
  transition: background 0.1s ease !important;
}
tr:hover {
  background-color: #c3d1eb !important;
}

.flex-container {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

a {
  border-radius: 10px !important;
}

/* MODAL STYLES */

.modal-window {
  position: fixed;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.5);

  height: 100%;
  width: 100%;
  top: 0;
  left: 0;
  z-index: 1030;

  opacity: 1;
  visibility: visible;
  transition: opacity 0.5s ease;
}
.modal-window.hide {
  visibility: hidden;
  opacity: 0;
  height: 0;
}

.modal-box {
  max-height: 90vh;
  width: 90%;
  max-width: 1000px;
  display: grid;
  grid-template-rows: 80px 1fr 80px;

  padding: 1rem;

  background-color: white;
  /* background-color: white; */
}

.modal-box.short {
  height: auto;
}

.modal-box-header {
  display: flex;

  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  width: 100%;
  height: 80px;
}

.modal-box-content {
  height: 100%;
  overflow: hidden;
  overflow-y: auto;
  padding-bottom: 2rem;
}

.modal-box-footer {
  height: 100%;
}

/* FORM STYLES */

.recovery-form-container {
  margin: auto;
  width: 90%;
  max-width: 350px;
}

#recovery-form-part-3 ul {
  width: 100%;
  background-color: rgb(239, 238, 255);
  list-style: none;
  padding: 1rem;

  border-radius: 0.5rem;
}

#recovery-form-part-3 li {
  display: flex;
  align-items: center;
  font-size: 12px;
  border-radius: 0.5rem;
  padding: 0 1rem;
}

#recovery-form-part-3 li.valid {
  color: green;
}

#recovery-form-part-3 li.invalid {
  color: crimson;
}

.recovery-form-part-3-inputs {
  width: 100%;
}

option {
  padding: 0.5rem 0.5rem;
  border-radius: 0.5rem;
  overflow: hidden;
}

.form-input::placeholder {
  color: #3f4d67a6;
}
.form-control.input-error {
  border: 1px solid var(--error-red);
  border-left: 2px solid var(--error-red);
  border-right: 2px solid var(--error-red);
  opacity: 0.8;
}

.form-container {
  max-width: 800px;
  display: flex;
  align-items: center;
  margin-bottom: 2rem;
  padding: 2rem 0;
  border-radius: 1rem;
  /* background-color: white; */
}

.form-header {
  max-width: 800px;

  display: flex;
  justify-content: space-evenly;
  align-items: center;
  background-color: white;
  padding: 1em 0;
  border-radius: 1rem;
  margin-bottom: 1rem;
  border-top: 2px solid var(--light-bluegray);
}

.form-container {
  border-bottom: 2px solid var(--light-bluegray);
}

.input-error-message {
  position: relative;
  top: 8px;
  background-color: #c74747;
  color: white;
  padding: 0.2rem 0.8rem;
  border-radius: 5px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  background-color: rgb(255, 149, 149);
  opacity: 0.8;
}

.btn-form {
  margin: 1rem auto;
  max-width: 200px;
}
