* {
  font-family: Arial, Helvetica, sans-serif;
}

.title {
  font-weight: 200;
  font-size: 2.8rem !important;
  color: rgb(49, 52, 61);
  text-align: center;
}

.contenedor-formularios {
  padding: 30px;
  max-width: 700px;
  margin: 20px auto;
  box-shadow: 0 4px 10px 4px rgb(19, 35, 47, .3);
}

html,
body {
  height: 100%;
}

body {
  background-color: #ffffff;
  font-family: 'Segoe UI', sans-serif;
  display: flex;
  flex-direction: column;
}

header,
footer {
  padding: 1rem 0;
  text-align: center;
}

header {
  background-color: #7d7d7d;
  color: white;
}

footer {
  color: #7d7d7d !important;
  font-size: 1rem !important;
}

.main-content {
  display: flex;
  flex: 1;
  justify-content: center;
  align-items: center;
}

.login-card {
  background-color: #ffffff;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 128, 0.2);
  padding: 30px;
  max-width: 400px;
  width: 90%;
  text-align: center;
}



.logo {
  display: block;
  margin: 0 auto 20px auto;
  max-width: 50%;
  height: auto;
}

.login-title {
  color: #000080;
  margin-bottom: 20px;
}

.btn-primary {
  background-color: #000080;
  border: none;
}

.btn-primary:hover {
  background-color: #000055;
}

.error-message {
  color: #dc3545;
  font-size: 0.875em;
  margin-top: 5px;
  text-align: left;
}

.is-invalid {
  border-color: #dc3545;
  padding-right: calc(1.5em + 0.75rem);
  background-repeat: no-repeat;
  background-position: right calc(0.375em + 0.1875rem) center;
  background-size: calc(0.75em + 0.375rem) calc(0.75em + 0.375rem);
}

.autocomplete-materia {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  max-height: 200px;
  overflow-y: auto;
  background: white;
  border: 1px solid #ced4da;
  border-top: none;
  z-index: 1000;
}

.autocomplete-materia-input {
  border: none;
  outline: none;
  flex: 1;
  min-width: 200px;
  background: transparent;
}


/* Estilos para el autocompletado */
.autocomplete-container {
  position: relative;
}

.selected-items-container {
  background-color: white;
  border: 1px solid #aaa;
  border-radius: 4px;
  cursor: text;
  padding-bottom: 5px;
  padding-right: 5px;
  position: relative;
  min-height: 32px;
  box-sizing: border-box;
  display: block;
}

.selected-items-container:focus-within {
  border: solid black 1px;
  outline: 0;
}

#selectedMateriaItems {
  display: inline;
  list-style: none;
  padding: 0;
}

/* Estilos para el elemento seleccionado (igual que Select2) */
.selected-items-container .select2-selection__choice {
  background-color: #e7ecf9;
  border: 1px solid #aaa;
  border-radius: 4px;
  box-sizing: border-box;
  display: inline-block;
  margin-left: 5px;
  margin-top: 5px;
  padding: 0;
  padding-left: 20px;
  position: relative;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  vertical-align: bottom;
  white-space: nowrap;
}

.selected-items-container .select2-selection__choice__display {
  cursor: default;
  padding-left: 2px;
  padding-right: 5px;
}

.selected-items-container .select2-selection__choice__remove {
  background-color: transparent;
  border: none;
  border-right: 1px solid #aaa;
  border-top-left-radius: 4px;
  border-bottom-left-radius: 4px;
  color: #999;
  cursor: pointer;
  font-size: 1em;
  font-weight: bold;
  padding: 0 4px;
  position: absolute;
  left: 0;
  top: 0;
}

.selected-items-container .select2-selection__choice__remove:hover,
.selected-items-container .select2-selection__choice__remove:focus {
  background-color: #E7F5F9;
  color: #333;
  outline: none;
}

.autocomplete-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  max-height: 200px;
  overflow-y: auto;
  background: white;
  border: 1px solid #ced4da;
  border-top: none;
  z-index: 1000;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.15);
}

.autocomplete-item {
  padding: 8px 12px;
  cursor: pointer;
  border-bottom: 1px solid #f8f9fa;
  transition: background-color 0.2s;
}

.autocomplete-item:hover {
  background-color: #f8f9fa;
}

.autocomplete-item:last-child {
  border-bottom: none;
}

