.account-page {
    display: flex;
    margin-bottom: 50px;
    margin-top: 50px;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    gap: 50px;
    flex-wrap: wrap;

}

.sidebar {
    width: 323px;
    height: 100%;
    background: #f4f4f4;
    padding: 20px;
    text-align: left;
    flex-shrink: 0;
    border-radius: 8px;
}

.profile-pic {
    position: relative;
    width: 100px;
    margin: 0 auto 10px;
}

.profile-pic img {
    width: 100%;
    border-radius: 50%;
}

.camera-icon {
    width: 35px;
    height: 35px;
    position: absolute;
    bottom: 0;
    right: 0;
    background: #fff;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    border: 2px solid white;
    background-color: #000;


}

.user-name {
    margin: 10px 0 20px;


    text-align: center;
}

.sidebar-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    font-size: 22px;
    color: #6C7275;
}

.sidebar-nav li {
    padding: 20px 0;
    cursor: pointer;

}

.sidebar-nav .active {
    font-weight: bold;
    border-bottom: 2px solid #000;
    color: #000;
}

.main-content {
    flex: 1;
    padding-left: 40px;
}

.main-content h2 {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 30px;
    color: #222;
}

/* General styling for the table with the 'product-table-box' class */
.product-table-box {
    width: 100%;
    border-collapse: collapse;
}

/* Table header styling */
.product-table-box thead {
    color: rgb(158, 164, 167);
    font-weight: 400;
    font-size: 14px;
}

.product-table-box th,
.product-table-box td {
    text-align: left;
    padding: 12px 15px;
    font-size: 15px;
    white-space: nowrap;
    /* Prevent word wrapping inside the cells */
}

.product-table-box td {
    color: #000;
}

.product-table-box thead th {
    border-bottom: 1px solid #e0e0e0;
    font-weight: 400;
}

.product-table-box tbody tr {
    border-bottom: 1px solid #f0f0f0;
}

.product-table-box tbody tr:last-child {
    border-bottom: none;
}

/* Responsive Styles */

.table-wrapper {
    overflow-x: auto;
    /* Enable horizontal scrolling */
    -webkit-overflow-scrolling: touch;
    /* Smooth scrolling for touch devices */
}

.product-table-box {
    width: 100%;
    table-layout: fixed;
    /* Ensure fixed layout for better column width control */
}

.product-table-box thead,
.product-table-box tbody {
    display: block;
}

.product-table-box thead tr {
    display: flex;
    justify-content: space-between;
}

.product-table-box tbody {
    display: block;
    max-height: 400px;
    overflow-y: auto;

}

.product-table-box tbody tr {
    display: flex;
    justify-content: space-between;
    border-bottom: 1px solid #f0f0f0;
}

th,
td {
    font-size: 14px;
    padding: 10px;
}


@media (max-width: 767px) {

    .product-table-box thead {
        overflow-x: auto;
        /* Enable horizontal scrolling */
        -webkit-overflow-scrolling: touch;
        /* Smooth scrolling for touch devices */
    }
}

/* Responsive Styles */
@media (max-width: 992px) {
    .account-page {
        flex-direction: column;
        margin-bottom: 50px;
        margin-top: 50px;
    }

    .sidebar {
        width: 100%;

    }



    .main-content {
        padding: 0;
    }
}





.add-button {
    font-size: 15px;
    width: fit-content;
    background-color: #000;
    color: #fff;
    padding: 10px 15px !important;
    border: none;
    border-radius: 6px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

/* Modal Styles */
.invoice-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.7);
    animation: fadeIn 0.3s;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.invoice-modal-content {
    background-color: #ffffff;
    margin: 30px auto;
    padding: 0;
    border: none;
    width: 90%;
    max-width: 900px;
    border-radius: 12px;
    box-shadow: 0 10px 50px rgba(0, 0, 0, 0.3);
    animation: slideDown 0.3s;
}

