/* General styles */
body {
    font-family: 'Arial', Inter, Calibri, sans-serif;
}

/* General styles */
.Receipt {
    max-width: 800px;
    margin: 50px auto;
    padding: 25px;
    font-size: 16px;
    border: 2px solid #ccc;
    box-shadow: 0px 0px 20px 5px rgba(0, 0, 0, 0.2);
    border-radius: 5px;
    border-top: 6px solid #043dc2;
}

/* Container for the header */
.header {
    display: flex;
    justify-content: space-between; /* Space out the logo and receipt info */
    align-items: flex-start; /* Align items to the top */
    margin-bottom: 10px;
    margin-top: 0px;
}

/* Upload logo styling */
.header .logo {
    position: relative;
    width: 120px;  /* Adjust as necessary */
    height: 120px; /* Adjust as necessary */
    border: 3px dotted #ccc;
    border-width: 3px;
    border-spacing: 6px;
	  border-radius: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden; /* Keeps the image within the container */
    box-sizing: border-box; /* Ensures the border is included in the element's total width and height */
}

.header .logo img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain; /* Scales the image to fit within the container without cropping */
    object-position: center; /* Centers the image within the container */
}

.header .logo-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
	  background-color: #f0f0f0;
}

.logo-placeholder {
    display: flex;
    flex-direction: column; /* Stack items vertically */
    align-items: center; /* Center items horizontally */
    justify-content: center; /* Center items vertically */
    text-align: center; /* Center text within the container */
    width: 100%; /* Ensure full width to center items properly */
    height: 100%; /* Ensure full height for centering */
}

.logo-placeholder .fa-upload {
    font-size: 33px; /* Adjust icon size as needed */
    margin-bottom: 5px; /* Space between icon and text */
    color: #74C0FC;
}

.logo-placeholder .upload-text {
    font-size: 15px; /* Adjust text size as needed */
}

.header .logo-upload-label {
    display: block;
    width: 100%;
    height: 100%;
    cursor: pointer;
}

/* Styling for the Receipt-info section */
.header .Receipt-info {
    text-align: right; /* Align text to the right */
    width: 50%; /* Width of receipt info section */
    box-sizing: border-box; /* Ensure padding and border are included in width */
}

/* Styling for Receipt text */
.header .Receipt-text {
    font-size: 23px; /* Font size for receipt text */
    padding: 5px; /* Padding around text */
    display: block; /* Ensure it respects width and allows wrapping */
    width: 100%; /* Ensure it uses full width of its container */
    box-sizing: border-box; /* Include padding and border in width */
    word-wrap: break-word; /* Break long words and wrap text */
    overflow-wrap: break-word; /* Ensure text wraps correctly */
    margin: 0; /* Reset margin to avoid extra spacing issues */
    line-height: 1;
}

/* Styling for Receipt Date, Due Date, and Receipt No */
.header .Receipt-info .Receipt-dates label,
.header .Receipt-info .Receipt-dates span {
    font-size: 13px; /* Adjust font size */
    line-height: 1;
    color: #333; /* Optional: Adjust text color */
    margin-top: 5px; /* Reduce margin for the dates */
    text-align: right; /* Align the text to the right */
}

.Receipt-details table {
    width: 100%;
	  margin-top: 20px;
    border-collapse: collapse;
}

.Receipt-details th {
    color: white;
    margin-left: 10px;
    text-align: left;
    background-color: #043dc2;
}

.Receipt-details td {
    border: 1px solid #d9dbde;
    text-align: left;
    line-height: 1;
}

.Receipt-details table th:nth-child(2),
.Receipt-details table td:nth-child(2) {
    text-align: center; /* Keep the text aligned properly */
}
.Receipt-details th:nth-child(3),
.Receipt-details td:nth-child(3) {
    text-align: center;
}
.Receipt-details th:nth-child(4),
.Receipt-details td:nth-child(4) {
    text-align: center;
}

.small-input {
    width: 69px; /* Adjust the width as needed */
    padding: 5px; /* Optional: adjust padding for better appearance */
    font-size: 16px; /* Optional: adjust font size if necessary */
    text-align: left;
}

.subtotal-amount {
    text-align: right;
    font-size: 16px;
    margin-top: 15px;
    margin-right: 20px;
}
.Discount-amount {
    margin-top: 15px;
    text-align: right;
    font-size: 16px;
	  color: Green;
	  font-weight: bold;
}
.tax-amount {
    margin-top: 15px;
    text-align: right;
    font-size: 16px;
}

