html {
  font-size: 14px;
}



@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
  position: relative;
  min-height: 100%;
}



/*body {
    font-family: "Segoe UI", Arial, sans-serif;
    background: #f5f7fa;
    margin: 0;
    padding: 20px;
    color: #333;
}

.text-center {
    text-align: center;
    margin-bottom: 30px;
}

.display-4 {
    font-size: 2.2rem;
    font-weight: 600;
    margin-bottom: 5px;
}

.container-block {
    background: #fff;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.06);
    margin-bottom: 25px;
}

    .container-block span.title {
        display: block;
        font-size: 1.2rem;
        font-weight: 600;
        margin-bottom: 15px;
    }

label, lable {
    display: block;
    margin-top: 12px;
    font-size: 0.95rem;
    font-weight: 500;
}

input[type="text"], select {
    width: 100%;
    padding: 10px;
    margin-top: 6px;
    border-radius: 8px;
    border: 1px solid #ccc;
    outline: none;
    font-size: 0.95rem;
}

    input[type="text"]:focus,
    select:focus {
        border-color: #0066ff;
    }

#divProdList {
    padding: 15px;
    border: 1px solid #ddd;
    min-height: 100px;
    border-radius: 8px;
    background: #fafafa;
}*/

.form-container {
    width: 100%;
    padding: 20px;
    margin: 20px 0;
    border: 1px solid #ddd;
    border-radius: 10px;
    background: #f9f9f9;
    font-family: Arial, sans-serif;
}

    .form-container select {
        width: 100%;
        padding: 8px;
        margin-top: 5px;
        border: 1px solid #ccc;
        border-radius: 5px;
        font-size: 14px;
    }

    .form-container label {
        display: block;
        margin-top: 12px;
        font-weight: bold;
        color: #333;
    }

    .form-container input {
        width: 100%;
        padding: 8px;
        margin-top: 5px;
        border: 1px solid #ccc;
        border-radius: 5px;
        font-size: 14px;
    }

    

    .form-container button {
        margin-top: 20px;
        width: 100%;
        background: #007bff;
        color: #fff;
        padding: 10px;
        border: none;
        border-radius: 5px;
        cursor: pointer;
        font-size: 16px;
        font-weight: bold;
        transition: 0.2s;
    }

        .form-container button:hover {
            background: #0056b3;
        }

.cart-row {
    display: grid;
    grid-template-columns: 80px 1fr 120px 80px 120px;
    padding: 8px;
    align-items: center;
    border-bottom: 1px solid #ddd;
}

.cart-header {
    background: #f3f3f3;
    /*font-weight: bold;*/
    display: grid;
    grid-template-columns: 80px 1fr 120px 80px 120px;
    padding: 8px;
    align-items: center;
    /*border-bottom: 1px solid #ddd;*/
    background: #f0f4ff;
    font-weight: 600;
    border-bottom: 2px solid #ccc;
}

.cart-row div {
    padding: 4px 6px;
}

.product-section {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 20px;
}

#divProdList {
    display: block;
    width: 100%;
    margin-top: 15px;
}

.grid-row {
    display: grid;
    grid-template-columns: 80px 1fr 120px 120px;
    gap: 10px;
    padding: 10px;
    background: #fff;
    border-bottom: 1px solid #ddd;
    align-items: center;
}

    .grid-row.header {
        background: #f0f4ff;
        font-weight: 600;
        border-bottom: 2px solid #ccc;
    }

    .grid-row:nth-child(even) {
        background: #f9f9f9;
    }

    .grid-row div {
        padding: 4px 0;
    }

    .grid-row input[type="button"] {
        padding: 6px 12px;
        border: none;
        border-radius: 6px;
        background: #007bff;
        color: white;
        cursor: pointer;
    }

        .grid-row input[type="button"]:hover {
            background: #0063cc;
        }

    /*krish*/
.page-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 20px;
    margin-top: 20px;
}

/* Cart grid styling */
#divCartList {
    padding: 10px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.cart-row {
    display: grid;
    grid-template-columns: 1fr 80px 80px 80px;
    gap: 10px;
    padding: 10px 0;
    border-bottom: 1px solid #ddd;
    align-items: center;
}

    .cart-row.header {
        background: #e8f1ff;
        font-weight: 600;
        border-bottom: 2px solid #bbb;
    }

    .cart-row:nth-child(even) {
        background: #f9f9f9;
    }

.qty-input {
    width: 60px;
    padding: 6px;
    border-radius: 5px;
    border: 1px solid #ccc;
}

.cart-row button {
    background: #e63946;
    color: #fff;
    border: none;
    padding: 6px 10px;
    border-radius: 6px;
    cursor: pointer;
}

    .cart-row button:hover {
        background: #c62828;
    }

