#receipts-container {
    height: 100%;
    display: flex;
    flex-direction: column;
    color: #494949;
}

#receipts-container .search-input {
    margin-top: 0.8rem;
    width: calc(100% - 1.6rem);
    align-self: center;
    border: 2px solid #809cab;
    background-color: #eee;
    border-radius: 3px;
    font-size: 1.4rem;
    padding: 0.3em;
}

#receipts-container .create-btn {
    margin-top: 0.8rem;
    padding: 0.3em;
    min-width: 60%;
    font-size: 1.8rem;
    background-color: #809cab;
    color: #fff;
    border: none;
    border-radius: 3px;
    align-self: center;
}

#receipts-container .receipts-list {
    margin-top: 1rem;
    padding: 1rem 0.8rem;
    border-top: 2px solid #d9d9d9;
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-auto-rows: min-content;
    gap: 0.8rem;
    flex-grow: 1;
    overflow: auto;
}

#receipts-container .receipt-item {
    word-break: break-word;
    padding: 0.3em;
    font-size: 1.4rem;
    background-color: transparent;
    border: 2px solid #d9d9d9;
    background-color: #eee;
    border-radius: 3px;
}

#receipt-items-modal {
    height: 78vh;
}

#receipt-items-modal .products-list-container {
    flex-grow: 1;
    overflow: auto;
    border: solid #d9d9d9;
    border-width: 2px 0;
}

#receipt-items-modal .products-table {
    border-collapse: separate;
    border-spacing: 0;
    table-layout: fixed;
}

#receipt-items-modal .products-table th {
    text-align: center;
    font-size: 0.9rem;
    color: #809cab;
    padding: 0.5em;
    background-color: #eee;
    border-bottom: 2px solid #d9d9d9;
    position: sticky;
    top: 0;
}

#receipt-items-modal .products-table th.reference {
    width: 24%;
}

#receipt-items-modal .products-table th.brand {
    width: 22%;
}

#receipt-items-modal .products-table th.variant {
    width: 26%;
}

#receipt-items-modal .products-table th.size {
    width: 14%;
}

#receipt-items-modal .products-table th.quantity {
    width: 14%;
}

#receipt-items-modal .products-table td {
    text-align: center;
    border-bottom: 2px solid #d9d9d9;
    font-size: 0.9rem;
    padding: 1em 0.2em;
    word-break: break-word;
}

#receipt-items-modal .products-table tr:last-child td {
    border: none;
}