/* LMS Selling Invoice & Receipt Preview Stylesheet (School Plugin Structure) */

.lmss-font-bold {
	font-weight: 600;
}

.lmss-preview-container {
	box-sizing: border-box;
	background: #ffffff;
	color: #1f2937;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	font-size: 13px;
	line-height: 1.5;
	padding: 24px;
	margin: 0 auto;
	max-width: 860px;
}

/* Print Preview Action Toolbar */
.lmss-invoice-preview-wrapper {
	display: flex;
	flex-direction: column;
	background: #f8fafc;
	border-radius: 8px;
	overflow: hidden;
}

.lmss-invoice-toolbar {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	padding: 12px 20px;
	background: #ffffff;
	border-bottom: 1px solid #e2e8f0;
	position: sticky;
	top: 0;
	z-index: 10;
}

.lmss-btn-print-action {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 8px 20px;
	background: #2563eb;
	color: #ffffff !important;
	border: 1px solid #2563eb;
	border-radius: 6px;
	font-size: 13px;
	font-weight: 600;
	cursor: pointer;
	text-decoration: none !important;
	transition: all 0.15s ease-in-out;
	box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.lmss-btn-print-action:hover {
	background: #1d4ed8;
	border-color: #1d4ed8;
	color: #ffffff !important;
	box-shadow: 0 2px 4px rgba(37, 99, 235, 0.2);
}

/* Printable Invoice Document Layout */
.lmss-print-invoice-container {
	background: #ffffff;
	padding: 32px 36px;
	box-sizing: border-box;
}

/* Header */
.lmss-inv-header {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	gap: 20px;
	margin-bottom: 20px;
}

.lmss-inv-company {
	flex: 1;
	max-width: 60%;
}

.lmss-inv-company-name {
	font-size: 20px;
	font-weight: 800;
	color: #0f172a;
	margin: 0 0 3px 0;
	line-height: 1.25;
}

.lmss-inv-company-desc {
	font-size: 12px;
	color: #64748b;
	margin: 0 0 6px 0;
}

.lmss-inv-company-contact {
	font-size: 11.5px;
	color: #475569;
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
}

.lmss-inv-company-address {
	font-size: 11.5px;
	color: #64748b;
	line-height: 1.4;
	margin-top: 4px;
}

/* Meta */
.lmss-inv-meta {
	text-align: right;
	min-width: 200px;
}

.lmss-inv-heading {
	font-size: 22px;
	font-weight: 800;
	color: #0f172a;
	letter-spacing: 0.8px;
	text-transform: uppercase;
	margin: 0 0 8px 0;
	line-height: 1.1;
}

.lmss-inv-meta-table {
	margin-left: auto;
	border-collapse: collapse;
}

.lmss-inv-meta-table th {
	text-align: left;
	font-size: 11.5px;
	font-weight: 500;
	color: #64748b;
	padding: 2px 8px 2px 0;
	white-space: nowrap;
}

.lmss-inv-meta-table td {
	text-align: right;
	font-size: 12px;
	color: #0f172a;
	padding: 2px 0;
	white-space: nowrap;
}

/* Status Badges */
.lmss-inv-status-tag {
	display: inline-block;
	font-size: 10.5px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.4px;
	padding: 2px 8px;
	border-radius: 4px;
	line-height: 1.3;
}

.lmss-inv-status-completed {
	background: #ecfdf5;
	color: #059669;
	border: 1px solid #a7f3d0;
}

.lmss-inv-status-pending {
	background: #fffbeb;
	color: #d97706;
	border: 1px solid #fde68a;
}

.lmss-inv-status-refunded {
	background: #f1f5f9;
	color: #64748b;
	border: 1px solid #cbd5e1;
}

/* Divider */
.lmss-inv-divider {
	height: 1px;
	background: #e2e8f0;
	margin-bottom: 20px;
}

/* Parties Section */
.lmss-inv-parties {
	display: flex;
	justify-content: space-between;
	gap: 28px;
	margin-bottom: 24px;
}

.lmss-inv-party-col {
	flex: 1;
}

.lmss-inv-section-title {
	font-size: 11px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	color: #64748b;
	margin-bottom: 6px;
	padding-bottom: 3px;
	border-bottom: 1px solid #f1f5f9;
}

.lmss-inv-party-name {
	font-size: 14px;
	font-weight: 700;
	color: #0f172a;
	margin-bottom: 2px;
}

.lmss-inv-party-info {
	font-size: 12px;
	color: #475569;
	margin-bottom: 2px;
	line-height: 1.35;
}

.lmss-inv-party-id {
	font-size: 11px;
	color: #64748b;
}

.lmss-inv-info-table {
	width: 100%;
	border-collapse: collapse;
}

.lmss-inv-info-table th {
	text-align: left;
	font-size: 11.5px;
	font-weight: 500;
	color: #64748b;
	padding: 2px 6px 2px 0;
	width: 38%;
}

.lmss-inv-info-table td {
	text-align: left;
	font-size: 12px;
	font-weight: 600;
	color: #0f172a;
	padding: 2px 0;
}

/* Items Table */
.lmss-inv-table-wrapper {
	margin-bottom: 20px;
}

.lmss-inv-table {
	width: 100%;
	border-collapse: collapse;
}

.lmss-inv-table thead th {
	background: #f8fafc;
	border-top: 1px solid #e2e8f0;
	border-bottom: 1px solid #e2e8f0;
	font-size: 11px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.4px;
	color: #475569;
	padding: 8px 10px;
	text-align: left;
}

.lmss-inv-table tbody td {
	padding: 10px 10px;
	border-bottom: 1px solid #f1f5f9;
	color: #334155;
	font-size: 12px;
	vertical-align: top;
}

.lmss-col-num {
	width: 32px;
	color: #94a3b8;
}

.lmss-col-desc {
	width: auto;
}

.lmss-col-cat {
	width: 130px;
	color: #64748b;
	font-size: 11.5px;
}

.lmss-col-qty {
	width: 50px;
}

.lmss-col-price {
	width: 100px;
	font-weight: 600;
	color: #0f172a;
}

.lmss-inv-table .text-center {
	text-align: center;
}

.lmss-inv-table .text-right {
	text-align: right;
}

.lmss-inv-item-name {
	font-weight: 600;
	color: #0f172a;
	margin-bottom: 2px;
}

.lmss-inv-item-sub {
	font-size: 11px;
	color: #64748b;
}

/* Summary & Calculations */
.lmss-inv-summary-section {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	gap: 20px;
	margin-top: 6px;
	padding-top: 14px;
	border-top: 1px solid #e2e8f0;
}

.lmss-inv-summary-notes {
	flex: 1;
	max-width: 50%;
}

.lmss-inv-legal-note {
	font-size: 11px;
	color: #94a3b8;
	margin: 0;
	line-height: 1.45;
}

.lmss-inv-summary-calc {
	min-width: 240px;
}

.lmss-inv-calc-table {
	width: 100%;
	border-collapse: collapse;
}

.lmss-inv-calc-table th {
	text-align: left;
	font-size: 12px;
	font-weight: 500;
	color: #475569;
	padding: 4px 10px 4px 0;
}

.lmss-inv-calc-table td {
	text-align: right;
	font-size: 12.5px;
	font-weight: 600;
	color: #0f172a;
	padding: 4px 0;
}

.lmss-inv-discount-row th,
.lmss-inv-discount-row td {
	color: #059669;
}

.lmss-inv-coupon-code {
	font-size: 10.5px;
	font-weight: 600;
	color: #059669;
}

.lmss-inv-total-row {
	border-top: 1.5px solid #0f172a;
}

.lmss-inv-total-row th {
	font-size: 13.5px;
	font-weight: 800;
	color: #0f172a;
	padding-top: 6px;
	text-transform: uppercase;
}

.lmss-inv-total-row td {
	font-size: 15px;
	font-weight: 800;
	color: #0f172a;
	padding-top: 6px;
}