/*#mainGrid {
    display: grid;
    grid-template-columns: 1fr 2fr; 
    gap: 20px;
    margin-top: 20px; 
}*/

/* Optional styling */
#productSection, #cartSection {
    background: #ffffff;
    padding: 15px;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.cart-row {
    display: grid;
    grid-template-columns: 3fr 2fr 2fr 2fr 2fr 2fr 2fr;
    padding: 8px;
    align-items: center;
    border-bottom: 1px solid #ddd;
}

.cart-header {
    background: #f3f3f3;
    /*font-weight: bold;*/
    display: grid;
    grid-template-columns: 3fr 2fr 2fr 2fr 2fr 2fr 2fr;
    padding: 8px;
    align-items: center;
    /*border-bottom: 1px solid #ddd;*/
    background: #f0f4ff;
    font-weight: 600;
    border-bottom: 2px solid #ccc;
}

    .cart-row > :nth-child(3) input,
    .cart-row > :nth-child(4) input,
    .cart-header > :nth-child(3) input,
    .cart-header > :nth-child(4) input {
        width: 100%;
        text-align: right;
        box-sizing: border-box;
    }   


.cart-row div {
    padding: 4px 6px;
}


/* A4 Page Container */
#divPrint {
    font-family: Arial, sans-serif;
    width: 210mm; /* Full A4 width */
    max-width: 210mm;
    margin: 0 auto;
    padding: 15mm; /* Equal margins on all sides */
    font-size: 14px;
    color: #000;
    box-sizing: border-box;
    background: #fff;
}

/* Print Mode: Keep same margins */
@media print {
    body {
        margin: 0; /* Remove browser default margin */
    }

    #divPrint {
        margin: 0;
        padding: 15mm; /* Same print margins */
        width: 210mm;
    }
}

#divPrint h1 {
    font-size: 22px;
    margin: 0 0 5px 0;
    font-weight: bold;
}

.header-section span,
.header-section div {
    display: block;
    line-height: 18px;
}

.quotation-title {
    text-align: right;
    font-size: 24px;
    font-weight: bold;
    margin-top: -70px;
}

.quotation-meta {
    text-align: right;
    margin-top: 10px;
    font-size: 14px;
    line-height: 20px;
}

.section {
    margin-top: 25px;
    font-size: 14px;
}

    .section span {
        display: block;
        margin-bottom: 6px;
    }

.items-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    font-size: 14px;
}

    .items-table th {
        background: #d9d9d9;
        border: 1px solid #000;
        padding: 8px;
    }

    .items-table td {
        border: 1px solid #000;
        padding: 8px;
        vertical-align: middle;
    }

.grand-total {
    font-weight: bold;
    text-align: right;
    margin-top: 20px;
    font-size: 17px;
}

.notes-title {
    margin-top: 25px;
    font-weight: bold;
    text-decoration: underline;
}

#divPrint {
    font-family: 'Times New Roman', serif;
}

#divQutationDetails {
    margin: 20px 0;
    padding: 10px;
}

#cartTable {
    width: 100%;
    border-collapse: collapse;
    font-family: Arial, sans-serif;
    font-size: 14px;
    background: #ffffff;
    border: 1px solid #dcdcdc;
    box-shadow: 0px 2px 6px rgba(0,0,0,0.1);
}

    #cartTable th {
        background: #f5f5f5;
        padding: 12px;
        text-align: left;
        font-weight: bold;
        border-bottom: 2px solid #ccc;
    }

    #cartTable td {
        padding: 10px;
        border-bottom: 1px solid #eee;
    }

    #cartTable tr:nth-child(even) {
        background: #fafafa;
    }

    #cartTable tr:hover {
        background: #f1f9ff;
        transition: 0.2s ease-in-out;
    }

.row-container {
    display: flex;
    gap: 300px;
    padding-top: 20px;
    padding-left: 10px; /* <<< added left padding */
    align-items: center;
}

.unit {
    display: flex;
    align-items: center;
    gap: 5px;
    min-width: 150px;
}

    .unit label {
        font-weight: bold;
    }

#popup {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
}

.popup-content {
    position: relative;
    background: #fff;
    width: 300px;
    margin: 120px auto;
    padding: 20px;
    border-radius: 6px;
}

/* Close button with red background */
.close {
    position: absolute;
    top: -10px;
    right: -10px;
    width: 30px;
    height: 30px;
    background: #e53935; /* red */
    color: #fff;
    font-size: 18px;
    font-weight: bold;
    border-radius: 50%;
    text-align: center;
    line-height: 30px;
    cursor: pointer;
}

    .close:hover {
        background: #c62828;
    }