.imgbox {
  position: relative;
  max-width: 400px;
  max-height: 400px;
  /* display: inline-block; */
  margin: auto;
  /* width: 50%; */
  border-radius: 100%;
  overflow: hidden;
}



#photoImg {
  display: block;
  width: 100%;
  height: 100%;
  /* margin: 10px auto; */
  border-radius: 100%;
  /* overflow: hidden; */
}

.text-hover {
  position: absolute;
  top: 92%;
  left: 50%;
  width: 80%;
  background-color: #777;
  transform: translate(-50%, -50%);
}

.fullimgsbox {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
}

#fullphotoImg {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16/9;
  border-radius: 12px;
  cursor: pointer;
  transition: filter 0.25s ease;
}

.fulltext-hover {
  display: none;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 12px;
  cursor: pointer;
}



.profile {
  margin-left: 10px;
  border-radius: 20px;
  background-color: #fff;
  cursor: pointer;
}

@media print {
  .page-break-before {
    page-break-before: always;
  }
}


.h-auto {
  height: auto !important;
  padding: 0.25rem 0.5rem !important;
}


.custom-select-height {
  height: calc(1.5em + 0.5rem + 2px) !important;
  padding-top: 0rem !important;
  padding-bottom: 0.25rem !important;
  font-size: 0.875rem !important;
  line-height: 1.5 !important;
}

/* DESDE BOOTSTRAP 5 */

.form-floating {
  position: relative;
  margin-top: 0.5rem;
}

.form-floating>.form-control,
.form-floating>.form-select {
  height: calc(2rem);
  padding: 0.5rem 0.75rem;
}

.form-floating>label {
  position: absolute;
  top: 0.225rem;
  left: 0.5rem;
  height: 100%;
  padding: 0;
  pointer-events: none;
  border: 1px solid transparent;
  transform-origin: 0 0;
  transition: opacity 0.1s ease-in-out, transform 0.1s ease-in-out;
}

@media (prefers-reduced-motion: reduce) {
  .form-floating>label {
    transition: none;
  }
}

.form-floating>.form-control::-moz-placeholder {
  color: transparent;
}

.form-floating>.form-control::placeholder {
  color: transparent;
}

.form-floating>.form-control:not(:-moz-placeholder-shown) {
  padding: 0.225rem;
}

.form-floating>.form-control:focus,
.form-floating>.form-control:not(:placeholder-shown) {
  padding: 0.225rem;
}

.form-floating>.form-control:-webkit-autofill {
  padding: 0.225rem;
}

.form-floating>.form-select {
  padding: 0.225rem;
}

.form-floating>.form-control:not(:-moz-placeholder-shown)~label {
  background-color: rgba(0, 0, 0, 0);
  color: rgba(0, 0, 0, .65);
  transform: scale(0.75) translateY(-1.75rem) translateX(0.15rem);
}

.form-floating>.form-control:focus~label,
.form-floating>.form-control:not(:placeholder-shown)~label,
.form-floating>.form-select~label {
  background-color: rgba(0, 0, 0, 0);
  color: rgba(0, 0, 0, .65);
  transform: scale(0.75) translateY(-1.75rem) translateX(0.15rem);
}

.form-floating>.form-control:-webkit-autofill~label {
  background-color: rgba(0, 0, 0, 0);
  color: rgba(0, 0, 0, .65);
  transform: scale(0.75) translateY(-1.75rem) translateX(0.15rem);
}


/* CHECKBOX X */
/* CHECKBOX X - GRANDE Y CON X */
.checkbox-x.form-check-input {
  width: 25px;
  height: 25px;
  transform: scale(1.6) !important;
  margin: 8px;
}

.checkbox-x.form-check-input:checked {
  background-color: #dc3545 !important;
  border-color: #dc3545 !important;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3e%3cpath fill='none' stroke='%23fff' stroke-linecap='round' stroke-linejoin='round' stroke-width='3' d='M6 6l8 8M14 6l-8 8'/%3e%3c/svg%3e") !important;
  background-size: 16px 16px !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
}

/* CHECKBOX X */

.checkbox-x-compact.form-check-input {
  width: 1.35rem;
  height: 1.35rem;
  cursor: pointer;
  border-radius: 4px;
  border: 2px solid #6c757d !important;
  /* Elegant dark grey border */
  background-color: #ffffff !important;
  transition: all 0.2s ease;
}

.checkbox-x-compact.form-check-input:checked {
  background-color: #dc3545 !important;
  /* Distinctive red */
  border-color: #bd2130 !important;
  /* Matching red border */
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3e%3cpath fill='none' stroke='%23fff' stroke-linecap='round' stroke-linejoin='round' stroke-width='3.5' d='M6 6l8 8M14 6l-8 8'/%3e%3c/svg%3e") !important;
  background-size: 0.85rem 1rem !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
}