.autocomplete-item.selected {
  background-color: var(--primary, #007bff);
  color: white;
}

.autocomplete-item.disabled {
  background-color: #e9ecef;
  color: #6c757d;
  cursor: not-allowed;
}

.autocomplete-materia-input {
  border: none;
  outline: 0;
  background: transparent;
  box-shadow: none;
  appearance: textfield;
  -webkit-appearance: textfield;
  box-sizing: border-box;
  font-size: 100%;
  margin-top: 5px;
  margin-left: 5px;
  padding: 0;
  max-width: 100%;
  resize: none;
  height: 18px;
  vertical-align: bottom;
  font-family: sans-serif;
  overflow: hidden;
  word-break: keep-all;
}

.autocomplete-determinacion-input {
        border: none;
        outline: none;
        background: transparent;
        flex: 1;
        font-size: 14px;
        min-width: 100px;
    }

    /* ===== Snackbar reutilizable ===== */
    .snackbar-toast {
        position: fixed;
        top: 88px;
        right: 24px;
        max-width: 360px;
        min-width: 280px;
        padding: 1rem 1.25rem;
        border-radius: 14px;
        background-color: #0b1d6b;
        color: #ffffff;
        box-shadow: 0 18px 30px -12px rgba(15, 23, 42, 0.45);
        display: none;
        align-items: flex-start;
        gap: 0.75rem;
        opacity: 0;
        transform: translateY(-20px);
        pointer-events: none;
        transition: opacity 0.28s ease, transform 0.28s ease;
        z-index: 1080;
    }

    .snackbar-toast.show {
        display: flex;
        opacity: 1;
        transform: translateY(0);
        pointer-events: auto;
    }

    .snackbar-toast .snackbar-icon {
        font-size: 1.35rem;
        line-height: 1;
        margin-top: 0.15rem;
    }

    .snackbar-toast .snackbar-content {
        flex: 1;
    }

    .snackbar-toast .snackbar-title {
        font-weight: 600;
        margin-bottom: 0.15rem;
    }

    .snackbar-toast .snackbar-message {
        font-size: 0.95rem;
        line-height: 1.35;
    }

    .snackbar-toast .snackbar-close {
        background: transparent;
        border: none;
        color: inherit;
        font-size: 0.9rem;
        margin-left: 0.25rem;
        cursor: pointer;
        padding: 0.15rem;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .snackbar-toast .snackbar-close:focus {
        outline: 2px solid rgba(255, 255, 255, 0.4);
        outline-offset: 2px;
    }

    .snackbar-toast.snackbar-success {
        background-color: #0b1d6b;
        color: #ffffff;
    }

    .snackbar-toast.snackbar-success .snackbar-icon i {
        color: #ffffff;
    }

    .snackbar-toast.snackbar-warning {
        background-color: #7a4f05;
    }

    .snackbar-toast.snackbar-warning .snackbar-icon i {
        color: #ffe07a;
    }

    .snackbar-toast.snackbar-error {
        background-color: #721c24;
    }

    .snackbar-toast.snackbar-error .snackbar-icon i {
        color: #f8b4b8;
    }

    .snackbar-toast.snackbar-info {
        background-color: #0b1d6b;
        color: #ffffff;
    }

    .snackbar-toast.snackbar-info .snackbar-icon i {
        color: #ffffff;
    }

.toast {
  flex-basis: 350px;
  max-width: 350px;
  font-size: 0.875rem;
  background-color: rgba(255, 255, 255, 0.85);
  background-clip: padding-box;
  border: 1px solid rgba(0, 0, 0, 0.1);
  box-shadow: none !important;
  opacity: 1 !important;
  border-radius: 0.25rem;
}

.toast:not(:last-child) {
  margin-bottom: 0.75rem;
}

.toast.showing {
  opacity: 1;
}

.toast.show {
  display: block;
  opacity: 1;
}

.toast.hide {
  display: none;
}

.toast-header {
  display: flex;
  align-items: center;
  padding: 0.25rem 0.75rem;
  color: #6c757d;
  background-color: rgba(255, 255, 255, 0.85);
  background-clip: padding-box;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  border-top-left-radius: calc(0.25rem - 1px);
  border-top-right-radius: calc(0.25rem - 1px);
}

.toast-body {
  padding: 0.75rem;
}

.toast-container {
  position: fixed;
  top: 1rem;
  right: 1rem;
  z-index: 1080;
}

.toast.toast-info {
  background-color: #04c7e0;
}

.toast.toast-success {
  background-color: #239b56;
}

.toast.toast-warning {
  background-color: #fec400;
}

.toast.toast-error {
  background-color: #cb4335;
}

.toast:hover {
  box-shadow: none !important;
}

#toast-container {
  margin-top: 65px;
  right: 0;
  z-index: 9999;
}

#toast-container .toast-success {
  background-color: navy;
  opacity: 1;
}

#toast-container>div {
  box-shadow: none;
}

#toast-container>div:hover {
  box-shadow: none;
}

.divcont {
  width: 100%;
  display: grid;
  justify-content: left;
}

