/* CSS reset and container styles */
#qtn-app-container {
    --primary-blue: #1b75bb;
    --bg-light: #f7f9fa;
    --text-muted: #666;
    --border-color: #dcdcdc;
    --error-bg: #fdecea;
    --error-border: #f9c2bd;
    --bubble-bg: #e8f0fe;
    font-family: Arial, sans-serif;
/*     background-color: var(--bg-light);
    padding: 20px;
    color: #333; */
}

#qtn-app-container .form-container {
/*     max-width: 950px;
    margin: 0 auto;
    background: #fff;
    padding: 30px 40px;
    border-radius: 4px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05); */
}

#qtn-app-container h2 {
    font-size: 20px;
    color: #455a64;
    margin-bottom: 25px;
    font-weight: normal;
    border-bottom: 1px solid #eee;
    padding-bottom: 15px;
}

#qtn-app-container .to-section {
    font-size: 14px;
    margin-bottom: 20px;
    color: #333;
}

#qtn-app-container .product-row {
    display: flex;
    align-items: center;
    padding: 15px 0;
    gap: 15px;
}

#qtn-app-container .p-img-box {
    width: 45px;
    height: 45px;
    border: 1px solid #ddd;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
}

#qtn-app-container .p-img-box img {
    max-width: 100%;
    max-height: 100%;
}

#qtn-app-container .p-name-label {
    flex: 1;
    font-size: 14px;
    color: #1b75bb;
}

#qtn-app-container .qty-inputs {
    display: flex;
    gap: 20px;
    align-items: center;
}

#qtn-app-container .input-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

#qtn-app-container .input-group label {
    font-size: 12px;
    font-weight: bold;
    color: #555;
}

#qtn-app-container .input-group input {
    width: 140px;
    padding: 10px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    outline: none;
    font-size: 14px;
}

#qtn-app-container .btn-add-product {
    background-color: #1b75bb;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    margin: 20px 0;
}

#qtn-app-container .content-header {
    font-size: 13px;
    font-weight: bold;
    margin-bottom: 8px;
}

#qtn-app-container .content-header span {
    font-weight: normal;
    color: #999;
}

#qtn-app-container .flex-content {
    display: flex;
    gap: 15px;
    margin-bottom: 25px;
}
#qtn-app-container .flex-content > p {
	flex: 2.5;
	height: 220px;
	margin: 0;
}
#qtn-app-container textarea {
    flex: 2.5;
    height: 220px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    padding: 15px;
    font-size: 14px;
    outline: none;
    resize: none;
}

#qtn-app-container .tips-bubble {
    flex: 1;
    background-color: #e8f0fe;
    padding: 15px;
    border-radius: 4px;
    font-size: 13px;
    line-height: 1.6;
    color: #444;
    position: relative;
}
#qtn-app-container .tips-bubble p{
	margin: 0px;
}

#qtn-app-container .tips-bubble::before {
    content: "";
    position: absolute;
    left: -10px;
    top: 20px;
    border-top: 8px solid transparent;
    border-bottom: 8px solid transparent;
    border-right: 10px solid #e8f0fe;
}

#qtn-app-container .upload-section {
    margin-bottom: 25px;
}

#qtn-app-container .upload-header {
    margin-bottom: 10px;
}

#qtn-app-container .upload-label {
    font-size: 13px;
    font-weight: bold;
    color: #333;
}

#qtn-app-container .upload-hint {
    color: #f44336;
    font-size: 12px;
    font-weight: normal;
}

#qtn-app-container .upload-controls {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-top: 10px;
}
#qtn-app-container .upload-controls #fileInput{
	display: none;
}
#qtn-app-container .upload-controls p{
	margin: 0;
}

#qtn-app-container .btn-upload-trigger {
    border: 1px solid #ccc;
    padding: 8px 15px;
    border-radius: 4px;
    background: #fff;
    cursor: pointer;
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 5px;
    color: #555;
}

#qtn-app-container .file-list {
    margin-top: 10px;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

#qtn-app-container .file-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #f9f9f9;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 12px;
    border: 1px solid #eee;
}

#qtn-app-container .file-item .remove-file {
    color: #f44336;
    cursor: pointer;
    font-weight: bold;
}

#qtn-app-container .contact-row {
    display: flex;
    gap: 20px;
    margin-bottom: 15px;
}

#qtn-app-container .contact-row>div {
    flex: 1;
    position: relative;
}

#qtn-app-container .required-star {
    color: #f44336;
    position: absolute;
    left: -12px;
    top: 12px;
    font-size: 18px;
}

#qtn-app-container .main-input {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 14px;
    box-sizing: border-box;
}

#qtn-app-container .error-bubble {
    background-color: #fdecea;
    border: 1px solid #f9c2bd;
    padding: 12px;
    border-radius: 4px;
    font-size: 13px;
    margin-top: 8px;
    position: relative;
    display: none;
}

#qtn-app-container .error-bubble.show {
    display: block;
}

