.field .field__item .contextual-region.node.node--type-item.node--view-mode-minimal-list {
    border-bottom: solid;
    border-bottom: solid;
    margin-bottom: 20px;
    padding: 20px;
}

.field .field__item .field__item .contextual-region.node.node--type-item.node--view-mode-minimal-list {
    border-bottom: none;
}


/* Styles for the container based on hazard classes */
.hazard-class-1 {
  background-color: #d4edda; /* Light green for minor hazards */
  color: #155724; /* Dark green text */
  padding: 10px; /* Add padding for visual separation */
  border-radius: 5px; /* Rounded corners */
  margin-bottom: 10px; /* Spacing between elements */
}

.hazard-class-2 {
  background-color: #fff3cd; /* Light yellow background */
  color: #856404; /* Dark yellow text */
  padding: 10px;
  border-radius: 5px;
  margin-bottom: 10px;
}

.hazard-class-3 {
  background-color: #f8d7da; /* Light red background */
  color: #721c24; /* Dark red text */
  padding: 10px;
  border-radius: 5px;
  margin-bottom: 10px;
}

.hazard-class-4 {
  background-color: #f5c6cb; /* Darker red background */
  color: #721c24; /* Dark red text */
  padding: 10px;
  border-radius: 5px;
  margin-bottom: 10px;
  font-weight: bold;
}




.field--type-entity-reference .field__label 
{font-weight: bold;}


/* Ensure styles only apply in full view mode of the item */
.node--type-item.node--view-mode-full .field--name-field-item-image {
    display: flex;
    justify-content: center; /* Centers horizontally */
    align-items: center; /* Centers vertically if needed */
    text-align: center;
    width: 100%; /* Ensures it spans the full width */
}

/* Ensure the anchor (a) and image are centered */
.node--type-item.node--view-mode-full .field--name-field-item-image a {
    display: flex;
    justify-content: center;
}

/* Override float left on images */
.node--type-item.node--view-mode-full .field--type-image {
    float: none !important;
    margin: 0 auto;
    display: block;
}





/* Ensure the container for both buttons aligns to the right */
#block-asset-reservation-button-reservation-button .content,
#block-reservation-button-staff .content {
    display: flex;
    justify-content: flex-end; /* Align buttons to the right */
    gap: 10px; /* Space between buttons */
    flex-wrap: wrap; /* Allow wrapping on small screens */
}

/* Target reservation buttons without affecting other links */
#block-asset-reservation-button-reservation-button .views-field a,
#block-reservation-button-staff .views-field a {
    display: inline-block;
    padding: 8px 14px;
    font-size: 14px;
    font-weight: bold;
    text-decoration: none;
    border-radius: 4px;
    border: 1px solid #bbb;
    transition: background 0.2s ease-in-out, border 0.2s ease-in-out;
    white-space: nowrap; /* Prevents wrapping inside buttons */
}

/* Specific button styles */
#block-asset-reservation-button-reservation-button .views-field a {
    background-color: #007bff; /* Blue button */
    color: white;
}

#block-asset-reservation-button-reservation-button .views-field a:hover {
    background-color: #0056b3;
}

#block-reservation-button-staff .views-field a {
    background-color: #28a745; /* Green for staff reservation */
    color: white;
}

#block-reservation-button-staff .views-field a:hover {
    background-color: #218838;
}

/* Responsive: Center buttons on small screens */
@media (max-width: 576px) {
    #block-asset-reservation-button-reservation-button .content,
    #block-reservation-button-staff .content {
        justify-content: center;
    }
}


/* Container: target both reservation button blocks */
#block-staff-reservation-button .content,
#block-asset-reservation-button-reservation-button .content {
    display: flex;
    justify-content: flex-end; /* Align buttons to the right */
    align-items: center;
    gap: 10px; /* Space between buttons */
    width: 100%;
}

/* Reservation button styling (Bootstrap 5 look) */
.buttton {
    display: inline-block;
    font-weight: 400;
    color: #fff;
    text-align: center;
    vertical-align: middle;
    user-select: none;
    background-color: #0d6efd;
    border: 1px solid #0d6efd;
    padding: 0.375rem 0.75rem; /* roughly 6px 12px */
    font-size: 1rem;
    line-height: 1.5;
    border-radius: 0.25rem;
    transition: color 0.15s ease-in-out, background-color 0.15s ease-in-out, border-color 0.15s ease-in-out;
    text-decoration: none;
}

.buttton:hover {
    background-color: #0b5ed7;
    border-color: #0a58ca;
    text-decoration: none;
}

/* Responsive: center buttons on very small screens */
@media (max-width: 576px) {
    #block-staff-reservation-button .content,
    #block-asset-reservation-button-reservation-button .content {
        justify-content: center;
    }
}

div#block-asset-reservation-button-reservation-button, div#block-staff-reservation-button {
    border: 0px;
    background: transparent;
}


div#block-staff-reservation-button a.buttton, div#block-asset-reservation-button-reservation-button a.buttton, {
    background: #4082e3;
    border: 1px solid #4082e3
    padding: 10px;
    color: white;
    border-radius: 3px;
}


div#block-staff-reservation-button {
    height: 100%;
    padding: 0px;
    margin: 0px;
}


div#block-staff-reservation-button .views-field.views-field-nothing {
    margin-top: 0px;
}