/* CUSTOM */
#precarga {
  height: 100vh;
  background-color: rgba(150, 150, 150, 0.7);
  display: flex;
  justify-content: center;
  align-items: center;
}


.card-container {
  width: 25%;
  padding-top: 30px;
  padding-right: 15px;
  padding-left: 15px;
  margin-right: auto;
  margin-left: auto;
  min-width: 400px;
}

.btn-xs {
  padding: 0.2rem 0.3rem 0.2rem 0.3rem;
  font-size: 0.7rem;
  line-height: 1;
  border-radius: 0.2rem;
}

.nowrap {
  white-space: nowrap !important;
}

.hidden {
  display: none !important;
}

.disabled {
  pointer-events: none !important;
  opacity: 0.65 !important;
  cursor: not-allowed !important;
}

.form-control[type="date"] {
  font-size: 0.8rem;
}

input.form-control-sm,
select.form-control-sm {
  max-width: 100px !important;
}

.table-pago {
  text-align: center;
  padding: 0.9rem;
  font-size: 1em;
  background-color: #ccc;
}

.alterna {
  background-color: #ddd !important;
}

.table-pago div {
  padding: 0.1rem;
}

.table-pago input {
  background-color: transparent;
  text-align: center;
  border: 0;
  border-bottom: 1px solid blue;
  padding: 0.1rem;
  font-size: .7em;
  min-width: 100%;
}

.table-pago b {
  text-align: center;
  padding: 0.3rem;
}

.table-pago td {
  border: 1px solid #dee2e6;
}

.table-pago thead {
  background-color: #dc3545;
  color: #ffffff;
}

.table-sede {
  width: 100%;
  text-align: left;
  padding: 0.9rem;
  font-size: 1em;
  border: 3px solid #dee2e6;
}

.table-sede th {
  border-bottom: 2px solid #dee2e6;
}

.table-sede td {
  border-bottom: 1px solid #dee2e6;
}

.active {
  background-color: rgba(255, 0, 100, 0.15);
}


.table-ordutegia {
  width: 100%;
  margin-bottom: 1rem;
  color: #212529;
  border: 1px solid;
}

.table-ordutegia th,
.table-ordutegia td {
  padding: 0.1rem;
  vertical-align: top;
  text-align: center;
  border-left: 1px solid;
  border-right: 1px solid;
  border-top: 1px solid;
  border-bottom: 1px solid;
  border-collapse: collapse;
}



.hasi {
  border-bottom: 0px solid !important;
}

.bukatu {
  border-top: 0px solid !important;
}

.jarraitu {
  border-bottom: 0px solid !important;
  border-top: 0px solid !important;
}




.input-sm {
  height: 23px;
  padding: 2px 5px;
  font-size: 1em;
  line-height: 1;
  border-radius: 2px;
  width: 100%;
}

select.input-sm {
  height: 23px;
  line-height: 23px;
}

textarea.input-sm,
select[multiple].input-sm {
  height: auto;
}

.form-group-sm .form-control {
  height: 23px;
  padding: 2px 5px;
  font-size: 1em;
  line-height: 1;
  border-radius: 2px;
}

.form-group-sm select.form-control {
  height: 23px;
  line-height: 23px;
}

.form-group-sm textarea.form-control,
.form-group-sm select[multiple].form-control {
  height: auto;
}

.form-group-sm .form-control-static {
  height: 23px;
  min-height: 32px;
  padding: 2px 5px;
  font-size: 1em;
  line-height: 1;
}




#calendar {
  font-family: Arial;
  font-size: 16px;
}

#calendar caption {
  text-align: left;
  padding: 8px 12px;
  background-color: #003366;
  color: #fff;
  font-weight: bold;
}

#calendar th {
  text-align: center;
  background-color: #006699;
  color: #fff;
  width: 40px;
}

#calendar td {
  text-align: center;
  padding: 3px 4px;
  background-color: silver;
}

.jaieguna {
  background-color: red !important;
}

#calendar .kontzertua {
  color: #00f;
}


.table-multimedia {
  margin-bottom: 1rem;
  color: #212529;
  border: 1px solid;
}

.table-multimedia th,
.table-multimedia td {
  padding: 0.1rem;
  vertical-align: middle;
  text-align: center;
  border-left: 1px solid;
  border-right: 1px solid;
  border-top: 1px solid;
  border-bottom: 1px solid;
}

.kopy:active {
  background-color: #fff;
}



