body { background: linear-gradient(180deg, #eef2f7 0%, #f8fafc 100%); font-family: "Segoe UI", Tahoma, sans-serif; }
.shell { max-width: 1400px; margin: 0 auto; }
.hero { border-radius: 18px; background: linear-gradient(135deg, #173b66 0%, #2b5d96 100%); color: #fff; }
.card-soft { border: 0; border-radius: 16px; box-shadow: 0 10px 24px rgba(16, 46, 82, 0.08); }
.metric { font-size: 1.4rem; font-weight: 700; }
.table thead th { white-space: nowrap; }
.nav-pills .nav-link { border-radius: 999px; }

.mobile-tab-list .list-group-item {
	font-weight: 600;
	color: #17324d;
}

.mobile-tab-list .list-group-item + .list-group-item {
	border-top-width: 0;
}

.v2-dashboard-footer {
	border-top: 1px solid #d7e3ee;
	background: #f4f8fc;
	color: #274560;
	font-size: 0.9rem;
}

/* Keep DataTables sections top-aligned inside cards. */
.card-soft .card-body.table-responsive {
	display: block;
}

.dataTables_wrapper {
	width: 100%;
}

.dataTables_wrapper table,
table.dataTable {
	width: 100% !important;
}

.dataTables_wrapper .row {
	align-items: flex-start !important;
}

.dataTables_wrapper .dataTables_filter,
.dataTables_wrapper .dt-buttons {
	margin-bottom: 0.5rem;
}

#stokSearchTable_wrapper .dataTables_filter {
	text-align: left;
	width: auto;
	float: none !important;
	display: flex;
	justify-content: flex-start;
	margin-right: auto;
}

#stokSearchTable_wrapper .stok-search-filter {
	display: flex;
	justify-content: flex-start;
	width: 100%;
}

#stokSearchTable_wrapper .stok-toolbar {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 0.75rem;
}

#stokSearchTable_wrapper .dataTables_length {
	float: none !important;
	text-align: right;
	margin-left: auto;
}

@media (max-width: 991.98px) {
	#stokSearchTable_wrapper .stok-toolbar {
		flex-direction: column;
		align-items: stretch;
	}

	#stokSearchTable_wrapper .dataTables_length {
		text-align: left;
		margin-left: 0;
	}
}

#stokSearchTable_wrapper .dataTables_filter label {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	margin: 0;
	font-weight: 600;
	color: #17324d;
}

#stokSearchTable_wrapper .dataTables_filter input {
	width: min(620px, 100%);
	min-width: 280px;
	height: 42px;
	font-size: 1rem;
	border-radius: 12px;
	border: 1px solid #c6d8e8;
	padding: 0.35rem 0.75rem;
	margin-left: 0 !important;
}

@media (max-width: 768px) {
	#stokSearchTable_wrapper .dataTables_filter input {
		min-width: 0;
		width: 100%;
	}

	#stokSearchTable_wrapper .dataTables_filter label {
		width: 100%;
		flex-wrap: wrap;
	}
}

.stock-search-shell {
	max-width: 1480px;
}

.search-hero {
	border-radius: 28px;
	background:
		radial-gradient(circle at top left, rgba(255, 214, 102, 0.30), transparent 32%),
		linear-gradient(135deg, #0b3954 0%, #145374 45%, #1b6b74 100%);
	box-shadow: 0 24px 60px rgba(11, 57, 84, 0.22);
	color: #fff;
}

.eyebrow,
.section-kicker {
	font-size: 0.8rem;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	font-weight: 700;
	opacity: 0.72;
}

.search-title,
.section-title {
	font-size: clamp(1.8rem, 2.8vw, 3rem);
	line-height: 1.04;
	font-weight: 800;
	margin: 0;
}

.section-title {
	font-size: clamp(1.25rem, 2vw, 1.8rem);
	color: #17324d;
}

.search-subtitle {
	max-width: 760px;
	font-size: 1rem;
	color: rgba(255, 255, 255, 0.84);
}

.search-hero-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 0.9rem;
}

.hero-chip {
	min-width: 180px;
	padding: 0.9rem 1rem;
	border-radius: 18px;
	background: rgba(255, 255, 255, 0.12);
	backdrop-filter: blur(8px);
	border: 1px solid rgba(255, 255, 255, 0.18);
	display: flex;
	flex-direction: column;
	gap: 0.25rem;
}

.hero-chip-label,
.result-pill-label,
.filter-label {
	font-size: 0.72rem;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	font-weight: 700;
	color: #6a7b8d;
}

.search-card {
	overflow: hidden;
}

.filter-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
	gap: 1rem;
}