.total-amount {
    float: right;
    text-align: right;
    font-size: 16px;
    margin-top: 10px;
    padding: 10px; /* Add padding for spacing inside the border */
    border-radius: 5px; /* Rounded corners */
    background-color: #f9f9f9; /* Light grey background */
    font-weight: bold; /* Make the text bold */
    display: inline-block; /* Ensures the border wraps around the text */
}

.footer {
    text-align: center;
}

button {
    background-color: red;
    color: white;
    padding: 6px 14px;
    border: none;
    border-radius: 9px;
    cursor: pointer;
}

button:hover {
    background-color: Darkred;
}
#remove-shipping-btn {
margin-top: 10px;
	  background-color: #4CAF50;
}
/* Hide elements for PDF */
.Receipt.hidden-for-pdf #addItemBtn,
.Receipt.hidden-for-pdf #logoInput,
.Receipt.hidden-for-pdf .header .logo .logo-upload-label {
    display: none;
}

.Receipt.hidden-for-pdf .company-detail,
.Receipt.hidden-for-pdf .customer-detail,
.Receipt.hidden-for-pdf .additional-detail,
.Receipt.hidden-for-pdf .Receipt-text {
    border: none;
    padding: 0;
}

#addItemBtn {
    display: none; /* Initially hidden */
    margin-top: 10px;
	  background-color: #4CAF50;
}

.Receipt-details:hover #addItemBtn {
    display: inline-block; /* Show on hover */
}

#removeItemBtn {
    display: none; /* Initially hidden */
    margin-top: 10px;
    background-color: red;
}

#downloadPDFBtn {
    margin-top: 20px;
    display: block;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
	 background-color: #4CAF50;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}
.Receipt-details:hover #removeItemBtn {
    display: inline-block; /* Show on hover */
}

/* Style for the table cells */
td[contenteditable="true"],
th[contenteditable="true"] {
    cursor: text;
}

/* Additional styling for better UI */
.company-detail,
.customer-detail,
.additional-detail {
    padding: 5px;
}

.header .Receipt-text,
.company-info p,
.customer-info p,
.additional-info p {
    margin: 5px 0;
    line-height: 1;
}

.Receipt-to h2 {
	  font-weight: bold;
    font-size: 16px;
    margin: 5px 0;
}

.add-detail {
    text-align: center;
}

/* Styling for the Terms heading */
.additional-info h3 {
    font-size: 16px; /* Adjust the font size as needed */
    line-height: 1; /* Adjust the line height as needed */
    margin-bottom: 10px; /* Adjust the space between the heading and the paragraph */
    width: 100%;
    padding: 5px;
}

/* Style for the currency selector */
.currency-selector {
    text-align: left;
    margin-top: 5px;
}

.currency-selector label {
    margin-right: 5px;
}

.currency-selector select {
    font-size: 15px;
    padding: 3px;
    border-radius: 3px;
    color: #5b0000;
    border: 1px solid #ccc;
}

.currencySelect {
    width: 100%;
    max-height: 100px;
    overflow-y: scroll;
}
.note-text {
	  font-size: 15px;
}
#toggleDiscount {
	margin-top: 5px;
	margin-bottom: 10px;
}
/* Default button style when discount is disabled */
#toggleDiscount.enabled {
    background-color: red;
    color: white;
}

#toggleDiscount.disabled {
    background-color: blue;
    color: white;
}

/* Optional: Add some hover effects */
#toggleDiscount:hover {
    opacity: 0.8;
    cursor: pointer;
}
.quotation-container {
  display: flex;
  justify-content: start;
  gap: 20px;
	margin-top: 20px;
  background-color: #ffffff;
}
.quotation-box {
  width: 50%; /* Adjust width as needed */
  background-color: #f9f9f9;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 15px;
  box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
}

.quotation-box h3 {
  color: #1005a8;
  margin-bottom: 10px;
  font-size: 17px;
}

.quotation-box p {
  margin: 5px 0;
  font-size: 15px;
  color: #333;
}
#loader {
    position: fixed;
    top: 50%;
    left: 98%;
    transform: translate(-50%, -50%);
    z-index: 9999;
}

.spinner {
    border: 4px solid #f3f3f3;
    border-top: 4px solid #3498db;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 2s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}