
    .table th,
    .table td {
        vertical-align: middle;
        text-align: left;
    }

    .total-box {
        text-align: right;
    }

    input {
        width: 100px;
        text-align: left;
    }

    .signature-pad {
        border: 1px solid #000;
    }

    .logo-preview {
        max-width: 150px;
        margin-bottom: 10px;
    }

    .modal-body img {
        width: 100%;
        height: auto;
    }



    .upload-area {
        width: 150px;
        height: 150px;
        border: 2px dashed #007bff;
        border-radius: 10px;
        display: flex;
        align-items: center;
        justify-content: center;
        flex-direction: column;
        cursor: pointer;
        position: relative;
        overflow: hidden;
        background-color: #f8f9fa;
        transition: all 0.3s ease-in-out;
    }

    .upload-area img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: none;
        border-radius: 10px;
    }

    .upload-area span {
        font-size: 14px;
        color: #007bff;
    }

    .upload-area input {
        position: absolute;
        width: 100%;
        height: 100%;
        opacity: 0;
        cursor: pointer;
    }

    .clear-btn {
        display: none;
        font-size: 30px;
        height: 25px;
        line-height: 0;
    }

    /* Hide the placeholder style when image is uploaded */
    .upload-area.image-selected {
        border: none;
        background: none;
    }




    /*  table    */

    /* General Styles */
    body {
        font-family: 'Poppins', sans-serif;
        margin: 0;
        padding: 0;
        background-color: #f8f9fa;
        color: #333;
    }



    h1 {
        text-align: center;
        font-size: 24px;
        font-weight: 600;
        color: #2c3e50;
        margin-bottom: 25px;
    }

    /* Form Row Styles */
    .form-row {
        display: flex;
        flex-wrap: wrap;
        gap: 10px;
        margin-bottom: 15px;
        align-items: center;
        padding: 10px;
        background: #f1f3f5;
        border-radius: 8px;
        transition: all 0.3s ease;
    }

    .form-row:hover {
        background: #e9ecef;
    }

    .form-row input {
        flex: 1;
        padding: 10px;
        border: 1px solid #ced4da;
        border-radius: 6px;
        font-size: 14px;
        outline: none;
        transition: border-color 0.3s ease;
    }

    .form-row input:focus {
        border-color: #4dabf7;
        box-shadow: 0 0 0 3px rgba(77, 171, 247, 0.1);
    }

    .form-row input[readonly] {
        background-color: #e9ecef;
        cursor: not-allowed;
    }

    /* Button Styles */
    .remove-btn {
        background-color: #ff6b6b;
        color: white;
        border: none;
        padding: 10px 12px;
        border-radius: 6px;
        cursor: pointer;
        font-size: 16px;
        transition: background-color 0.3s ease;
    }

    .remove-btn:hover {
        background-color: #ff4757;
    }

    #addRow {
        width: 100%;
        padding: 12px;
        background-color: #4dabf7;
        color: white;
        border: none;
        border-radius: 6px;
        font-size: 16px;
        font-weight: 500;
        cursor: pointer;
        transition: background-color 0.3s ease;
    }

    #addRow:hover {
        background-color: #339af0;
    }

    /* Responsive Design */
    @media (max-width: 480px) {
        .form-row {
            flex-direction: column;
        }

        .form-row input {
            width: 100%;
        }

        .remove-btn {
            width: 100%;
        }
    }

    #invoice-items {
        position: relative;
        padding-bottom: 50px;
        /* Add space at the bottom for the button */
    }

    #addRow {
        position: absolute;
        bottom: 0;
        left: 0;
        margin-top: 10px;
        /* Add some spacing above the button */
        padding: 10px 20px;
        background-color: #007bff;
        color: white;
        border: none;
        border-radius: 5px;
        cursor: pointer;
    }

    #addRow:hover {
        background-color: #0056b3;
    }

    /* Container for the form rows */
    #form-container {
        display: flex;
        flex-direction: column;
        gap: 10px;
        /* Space between rows */
    }

    /* Each form row */
    .form-row {
        display: flex;
        flex-wrap: wrap;
        /* Allow wrapping on smaller screens */
        gap: 10px;
        /* Space between columns */
        align-items: center;
        /* Vertically align items */
    }

    /* Input fields */
    .form-row input {
        flex: 1;
        /* Allow inputs to grow and shrink */
        padding: 8px;
        border: 1px solid #ccc;
        border-radius: 4px;
        font-size: 14px;
    }

    /* Item Name column (double width) */
    .form-row input.item {
        flex: 7;
        /* Twice as wide as other columns */
    }

    /* Remove button */
    .form-row .remove-btn {
        flex: 0 0 auto;
        /* Do not grow or shrink */
        padding: 8px 12px;
        background-color: #ff4d4d;
        color: white;
        border: none;
        border-radius: 4px;
        cursor: pointer;
        font-size: 16px;
    }

    .form-row .remove-btn:hover {
        background-color: #cc0000;
    }

    /* Responsive adjustments for mobile */
    @media (max-width: 600px) {
        .form-row {
            flex-direction: column;
            /* Stack columns vertically on mobile */
        }

        .form-row input {
            width: 100%;
            /* Full width on mobile */
        }

        .form-row .remove-btn {
            width: 100%;
            /* Full width on mobile */
        }
    }

    .invoice {
        padding-top: 80px !important;
        max-width: 1024px !important;
    }


    body {
        background-color: #f8f9fa;
    }

    .invoice {
        padding-top: 80px !important;
        max-width: 1024px !important;
        background: #fff;
        padding: 20px;
        margin: 30px auto;
        border-radius: 10px;
        box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.1);
    }

    .invoice-header {
        text-align: left;

    }

    .invoice h2 {
        margin-bottom: 10px;
        color: #333;
    }
