.ibox-tools a {
  color: #6b6e70 !important;
}

td {
  vertical-align: middle !important;
}

.container_left {
  width: 20%;
}

.boxItems {
  display: flex;
  position: relative;
  flex-direction: column;
}

.boxItems img {
  transition: all 0.3s linear;
}

.boxItems a {
  position: absolute;
  opacity: 0;
  z-index: 1;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: all 0.3s linear;
  color: white;
}

.boxItems a span {
  text-align: center;
  padding: 3px;
  display: inline-block;
  color: black;
  font-size: large;
}

.boxItems:hover a {
  opacity: 1;
}

.boxItems:hover img {
  opacity: 0.3;
}

/* ========================================
   Bootstrap 5 Migration Compatibility
   ======================================== */

/* BS5 removed close button old class - ensure Inspinia's close buttons work */
.close {
  background: transparent;
  border: 0;
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1;
  opacity: .5;
  padding: 0;
}
.close:hover { opacity: .75; }

/* BS5 adds underline to links by default - remove for sidebar and nav */
#side-menu a, .nav a, .navbar a, .ibox-title a, .ibox-tools a, .breadcrumb a {
  text-decoration: none;
}

/* BS5 changed dropdown-menu positioning */
.dropdown-menu { font-size: 13px; }

/* BS5 nav-tabs active border fix for Inspinia */
.nav-tabs .nav-link.active {
  border-color: #dee2e6 #dee2e6 #fff;
}

/* BS5 ibox border consistency */
.ibox-content { border-color: #e7eaec; }

/* Card visibility — add border and header contrast */
.card {
  border: 1px solid #e7eaec !important;
  background-color: #fff;
}
.card-header:not(.modal-header) {
  background-color: #1ab394 !important;
  border-bottom: 1px solid #18a689 !important;
  color: #fff !important;
}
.card-header h5, .card-header h6, .card-header small, .card-header .text-muted {
  color: #fff !important;
}
.card-header .btn, .card-header a.btn {
  color: #fff !important;
  border-color: rgba(255,255,255,0.4) !important;
}
.card-header .btn:hover, .card-header a.btn:hover {
  background-color: rgba(255,255,255,0.15) !important;
}
.card-header.bg-light {
  background-color: #1ab394 !important;
}
.card.border-0 {
  border: 1px solid #e7eaec !important;
}

/* BS5 form-group spacing (BS5 removed default margin) */
.form-group {
  margin-bottom: 15px;
}

/* BS5 datepicker compatibility */
.datepicker {
  z-index: 1060 !important;
}
.input-group.date {
  flex-wrap: nowrap;
  position: relative;
}
.input-group.date .input-group-text {
  cursor: pointer;
}

/* BS5 input-group border-radius fix */
.input-group > .input-group-text:first-child {
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
}
.input-group > .form-control:not(:first-child),
.input-group > .form-select:not(:first-child) {
  border-top-left-radius: 0;
  border-bottom-left-radius: 0;
}

/* BS5 input-group-text consistent styling */
.input-group-text {
  border-color: #e5e6e7;
}

/* BS5 form-control border to match Inspinia */
.form-control {
  border-color: #e5e6e7;
}
.form-control:focus {
  border-color: #1ab394;
  box-shadow: none;
}

/* Restore Inspinia default body text color (BS5 defaults to #212529) */
body {
  color: #676a6c;
  --bs-body-color: #676a6c;
}

/* Fix Inspinia text/badge colors — Inspinia swaps success(blue) & primary(green)
   but the app uses standard semantics: success=green, danger=red, primary=brand */
.text-success { color: #1ab394 !important; }
.text-danger { color: #ed5565 !important; }
.text-primary { color: #1ab394 !important; }
.text-info { color: #23c6c8 !important; }
.text-warning { color: #f8ac59 !important; }
.text-muted { color: #888888 !important; }

.badge-success, .label-success { background-color: #1ab394 !important; color: #fff !important; }
.badge-danger, .label-danger { background-color: #ed5565 !important; color: #fff !important; }
.badge-primary, .label-primary { background-color: #1ab394 !important; color: #fff !important; }
.badge-warning, .label-warning { background-color: #f8ac59 !important; color: #fff !important; }
.badge-info, .label-info { background-color: #23c6c8 !important; color: #fff !important; }

/* BS5 removed btn-block - restore it */
.btn-block {
  display: block;
  width: 100%;
}

/* BS5 hr styling to match Inspinia */
hr {
  border-top: 1px solid #e7eaec;
  opacity: 1;
}

/* BS5 label display fix */
label {
  margin-bottom: 5px;
}

/* Keep chosen-select dropdown aligned with BS5 form-control height */
.chosen-container-single .chosen-single {
  height: 38px;
  line-height: 36px;
}
