/******
Order Info
 */

#orders {
    grid-column: 1/5;
}

#ordersHeader {
    display: flex;
    gap: 20px;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

#ordersHeaderTitle {
    margin-right: auto;
}

#ordersBody {
    width: 100%;
    margin-bottom: 20px;
}

#ordersBody thead {
    font-weight: 800;
}

#ordersBody tbody tr {
    transition: 0.3s;
}

#ordersBody tbody tr:nth-of-type(odd) {
    background-color: #ECF1F5
}

#ordersBody tbody tr:nth-of-type(even) {
    background-color: #F4F7F9
}

#ordersBody tbody tr:hover {
    background-color: #f3ece8;
    cursor: pointer;
}

#ordersBody td {
    padding: 10px;
    white-space: nowrap;
    font-size: 16px;
}

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

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

#ordersPerPage {
}

#ordersPages {
}

#ordersExport {
    width: auto;
    margin-left: auto;
    background-color: #818181;
}

#ordersSearch {
    margin-bottom: 20px;
}

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

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

#orderModal {
    display: none;
}

#orderModal.active {
    display: flex;
    padding: 20px;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
}

#orderModalContent {
    background-color: white;
    max-width: 575px;
    margin: 0 auto auto;
    padding: 20px;
    width: 100%;
    max-height: 100%;
    overflow-y: auto;
    position: relative;
}

#orderModalFields {
    margin-bottom: 15px;
}

.orderModalInfo {
    padding: 5px;
    font-size: 16px;
}

.orderModalInfo :first-child {
    font-weight: bold;
}

#orderModalActions {
    display: none;
    grid-template-columns: repeat(2, 1fr);
    row-gap: 10px;
    column-gap: 10px;
    margin-bottom: 15px;
}

#orderModalActions.active {
    display: grid;
}

#orderModalRefund {
    grid-column: 1/3;
}

#orderModalRefund {
    padding: 50px 30px 20px;
}

#orderModalRefund legend {
    padding: 5px;
    font-size: 16px;
    font-weight: bold;
}

#orderModalRefundAmount {
    margin-bottom: 20px;
}

#orderModalRefund button {
}

#orderModalKajabi {
    background-color: #4478c1;
}

#orderModalExit {
    position: absolute;
    top: 10px;
    right: 20px;
    cursor: pointer;
}

@media (max-width: 800px) {
    #orderModalActions {
        grid-template-columns: 1fr;
    }

    #orderModalRefund {
        grid-column: 1/2;
    }
}