.chip {
  display: inline-block;
  height: 20px;
  min-width: 150px;
  font-size: 10px;
  font-weight: 500;
  color: rgba(0, 0, 0, .6);
  line-height: 20px;
  padding: 0 5px;
  border-radius: 16px;
  background-color: rgba(100, 240, 100, .6);
  margin-bottom: 0;
  margin-right: 0;

  >img {
    float: left;
    margin: 0 8px 0 -12px;
    height: 32px;
    width: 32px;
    border-radius: 50%;
  }

  .close {
    cursor: pointer;
    float: right;
    font-size: 12px;
    line-height: 20px;
    padding-left: 6px;
  }
}

.chip-danger {
  display: inline-block;
  height: 20px;
  min-width: 150px;
  font-size: 10px;
  font-weight: 500;
  color: rgba(0, 0, 0, .6);
  line-height: 20px;
  padding: 0 5px;
  border-radius: 16px;
  background-color: rgba(240, 100, 100, .6);
  margin-bottom: 0;
  margin-right: 0;

  >img {
    float: left;
    margin: 0 8px 0 -12px;
    height: 32px;
    width: 32px;
    border-radius: 50%;
  }

  .close {
    cursor: pointer;
    float: right;
    font-size: 12px;
    line-height: 20px;
    padding-left: 6px;
  }
}

.xs {
  display: inline-block;
  height: 20px;
  font-size: 10px;
  font-weight: 500;
  color: rgba(0, 0, 0, .6);
  line-height: 20px;
  padding: 0 5px;
  border-radius: 16px;
  margin-bottom: 0;
  margin-right: 0;
}


.chip-btn {
  padding: 0.15rem;
  font-size: 0.875rem;
  line-height: 0.8;
  border-radius: 0.2rem;
}


.transparent {
  background-color: transparent !important;
  padding-top: 0 !important;
}

.bg-green {
  background-color: rgba(0, 210, 60, 0.75) !important;
}

.bg-blue {
  background-color: rgba(0, 90, 200, 0.75) !important;
}

.bg-pink {
  background-color: rgba(255, 0, 255, 0.75) !important;
}

.bg-red {
  background-color: rgba(255, 0, 0, 0.75) !important;
}

.bg-yellow {
  background-color: rgba(255, 255, 0, 0.75) !important;
}

.bg-orange {
  background-color: rgba(255, 127, 0, 0.75) !important;
}

.bg-purple {
  background-color: rgba(175, 50, 255, 0.75) !important;
}

.bg-brown {
  background-color: rgba(150, 75, 25, 0.75) !important;
}

.bg-gray {
  background-color: rgba(125, 125, 125, 0.75) !important;
}

.bg-cyan {
  background-color: rgba(0, 200, 255, 0.75) !important;
}

/* HOMEWORK ROW ENHANCEMENTS - V2 - FORCE REFRESH */
.etxekolana {
  border-left: 3px solid #2ecc71 !important;
  /* Thinner indicator */
  background-color: #ffffff !important;
  border-top: 1px solid #f0f0f0 !important;
  border-right: 1px solid #f0f0f0 !important;
  border-bottom: 2px solid #e0e0e0 !important;
  padding: 10px 10px !important;
  /* Compact padding */
  margin-bottom: 20px !important;
  /* Reduced gap */
  border-radius: 6px !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05) !important;
}

@media (min-width: 1200px) {
  .etxekolana {
    border: 0 !important;
    border-left: 0 !important;
    background-color: transparent !important;
    border-bottom: 1px solid #eee !important;
    padding: 0 0 8px 0 !important;
    margin-bottom: 8px !important;
    border-radius: 0 !important;
    box-shadow: none !important;
  }
}

/* ETXEKOLANA ROW RESPONSIVE UTILITIES */
.etxekolana-date-container {
  width: 100%;
}

.etxekolana-check-ber {
  width: 45px;
}

.etxekolana-check-kon {
  width: 50px;
}

@media (min-width: 768px) {
  .etxekolana-date-container {
    width: 110px !important;
    flex-grow: 0 !important;
  }

  .etxekolana-check-ber {
    width: 32px !important;
  }

  .etxekolana-check-kon {
    width: 36px !important;
  }
}
/* MULTIMEDIA PLAYER & UTILITIES */
.mini-player {
  filter: sepia(20%) saturate(70%) grayscale(100%) contrast(99%) invert(12%);
  border-radius: 20px;
}

.hover-bg-light:hover {
  background-color: rgba(0, 0, 0, 0.02);
}

.transition-all {
  transition: all 0.2s ease-in-out;
}

.extra-muted {
  color: #c0c0c0 !important;
}
