body {
  background-color: rgb(255, 251, 251);
  padding: 0 !important;
}

a {
  text-decoration: none;
  color: #000;
}

.msg-bar {
  width: 100%;
  margin: 0px;
  margin-bottom: 0.5px;
}

.info-bar {
  background-color: rgb(144, 154, 214);
}

.success-bar {
  background-color: rgb(144, 214, 144);
}


.error-bar {
  background-color: rgb(252, 124, 124);
}

.bar-close-btn {
  position: absolute;
  top: 0em;
  right: 0.5em;
  text-decoration: none;
  font-weight: bold;
}

/* smooth transition */
[data-bs-toggle="collapse"] .bi-chevron-down {
  transition: transform 0.3s ease;
}

/* CLOSED: collapsed → point right */
[data-bs-toggle="collapse"].collapsed .bi-chevron-down {
  transform: rotate(-90deg);
}

/* OPEN: not collapsed → point down */
[data-bs-toggle="collapse"]:not(.collapsed) .bi-chevron-down {
  transform: rotate(0deg);
}



/* Button style applied uniformly to all <button> elements */
button {
  /* Force consistent box-model and alignment */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  vertical-align: middle;
  box-sizing: border-box;

  /* Visual styles */
  background-color: #ffffff;
  border: 0.5px solid rgb(204, 204, 204);
  color: rgb(0, 0, 0);
  padding: 5px 10px;
  font-size: 16px;
  line-height: 1;
  text-align: center;
  text-decoration: none;
  margin: 4px 2px;
  cursor: pointer;
  border-radius: 3px;

  /* Interaction */
  transition: background-color 0.3s ease;
}

/* Optional hover effect */
button:hover {
  background-color: #f5f5f5;
}

/* Active effect */
button:active {
  background-color: #242424; /* Even darker green when button is pressed */
  box-shadow: 0 5px #666; /* Add a shadow */
  transform: translateY(4px); /* Move the button down slightly */
}

.nav-link {
  cursor: pointer;
}

.form-row {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  margin-bottom: 10px;
}
.form-row label {
  margin-right: 10px;
  min-width: 100px;
}
.form-row input {
  flex: 1;
}
.form-row select {
  flex: 1;
}

.clickable {
  cursor: pointer;
}

.clickable a {
  display: block;
  width: 100%;
  height: 100%;
  text-decoration: none;
  color: inherit;
}

.max-width-field {
  max-width: 20px;
  width: 100%;
  box-sizing: border-box;
}

.small-input {
  width: 60px;
  padding: 4px;
  font-size: 14px;
}

.small-select {
  width: 100px;
  padding: 4px;
  font-size: 14px;
}

.admin-layout-table {
  width: 100%;
}

.admin-layout-cell {
  vertical-align: top;
  width: calc(100vw / 3);
}

@media (max-width: 576px) {
  .dropdown-menu.dropdown-menu-end {
    right: auto;
    left: 0;
  }
}
