.flex-row {
    display: flex;
    flex-direction: row;
    gap: 0.75rem;
}

.flex-column {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}
.align-center {
    text-align: center;
}

.category-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 1rem 0;
}

.item {
    display: flex;
    flex-direction: column;
    /* gap: 0.75rem; */
    margin-bottom: 1rem;
    padding: 2rem;
    border: 2px solid #ccc;
    border-radius: 10px;
}

.item .individual-device-container {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.device-details {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.device-details * {
    max-width: 700px;
}

.additional-fields {
  display: none;
}

.additional-fields.visible {
  display: grid;
  grid-template-columns: 1fr 1fr 3fr;
  gap: 1rem;
}

.item:not([data-category="indoorstations"]) .additional-fields.visible {
  display: block;
}
.serial-input-container {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    height: fit-content;
}


@media (max-width: 1024px) {
    .device-details {
        display: flex;
        flex-direction: column;
        align-items: stretch;
    }

    .device-details * {
        max-width: 100%;
    }
}

@media screen and (max-width: 668px) {
    .serial-input-container {
        display: flex;
        flex-direction: column;
    }

  .additional-fields.visible {
    grid-template-columns: 1fr;
    flex-direction: column;
    align-items: center;
  }
  
  .additional-fields.visible .form-group {
    width: 100%;
  }

    /* .category-header{
        flex-direction: column;
        align-items: center;
        
    } */
    .item {
        padding: 1.25rem;
    }
}