.container{
    max-width: 1280px !important;
}
.profile-header{
    background-color: #f4f4f4;
    padding: 10vh 5%;
}
.user-area .profile-header{
    padding: 10vh 0;
}
.profile-header h1{
    font-size: 2.75em;
    text-transform: uppercase;
    max-width: 600px;
}
.profile-header h4{
    font-weight: 400 !important;
    max-width: 800px;
}
.orders-dashboard {
    margin: 50px auto 30px;
}
.dashboard-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    grid-column-gap: 30px;
}
.dashboard-box {
    background: #d65a43;
    padding: 20px;
    text-align: center;
    border-radius: 2px;
    min-width: 150px;
    margin-bottom: 20px;
}
.dashboard-box h3 {
    margin: 0;
    font-size: 28px;
    font-weight: 700;
    color: #fff;
}
.dashboard-box p {
    margin: 5px 0 0;
    font-size: 16px;
    color: #f7f7f7;
}
.orders-list,
.documents-list{
    margin-bottom: 60px;
}
.documents-list{
    margin-top: 40px;
}
.orders-list h2,
.documents-list h2{
    margin-bottom: 20px;
    text-transform: uppercase;
}
/* Table Styling */
.orders-table-container,
.documents-table-container {
    margin-top: 20px;
}
.table-responsive {
    overflow-x: auto;
}
.orders-table,
.documents-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}
.orders-table thead,
.documents-table thead {
    background: #f8f8f8;
}
.orders-table th, .orders-table td,
.documents-table th, .documents-table td {
    padding: 10px;
    border-bottom: 1px solid #ddd;
}
.orders-table tr,
.documents-table tr{
    transition: .4s;
}
.orders-table tr:hover,
.documents-table tr:hover {
    background: #f1f1f1;
}
.status-badge {
    padding: 5px 10px;
    border-radius: 2px;
    font-weight: 600;
    display: inline-block;
    font-family: 'Montserrat', sans-serif;
    text-transform: uppercase;
    font-size: 13px;
}
.status-badge.processing,
.status-badge.in_lavorazione{
    background: rgba(255, 165, 0, 0.2);
    color: rgb(255, 165, 0);
}
.status-badge.completed {
    background: rgba(0, 128, 0, 0.2);
    color: rgb(0, 128, 0);
}
.order-link,
.document-link {
    background: #fff !important;
    color: #d65a43 !important;
    text-transform: uppercase !important;
    border-radius: 2px !important;
    font-family: 'Montserrat', 'Helvetica', 'Arial', sans-serif !important;
    font-size: 14px !important;
    border: 2px solid #d65a43 !important;
    transition: .3s;
    padding: .5em 2em !important;
}
.order-link:hover,
.document-link:hover {
    background: #d65a43 !important;
    color: #fff !important;
}
.mobile-order-card,
.mobile-document-card {
    display: none;
}

.order-card,
.document-card {
    background: #f9f9f9;
    padding: 10px;
    border-radius: 5px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.order-card p,
.document-card p {
    margin: 5px 0;
    padding-bottom: 1em !important;
}

/* Mobile Layout */
@media (max-width: 768px) {
    .orders-table thead,
    .documents-table thead {
        display: none;
    }

    .orders-table tbody tr,
    .documents-table tbody tr {
        display: none;
    }

    .mobile-order-card,
    .mobile-document-card {
        display: table-row !important;
    }
}
/* General Styles */
/* Profile Header */
.order-header {
    background-color: #f4f4f4;
    padding: 10vh 0;
}
.order-header h1 {
    font-size: 3em;
    text-transform: uppercase;
    margin-bottom: 30px;
}
.order-header p {
    font-weight: 400 !important;
    padding-bottom: 1em !important;
    font-size: 1.2em;
}
/* Order Rows */
.order-rows h2 {
    margin-bottom: 20px;
    text-transform: uppercase;
}
.order-rows{
    margin-bottom: 60px;
}
/* Table Styling */
.order-items-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    margin-top: 20px;
}
.order-items-table thead {
    background: #f8f8f8;
}
.order-items-table th, .order-items-table td {
    padding: 10px;
    border-bottom: 1px solid #ddd;
}
.order-items-table tr {
    transition: .4s;
}
.order-items-table tr:hover {
    background: #f1f1f1;
}
.order-items-table td{
    font-weight: 400;
}
.order-rows h2{
    margin-top: 30px;
}
/* Status Badge */
.status-badge {
    padding: 5px 10px;
    border-radius: 2px;
    font-weight: 600;
    display: inline-block;
    font-family: 'Montserrat', sans-serif;
    text-transform: uppercase;
    font-size: 13px;
}
.status-badge.processing {
    background: rgba(255, 165, 0, 0.2);
    color: rgb(255, 165, 0);
}
.status-badge.completed {
    background: rgba(0, 128, 0, 0.2);
    color: rgb(0, 128, 0);
}