#qtn-app-container .btn-submit {
    background-color: #1b75bb;
    color: white;
    border: none;
    padding: 15px 0;
    width: 250px;
    border-radius: 4px;
    font-size: 15px;
    font-weight: bold;
    cursor: pointer;
    display: block;
    margin: 30px auto 0;
}

/* Modal specific styles with Parent ID */
/* Modal specific styles for scrolling */
#qtn-app-container .modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    justify-content: center;
    align-items: flex-start;
    padding-top: 40px;
}

#qtn-app-container .modal-body {
    background: #fff;
    width: 900px;
    border-radius: 4px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.2);
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

#qtn-app-container .modal-header {
    background: #007bff;
    color: white;
    padding: 12px 18px;
    display: flex;
    justify-content: space-between;
    font-size: 16px;
    flex-shrink: 0;
}

#qtn-app-container .modal-inner {
    padding: 0 20px 0px 20px;
    overflow-y: auto;
    flex-grow: 1;
    position: relative;
}

/* Fixed Filter Area */
#qtn-app-container .filter-area {
    display: flex;
    gap: 12px;
    padding: 15px 0;
    align-items: center;
    position: sticky;
    top: 0;
    background: #fff;
    z-index: 10;
}

#qtn-app-container .search-box {
    flex: 1;
    padding: 9px 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 14px;
    min-width: calc(100% - 200px);
    box-sizing: border-box;
    line-height: 1;
}
#qtn-app-container .cat-box {
    padding: 8px 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    min-width: 160px;
    font-size: 14px;
}

#qtn-app-container .modal-table {
    width: 100%;
    border-collapse: collapse;
    margin-block-end: 0px !important;
}

/* Sticky Header for Table */
#qtn-app-container .modal-table th {
    background: #f8f8f8;
    border: 1px solid #ddd;
    padding: 12px 10px;
    text-align: left;
    font-size: 13px;
    font-weight: bold;
    position: sticky;
    top: 65px;
    /* Adjust based on filter-area height */
    z-index: 9;
}

#qtn-app-container .modal-table td {
    border: 1px solid #eee;
    padding: 10px;
    font-size: 13px;
    vertical-align: middle !important;
}
#qtn-app-container table tbody>tr:nth-child(odd)>td, #qtn-app-container  table tbody>tr:nth-child(odd)>th {
    background-color: #fafafa;
}

/* Sticky Footer for Select All */
#qtn-app-container .bulk-select-bar {
    font-size: 13px;
    color: #555;
    padding: 20px 0;
    position: sticky;
    bottom: 0;
    background: #fff;
    z-index: 10;
    border-top: 1px solid #eee;
    z-index: 20;
}

#qtn-app-container .empty-msg {
    display: none;
    text-align: center;
    padding: 40px;
    color: #666;
    font-size: 15px;
    border: 1px dashed #ccc;
    background: #fafafa;
}

#qtn-app-container .modal-footer {
    padding: 15px;
    text-align: right;
    border-top: 1px solid #eee;
}

#qtn-app-container .m-btn {
    padding: 7px 20px;
    border-radius: 4px;
    border: none;
    cursor: pointer;
    font-size: 14px;
    margin-left: 10px;
}

#qtn-app-container .m-cancel {
    background: #6c757d;
    color: white;
}

#qtn-app-container .m-ok {
    background: #007bff;
    color: white;
}


/* ইনপুটে ০ থাকলে টেক্সট হাইড করার স্টাইল */
.qty-inputs input.zero-val {
    color: transparent !important;
}

/* ফোকাস করলে বা ইউজার টাইপ করলে যেন কালার ফিরে আসে */
.qty-inputs input:focus, 
.qty-inputs input:not(.zero-val) {
    color: inherit !important;
}



/* --- Responsive Styles (বাকি ডিজাইন ঠিক রেখে শুধু মোবাইল ভিউ অ্যাড করা হয়েছে) --- */
@media (max-width: 768px) {
	#qtn-app-container .product-row {
		flex-wrap: wrap; /* কন্টেন্ট বেশি হলে নিচে চলে আসবে */
		padding: 15px 10px;
		gap: 10px;
	}

	#qtn-app-container .p-name-label {
		min-width: calc(100% - 70px); /* নামের জন্য জায়গা ঠিক করা */
	}

	#qtn-app-container .qty-inputs {
		width: 100%; /* ইনপুটগুলো নিচের লাইনে চলে আসবে */
		justify-content: space-between;
		gap: 10px;
		margin-top: 5px;
	}

	#qtn-app-container .input-group {
		flex: 1; /* দুটি ইনপুট সমান জায়গা নিবে */
	}

	#qtn-app-container .input-group input {
		width: 100%; /* ইনপুট বক্স বড় হবে */
		box-sizing: border-box;
	}

	#qtn-app-container .spacer-div {
		display: none; /* মোবাইলে এক্সট্রা স্পেসার বাদ */
	}
	
	#qtn-app-container .tips-bubble{
		display: none;
	}
	#qtn-app-container .contact-row{
		flex-direction: column;
	}
}