/*
Author: Capitanu Mihai
x2-custom.css (c) 2023
Desc: custom css applied to all pages
Created:  2023-08-14T06:09:00.050Z
*/

/* [X2-92] */
.product-item-actions .actions-primary {
    width: max-content;
 }

 /* [X2-124] */
 .minimal-price-link, .price-excluding-tax, .price-including-tax {
    white-space: normal!important;
    text-align: start!important;
}

/* [X2-143] */
#opmode-banner{
    background-color: rgba(175,0,0,1);
    padding: 10px;color:rgba(255,255,255,1);
    font-family: Sans-Serif;
    text-align:center;
}
#opmode-banner a {
    color: rgba(255,255,255,1);
    text-decoration: underline;
}

.order-data {
    display: grid;
    grid-template-columns: repeat(3, 1fr); 
    gap: 20px;
}
.order-data .order-info tr, .order-data .order-billing-address tr, .order-data .order-delivery-address tr {
    line-height: 15px;
}
.approval-order-details .order-items p{
    margin-top: 20px;
}
.approval-order-details td p{
    margin-left: 0;
    margin-bottom: 20px;

}
.approval-order-details .order-items .item-product-options{
    margin: 20px 0;
    display: flex;
    flex-direction: column;
}
.approval-order-details .order-items .item-pdfs a, .approval-order-details .action-buttons button a{
    color:white;
}

.approval-order-details .action-buttons{
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 20px;
}
.approval-order-details .action-buttons .approve-buttons{
    display: flex;
    flex-direction: row;
    gap: 20px;
}
#printq_approval_table .pagination {
    margin-top: 20px;
    margin-bottom: 20px;
    text-align: center;
}
#printq_approval_table .pagination a {
    margin: 0 5px;
    padding: 5px 10px;
    text-decoration: none;
    border: 1px solid #ccc;
    color: #333;
}
#printq_approval_table .pagination a.active {
    background: #007bff;
    color: white;
}
#printq_approval_table .pagination a.prev, #printq_approval_table .pagination a.next {
    font-weight: bold;
}
.order-data > div {
    background: #f8f8f8; 
    padding: 15px;
    border-radius: 8px; 
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    min-height: 150px; 
}

.approval-order-details .item-data {
    display: grid;
    grid-template-columns: 1fr 1fr; /* 2 equal columns */
    gap: 20px; /* Space between columns */
    align-items: center;
    padding: 15px;
    background: #f8f8f8;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    margin-bottom: 15px;
}
.approval-order-details .item-info {
    display: flex;
    flex-direction: column;
}
.approval-order-details .item-previews {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.approval-order-details .item-previews a {
    display: block;
    width: 100%;
    height: auto;
}

.approval-order-details .item-previews img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 5px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}
@media (max-width: 768px) {
    .approval-order-details .order-data {
        grid-template-columns: 1fr; /* Single column on small screens */
    }
}