/* Reorder Button */
.reorder-button {
    background: #d65a43;
    color: #fff;
    text-transform: uppercase;
    border-radius: 2px;
    font-family: 'Montserrat', 'Helvetica', 'Arial', sans-serif;
    font-size: 14px;
    border: 2px solid #d65a43;
    transition: .3s;
    padding: .5em 2em;
    cursor: pointer;
}
.reorder-button:hover {
    background: #fff;
    color: #d65a43;
}

/* Popup */
.reorder-popup {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999999;
    justify-content: center;
    align-items: center;
}
.popup-content {
    background: #fff;
    padding: 20px;
    border-radius: 2px;
    max-width: 1080px;
    width: 100%;
    text-align: center;
    position: relative;
	max-height: 80vh;
	overflow-y: auto;
}
.quantity-input-container {
    display: inline-flex;
    align-items: center;
    border: 1px solid #ddd;
    border-radius: 4px;
    overflow: hidden;
	width: 100%;
    justify-content: space-between;
}

.quantity-input-container .qty-minus,
.quantity-input-container .qty-plus {
    background-color: #ccc;
    border: none;
    padding: 5px 15px;
    cursor: pointer;
    font-size: 16px;
}

.quantity-input-container .quantity-input {
    width: 60px;
    text-align: center;
    border: none;
    outline: none;
    padding: 5px;
}
/* Ensure the table container scrolls horizontally on small screens */
.table-responsive {
    overflow-x: auto;
}

/* Table styling */
.reorder-table {
    width: 100%;
    border-collapse: collapse;
}

.reorder-table th,
.reorder-table td {
    padding: 8px;
    text-align: left;
    border: 1px solid #ddd;
	font-weight: 400;
}

.article_sel_cell{
	width: 40px;
	text-align: center !important;
}
.article_quantity_cell{
	width: 150px;
}
/* Adjust font-size for small screens */
@media (max-width: 600px) {
    .reorder-table th,
    .reorder-table td {
        font-size: 14px;
    }
}
#reorder-form{
	margin-bottom: 30px;
}
/* Optional: Style the quantity input for better usability */
.quantity-input {
    width: 60px;
    padding: 4px;
}
.reorder-popup .confirm-reorder{
    background: #d65a43;
    color: #fff;
    text-transform: uppercase;
    border-radius: 2px;
    font-family: 'Montserrat', 'Helvetica', 'Arial', sans-serif;
    font-size: 14px;
    border: 2px solid #d65a43;
    transition: .3s;
    padding: .5em 2em;
    cursor: pointer;
    display: inline-block;
    margin-right: 20px;
}
.reorder-popup .deny-reorder{
    background: #fff;
    color: #d65a43;
    text-transform: uppercase;
    border-radius: 2px;
    font-family: 'Montserrat', 'Helvetica', 'Arial', sans-serif;
    font-size: 14px;
    border: 2px solid #d65a43;
    transition: .3s;
    padding: .5em 2em;
    cursor: pointer;
    display: inline-block;
}
.reorder-popup p{
    margin-bottom: 20px;
}
/* Mobile Layout */
@media (max-width: 768px) {
    .order-items-table thead {
        display: none;
    }

    .order-items-table tbody tr {
        display: none;
    }

    .mobile-order-card {
        display: table-row !important;
    }
}
small{
    font-size: .75em;
    color: #999;
}
.close-btn {
    position: absolute;
    top: 2px;
    right: 10px;
    font-size: 28px;
    font-weight: bold;
    color: #333;
    cursor: pointer;
    transition: 0.3s;
}

.close-btn:hover {
    color: #000;
}
.profile-row{
    margin: 50px auto;
}
.profile-blocks{
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 20px;
}
.profile-block{
    padding: 15px;
    border-radius: 3px;
    width: calc(50% - 10px);
}
.profile-block p{
    font-weight: 400;
}
.profile-block.documentsb{
    border: 2px solid #333;
}
.profile-block.documentsb *{
    color: #333;
}
.profile-block.ordersb{
    border: 2px solid #d65a43;
}
.profile-block.ordersb *{
    color: #d65a43;
}
.profile-button{
    background: #fff;
    text-transform: uppercase;
    border-radius: 2px;
    font-family: 'Montserrat', 'Helvetica', 'Arial', sans-serif;
    font-size: 14px;
    border: 2px solid;
    transition: .3s;
    padding: .5em 2em;
    cursor: pointer;
    display: inline-block;
    margin-top: 30px;
    float: right;
}
.documents-button{
    color:#333;
    border-color:#333;
}
.documents-button:hover{
    color:#fff;
    background-color:#333;
}
.orders-button{
    color:#d65a43;
    border-color:#d65a43;
}
.orders-button:hover{
    color:#fff;
    background-color:#d65a43;
}
@media screen and (max-width: 767px){
    .profile-block{
        width: 100%;
    }
}