@keyframes slideDown {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-header-custom {
    padding: 25px 30px;
    background: linear-gradient(135deg, #db5c02 0%, #db5c02 100%);
    color: white;
    border-radius: 12px 12px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header-custom h3 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 600;
}

.close-modal {
    color: white;
    font-size: 32px;
    font-weight: bold;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    padding: 0;
    line-height: 1;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.close-modal:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg);
}

.modal-body-custom {
    padding: 30px;
    max-height: 70vh;
    overflow-y: auto;
}

.invoice-details {
    background: #f8f9fa;
    padding: 25px;
    border-radius: 10px;
    margin-bottom: 25px;
}

.invoice-header-info {
    display: flex;
    justify-content: space-between;
    align-items: start;
    margin-bottom: 25px;
    flex-wrap: wrap;
    gap: 20px;
}

.company-info h4 {
    color: #db5c02;
    font-size: 1.8rem;
    margin-bottom: 10px;
    font-weight: 700;
}

.company-info p {
    margin: 5px 0;
    color: #6c757d;
}

.invoice-meta {
    text-align: right;
}

.invoice-number {
    font-size: 1.5rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 10px;
}

.invoice-date {
    color: #6c757d;
    font-size: 0.95rem;
}

.status-badge {
    display: inline-block;
    padding: 6px 15px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-top: 8px;
}

.status-paid {
    background: #d4edda;
    color: #155724;
}

.status-pending {
    background: #fff3cd;
    color: #856404;
}

.customer-info {
    background: white;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 25px;
    border: 1px solid #e9ecef;
}

.info-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
    gap: 30px;
    flex-wrap: wrap;
}

.info-box {
    flex: 1;
    min-width: 250px;
}

.info-box h5 {
    color: #db5c02;
    font-size: 1rem;
    margin-bottom: 12px;
    font-weight: 600;
    border-bottom: 2px solid #db5c02;
    padding-bottom: 8px;
}

.info-box p {
    margin: 6px 0;
    color: #495057;
    line-height: 1.6;
}

.info-label {
    font-weight: 600;
    color: #333;
}

.products-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 25px;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.products-table thead {
    background: linear-gradient(135deg, #db5c02 0%, #db5c02 100%);
    color: white;
}

.products-table th {
    padding: 15px;
    text-align: left;
    font-weight: 600;
    font-size: 0.95rem;
}

.products-table td {
    padding: 15px;
    border-bottom: 1px solid #e9ecef;
    color: #495057;
}

.products-table tbody tr:hover {
    background: #f8f9fa;
}

.products-table tbody tr:last-child td {
    border-bottom: none;
}

.product-image {
    width: 60px;
    height: 60px;
    object-fit: contain;
    border-radius: 8px;
    border: 1px solid #e9ecef;
    background: #f8f9fa;
    padding: 5px;
}

.product-name {
    font-weight: 600;
    color: #333;
}

.totals-section {
    background: white;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.total-row {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    font-size: 1rem;
}

.total-row.subtotal {
    border-bottom: 1px solid #e9ecef;
}

.total-row.grand-total {
    border-top: 2px solid #db5c02;
    margin-top: 10px;
    padding-top: 15px;
    font-size: 1.3rem;
    font-weight: 700;
    color: #db5c02;
}

.total-label {
    color: #6c757d;
}

.total-value {
    font-weight: 600;
    color: #333;
}

.grand-total .total-value {
    color: #db5c02;
}

.modal-footer-custom {
    padding: 20px 30px;
    background: #f8f9fa;
    border-radius: 0 0 12px 12px;
    display: flex;
    justify-content: flex-end;
    gap: 15px;
    border-top: 1px solid #e9ecef;
}

.btn-download {
    background: linear-gradient(135deg, #db5c02 0%, #db5c02 100%);
    color: white;
    padding: 12px 30px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.btn-download:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.6);
}

.btn-close-modal {
    background-color: #6c757d;
    color: white;
    padding: 12px 30px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    transition: all 0.3s;
}

.btn-close-modal:hover {
    background-color: #5a6268;
    transform: translateY(-2px);
}

.loading-spinner {
    text-align: center;
    padding: 60px;
}

.spinner {
    border: 4px solid #f3f3f3;
    border-top: 4px solid #db5c02;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.text-right {
    text-align: right;
}

/* Action Icons */
.action-icon {
    cursor: pointer;
    font-size: 18px;
    transition: all 0.3s;
}

.action-icon:hover {
    transform: scale(1.2);
}

@media (max-width: 768px) {
    .invoice-modal-content {
        width: 95%;
        margin: 20px auto;
    }

    .modal-body-custom {
        padding: 20px;
        max-height: 60vh;
    }

    .invoice-header-info {
        flex-direction: column;
    }

    .invoice-meta {
        text-align: left;
    }

    .products-table {
        font-size: 0.85rem;
    }

    .products-table th,
    .products-table td {
        padding: 10px 8px;
    }

    .product-image {
        width: 40px;
        height: 40px;
    }
}

/* PDF container styles */
.pdf-invoice-container {
    width: 900px;
    background: white;
    padding: 30px;
    font-family: Arial, sans-serif;
}