.contbtnrh {
  min-width: 478px;
  max-width: 1600px;
  margin: 5px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(382px, 1fr));
  gap: 24px 16px;
  justify-items: center;
  align-items: start;
}

.contbtnrh a {
  background-color: white;
  box-shadow: rgba(0, 0, 0, 0.14) 0px 1px 1px 0px, rgba(0, 0, 0, 0.12) 0px 2px 1px 0px;
  width: 382px;
  height: 99px;
  border: 1px solid rgba(30, 41, 59, 0.12);
  border-radius: 8px;
  display: grid;
  grid-template-columns: 40px 342px;
  grid-template-areas:
    "icon text";
  justify-items: center;
  align-items: center;
  overflow: hidden;
}

.contbtnrh conti {
  background: transparent;
  background-color: rgba(136, 136, 136, 0.12);
  padding: 33px 0px;
  grid-area: icon;
}

.contbtnrh i {
  height: 33px;
  width: 40px;
  color: black;
  font-size: 28px !important;
  text-align: center;
}

.contbtnrh p {
  width: 326px;

  font-weight: 400;
  font-size: 16px;
  letter-spacing: 0.5px;
  line-height: 20px;
  color: #1E293B;
  opacity: 0.87;
  overflow-wrap: break-word;
  grid-area: text;
}

@media (hover: hover) {
  .contbtnrh a:hover {
    background-color: transparent;
  }
}

.contbtnrh a:visited {
  text-decoration: none;
}

.contbtnrh a:link {
  text-decoration: none;
}

.divRounded {
  border-radius: 12px;
  color: #142c80;
  background-color: #ffffff;
  padding: 0.75rem 1rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 6px 14px rgba(20, 44, 128, 0.08);
}

.divRounded-border {
  border: 1px solid #142c80;
  border-radius: 12px;;
  background-color: #ffffff;
  padding: 0.75rem 1rem;
  margin-top: 0.5rem;
  box-shadow: 0 6px 14px rgba(20, 44, 128, 0.08);
}

.divRounded-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #142c80;
}

.divRounded-header span {
  display: inline-flex;
  align-items: center;
  font-weight: 600;
}

.divRounded-header span i {
  margin-right: 0.5rem;
}

.btnRounded {
  border-radius: 50px;
  border: 1px solid #142c80;
  padding: 0.25rem;
  color: #142c80;
  background-color: #ffffff;
}

.btnRounded:disabled,
.btnRounded[disabled] {
  color: #142c80;
  background-color: #ffffff;
}

.btnRounded.btn-icon {
  padding: 0.25rem 0.55rem;
}

.btnRounded:hover {
  background-color: #142c80;
  color: #ffffff;
}

.tablesFE table thead {
  background-color: #e7ecf9;
  color: #475569;
}

.tablesFE table tbody td {
  background-color: #f8fafc;
}

.tablesFE table tbody tr:nth-child(even) td {
  background-color: #e2e8f0 !important;
}

.tablesFE table tbody tr:nth-child(odd) td {
  background-color: #f8fafc !important;
}

/* Estilos alternativos más específicos */
.tablesFE .table tbody tr:nth-child(even) td {
  background-color: #e2e8f0 !important;
}

.tablesFE .table tbody tr:nth-child(odd) td {
  background-color: #f8fafc !important;
}

/* Efecto hover para hacer las filas más grandes */
.tablesFE table tbody tr {
  transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
  cursor: pointer;
}

.tablesFE table tbody tr:hover {
  transform: scale(1.02);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  z-index: 1;
  position: relative;
}

.tablesFE .table tbody tr {
  transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
  cursor: pointer;
}

.tablesFE .table tbody tr:hover {
  transform: scale(1.02);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  z-index: 1;
  position: relative;
}

.tablesFE .table {
  border-radius: 10px;
  overflow: hidden;
}

/* Timepicker z-index fix para modales */
.ui-timepicker-container {
  z-index: 9999 !important;
}

.ui-timepicker {
  z-index: 9999 !important;
}

hr .hrFE{
  border: 0;
  height: 1px;
  background-color: #142c80;
  color: #142c80;
}

/* Badge con apariencia de botón */
.badge-button {
  cursor: pointer !important;
  border: 2px solid transparent !important;
  border-radius: 8px !important;
  padding: 8px 16px !important;
  font-weight: 600 !important;
  letter-spacing: 0.5px !important;
  transition: all 0.3s ease !important;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1) !important;
  display: inline-block !important;
  text-transform: uppercase !important;
  user-select: none !important;
}

.badge-button:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important;
  border-color: rgba(0, 0, 0, 0.2) !important;
  filter: brightness(1.1) !important;
}

.badge-button:active {
  transform: translateY(0) !important;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1) !important;
}