.bwk-asset-wrapper {
	max-width: 1100px;
	margin: 24px auto;
	padding: 20px;
	border-radius: 18px;
	background: #f8fafc;
	box-shadow: 0 18px 45px rgba(15, 23, 42, .12);
}

.bwk-asset-header {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 16px;
}

.bwk-asset-title {
	font-size: 20px;
	font-weight: 700;
	color: #0f172a;
}

.bwk-asset-filters {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	align-items: center;
	padding: 14px;
	border-radius: 14px;
	background: #ffffff;
	box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
}

.bwk-asset-filters input,
.bwk-asset-filters select {
	border-radius: 999px;
	border: 1px solid #dbe3f0;
	padding: 9px 14px;
	font-size: 13px;
	min-width: 0;
	background: #f9fbff;
	color: #111827;
	box-shadow: 0 12px 30px rgba(15, 23, 42, 0.05);
}

.bwk-asset-filters .bwk-asset-search {
	flex: 1 1 320px;
	min-width: 280px;
}

.bwk-asset-filters .bwk-page-size {
	width: 70px;
	min-width: 70px;
	padding-left: 10px;
	padding-right: 10px;
}

.bwk-asset-filters input::placeholder {
	color: #6b7280;
}

.bwk-asset-filters select {
	appearance: none;
	background-image: linear-gradient(45deg, transparent 50%, #6b7280 50%), linear-gradient(135deg, #6b7280 50%, transparent 50%);
	background-position: calc(100% - 14px) calc(50% - 3px), calc(100% - 9px) calc(50% - 3px);
	background-size: 6px 6px, 6px 6px;
	background-repeat: no-repeat;
	padding-right: 28px;
}

.bwk-asset-filters label {
	color: #4b5563;
}

.bwk-asset-page-size {
	display: flex;
	align-items: center;
	gap: 6px;
}

.bwk-asset-page-size label {
	font-size: 12px;
	color: #374151;
}

.bwk-column-filter {
	position: relative;
}

@media (min-width: 900px) {
	.bwk-asset-filters {
		flex-wrap: nowrap;
	}
	.bwk-asset-filters .bwk-asset-search {
		flex: 1 1 auto;
	}
	.bwk-asset-filters select,
	.bwk-asset-filters .bwk-column-toggle {
		flex: 0 0 auto;
	}
}

.bwk-column-filter {
	position: relative;
}

@media (max-width: 640px) {
	.bwk-asset-header {
		flex-direction: column;
		align-items: flex-start;
		gap: 8px;
	}
	.bwk-asset-filters {
		flex-direction: row;
		flex-wrap: wrap;
		align-items: center;
		gap: 8px;
	}
	.bwk-asset-filters .bwk-asset-search {
		flex: 1 1 100%;
		min-width: 100%;
	}
	.bwk-asset-filters select {
		flex: 1 1 48%;
		min-width: 0;
	}
	.bwk-asset-filters .bwk-column-toggle {
		flex: 1 1 48%;
	}
	.bwk-asset-filters .bwk-asset-page-size {
		flex: 0 0 30%;
		min-width: 70px;
	}
	.bwk-pagination {
		justify-content: center;
	}
}

.bwk-column-toggle {
	border-radius: 999px;
	border: 1px solid #dbe3f0;
	background: #f9fbff;
	color: #111827;
	padding: 9px 14px;
	font-size: 13px;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	cursor: pointer;
	box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
	transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.bwk-column-toggle:hover {
	transform: translateY(-1px);
	box-shadow: 0 14px 30px rgba(15, 23, 42, 0.12);
	background: #ffffff;
}

.bwk-column-list {
	display: grid;
	grid-template-columns: 1fr;
	gap: 8px 6px;
	background: #f8fafc;
	border: 1px solid #e5e7eb;
	border-radius: 14px;
	padding: 12px 12px;
}

.bwk-column-list label {
	display: flex;
	align-items: center;
	gap: 6px;
	font-size: 13px;
	color: #374151;
}

.bwk-asset-table-wrapper {
	overflow: auto;
	border-radius: 14px;
	background: #ffffff;
	border: 1px solid #e5e7eb;
}

.bwk-asset-table {
	width: 100%;
	border-collapse: collapse;
	font-size: 13px;
}

.bwk-asset-table thead {
	background: linear-gradient(135deg, #f4f6fb, #e8eefc);
	color: #ffffff;
}

.bwk-asset-table th,
.bwk-asset-table td {
	padding: 10px 12px;
	white-space: nowrap;
	border-bottom: 1px solid #e5e7eb;
	color: #0f172a;
}

.bwk-asset-table tbody tr:nth-child(even) {
	background: #f9fafb;
}

.bwk-asset-badge {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 3px 9px;
	border-radius: 999px;
	font-size: 11px;
	font-weight: 600;
	color: #0f172a;
}

.bwk-pagination {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	gap: 12px;
	flex-wrap: wrap;
	margin: 16px 0 0;
	padding: 10px 14px;
	background: #ffffff;
	border: 1px solid #e5e7eb;
	border-radius: 12px;
	box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
}

.bwk-pagination .button {
	border-radius: 999px;
	border: none;
	background: linear-gradient(135deg, #2563eb, #06b6d4);
	color: #ffffff;
	padding: 8px 14px;
	font-weight: 600;
	box-shadow: 0 4px 12px rgba(79, 70, 229, 0.25);
	transition: transform 0.15s ease, box-shadow 0.15s ease, opacity 0.15s ease;
}

.bwk-pagination .button:hover:not([disabled]) {
	transform: translateY(-1px);
	box-shadow: 0 6px 18px rgba(79, 70, 229, 0.35);
}

.bwk-pagination .button[disabled] {
	opacity: 0.5;
	cursor: not-allowed;
	box-shadow: none;
}

.bwk-pagination-info {
	font-size: 13px;
	color: #374151;
	white-space: nowrap;
}

@media (max-width: 640px) {
	.bwk-pagination {
		justify-content: center;
		text-align: center;
	}
	.bwk-pagination-info {
		width: 100%;
	}
}

.bwk-asset-badge--beroperasi {
	background: #dcfce7;
	color: #166534;
}

.bwk-asset-badge--digunakan {
	background: #e0f2fe;
	color: #075985;
}

.bwk-asset-badge--standby {
	background: #fef9c3;
	color: #854d0e;
}

.bwk-asset-badge--rosak {
	background: #fee2e2;
	color: #b91c1c;
}

.bwk-asset-badge--servis {
	background: #f3e8ff;
	color: #6b21a8;
}

.bwk-asset-badge--hapus {
	background: #f5f5f5;
	color: #374151;
}

.bwk-asset-empty {
	padding: 18px;
	text-align: center;
	font-size: 13px;
	color: #6b7280;
}

.bwk-asset-action {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 6px 12px;
	border-radius: 10px;
	border: 1px solid #d1d5db;
	background: #ffffff;
	color: #0ea5e9;
	font-weight: 700;
	font-size: 12px;
	text-decoration: none;
	box-shadow: 0 6px 14px rgba(14, 165, 233, 0.18);
	transition: all 0.2s ease;
}

.bwk-asset-action:hover {
	background: #0ea5e9;
	color: #ffffff;
	border-color: #0ea5e9;
	transform: translateY(-1px);
}

.bwk-action-stack {
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.bwk-location-detail {
	font-size: 11px;
	color: #6b7280;
	margin-top: 2px;
	white-space: normal;
}

/* Detail modal */
.bwk-detail-modal {
	position: fixed;
	inset: 0;
	display: none;
	align-items: center;
	justify-content: center;
	z-index: 9999;
}

.bwk-detail-modal.is-open {
	display: flex;
}

.bwk-detail-modal .bwk-login-modal__backdrop {
	position: absolute;
	inset: 0;
	background: linear-gradient(135deg, rgba(15, 23, 42, 0.65), rgba(37, 99, 235, 0.4));
	backdrop-filter: blur(6px);
}

.bwk-detail-modal .bwk-login-modal__dialog {
	position: relative;
	background: #fdfdff;
	border-radius: 22px;
	padding: 24px 26px 18px;
	box-shadow: 0 24px 80px rgba(15, 23, 42, 0.3);
	width: 100%;
	max-width: 720px;
	z-index: 1;
	border: 1px solid #e5e7eb;
}

.bwk-detail-close {
	position: absolute;
	top: 10px;
	right: 12px;
	border: none;
	background: transparent;
	font-size: 20px;
	cursor: pointer;
	color: #9ca3af;
	transition: transform 0.15s ease, color 0.15s ease;
}

.bwk-detail-body {
	display: flex;
	flex-direction: column;
	gap: 14px;
}

.bwk-detail-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 12px;
}

.bwk-detail-header h3 {
	margin: 0;
	font-size: 22px;
	color: #0f172a;
}

.bwk-detail-code {
	font-size: 12px;
	color: #6b7280;
}

.bwk-detail-status {
	font-weight: 700;
	font-size: 13px;
	color: #0f172a;
	background: #e0f2fe;
	padding: 6px 12px;
	border-radius: 999px;
	box-shadow: 0 8px 18px rgba(37, 99, 235, 0.15);
}

.bwk-detail-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
	gap: 10px 12px;
}

.bwk-detail-grid span {
	display: block;
	font-size: 11px;
	text-transform: uppercase;
	letter-spacing: .04em;
	color: #6b7280;
	margin-bottom: 2px;
}

.bwk-detail-grid strong {
	font-size: 13px;
}

.bwk-detail-status-qty span {
	display: block;
	font-size: 11px;
	text-transform: uppercase;
	color: #6b7280;
	margin-bottom: 6px;
	letter-spacing: .04em;
}

.bwk-detail-status-qty-list {
	display: grid;
	gap: 6px;
}

.bwk-detail-status-qty-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	border: 1px solid #e5e7eb;
	border-radius: 12px;
	padding: 10px 12px;
	background: linear-gradient(135deg, #f8fafc, #f3f7ff);
	box-shadow: 0 6px 14px rgba(15, 23, 42, 0.06);
}

.bwk-detail-status-qty-label {
	font-size: 13px;
	color: #111827;
	font-weight: 600;
}

.bwk-detail-status-qty-value {
	font-size: 13px;
}

.bwk-detail-notes span {
	display: block;
	font-size: 11px;
	text-transform: uppercase;
	color: #6b7280;
	margin-bottom: 4px;
	letter-spacing: .04em;
}

.bwk-detail-notes-text {
	margin: 0;
	font-size: 13px;
	color: #374151;
	background: #f9fafb;
	padding: 10px 12px;
	border-radius: 10px;
	border: 1px solid #e5e7eb;
}

.bwk-detail-photo {
	display: grid;
	place-items: center;
	border: 1px solid #e5e7eb;
	border-radius: 14px;
	min-height: 180px;
	background: linear-gradient(135deg, #f8fafc, #f0f4ff);
	overflow: hidden;
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6), 0 12px 28px rgba(15, 23, 42, 0.1);
}

.bwk-detail-photo img {
	max-width: 100%;
	height: auto;
	display: none;
	border-radius: 12px;
}

.bwk-detail-photo.has-image img {
	display: block;
}

.bwk-detail-photo.has-image .bwk-detail-photo-placeholder {
	display: none;
}

.bwk-detail-photo-placeholder {
	color: #6b7280;
	font-size: 12px;
}

.bwk-column-modal {
	position: fixed;
	inset: 0;
	display: none;
	align-items: center;
	justify-content: center;
	padding: 16px;
	z-index: 9998;
}

.bwk-column-modal.is-open {
	display: flex;
}

.bwk-column-modal__backdrop {
	position: absolute;
	inset: 0;
	background: linear-gradient(160deg, rgba(53, 72, 166, 0.75), rgba(15, 23, 42, 0.85));
	backdrop-filter: blur(4px);
}

.bwk-column-modal__dialog {
	position: relative;
	width: 100%;
	max-width: 420px;
	background: #ffffff;
	border-radius: 18px;
	box-shadow: 0 26px 60px rgba(15, 23, 42, 0.28);
	padding: 20px 18px 16px;
	z-index: 1;
	overflow: hidden;
}

.bwk-column-modal__dialog::before {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, rgba(255, 255, 255, 0.85), rgba(249, 250, 251, 0.85));
	pointer-events: none;
}

.bwk-column-modal__header {
	position: relative;
	z-index: 1;
	margin-bottom: 10px;
}

.bwk-column-modal__header h3 {
	margin: 0;
	font-size: 18px;
	color: #111827;
}

.bwk-column-modal__hint {
	margin: 4px 0 0;
	font-size: 13px;
	color: #6b7280;
}

.bwk-column-modal__close {
	position: absolute;
	top: 10px;
	right: 12px;
	border: none;
	background: transparent;
	font-size: 20px;
	cursor: pointer;
	color: #6b7280;
	z-index: 2;
}

.bwk-column-modal__dialog .bwk-column-list {
	position: relative;
	z-index: 1;
	margin: 10px 0;
	background: #ffffff;
}

.bwk-column-modal__dialog .bwk-column-list label {
	padding: 8px 10px;
	border-radius: 10px;
	transition: background 0.15s ease;
}

.bwk-column-modal__dialog .bwk-column-list label:nth-child(odd) {
	background: #f8fafc;
}

.bwk-column-modal__dialog .bwk-column-list label:hover {
	background: #eef2ff;
}

.bwk-column-modal__actions {
	position: relative;
	z-index: 1;
	display: flex;
	justify-content: flex-end;
	margin-top: 6px;
}

.bwk-column-apply {
	border: none;
	border-radius: 12px;
	padding: 9px 16px;
	font-weight: 700;
	background: linear-gradient(135deg, #4f46e5, #06b6d4);
	color: #ffffff;
	box-shadow: 0 12px 26px rgba(79, 70, 229, 0.25);
}

.bwk-modal-open {
	overflow: hidden;
}

/* QR modal */
/* Frontend scanner */
.bwk-scanner-wrap--frontend {
	max-width: 720px;
	margin: 24px auto;
	padding: 0 12px;
}

.bwk-scanner-panel {
	background: #ffffff;
	border: 1px solid #e5e7eb;
	border-radius: 14px;
	padding: 16px 18px;
	box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
}

.bwk-scanner-panel h2 {
	margin: 0 0 6px;
}

.bwk-scanner-note {
	margin: 0 0 12px;
	font-size: 13px;
	color: #4b5563;
}

.bwk-scanner-video-wrap {
	position: relative;
	border: 1px dashed #d1d5db;
	border-radius: 12px;
	min-height: 220px;
	background: #f9fafb;
	display: grid;
	place-items: center;
	overflow: hidden;
}

.bwk-scan-video {
	width: 100%;
	height: auto;
	display: none;
}

.bwk-scanner-video-wrap.active .bwk-scan-video {
	display: block;
}

.bwk-scan-status {
	position: absolute;
	bottom: 10px;
	left: 12px;
	right: 12px;
	background: rgba(0, 0, 0, 0.55);
	color: #fff;
	padding: 6px 10px;
	border-radius: 8px;
	font-size: 12px;
	display: none;
}

.bwk-scanner-video-wrap.active .bwk-scan-status {
	display: block;
}

.bwk-scanner-actions {
	margin-top: 12px;
	display: flex;
	gap: 10px;
	flex-wrap: wrap;
}

.bwk-scanner-form {
	margin-top: 12px;
	display: grid;
	gap: 6px;
}

.bwk-scanner-form span {
	font-size: 12px;
	color: #4b5563;
}

.bwk-scanner-form input {
	width: 100%;
	border-radius: 10px;
	border: 1px solid #d1d5db;
	padding: 10px 12px;
	font-size: 14px;
}

/* Modal */
.bwk-login-modal {
	position: fixed;
	inset: 0;
	display: none;
	align-items: center;
	justify-content: center;
	z-index: 9999;
}

.bwk-login-modal.is-open {
	display: flex;
}

.bwk-login-modal__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(15, 23, 42, 0.55);
	backdrop-filter: blur(2px);
}

.bwk-login-modal__dialog {
	position: relative;
	background: #ffffff;
	border-radius: 16px;
	padding: 20px 22px;
	box-shadow: 0 20px 60px rgba(15, 23, 42, 0.25);
	width: 100%;
	max-width: 520px;
	z-index: 1;
}

.bwk-login-modal__close {
	position: absolute;
	top: 12px;
	right: 12px;
	border: none;
	background: transparent;
	font-size: 22px;
	cursor: pointer;
	color: #6b7280;
}

.bwk-login-modal__body h3 {
	margin-top: 0;
	margin-bottom: 12px;
	color: #111827;
	font-size: 20px;
}

.bwk-login-modal__body form {
	display: grid;
	gap: 12px;
}

.bwk-login-modal__body label {
	font-size: 13px;
	color: #374151;
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.bwk-login-modal__body input[type="text"],
.bwk-login-modal__body select {
	width: 100%;
	border: 1px solid #d1d5db;
	border-radius: 10px;
	padding: 9px 12px;
	font-size: 14px;
}

.bwk-login-modal__body .button-primary {
	background: linear-gradient(135deg, #4f46e5, #06b6d4);
	border: none;
	border-radius: 10px;
	padding: 10px 12px;
	font-weight: 700;
	box-shadow: 0 8px 18px rgba(79, 70, 229, 0.28);
}

.bwk-login-tip {
	font-size: 12px;
	color: #6b7280;
	margin-top: 4px;
}

.bwk-edit-actions {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-top: 6px;
}

.bwk-edit-note {
	font-size: 12px;
	color: #059669;
}

/* Login modal */

@media (max-width: 768px) {
	.bwk-asset-wrapper {
		margin: 16px;
		padding: 16px;
	}

	.bwk-asset-title {
		font-size: 18px;
	}

	.bwk-detail-modal {
		align-items: center;
	}

	.bwk-detail-modal .bwk-login-modal__dialog {
		width: 94%;
		height: 80vh;
		max-height: 80vh;
		margin: 0 3%;
		overflow-y: auto;
	}

	.bwk-detail-body {
		max-height: none;
	}
}
