/******
Order Info
 */

#orders {
}

#ordersHeader {
    margin-bottom: 20px;
}

#ordersSearch {
    margin-bottom: 20px;
    display: grid;
    row-gap: 10px;
}

#ordersSearchStatus,
#ordersSearchInput,
#ordersSearchTag {
    display: block;
    width: 100%;
    padding: 15px;
    font-size: 16px;
    background-size: 16px 12px;
    border: 1px solid #ced4da;
    border-radius: 0.25rem;
    appearance: none;
}

#ordersSearchSubmit {
    width: fit-content;
}

#ordersBody {

}

/**********
Order Bulk
 */

#ordersBulk {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    padding: 10px;
    border: 1px solid var(--blue);
    flex-wrap: wrap;
}


#ordersBulkTitle {
    width: 100%;
    font-weight: 700;
}

#ordersBulk .button {
    width: fit-content;
}

/**********
Order Footer
 */

#ordersFooter {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    align-items: center;
}

#ordersFooterPerPage {
}

#ordersFooterPages {
}

#orderFooterManual {
    max-width: 200px;
    text-decoration: underline;
    cursor: pointer;
}

/***********
Order Modal
 */

#orderModal {
}

.orderModalTitle {
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 10px;
}

.orderModalRow {
    display: flex;
    column-gap: 30px;
    margin-bottom: 20px;
}

.orderModalRow > div {
    flex: 1;
}

/** Filter & Products **/

#orderModalFilter {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.orderModalFilterLabel {
    display: flex;
    white-space: nowrap;
    align-items: center;
    gap: 5px;
}

.orderModalFilterLabel::after {
    content: attr(count);
    font-weight: bold;
    font-size: 14px;
}

.orderModalFilterLabelInput {

}

#orderModalProducts {
    display: block;
    max-height: 500px;
    overflow-y: auto;
    margin-bottom: 20px;
    border: 1px solid #ced4da;
}

#orderModalProductsTable {
    margin-bottom: 0;
}

.orderModalProduct {
}

.orderModalProductAdd {
    pointer-events: none;
}

.orderModalProductImage {
    width: 90px;
    height: 90px;
    object-fit: contain;
    background-color: white;
    margin-top: 4px;
}

.orderModalProductMatch {
    background-color: white;
    height: 8px;
    overflow: hidden;
    display: flex;
    gap: 1px;
    border-radius: 4px;
    margin-bottom: 4px;
}

.orderModalProductMatchItem {
    height: 100%;
    background-color: white;
    flex-grow: 1;
}

.orderModalProductMatchItem.active {
    background-color: var(--blue)
}

/** Cart **/

#orderModalCart {
    padding: 20px;
    border: 1px solid #ced4da;
    max-width: 500px;
}

#orderModalCartTable {
    margin-bottom: 10px;
    border: 1px solid #ced4da;
}

#orderModalCartAddCustom {
    margin-bottom: 20px;
    font-size: 14px;
    text-decoration: underline;
    cursor: pointer;
}

#orderModalCartNote {
    display: none;
}

#orderModalCartNote.active {
    display: block;
}

#orderModalCartNoteTextarea {
    margin-bottom: 10px;
    display: block;
}

#orderModalCartNoteGenerate {
    padding: 10px;
    font-size: 14px;
    width: fit-content;
    margin-bottom: 20px;
}

#orderModalCartWeight {
    margin-bottom: 20px;
}

/** Important Info **/

#orderModalImportant {
    border: 2px solid #1ebdbc;
    max-width: 500px;
}

.orderModalImportantRow {
    padding: 10px;
    border-bottom: 1px solid #1ebdbc;
}

.orderModalImportantRow[data-status="active"] {
    background-color: #1ebdbc;
}

.orderModalImportantRow[data-status="inactive"] {
    background-color: darkred;
}

#orderModalImportantNotes[data-status="active"] {
    background-color: yellow;
    font-weight: bold;
}

/** Customer **/
#orderModalGeneral,
#orderModalOrders,
#orderModalPets {
    padding: 20px;
    border: 1px solid #ced4da;
}


#orderModalGeneral a,
#orderModalOrders a,
#orderModalPets a {
    text-decoration: underline;
}

#orderModalGeneralNoteOrders {

}

#orderModalPets {
}

@media (max-width: 800px) {
    #orderModalCustomer {
        grid-template-columns: 1fr;
        row-gap: 20px;
    }

    .orderModalRow {
        flex-wrap: wrap;
    }
}