label > input[type="file"] {
	display: none;
}

span[validation-for]:empty {
	display: none;
}

span[validation-for] {
	background-color: var(--bs-warning);
	padding: 2px 12px;
	display: inline-block;
	border-radius: 4px;
	font-size: .75rem;
	color: var(--bs-dark);
	margin-top: .25rem;
	text-align: left;
	text-wrap: inherit;
}

.ar-1-1 {
	aspect-ratio: 1/1 !important;
}

.ar-16-9 {
	aspect-ratio: 16/9 !important;
}

.ar-16-75 {
	aspect-ratio: 16/7.5 !important;
}

table.dataTable tbody td.sorting_1 {
	background-color: unset !important;
}

.flex-gap-05 {
	gap: 0.5rem !important;
}

.flex-gap-1 {
	gap: 1rem !important;
}

.datepicker {
	padding: 4px !important;
}

.datepicker td, .datepicker th {
	padding: .4rem;
}

.img-cover-center {
	object-fit: cover !important;
	object-position: center !important;
}

.text-ellipsis {
	white-space: nowrap;
	text-overflow: ellipsis;
	overflow: hidden;
}

/* Teks elipsis 2 baris */
.text-ellipsis-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Teks elipsis 3 baris */
.text-ellipsis-3 {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}


.form-group {
	margin-bottom: .75rem;
}
.form-group label {
	margin-bottom: .5rem;
}

.cursor-pointer {
	cursor: pointer !important;
}

.text-prewrap {
	white-space: pre-wrap;
}

.select2-container--default .select2-selection--single {
	border-radius: var(--bs-radius) !important;
}

.skeleton {
  background-color: #e2e2e2;
  border-radius: 4px;
  position: relative;
  overflow: hidden;
}

/* Shimmer effect */
.skeleton::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  height: 100%;
  width: 100%;
  background: linear-gradient(to right, transparent 0%, #f5f5f5 50%, transparent 100%);
  animation: shimmer 1.2s infinite;
}

@keyframes shimmer {
  100% {
    left: 100%;
  }
}

/* Variasi skeleton */
.skeleton.skeleton-text {
  height: 1rem;
  margin-bottom: 0.5rem;
}

.skeleton.skeleton-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  flex-shrink: 0;
}

.skeleton.skeleton-line {
  height: 0.75rem;
  margin-bottom: 0.5rem;
}

.skeleton.skeleton-title {
  height: 1.5rem;
  width: 80%;
  margin-bottom: 0.75rem;
}

.skeleton.skeleton-thumbnail {
  width: 100%;
  height: 180px;
  border-radius: 8px;
  margin-bottom: 1rem;
}

.skeleton.skeleton-button {
  height: 2.2rem;
  width: 120px;
  border-radius: 25px;
}

.skeleton.skeleton-badge {
  height: 1rem;
  width: 60px;
  border-radius: 6px;
}

.skeleton.skeleton-icon {
  height: 24px;
  width: 24px;
  border-radius: 4px;
}

.skeleton.skeleton-card {
  width: 100%;
  padding: 1rem;
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.owl-theme .owl-controls .owl-page span {
  background: #007bff !important;
}
.owl-theme .owl-controls .owl-buttons div {
  color: #fff !important;
  background: #007bff !important;
  padding: 5px 15px;
  border-radius: 50%;
}

.card-title {
	margin-bottom: 0 !important;
}

@media print {
  body .main-header,
  body .sidebar-panel,
  body .app-footer {
    display: none !important;
  }

  body .main-content-wrap {
    width: 100vw !important;
  }
}