body {
    margin: 0;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.header-actions {
    width: 100%;
    flex-wrap: nowrap;
}

.header-actions .btn-group {
    flex: 1 1 auto;
    min-width: 0;
}

.store-dropdown {
    min-width: 0;
    flex-basis: 0;
    flex-grow: 1;
}

.action-buttons {
    flex-shrink: 0;
    white-space: nowrap;
    align-items: center;
}

.header-actions .btn-store-dropdown {
    width: 100%;
    min-width: 0;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.header-actions .btn-store-dropdown::after {
    flex-shrink: 0;
    margin-left: 8px;
}

.header-actions .btn-store-dropdown {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.header-actions .dropdown-menu {
    width: 100%;
    max-width: 100%;
}

.header-actions .dropdown-item {
    white-space: normal;
    word-break: break-word;
    overflow-wrap: anywhere;
}

.header-actions .dropdown-item h3,
.header-actions .dropdown-item .mytext {
    white-space: normal;
    margin-bottom: 0;
}

.header-actions #saveButton,
.header-actions #cancelButton,
.header-actions #editButton {
    white-space: nowrap;
    height: 100%;
}

.store-meta-row {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 6px;
}

.store-meta-row i {
    font-size: 1rem;
    line-height: 1.4;
    color: #6c757d;
    flex: 0 0 18px;
    margin-top: 2px;
}

.nogwp {
    color: red;
}

.text-green {
    color: #28a745;
}

.text-red {
    color: #dc3535;
}

.reports-balance-text {
    display: none;
}

.edit-mode .reports-balance-text {
    font-weight: bold;
    display: inline;
    color: #ffffff;
    padding: 2px 6px;
    border-radius: 4px;
}

.bg-green {
    background: #28a745;
}

.bg-red {
    background: #dc3535;
}

.elementCell {
    display: none;
}

.edit-mode .elementCell, .elementCell.is-checked {
    display: inline;
    padding: 10px;
    cursor: pointer;
}

.edit-mode .elementCell.is-checked {
    background-color: #e0a800;
}

.edit-mode .elementCell.add-reports {
    box-shadow: inset 0 0 0 6px #28a745;
}

.edit-mode .elementCell.remove-reports {
    box-shadow: inset 0 0 0 6px #dc3535;
}

.part-number {
    display: none;
}

.edit-mode .part-number {
    display: block;
    text-align: center;
    padding: 4px;
}

input[type=checkbox]{
    transform: scale(2);
    -ms-transform: scale(2);
    -moz-transform: scale(2);
    -webkit-transform: scale(2);
    -o-transform: scale(2);
    accent-color: #e0a800;
    padding: 10px;
}

a {
    color: #e0a800;
}

a:hover {
    color: #e0a800;
    text-decoration: underline;
}

.edit-mode .store-details{
    display: none;
}

.help-badge{
    display: none;
}

.edit-mode .help-badge{
    display: block;
}

.edit-buttons{
    display: none;
}

.edit-mode .edit-buttons{
    display: block;
}

.edit-buttons button{
    margin-bottom: 8px;
}

.item-checkbox{
    display: none;
}

.edit-mode .item-checkbox{
    cursor: pointer;
    display: inline;
}

.elementCells {
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, 120px);
    grid-auto-flow: unset;
    overflow-x: unset;
}

.elementImage {
    height: 100px;
    width: 100px;
    object-fit: contain;
}

.gwpCells {
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, 240px);
    grid-auto-flow: unset;
    overflow-x: unset;
}

.gwpImage {
    height: 220px;
    width: 220px;
    object-fit: contain;
    background: #ffffff;
}

.custom-select {
    font-weight: 600;
}

.form-control:focus {
    border-color: #ffc107;
    box-shadow: 0 0 0 0.2rem rgba(255, 193, 7, 0.25);
}

input::selection {
    background: rgba(255, 193, 7, 0.5);
}

.form-check {
    margin-left: 10px;
    margin-right: 10px;
}

#resultInput {
    background-color: transparent;
}

.text-muted {
    text-align: end;
}

#currencySelect {
    color: #495057;
    text-align: center;
    white-space: nowrap;
    background-color: #e9ecef;
    border: 1px solid #ced4da;
    padding: 0 10px 0 10px;
}

#partColorsList {
    max-height: 350px;
    overflow-y: auto;
    overflow-x: hidden;
}

.autocomplete {
    width: 1%;
    flex: 1 1 auto;
    position: relative;
    display: inline-block;
}

.autocomplete-items {
    position: absolute;
    border: 1px solid #ced4da;
    border-bottom: none;
    border-top: none;
    z-index: 99;
    top: 100%;
    left: 0;
    right: 0;
    max-height: 350px;
    overflow-y: auto;
    overflow-x: hidden;
}

.autocomplete-items .list-group-item {
    cursor: pointer;
}

.legosearch-image-container {
    height: 50px;
    width: 50px;
    background: #ffffff;
}

.legosearch-image {
    width: 50px;
    height: 50px; 
    object-fit: contain;
}

#addSetModal .modal-body, #addPartModal .modal-body {
    padding: 25px;
}

.modal-content-image-center {
    display: block;
    margin: auto;
}

#partColorsDropdownButton {
    color: #495057;
    border: 1px solid #ced4da;
    border-radius: .25rem;
}

#partColorsList {
    width: 90%;
}