/*
 * Utilitas Tailwind yang dipakai view FT-ONE tetapi tidak ada di build template (styles.css).
 * Dimuat di semua halaman (layouts/css.blade.php). Tambahkan di sini bila memakai kelas baru yang belum ter-build.
 */

:root {
    --app-success: #16a34a;
    --app-warning: #d97706;
    --app-info: #2563eb;
}

.text-success { color: var(--app-success); }
.text-warning { color: var(--app-warning); }
.text-info { color: var(--app-info); }
.bg-success { background-color: var(--app-success); }
.bg-warning { background-color: var(--app-warning); }
.bg-info { background-color: var(--app-info); }
.border-success { border-color: var(--app-success) !important; }
.border-warning { border-color: var(--app-warning) !important; }
.hover\:border-primary:hover { border-color: var(--primary); }
.gap-x-8 { column-gap: 2rem; }
.gap-y-4 { row-gap: 1rem; }
.mt-0\.5 { margin-top: .125rem; }
.mt-1\.5 { margin-top: .375rem; }
.ps-8 { padding-inline-start: 2rem; }
.opacity-60 { opacity: .6; }
.list-disc { list-style-type: disc; }
.break-all { word-break: break-all; }
.select-all { user-select: all; }
.font-bold { font-weight: 700; }
.leading-snug { line-height: 1.375; }
.w-60 { width: 15rem; }
.w-72 { width: 18rem; }
.w-\[130px\] { width: 130px; }
.w-\[140px\] { width: 140px; }
.w-\[160px\] { width: 160px; }
.w-\[300px\] { width: 300px; }
.w-\[340px\] { width: 340px; }
.w-\[380px\] { width: 380px; }
.w-\[45\%\] { width: 45%; }
.min-w-\[280px\] { min-width: 280px; }
@media (min-width: 768px) {
    .md\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .md\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .md\:grid-cols-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
    .md\:col-span-2 { grid-column: span 2 / span 2; }
    .md\:col-span-3 { grid-column: span 3 / span 3; }
}
@media (min-width: 1024px) {
    .lg\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (min-width: 1280px) {
    .xl\:w-\[40rem\] { width: 40rem; }
    .xl\:w-\[48rem\] { width: 48rem; }
    .xl\:w-\[56rem\] { width: 56rem; }
    .xl\:w-\[60rem\] { width: 60rem; }
}
.kt-btn-success { background-color: var(--app-success); color: #fff; }
.kt-btn-success:hover { background-color: #15803d; }
.kt-alert-info { background: #dbeafe; color: #1e3a8a; border-radius: .5rem; padding: .75rem 1rem; }
.kt-alert-secondary { background: #f4f4f5; color: #3f3f46; border-radius: .5rem; padding: .75rem 1rem; }
.kt-alert-warning { background: #fef3c7; color: #78350f; border-radius: .5rem; padding: .75rem 1rem; }


/* Tambahan untuk halaman surat, pengajuan judul & master */
.gap-x-6 { column-gap: 1.5rem; }
.gap-y-1 { row-gap: .25rem; }
.gap-y-2 { row-gap: .5rem; }
.w-44 { width: 11rem; }
.w-64 { width: 16rem; }
.max-w-\[10px\] { max-width: 10px; }
.min-w-\[340px\] { min-width: 340px; }
.min-w-\[360px\] { min-width: 360px; }
.top-\[5\%\] { top: 5%; }

/* Grid pembungkus halaman tanpa kolom eksplisit: kolom tidak melebar mengikuti tabel lebar (tabel menggulir di kartunya). */
.kt-container-fixed > .grid:not([class*="grid-cols"]) { grid-template-columns: minmax(0, 1fr); }
.kt-container-fixed .kt-card { min-width: 0; }

/* Pagination (partials/pagination) */
.min-w-\[2rem\] { min-width: 2rem; }

/* Dashboard dosen */
.grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.last\:border-b-0:last-child { border-bottom-width: 0; }
.py-8 { padding-top: 2rem; padding-bottom: 2rem; }
.max-h-\[420px\] { max-height: 420px; }

/* Dashboard mahasiswa */
.bg-success\/5 { background-color: color-mix(in oklab, var(--color-green-500, #22c55e) 6%, transparent); }
@media (width >= 64rem) { .lg\:grid-cols-8 { grid-template-columns: repeat(8, minmax(0, 1fr)); } }
.hover\:bg-muted\/50:hover { background-color: color-mix(in oklab, var(--muted) 50%, transparent); }

/* Dashboard pimpinan */
.grid-cols-\[8rem_1fr_6rem\] { grid-template-columns: 8rem 1fr 6rem; }

/* Sarpras */
.max-h-56 { max-height: 14rem; }
.object-cover { object-fit: cover; }
.max-w-\[560px\] { max-width: 560px; }
.max-w-\[640px\] { max-width: 640px; }
.max-w-\[720px\] { max-width: 720px; }
@media (width >= 40rem) { .sm\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.max-h-\[75vh\] { max-height: 75vh; }
.overflow-y-auto { overflow-y: auto; }
.list-decimal { list-style-type: decimal; }
@media (width >= 40rem) { .sm\:col-span-2 { grid-column: span 2 / span 2; } }
.justify-items-center { justify-items: center; }
.h-36 { height: 9rem; }
.whitespace-pre-line { white-space: pre-line; }
.max-h-64 { max-height: 16rem; }
.size-24 { width: 6rem; height: 6rem; }
.content-start { align-content: flex-start; }
.bg-warning\/10 { background-color: color-mix(in oklab, var(--color-yellow-500, #eab308) 12%, transparent); }
.basis-0 { flex-basis: 0%; }
.min-h-0 { min-height: 0; }

/* Kartu ringkasan dashboard berwarna (gaya Capaian Kinerja): gradasi halus satu warna, berurutan per kartu. */
.dash-tiles > .kt-card { border: 0; color: #fff; background: linear-gradient(135deg, var(--dash-light), var(--dash)); transition: transform .15s; }
.dash-tiles > a.kt-card:hover { transform: translateY(-2px); }
.dash-tiles > .kt-card:nth-child(6n+1) { --dash: #2563eb; --dash-light: #4382f5; }
.dash-tiles > .kt-card:nth-child(6n+2) { --dash: #0891b2; --dash-light: #22a6c8; }
.dash-tiles > .kt-card:nth-child(6n+3) { --dash: #7c3aed; --dash-light: #9461f4; }
.dash-tiles > .kt-card:nth-child(6n+4) { --dash: #059669; --dash-light: #13b17f; }
.dash-tiles > .kt-card:nth-child(6n+5) { --dash: #ea580c; --dash-light: #f47a37; }
.dash-tiles > .kt-card:nth-child(6n+6) { --dash: #4f46e5; --dash-light: #6d66f0; }
.dash-tiles > .kt-card * { color: #fff; }
.dash-tiles > .kt-card .text-secondary-foreground, .dash-tiles > .kt-card .text-xs { color: rgba(255, 255, 255, .88); }
.dash-tiles > .kt-card .text-destructive { color: #fde68a; font-weight: 600; }
.dash-tiles > .kt-card .text-2xl { font-size: 2rem; font-weight: 800; line-height: 1.1; }
.dash-tiles > .kt-card .bg-muted { background: rgba(255, 255, 255, .25); }
.dash-tiles > .kt-card .bg-primary { background: #fcd34d; }
.dash-tiles > .kt-card .bg-destructive { background: #fecaca; }

/* Jarak saat lompat ke anchor (#...) agar kartu tidak menempel di tepi atas. */
.scroll-mt-20 { scroll-margin-top: 5rem; }
