/* Custom DataTable styling on top of the vendor template */

.table-filter-bar {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px;
	padding: 16px;
	border-bottom: 1px solid #e7e7e7;
}

.table-filter-bar .form-select,
.table-filter-bar .form-control {
	width: auto;
	min-width: 160px;
}

div.dataTables_wrapper {
	padding: 16px;
}

div.dataTables_wrapper .dt-toolbar,
div.dataTables_wrapper .dt-footer {
	width: 100%;
}

div.dataTables_wrapper div.dataTables_length,
div.dataTables_wrapper div.dataTables_filter,
div.dataTables_wrapper div.dataTables_info,
div.dataTables_wrapper div.dataTables_paginate {
	margin: 0 !important;
}

div.dataTables_wrapper div.dataTables_filter {
	margin-left: auto !important;
	text-align: right;
}

div.dataTables_wrapper div.dataTables_length label,
div.dataTables_wrapper div.dataTables_filter label {
	color: var(--primary, #05b894);
	font-weight: 600;
	display: flex;
	align-items: center;
	gap: 6px;
	margin: 0;
}

div.dataTables_wrapper div.dataTables_length select {
	border-radius: 6px;
	border: 1px solid #e7e7e7;
	padding: 4px 8px;
}

div.dataTables_wrapper div.dataTables_filter input {
	border-radius: 6px;
	border: 1px solid #e7e7e7;
	padding: 6px 10px;
	min-width: 240px;
}

div.dataTables_wrapper div.dataTables_info {
	color: #6b7280;
}

/* Slim animated top loading bar instead of the default centered spinner */
div.dataTables_processing {
	position: static !important;
	width: 100% !important;
	margin: 0 !important;
	height: 3px;
	padding: 0 !important;
	background: #f1f1f1;
	overflow: hidden;
	border: none !important;
	text-indent: -9999px;
}

div.dataTables_processing::before {
	content: "";
	display: block;
	height: 100%;
	width: 40%;
	background: var(--primary, #ff8c00);
	animation: dt-loading-bar 1s ease-in-out infinite;
}

@keyframes dt-loading-bar {
	0% { margin-left: -40%; }
	100% { margin-left: 100%; }
}

/* Action column buttons */
.action-icons {
	display: flex;
	align-items: center;
	gap: 6px;
	justify-content: flex-end;
}

/* Role form: menu access tree */
.menu-access-card {
	border: 1px solid #e7e7e7;
	border-radius: 8px;
	padding: 16px;
	height: 100%;
}

.menu-access-title {
	font-weight: 700;
	margin-bottom: 12px;
}

.menu-access-item {
	padding-top: 4px;
	padding-bottom: 4px;
}

.menu-access-item .form-check-label {
	cursor: pointer;
}

#menu-access-wrapper.menu-access-disabled {
	opacity: 0.45;
	pointer-events: none;
}

.menu-access-table th {
	font-size: 12px;
	font-weight: 600;
	color: #6b7280;
	border-bottom: 1px solid #e7e7e7;
	padding: 6px 4px;
}

.menu-access-table td {
	padding: 6px 4px;
	vertical-align: middle;
	border-bottom: 1px solid #f3f4f6;
}

.menu-access-table tr:last-child td {
	border-bottom: none;
}

/* Icon picker */
.icon-picker-group .icon-input,
.icon-picker-group .icon-preview {
	cursor: pointer;
}

.icon-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(96px, 1fr));
	gap: 8px;
	max-height: 420px;
	overflow-y: auto;
	padding-right: 4px;
}

.icon-grid-item {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 4px;
	padding: 10px 6px;
	border: 1px solid #e7e7e7;
	border-radius: 8px;
	background: #fff;
	transition: all 0.15s ease;
}

.icon-grid-item i {
	font-size: 20px;
	color: #4b5563;
}

.icon-grid-item span {
	font-size: 10px;
	color: #6b7280;
	max-width: 100%;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.icon-grid-item:hover {
	border-color: rgba(var(--primary-rgb), 1);
	background: rgba(var(--primary-rgb), 0.08);
}

.icon-grid-item:hover i,
.icon-grid-item:hover span {
	color: rgba(var(--primary-rgb), 1);
}

/* Logo halaman login diperbesar dari 150px bawaan template */
.login-wrapper .login-content .login-logo,
.login-wrapper .login-logo {
	max-width: 260px;
}

.login-wrapper .login-content .login-logo img {
	width: 100%;
	height: auto;
	max-height: 110px;
	object-fit: contain;
}

@media (max-width: 575.98px) {
	.login-wrapper .login-content .login-logo,
	.login-wrapper .login-logo {
		max-width: 200px;
	}

	.login-wrapper .login-content .login-logo img {
		max-height: 84px;
	}
}

/* Daftar hak akses di halaman profil */
.profile-access-list > li:last-child {
	border-bottom: 0 !important;
	padding-bottom: 0 !important;
	margin-bottom: 0 !important;
}
