﻿.DisableAddToOrderModal-Overlay {
    position: fixed;
    display: block;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0,0,0,0.5);
    z-index: 904;
}

.DisableAddToOrderModal-Container {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%,-50%);
    border-radius: 20px;
    padding: 20px;
    width: 50vw;
    background-color: #fff;
    z-index: 905;
}

.DisableAddToOrderModal-Close {
    display: none;
}

.OrdersForApprovalPageContainer {
    margin: 0px 1em 0px 4.5em;
}

.OFA-Headings {
    margin-left: 4em;
    color: #22a2e3;
    margin-bottom: 0.5em;
}

.OFA-Card-Body {
    padding: 0 1em;
}

.orders-table-container {
	height: 44em; /* Set the desired height for the scrollable tbody */
	overflow-y: auto; /* Enable vertical scrolling */
}

.AD-OFA-Table {
	font-size: 14px;
	width: 100%;
	border-collapse: collapse;
}

.OFA-Hover:hover {
    cursor: pointer;
    color: #22a2e3;
    background-color: aliceblue;
}

    .AD-OFA-Table > thead > tr {
        border-bottom: 1px solid #ddd;
        font-size: 16px;
    }


    .AD-OFA-Table > tbody > tr {
        border-bottom: 1px solid #ddd;
        font-size: 14px;
    }

    .AD-OFA-Table > thead > tr > th {
        padding: 1.5vh;
    }



.AD-OFA-Table > thead th {
	position: sticky;
	top: 0;
	background-color: #fff; /* Optional: background color for the header */
	z-index: 1; /* Ensure the header stays on top */
}

.orders-table-container::-webkit-scrollbar {
	width: 0.5em;
	background-color: aliceblue;
	cursor: pointer;
}
.orders-table-container::-webkit-scrollbar-track {
	box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.3);
	cursor: pointer;
}

.orders-table-container::-webkit-scrollbar-thumb {
	background-color: #22a2e3;
	outline: 1px solid slategrey;
	border-radius: 25px;
	cursor: pointer;
}


.OFA-ProceedToProformaBtn {
    color: #fff;
    background-color: #22a2e3;
    font-size: 12px;
    font-family: inherit;
    font-weight: bold;
    border-radius: 4px;
    height: 2.5em;
    width: 11em;
    border: 0.3mm solid;
    cursor: pointer;
}

.OFA-DisApproveBtn {
    color: #fff;
    background-color: red;
    font-size: 12px;
    font-family: inherit;
    font-weight: bold;
    border-radius: 4px;
    height: 2.5em;
    width: 8em;
    border: 0.3mm solid;
    cursor: pointer;
}

.OFA-ApproveBtn {
    color: #fff;
    background-color: green;
    font-size: 12px;
    font-family: inherit;
    font-weight: bold;
    border-radius: 4px;
    height: 2.5em;
    width: 6em;
    border: 0.3mm solid;
    cursor: pointer;
}

.OFA-DisabledDisApproveBtn {
    color: #fff;
    background-color: lightcoral;
    font-size: 12px;
    font-family: inherit;
    font-weight: bold;
    border-radius: 4px;
    height: 2.5em;
    width: 8em;
    border: 0.3mm solid;
    cursor: default;
}

.OFA-DisabledApproveBtn {
    color: #fff;
    background-color: lightgreen;
    font-size: 12px;
    font-family: inherit;
    font-weight: bold;
    border-radius: 4px;
    height: 2.5em;
    width: 6em;
    border: 0.3mm solid;
    cursor: default;
}

.OFA-OrderHistoryBtn {
    color: #fff;
    background-color: #22a2e3;
    font-size: 12px;
    font-family: inherit;
    font-weight: bold;
    border-radius: 4px;
    height: 2.5em;
    width: 9em;
    border: 0.3mm solid;
    cursor: pointer;
    margin: 1em;
}

.UserOrderItems-ModalContainer {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%,-50%);
    border-radius: 20px;
    padding: 20px;
    min-height: 20vh;
    width: 90vw;
    background-color: #fff;
    z-index: 903;
}

.UserOrderItems-TableHeadingContainer {
    display: grid;
    grid-template-columns: 1fr 1.48fr 1fr 1.5fr 1.5fr 1fr 1fr 1fr;
    font-weight: 600;
    grid-column-gap: 0.5em;
}

.UserOrderItems-TableBodyContainer {
    max-height: 39vh;
    overflow-y: scroll;
}

.UserOrderItems-TableBodyContainer :hover {
    background-color: aliceblue;
    color: #22a2e3;
    cursor: default;
}

    .UserOrderItems-TableBodyContainer::-webkit-scrollbar {
        width: 0.3em;
        background-color: aliceblue;
        cursor: pointer;
    }

    .UserOrderItems-TableBodyContainer::-webkit-scrollbar-track {
        box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.3);
        cursor: pointer;
    }

    .UserOrderItems-TableBodyContainer::-webkit-scrollbar-thumb {
        background-color: #22a2e3;
        outline: 1px solid slategrey;
        border-radius: 25px;
        cursor: pointer;
    }

.UserOrderItems-TableBodyLines {
    display: grid;
    grid-template-columns: 1fr 1.5fr 1fr 1.5fr 1.5fr 1fr 1fr 1fr;
    grid-column-gap: 0.5em;
}

.UserOrderItems-Totals {
    display: grid;
    grid-template-columns: 1fr 1.5fr 1fr 2.3fr 0.5fr 2fr 1fr;
    margin: 1em 0;
    grid-column-gap: 0.3em;
}

.DisapprovalMessageModal-BodyContainer {
    display: grid;
    grid-template-columns: 4fr 1fr;
    grid-column-gap: 0.5em;
    align-items: center;
}

.DisapprovalMessageModal-ConfirmationBtn {
    cursor: pointer;
    color: #fff;
    background-color: #22a2e3;
    font-size: 12px;
    font-family: inherit;
    font-weight: bold;
    border-radius: 4px;
    height: 2.8em;
    width: 7em;
    border: 0.3mm solid;
}

.order-disapprove-message {
	max-width: 7em;
	overflow-x: auto;
	padding: 0.5em 0 0.5em 0;
}

	.order-disapprove-message::-webkit-scrollbar {
		width: 0.5em;
		background-color: aliceblue;
		cursor: pointer;
		padding-bottom:0.5em;
	}

	.order-disapprove-message::-webkit-scrollbar-track {
		box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.3);
		cursor: pointer;
	}

	.order-disapprove-message::-webkit-scrollbar-thumb {
		background-color: #22a2e3;
		outline: 1px solid slategrey;
		border-radius: 25px;
		cursor: pointer;
	}

@media screen and (max-width: 1079.98px) {
	.UserOrderItems-Totals {
        display: grid;
        grid-template-columns: 18fr auto;
        margin: 1em 0;
    }

			.OFA-Headings {
		margin-left: 1em;
		margin-top: 5em;
	}

	.OrdersForApproval-TableHeadingMobile {
		padding: 1em;	
		text-align: center;
		color: #22a2e3;
		font-weight: 600;
	}

	.order-disapprove-message {
		max-width: 36em;
		margin-bottom: 0.5em;
	}
