.autocomplete-container {
  /* relative position for at de absolut positionerede forslag får korrekt placering.*/
  position: relative;
  width: 100%;
}

.autocomplete-container input {
  /* Både input og forslag får samme bredde som omkringliggende DIV */
  width: 100%;
  box-sizing: border-box;
  background: #FFFFFF;
}

.dawa-autocomplete-suggestions {
  margin: 0.3em 0 0 0;
  padding: 0;
  text-align: left;
  border-radius: 0.3125em;
  background: #fcfcfc;
  box-shadow: 0 0.0625em 0.15625em rgba(0, 0, 0, .15);
  position: absolute;
  left: 0;
  right: 0;
  z-index: 9999;
  overflow-y: auto;
  box-sizing: border-box;
}

.dawa-autocomplete-suggestions .dawa-autocomplete-suggestion {
  margin: 0;
  list-style: none;
  cursor: pointer;
  padding: 0.4em 0.6em;
  color: #333;
  border: 0.0625em solid #ddd;
  border-bottom-width: 0;
}

.dawa-autocomplete-suggestions .dawa-autocomplete-suggestion:first-child {
  border-top-left-radius: inherit;
  border-top-right-radius: inherit;
}

.dawa-autocomplete-suggestions .dawa-autocomplete-suggestion:last-child {
  border-bottom-left-radius: inherit;
  border-bottom-right-radius: inherit;
  border-bottom-width: 0.0625em;
}

.dawa-autocomplete-suggestions .dawa-autocomplete-suggestion.dawa-selected,
.dawa-autocomplete-suggestions .dawa-autocomplete-suggestion:hover {
  background: #f0f0f0;
}

/* Order table styles */
.order-container {
  padding: 20px;
  font-family: Arial, sans-serif;
}

.order-title {
  color: #333;
  margin-bottom: 20px;
}

.order-table {
  width: 100%;
  border-collapse: collapse;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
}

.order-table th,
.order-table td {
  padding: 12px;
  text-align: left;
  border-bottom: 1px solid #ddd;
}

.order-table th {
  background-color: #f8f8f8;
  color: #333;
  font-weight: bold;
  border-bottom: 2px solid #ddd;
}

.order-table tr:nth-child(even) {
  background-color: #f2f2f2;
}

.order-table tr:hover {
  background-color: #e6f7ff;
}

.numeric-cell {
  text-align: right;
}

.invalid-field {
  border-color: #dc3545;
  box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25);
}

.invalid-field:focus {
  border-color: #dc3545;
  box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25);
}

.error-message {
  display: block;
  margin-top: 0.25rem;
  margin-bottom: 0.5rem;
}

.back-link {
  display: block;
  color: #6c757d;
  text-decoration: none;
  margin-bottom: 1rem;
  font-size: 0.9rem;
}

.back-link:hover {
  color: #495057;
  text-decoration: underline;
}

/* Validation Styles */
.is-invalid {
  border-color: #dc3545;
  padding-right: calc(1.5em + 0.75rem);
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' width='12' height='12' fill='none' stroke='%23dc3545'%3e%3ccircle cx='6' cy='6' r='4.5'/%3e%3cpath stroke-linejoin='round' d='M5.8 3.6h.4L6 6.5z'/%3e%3ccircle cx='6' cy='8.2' r='.6' fill='%23dc3545' stroke='none'/%3e%3c/svg%3e");
  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);
}

.is-invalid:focus {
  border-color: #dc3545;
  box-shadow: 0 0 0 0.25rem rgba(220, 53, 69, 0.25);
}

.invalid-feedback {
  width: 100%;
  margin-top: 0.25rem;
  font-size: 0.875em;
  color: #dc3545;
}
.log-container {
  padding: 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.log-title {
  text-align: center;
  margin-bottom: 20px;
  color: #333;
}

.table-responsive {
  overflow-x: auto;
}

.log-table {
  width: 100%;
  border-collapse: collapse;
}

.log-table th,
.log-table td {
  padding: 12px;
  text-align: left;
}

.log-table thead {
  background-color: #343a40;
  color: white;
}

.log-table tbody tr:nth-child(even) {
  background-color: #f8f9fa;
}

.log-table tbody tr:hover {
  background-color: #e9ecef;
}

@media (max-width: 768px) {
  .log-table {
    font-size: 14px;
  }

  .log-table th,
  .log-table td {
    padding: 8px;
  }
}

.image-container {
  width: 100%;
  height: 50vh;
  /* This sets the height to half of the viewport height */
  overflow: hidden;
  position: relative;
}

.image-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  /* This ensures we see the middle part of the image */
}

.product-circles {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin: 20px 0;
}
.product-circle {
    width: calc(33.333% - 20px);
    min-width: 200px;
    max-width: 250px;
    cursor: pointer;
    transition: transform 0.2s ease-in-out;
}
.product-circle:hover {
    transform: scale(1.05);
}
.product-circle svg {
    width: 100%;
    height: auto;
}
.product-circle:hover circle {
    stroke: #8b9da3;
    stroke-width: 5;
}
.product-circle:hover button {
    background-color: #8b9da3;
    border-color: #8b9da3;
}
.product-circle h3 {
    margin: 1;
    font-size: 1.5em;
}
.product-circle p {
    margin: 7px 0;
}
@media (max-width: 768px) {
    .product-circle {
        width: calc(50% - 20px);
    }
}
@media (max-width: 480px) {
    .product-circle {
        width: 100%;
    }
}

/* Driftstatus message styling */
/* Adjust drift status item headings */
.drift-item h4 {
  font-size: 1.8rem;
  margin-bottom: 0.5rem;
}
.drift-item h5 {
  font-size: 1.4rem;
  margin-bottom: 0.5rem;
}
/* Ensure markdown headings inside drift items are smaller than date */
.drift-item h1,
.drift-item h2 {
  font-size: 1.3rem;
}
#drift-messages .alert {
    margin-bottom: 1rem;
}
