/**
 * SD InstaInvoice My Account — invoice list styles.
 * BEM namespace: .sd-iima
 */

.sd-iima__header {
	margin-bottom: 1.25em;
}
.sd-iima__title {
	margin: 0 0 .25em;
	border-bottom: 1px solid rgba(0, 0, 0, .08);
	padding-bottom: .4em;
	font-size: 1.4em;
}
.sd-iima__subtitle {
	margin: 0;
	color: rgba(0, 0, 0, .6);
	font-size: .9em;
}

/* Table layout */
.sd-iima__table {
	width: 100%;
	border-collapse: collapse;
	margin-bottom: 1.25em;
}
.sd-iima__table thead th.sd-iima__th {
	text-align: left;
	font-size: .82em;
	letter-spacing: .04em;
	text-transform: uppercase;
	color: rgba(0, 0, 0, .55);
	font-weight: 600;
	padding: .65em .75em;
	border-bottom: 1px solid rgba(0, 0, 0, .12);
}
.sd-iima__table tbody .sd-iima__cell {
	padding: .85em .75em;
	border-bottom: 1px solid rgba(0, 0, 0, .06);
	vertical-align: middle;
}
.sd-iima__row {
	transition: background-color .12s ease;
}
.sd-iima__row:hover {
	background: rgba(0, 0, 0, .015);
}

/* Type-coded left rail (3px inset shadow). */
.sd-iima__row--type-invoice    > td:first-child { box-shadow: inset 3px 0 0 #00badb; }
.sd-iima__row--type-proforma   > td:first-child { box-shadow: inset 3px 0 0 #6c757d; }
.sd-iima__row--type-prepayment > td:first-child { box-shadow: inset 3px 0 0 #6c757d; }
.sd-iima__row--type-final      > td:first-child { box-shadow: inset 3px 0 0 #1d6f42; }
.sd-iima__row--type-correction > td:first-child { box-shadow: inset 3px 0 0 #d39e00; }
.sd-iima__row--type-storno     > td:first-child { box-shadow: inset 3px 0 0 #c0392b; }
.sd-iima__row--type-delivery-note > td:first-child { box-shadow: inset 3px 0 0 #6c757d; }

/* Child row indent */
.sd-iima__row--child .sd-iima__cell--number {
	padding-left: 1.75em;
}
.sd-iima__child-marker {
	display: inline-block;
	margin-right: .35em;
	opacity: .5;
}

/* Bizonylatszám */
.sd-iima__num {
	font-weight: 600;
}

/* Solid badge — type pill */
.sd-iima__pill {
	display: inline-block;
	font-size: .8em;
	font-weight: 600;
	letter-spacing: .02em;
	padding: .3em .7em;
	border-radius: 999px;
	white-space: nowrap;
	background: #e9ecef;
	color: #495057;
	line-height: 1.2;
}
.sd-iima__pill--type-invoice    { background: #d4f4f9; color: #006c80; }
.sd-iima__pill--type-final      { background: #d6efdd; color: #14532d; }
.sd-iima__pill--type-correction { background: #fcefcd; color: #7a5b00; }
.sd-iima__pill--type-storno     { background: #fbdcd8; color: #7d1f15; }
.sd-iima__pill--type-proforma,
.sd-iima__pill--type-prepayment,
.sd-iima__pill--type-delivery-note { background: #e9ecef; color: #495057; }

/* Money column right-aligned */
.sd-iima__cell--total,
.sd-iima__th--total {
	text-align: right;
	white-space: nowrap;
}

/* Date column subtle */
.sd-iima__cell--date time {
	color: rgba(0, 0, 0, .7);
}

/* Status text */
.sd-iima__status {
	font-weight: 600;
	font-size: .9em;
}
.sd-iima__status--status-paid       { color: #1d6f42; }
.sd-iima__status--status-finalized,
.sd-iima__status--status-sent       { color: #00badb; }
.sd-iima__status--status-cancelled  { color: #c0392b; }

/* Action button */
.sd-iima__cell--actions,
.sd-iima__th--actions {
	text-align: right;
	width: 1%;
	white-space: nowrap;
}
.sd-iima__btn {
	min-width: 4.5em;
	text-align: center;
	font-size: .85em;
}
.sd-iima__btn--disabled {
	opacity: .35;
	cursor: not-allowed;
	pointer-events: none;
	display: inline-block;
}

/* Empty state — line-art dossier */
.sd-iima__empty {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	padding: 3em 1em;
	border: 1px dashed rgba(0, 0, 0, .15);
	border-radius: 4px;
}
.sd-iima__empty-icon {
	width: 64px;
	height: 64px;
	color: rgba(0, 0, 0, .3);
	margin-bottom: 1em;
}
.sd-iima__empty-title {
	font-size: 1.05em;
	font-weight: 600;
	margin: 0 0 .25em;
}
.sd-iima__empty-hint {
	color: rgba(0, 0, 0, .55);
	margin: 0 0 1em;
	max-width: 32em;
}

/* Pagination */
.sd-iima__pagination {
	margin-top: 1em;
}
.sd-iima__pagination ul {
	display: flex;
	flex-wrap: wrap;
	gap: .25em;
	list-style: none;
	padding: 0;
	margin: 0;
}
.sd-iima__pagination li a,
.sd-iima__pagination li span {
	display: inline-block;
	padding: .35em .7em;
	border: 1px solid rgba(0, 0, 0, .12);
	border-radius: 3px;
	text-decoration: none;
	font-size: .9em;
	line-height: 1;
}
.sd-iima__pagination li span.current {
	background: #00badb;
	color: #fff;
	border-color: #00badb;
}

/* Mobile (≤ 768px) — match dukamarket orders-table responsive pattern. */
@media (max-width: 768px) {
	.sd-iima__table thead { display: none; }
	.sd-iima__table tbody { display: block; }
	.sd-iima__table tr {
		display: flex;
		flex-wrap: wrap;
		align-items: flex-start;
		padding: .5em 0;
		border-bottom: 1px solid rgba(0, 0, 0, .08);
	}
	.sd-iima__table td.sd-iima__cell {
		flex: 1 1 50%;
		padding: .35em .75em;
		border: 0;
	}
	.sd-iima__cell--number { flex: 1 1 100%; font-weight: 600; }
	.sd-iima__cell--actions { flex: 1 1 100%; text-align: right; }
	.sd-iima__cell::before {
		content: attr(data-title) ": ";
		font-weight: 600;
		font-size: .8em;
		color: rgba(0, 0, 0, .55);
		display: block;
		margin-bottom: .15em;
		text-transform: uppercase;
		letter-spacing: .03em;
	}
	.sd-iima__cell--number::before,
	.sd-iima__cell--actions::before { content: ""; display: none; }
	.sd-iima__row--type-invoice    > td:first-child,
	.sd-iima__row--type-proforma   > td:first-child,
	.sd-iima__row--type-prepayment > td:first-child,
	.sd-iima__row--type-final      > td:first-child,
	.sd-iima__row--type-correction > td:first-child,
	.sd-iima__row--type-storno     > td:first-child,
	.sd-iima__row--type-delivery-note > td:first-child {
		box-shadow: none;
	}
	.sd-iima__row {
		border-left: 3px solid #6c757d;
		padding-left: .5em;
	}
	.sd-iima__row--type-invoice    { border-left-color: #00badb; }
	.sd-iima__row--type-final      { border-left-color: #1d6f42; }
	.sd-iima__row--type-correction { border-left-color: #d39e00; }
	.sd-iima__row--type-storno     { border-left-color: #c0392b; }
}