.filter-tile {
	display: flex;
	flex-direction: column;
	gap: 0.55rem;
	padding: 1rem;
	border-radius: 20px;
	background: linear-gradient(180deg, #f8fbff 0%, #edf4fa 100%);
	border: 1px solid #dce8f2;
}

.filter-tile .form-select {
	border-radius: 14px;
	border-color: #c6d8e8;
	background-color: #fff;
	min-height: 52px;
	font-weight: 600;
	box-shadow: none;
}

.filter-tile .form-select:focus {
	border-color: #145374;
	box-shadow: 0 0 0 0.2rem rgba(20, 83, 116, 0.14);
}

.result-pills {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
}

.result-pill {
	display: inline-flex;
	align-items: center;
	gap: 0.6rem;
	padding: 0.8rem 1rem;
	border-radius: 999px;
	background: #eef5fb;
	border: 1px solid #d8e6f2;
	color: #17324d;
}

.filter-chip {
	display: inline-flex;
	align-items: center;
	gap: 0.6rem;
	padding: 0.6rem 0.9rem;
	border: 0;
	border-radius: 999px;
	background: #17324d;
	color: #fff;
	font-size: 0.9rem;
	font-weight: 600;
}

.filter-chip strong {
	font-size: 1rem;
	line-height: 1;
}

.loading-badge {
	padding: 0.65rem 0.9rem;
	border-radius: 999px;
	background: #fff8dd;
	border: 1px solid #f1dc84;
	color: #7a5b00;
	font-weight: 700;
}

.modern-table thead th {
	background: #eff6fb;
	color: #17324d;
	border-bottom-width: 1px;
	font-size: 0.82rem;
	text-transform: uppercase;
	letter-spacing: 0.05em;
}

.modern-table tbody td {
	padding-top: 0.95rem;
	padding-bottom: 0.95rem;
	vertical-align: middle;
	border-color: #e9f0f6;
}

.stock-link {
	display: inline-block;
	text-decoration: none;
	color: #163b5c;
	font-weight: 600;
}

.stock-link-button {
	padding: 0;
	border: 0;
	background: transparent;
	text-align: left;
}

.stock-link:hover {
	color: #0b3954;
	text-decoration: underline;
}

.status-badge {
	display: inline-flex;
	align-items: center;
	padding: 0.45rem 0.7rem;
	border-radius: 999px;
	font-size: 0.78rem;
	font-weight: 700;
}

.status-active {
	background: #e7f6ec;
	color: #17643c;
}

.status-finished {
	background: #fff2d9;
	color: #8b5a00;
}

.stock-row-finished td {
	background: linear-gradient(90deg, rgba(255, 236, 204, 0.56), rgba(255, 248, 231, 0.18));
}

.stock-row-active td {
	background: rgba(255, 255, 255, 0.82);
}

.stock-modal-content {
	border: 0;
	border-radius: 24px;
	overflow: hidden;
}

.stock-modal-shell {
	padding-bottom: 0.5rem;
}

.stock-modal-hero {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	gap: 1rem;
	padding: 1.15rem 1.2rem;
	border-radius: 22px;
	background: linear-gradient(135deg, #163b5c 0%, #245d78 100%);
	color: #fff;
}

.stock-modal-kicker {
	font-size: 0.78rem;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	opacity: 0.74;
	font-weight: 700;
}

.stock-modal-title {
	font-size: 1.6rem;
	font-weight: 800;
}

.stock-modal-badges {
	display: flex;
	flex-wrap: wrap;
	justify-content: flex-end;
	gap: 0.5rem;
}

.stock-modal-badge {
	padding: 0.5rem 0.8rem;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.14);
	border: 1px solid rgba(255, 255, 255, 0.18);
	font-size: 0.82rem;
	font-weight: 700;
}

.stock-summary-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
	gap: 0.9rem;
}

.stock-summary-card {
	padding: 1rem;
	border-radius: 18px;
	background: linear-gradient(180deg, #f8fbff 0%, #edf4fa 100%);
	border: 1px solid #dce8f2;
	display: flex;
	flex-direction: column;
	gap: 0.35rem;
}

.stock-summary-card span {
	font-size: 0.75rem;
	text-transform: uppercase;
	letter-spacing: 0.07em;
	font-weight: 700;
	color: #6a7b8d;
}

.stock-summary-card strong {
	font-size: 1.15rem;
	color: #17324d;
}

.stock-image-card {
	height: 100%;
	min-height: 220px;
	border-radius: 22px;
	background: #edf4fa;
	border: 1px solid #dce8f2;
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
}

.stock-image-card img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.stock-image-placeholder {
	color: #6a7b8d;
	font-weight: 700;
}

.stock-mini-table th {
	width: 18%;
	color: #6a7b8d;
	font-size: 0.82rem;
	text-transform: uppercase;
	letter-spacing: 0.05em;
}

.stock-modal-tabs .nav-link {
	border-radius: 999px;
	font-weight: 700;
}

.stock-modal-table-wrap {
	max-height: 420px;
	overflow: auto;
}

@media (max-width: 767.98px) {
	.stock-modal-hero {
		flex-direction: column;
	}

	.stock-modal-badges {
		justify-content: flex-start;
	}
}

@media (max-width: 767.98px) {
	.search-hero,
	.search-card .card-body {
		padding: 1.25rem !important;
	}

	.result-pill {
		width: 100%;
		justify-content: space-between;
	}
}
