* {
    padding: 0;
    margin: 0;
}

.roboto-regular {
    font-family: "Roboto", sans-serif;
    font-weight: 400;
    font-style: normal;
}

body {
    margin: 0;
    padding: 0;
    overscroll-behavior: none; /* Prevents scroll chaining */
    background-color: #f5f5f5;
}

.container {
    max-width: 1440px; /* Adjust max-width as needed */
    margin: 0 auto;
    padding-left: calc(100vw - 100%);
    border-radius: 20px;
    /* border: 1px solid #ccc;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2); */
}

h1, .wrapper {
    padding: 10px;
}

h2 {
    padding: 20px 0 20px 0;
}

.wrapper {
    display: flex;
    gap: 30px;
}

.left-column, .right-column {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.left-column {
    flex: 3;
    flex-shrink: 0;
}

.right-column {
    flex: 7;
}

.input-row {
    display: flex;
    gap: 10px;
}

.row-items {
    gap: 10px;
}

.row-items:first-child {
    flex: 2;
}

.row-items:last-child {
    flex: 1;
}

#quantity {
    text-align: right;
}

.input-section, .inventory-section, .result-section {
    margin-bottom: 10px;
}

label {
    display: block;
    padding-bottom: 5px;
}

input, select, button {
    width: 100%;
    padding: 10px;
    margin-bottom: 10px;
    border: 1px solid #ccc;
    box-sizing: border-box;
    height: 40px;
    border-radius: 10px;

}

button {
    cursor: pointer;
    background-color: #f44336;
    color: white;
    border: none;
}

button:hover {
    background-color: #d32f2f;
}

.inventory-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    gap: 10px;
}

.inventory-item select, .inventory-item input {
    width: calc(50% - 10px); /* Adjust to fit within the inventory-item */
}

.inventory-item button {
    width: calc(25% - 10px); /* Adjust to fit within the inventory-item */
    padding: 10px;
    background-color: #f44336;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

.inventory-item button:hover {
    background-color: #d32f2f;
}

#results {
    display: flex;
    gap: 10px;
    flex-direction: row;
    flex-wrap: wrap;
}

.result-item {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    background-color: white;
    border: 1px solid #ccc;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(147, 147, 147, 0.1);
    flex-direction: column;
    justify-content: center;
    width: 80px;
    height: 80px;
}

.result-item img {
    width: 50px;
    height: 50px;
}

.result-item span {
    font-size: 15px;
    text-align: center;
}

.result-item:hover {
    background-color: #ccc;
}

a {
    text-decoration: none;
    color: #333;
    margin-top: -15px;
}

a:hover {
    text-decoration: underline;
}

.result-section-header {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
}

.view-buttons-group {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    gap: 5px;
}

.view-button {
    cursor: pointer;
    border: 1px solid #f44336;
    background-color: #f44336;
    padding: 5px 10px;
    border-radius: 5px;
    color: #f5f5f5;
}

.view-button:hover {
    background-color: #d32f2f;
}

.tree ul {
    list-style: none;
    margin: 0;
    padding-left: 1rem;
}

.tree li {
    margin: 4px 0;
    list-style: none;
}

.node {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    user-select: none;
}

.toggle {
    width: 18px;
    height: 18px;
    border: 1px solid #f44336;
    border-radius: 3px;
    background: #f44336;
    cursor: pointer;
    font-weight: bold;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    user-select: none;
}

.toggle:disabled {
    background: #333;
}

.collapsed > ul {
    display: none;
}

img.icon {
    width: 20px;
    height: 20px;
    object-fit: contain;
}

.qty {
    margin-left: auto;
    opacity: 0.8;
}