/* Modal styles */

.modal-body {
	max-height: 70vh;
	overflow-y: auto;
}

.modal-body .spinner-border {
    color: var(--sa-primary-color);
}

/* Form Section Styles */
.sa-form-section {
	background: #f8f9fa;
	border-radius: 6px;
	padding: 0.875rem 1rem;
	border: 1px solid #e9ecef;
}

.sa-form-section-title {
	font-size: 0.8rem;
	font-weight: 600;
	color: #495057;
	margin-bottom: 0.75rem;
	padding-bottom: 0.5rem;
	border-bottom: 1px solid #dee2e6;
	display: flex;
	align-items: center;
}

.sa-form-section-title i {
	color: var(--sa-primary-color, #667eea);
	font-size: 0.75rem;
}

/* Compact labels inside form sections */
.sa-form-section .form-label,
.sa-form-section label {
	font-size: 0.8rem;
	margin-bottom: 0.25rem;
}

.sa-form-section .form-control,
.sa-form-section .form-select {
	font-size: 0.875rem;
}

/* Extra small button */
.btn-xs {
	padding: 0.15rem 0.4rem;
	font-size: 0.7rem;
	line-height: 1.2;
	border-radius: 3px;
}

/* Modal Section Styles */
.sa-modal-section {
	background: #f8f9fa;
	border-radius: 8px;
	padding: 1rem 1.25rem;
	border: 1px solid #e9ecef;
}

.sa-modal-section__title {
	font-size: 0.9rem;
	font-weight: 600;
	color: #495057;
	margin-bottom: 1rem;
	padding-bottom: 0.75rem;
	border-bottom: 1px solid #dee2e6;
	display: flex;
	align-items: center;
}

.sa-modal-section__title i {
	color: var(--sa-primary-color, #667eea);
}

/* Collapsible section styles */
.sa-modal-section--collapsible {
	background: #fff;
	border: 1px dashed #dee2e6;
}

.sa-modal-section--collapsible .sa-modal-section__header {
	cursor: pointer;
	padding: 0.25rem 0;
	transition: background-color 0.15s ease;
}

.sa-modal-section--collapsible .sa-modal-section__header:hover {
	background: #f8f9fa;
	margin: -0.25rem;
	padding: 0.5rem 0.25rem;
	border-radius: 6px;
}

.sa-modal-section--collapsible .sa-modal-section__title {
	border-bottom: none;
	margin-bottom: 0;
	padding-bottom: 0;
}

.sa-modal-section__toggle-icon {
	font-size: 0.7rem;
	color: #6c757d;
	transition: transform 0.2s ease;
}

/* Product Lot Number Table */
.sa-product-lot-table {
	background: #fff;
	border-radius: 6px;
	border: 1px solid #e9ecef;
	overflow: hidden;
}

.sa-product-lot-table table {
	margin-bottom: 0;
}

.sa-product-lot-table thead th {
	background: #f1f3f5;
	font-size: 0.75rem;
	font-weight: 600;
	color: #495057;
	text-transform: uppercase;
	letter-spacing: 0.025em;
	padding: 0.625rem 0.75rem;
	border-bottom: 1px solid #dee2e6;
}

.sa-product-lot-table tbody td {
	padding: 0.625rem 0.75rem;
	vertical-align: middle;
	font-size: 0.875rem;
	border-bottom: 1px solid #f1f3f5;
}

.sa-product-lot-table tbody tr:last-child td {
	border-bottom: none;
}

.sa-product-lot-table tbody tr:hover {
	background: #f8f9fa;
}

/* Multiple lot number inputs container */
.sa-lot-inputs {
	display: flex;
	flex-direction: column;
	gap: 0.375rem;
}

.sa-lot-input-row {
	display: flex;
	align-items: center;
	gap: 0.5rem;
}

.sa-lot-input-label {
	font-size: 0.75rem;
	font-weight: 500;
	color: #6c757d;
	min-width: 1.25rem;
}

.sa-product-lot-table .lot-number-input {
	max-width: 140px;
	font-size: 0.8125rem;
}

.sa-product-lot-table .badge {
	font-size: 0.75rem;
	font-weight: 500;
}