/* CampusStock - filter stok horizontal v4
   File ini harus dimuat SETELAH stylesheet utama aplikasi. */

html body #stok,
html body #stok * {
    box-sizing: border-box;
}

html body #stok {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    overflow: hidden !important;
}

html body #stok form.public-budget-filter {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    margin: 0 0 18px !important;
    padding: 12px !important;
    overflow: hidden !important;
    background: #fff !important;
    border: 1px solid #dfe7f2 !important;
    border-radius: 16px !important;
    box-shadow: 0 8px 24px rgba(28, 55, 90, .07) !important;
}

html body #stok form.public-budget-filter > .public-filter-scroll {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    overscroll-behavior-x: contain;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: #7d9fd7 #edf2f9;
}

html body #stok .public-filter-scroll::-webkit-scrollbar {
    height: 8px;
}

html body #stok .public-filter-scroll::-webkit-scrollbar-track {
    background: #edf2f9;
    border-radius: 999px;
}

html body #stok .public-filter-scroll::-webkit-scrollbar-thumb {
    background: #7d9fd7;
    border: 2px solid #edf2f9;
    border-radius: 999px;
}

/* Desktop: seluruh filter benar-benar satu baris dan memenuhi lebar card. */
@media (min-width: 1180px) {
    html body #stok .public-filter-scroll {
        overflow-x: hidden !important;
    }

    html body #stok .public-filter-fields {
        display: grid !important;
        grid-template-columns:
            minmax(0, 1.08fr)
            minmax(0, .85fr)
            minmax(0, .85fr)
            minmax(0, 1.15fr)
            minmax(0, 1.55fr)
            minmax(0, 1fr)
            132px !important;
        align-items: end !important;
        gap: 8px !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        margin: 0 !important;
        padding: 0 !important;
    }
}

/* Laptop kecil, tablet, dan HP: tetap satu baris; geser di dalam card. */
@media (max-width: 1179.98px) {
    html body #stok .public-filter-scroll {
        padding-bottom: 9px !important;
    }

    html body #stok .public-filter-fields {
        display: flex !important;
        flex-flow: row nowrap !important;
        align-items: flex-end !important;
        gap: 9px !important;
        width: max-content !important;
        min-width: max-content !important;
        max-width: none !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    html body #stok .public-filter-period   { flex: 0 0 170px !important; width: 170px !important; }
    html body #stok .public-filter-from     { flex: 0 0 145px !important; width: 145px !important; }
    html body #stok .public-filter-to       { flex: 0 0 145px !important; width: 145px !important; }
    html body #stok .public-filter-product  { flex: 0 0 185px !important; width: 185px !important; }
    html body #stok .public-filter-faculty  { flex: 0 0 245px !important; width: 245px !important; }
    html body #stok .public-filter-condition{ flex: 0 0 170px !important; width: 170px !important; }
}

html body #stok .public-filter-fields > label {
    display: flex !important;
    flex-direction: column !important;
    justify-content: flex-end !important;
    align-self: end !important;
    gap: 5px !important;
    min-width: 0 !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;

    /* Hilangkan card/border luar pada SEMUA field filter:
       Periode, Dari, Sampai, Nama Barang, Fakultas, dan Kondisi. */
    color: inherit !important;
    background: transparent !important;
    background-color: transparent !important;
    background-image: none !important;
    border: 0 !important;
    border-width: 0 !important;
    border-style: none !important;
    border-color: transparent !important;
    border-radius: 0 !important;
    outline: 0 !important;
    box-shadow: none !important;
    filter: none !important;
}

/* Matikan dekorasi/pseudo-element dari stylesheet tema yang dapat membentuk card. */
html body #stok .public-filter-fields > label::before,
html body #stok .public-filter-fields > label::after {
    content: none !important;
    display: none !important;
    border: 0 !important;
    box-shadow: none !important;
    background: transparent !important;
}

html body #stok .public-filter-fields > label > span {
    display: flex !important;
    align-items: center !important;
    gap: 5px !important;
    min-width: 0 !important;
    height: 15px !important;
    margin: 0 !important;
    padding: 0 !important;
    color: #263b59 !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    line-height: 15px !important;
    white-space: nowrap !important;
}

html body #stok .public-filter-fields > label > span i {
    flex: 0 0 auto !important;
    color: #075ce5 !important;
    font-size: 12px !important;
}

html body #stok .public-filter-fields select,
html body #stok .public-filter-fields input[type="date"] {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    height: 42px !important;
    min-height: 42px !important;
    margin: 0 !important;
    padding: 0 34px 0 11px !important;
    color: #20334f !important;
    background-color: #fff !important;
    border: 1px solid #d4deeb !important;
    border-radius: 10px !important;
    box-shadow: none !important;
    font-family: inherit !important;
    font-size: 12px !important;
    font-weight: 500 !important;
    line-height: normal !important;
}

html body #stok .public-filter-fields input[type="date"] {
    padding-right: 8px !important;
}

html body #stok .public-filter-fields select:focus,
html body #stok .public-filter-fields input[type="date"]:focus {
    outline: none !important;
    border-color: #075ce5 !important;
    box-shadow: 0 0 0 3px rgba(7, 92, 229, .12) !important;
}

html body #stok .public-filter-actions {
    display: grid !important;
    grid-template-columns: 86px 39px !important;
    align-items: end !important;
    align-self: end !important;
    gap: 7px !important;
    flex: 0 0 132px !important;
    width: 132px !important;
    min-width: 132px !important;
    max-width: 132px !important;
    height: 42px !important;
    margin: 0 !important;
    padding: 0 !important;
}

html body #stok .public-filter-actions button,
html body #stok .public-filter-actions a {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 6px !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: none !important;
    height: 42px !important;
    min-height: 42px !important;
    margin: 0 !important;
    padding: 0 !important;
    border-radius: 10px !important;
    white-space: nowrap !important;
    text-decoration: none !important;
    cursor: pointer !important;
}

html body #stok .public-filter-actions button {
    color: #fff !important;
    background: #075ce5 !important;
    border: 1px solid #075ce5 !important;
    font: inherit !important;
    font-size: 12px !important;
    font-weight: 700 !important;
}

html body #stok .public-filter-actions a {
    color: #075ce5 !important;
    background: #eef4ff !important;
    border: 1px solid #c9dbfa !important;
    font-size: 15px !important;
}

html body #stok .public-filter-actions button:hover,
html body #stok .public-filter-actions button:focus-visible {
    background: #064fc2 !important;
    border-color: #064fc2 !important;
}

html body #stok .public-filter-actions a:hover,
html body #stok .public-filter-actions a:focus-visible {
    color: #fff !important;
    background: #075ce5 !important;
    border-color: #075ce5 !important;
}

@media (max-width: 575.98px) {
    html body #stok form.public-budget-filter {
        padding: 10px !important;
        border-radius: 14px !important;
    }
}

/* ==========================================================
   WARNA KONDISI BARANG — POSISI STOK DAN STOK PER UKURAN
   B  = Baik          : biru
   RR = Rusak Ringan  : oranye
   U  = Usang         : ungu
   RB = Rusak Berat   : merah
   ========================================================== */

/* Judul tetap netral agar rincian kondisi mudah dibaca. */
html body #stok .unej-condition-title,
html body #stok .public-size-condition-title {
    color: #263b59 !important;
    -webkit-text-fill-color: #263b59 !important;
    opacity: 1 !important;
}

/* BAIK / B — biru */
html body #stok .unej-condition-breakdown .condition-baik,
html body #stok .unej-condition-breakdown .condition-baik small,
html body #stok .unej-condition-breakdown .condition-baik strong,
html body #stok .public-size-condition-list .condition-baik,
html body #stok .public-size-condition-list .condition-baik small,
html body #stok .public-size-condition-list .condition-baik strong,
html body #stok .public-size-condition-list .condition-baik .public-size-condition-qty {
    color: #075ce5 !important;
    -webkit-text-fill-color: #075ce5 !important;
    opacity: 1 !important;
}

/* RUSAK RINGAN / RR — oranye */
html body #stok .unej-condition-breakdown .condition-rusak-ringan,
html body #stok .unej-condition-breakdown .condition-rusak-ringan small,
html body #stok .unej-condition-breakdown .condition-rusak-ringan strong,
html body #stok .public-size-condition-list .condition-rusak-ringan,
html body #stok .public-size-condition-list .condition-rusak-ringan small,
html body #stok .public-size-condition-list .condition-rusak-ringan strong,
html body #stok .public-size-condition-list .condition-rusak-ringan .public-size-condition-qty {
    color: #e87500 !important;
    -webkit-text-fill-color: #e87500 !important;
    opacity: 1 !important;
}

/* USANG / U — ungu */
html body #stok .unej-condition-breakdown .condition-usang,
html body #stok .unej-condition-breakdown .condition-usang small,
html body #stok .unej-condition-breakdown .condition-usang strong,
html body #stok .public-size-condition-list .condition-usang,
html body #stok .public-size-condition-list .condition-usang small,
html body #stok .public-size-condition-list .condition-usang strong,
html body #stok .public-size-condition-list .condition-usang .public-size-condition-qty {
    color: #7c3aed !important;
    -webkit-text-fill-color: #7c3aed !important;
    opacity: 1 !important;
}

/* RUSAK BERAT / RB — merah */
html body #stok .unej-condition-breakdown .condition-rusak-berat,
html body #stok .unej-condition-breakdown .condition-rusak-berat small,
html body #stok .unej-condition-breakdown .condition-rusak-berat strong,
html body #stok .public-size-condition-list .condition-rusak-berat,
html body #stok .public-size-condition-list .condition-rusak-berat small,
html body #stok .public-size-condition-list .condition-rusak-berat strong,
html body #stok .public-size-condition-list .condition-rusak-berat .public-size-condition-qty {
    color: #dc2626 !important;
    -webkit-text-fill-color: #dc2626 !important;
    opacity: 1 !important;
}

/* ==========================================================
   CAMPUSSTOCK MODERN BLUE PROFILE CARD — V6
   Adaptasi visual card biru-putih dengan header gelombang,
   ikon overlap, statistik, dan chip kondisi berwarna.
   ========================================================== */

html body #stok .unej-stock-grid {
    gap: 18px !important;
}

html body #stok .unej-stock-card-modern {
    position: relative !important;
    display: flex !important;
    flex-direction: column !important;
    min-height: 338px !important;
    padding: 0 !important;
    overflow: hidden !important;
    isolation: isolate !important;
    background: #fff !important;
    border: 1px solid rgba(126, 154, 199, .22) !important;
    border-radius: 24px !important;
    box-shadow: 0 18px 38px rgba(31, 65, 117, .12) !important;
    transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease !important;
}

html body #stok .unej-stock-card-modern:hover {
    transform: translateY(-5px) !important;
    border-color: rgba(7, 92, 229, .28) !important;
    box-shadow: 0 24px 48px rgba(20, 65, 136, .18) !important;
}

html body #stok .unej-stock-card-modern::before,
html body #stok .unej-stock-card-modern::after {
    pointer-events: none !important;
}

html body #stok .unej-stock-card-modern::before {
    content: "" !important;
    position: absolute !important;
    z-index: 1 !important;
    top: -56px !important;
    left: -38px !important;
    width: 220px !important;
    height: 150px !important;
    border-radius: 50% !important;
    background: rgba(255,255,255,.11) !important;
    transform: rotate(-12deg) !important;
}

html body #stok .unej-stock-card-modern::after {
    content: "" !important;
    position: absolute !important;
    z-index: 1 !important;
    top: 48px !important;
    right: -54px !important;
    width: 230px !important;
    height: 90px !important;
    border-radius: 50% 0 0 50% !important;
    background: rgba(81, 190, 255, .28) !important;
    transform: rotate(-7deg) !important;
}

html body #stok .unej-stock-card-banner {
    position: relative !important;
    z-index: 0 !important;
    display: flex !important;
    align-items: flex-start !important;
    justify-content: space-between !important;
    min-height: 105px !important;
    padding: 18px !important;
    background:
        radial-gradient(circle at 16% 0%, rgba(255,255,255,.20) 0 18%, transparent 19%),
        radial-gradient(ellipse at 73% 128%, rgba(77,190,255,.48) 0 46%, transparent 47%),
        linear-gradient(135deg, #1397f4 0%, #086be9 48%, #173fdc 100%) !important;
}

html body #stok .unej-stock-card-banner::after {
    content: "" !important;
    position: absolute !important;
    left: -12% !important;
    right: -10% !important;
    bottom: -30px !important;
    height: 68px !important;
    border-radius: 50% 50% 0 0 / 70% 70% 0 0 !important;
    background: #fff !important;
    transform: rotate(-2deg) !important;
}

html body #stok .unej-stock-card-banner .unej-stock-icon {
    position: absolute !important;
    z-index: 4 !important;
    left: 19px !important;
    bottom: -31px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 66px !important;
    height: 66px !important;
    margin: 0 !important;
    color: #075ce5 !important;
    background: linear-gradient(145deg, #fff, #eaf3ff) !important;
    border: 6px solid rgba(255,255,255,.96) !important;
    border-radius: 50% !important;
    box-shadow: 0 10px 24px rgba(2, 66, 164, .25) !important;
}

html body #stok .unej-stock-card-banner .unej-stock-icon i {
    color: #075ce5 !important;
    font-size: 25px !important;
}

html body #stok .unej-stock-banner-chip {
    position: relative !important;
    z-index: 3 !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    margin-left: auto !important;
    padding: 7px 10px !important;
    color: #fff !important;
    background: rgba(255,255,255,.14) !important;
    border: 1px solid rgba(255,255,255,.20) !important;
    border-radius: 999px !important;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.16) !important;
    backdrop-filter: blur(8px) !important;
    font-size: 10px !important;
    font-weight: 700 !important;
    letter-spacing: .02em !important;
}

html body #stok .unej-stock-card-body {
    position: relative !important;
    z-index: 5 !important;
    display: flex !important;
    flex: 1 1 auto !important;
    flex-direction: column !important;
    padding: 34px 18px 17px !important;
    background: #fff !important;
}

html body #stok .unej-stock-card-modern .unej-stock-main {
    display: flex !important;
    align-items: flex-start !important;
    justify-content: space-between !important;
    gap: 12px !important;
    margin: 0 0 13px !important;
}

html body #stok .unej-stock-card-modern .unej-stock-copy {
    min-width: 0 !important;
}

html body #stok .unej-stock-card-modern .unej-stock-copy h3 {
    margin: 0 0 5px !important;
    overflow: hidden !important;
    color: #172d4f !important;
    font-size: 15px !important;
    font-weight: 800 !important;
    line-height: 1.25 !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
}

html body #stok .unej-stock-card-modern .unej-stock-number {
    display: flex !important;
    align-items: baseline !important;
    gap: 7px !important;
}

html body #stok .unej-stock-card-modern .unej-stock-number strong {
    color: #075ce5 !important;
    font-size: clamp(25px, 2.3vw, 34px) !important;
    font-weight: 900 !important;
    letter-spacing: -.035em !important;
    line-height: 1 !important;
}

html body #stok .unej-stock-card-modern .unej-stock-number span {
    color: #8a99ad !important;
    font-size: 10px !important;
    font-weight: 600 !important;
}

html body #stok .unej-stock-percentage {
    flex: 0 0 auto !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-width: 44px !important;
    height: 28px !important;
    padding: 0 8px !important;
    color: #075ce5 !important;
    background: #eaf3ff !important;
    border: 1px solid #cfe1ff !important;
    border-radius: 999px !important;
    font-size: 11px !important;
    font-weight: 800 !important;
}

html body #stok .unej-stock-card-modern progress {
    display: block !important;
    width: 100% !important;
    height: 6px !important;
    margin: 0 0 15px !important;
    overflow: hidden !important;
    appearance: none !important;
    border: 0 !important;
    border-radius: 999px !important;
    background: #e9eef6 !important;
}

html body #stok .unej-stock-card-modern progress::-webkit-progress-bar {
    background: #e9eef6 !important;
    border-radius: 999px !important;
}

html body #stok .unej-stock-card-modern progress::-webkit-progress-value {
    background: linear-gradient(90deg, #075ce5, #43b6ff) !important;
    border-radius: 999px !important;
}

html body #stok .unej-stock-card-modern progress::-moz-progress-bar {
    background: linear-gradient(90deg, #075ce5, #43b6ff) !important;
    border-radius: 999px !important;
}

html body #stok .unej-stock-card-modern .unej-condition-title,
html body #stok .public-size-card-modern .public-size-condition-title {
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
    margin: 0 0 8px !important;
    color: #263b59 !important;
    font-size: 11px !important;
    font-weight: 800 !important;
}

html body #stok .unej-stock-card-modern .unej-condition-title i,
html body #stok .public-size-card-modern .public-size-condition-title i {
    color: #075ce5 !important;
    font-size: 12px !important;
}

html body #stok .unej-stock-card-modern .unej-condition-breakdown,
html body #stok .public-size-card-modern .public-size-condition-list {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 5px !important;
    margin: 0 0 13px !important;
}

html body #stok .unej-stock-card-modern .unej-condition-breakdown > span,
html body #stok .public-size-card-modern .public-size-condition-list > span {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 4px !important;
    min-width: 0 !important;
    min-height: 29px !important;
    padding: 4px 5px !important;
    border: 1px solid currentColor !important;
    border-radius: 9px !important;
    background: color-mix(in srgb, currentColor 7%, white) !important;
}

@supports not (background: color-mix(in srgb, red 10%, white)) {
    html body #stok .unej-stock-card-modern .unej-condition-breakdown > span,
    html body #stok .public-size-card-modern .public-size-condition-list > span {
        background: #f7faff !important;
    }
}

html body #stok .unej-stock-card-modern .unej-condition-breakdown small,
html body #stok .public-size-card-modern .public-size-condition-list small {
    flex: 0 0 auto !important;
    font-size: 9px !important;
    font-weight: 900 !important;
    line-height: 1 !important;
}

html body #stok .unej-stock-card-modern .unej-condition-breakdown strong,
html body #stok .public-size-card-modern .public-size-condition-qty {
    min-width: 0 !important;
    overflow: hidden !important;
    font-size: 10px !important;
    font-weight: 900 !important;
    line-height: 1 !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
}

html body #stok .unej-stock-card-modern .unej-stock-status {
    position: relative !important;
    z-index: 7 !important;
    display: grid !important;
    grid-template-columns: auto 1fr auto !important;
    align-items: center !important;
    gap: 7px !important;
    min-height: 39px !important;
    margin-top: auto !important;
    padding: 0 11px !important;
    border: 0 !important;
    border-radius: 11px !important;
    font-size: 10px !important;
    font-weight: 700 !important;
}

html body #stok .unej-stock-card-modern .unej-stock-status.safe {
    color: #087c58 !important;
    background: #eafbf4 !important;
}

html body #stok .unej-stock-card-modern .unej-stock-status.medium {
    color: #b56600 !important;
    background: #fff6e9 !important;
}

html body #stok .unej-stock-card-modern .unej-stock-status.low {
    color: #c92842 !important;
    background: #fff0f3 !important;
}

html body #stok .unej-stock-card-modern .unej-card-link {
    z-index: 6 !important;
}

/* -------------------------
   CARD PRODUK STOK PER UKURAN
   ------------------------- */

html body #stok .public-size-groups {
    display: grid !important;
    gap: 22px !important;
}

html body #stok .public-size-product-card {
    position: relative !important;
    overflow: hidden !important;
    padding: 0 !important;
    background: #fff !important;
    border: 1px solid rgba(126,154,199,.22) !important;
    border-radius: 26px !important;
    box-shadow: 0 20px 46px rgba(31,65,117,.12) !important;
}

html body #stok .public-size-product-banner {
    position: relative !important;
    display: grid !important;
    grid-template-columns: auto minmax(0,1fr) auto !important;
    align-items: center !important;
    gap: 15px !important;
    min-height: 118px !important;
    margin: 0 !important;
    padding: 22px 25px 28px !important;
    overflow: hidden !important;
    color: #fff !important;
    background:
        radial-gradient(circle at 16% 8%, rgba(255,255,255,.20) 0 15%, transparent 16%),
        radial-gradient(ellipse at 68% 132%, rgba(66,187,255,.50) 0 46%, transparent 47%),
        linear-gradient(135deg, #159cf4 0%, #086be9 48%, #163cda 100%) !important;
    border: 0 !important;
}

html body #stok .public-size-product-banner::before {
    content: "" !important;
    position: absolute !important;
    left: -8% !important;
    right: -6% !important;
    bottom: -42px !important;
    height: 80px !important;
    border-radius: 50% 50% 0 0 / 72% 72% 0 0 !important;
    background: rgba(91,190,255,.30) !important;
    transform: rotate(-2deg) !important;
}

html body #stok .public-size-product-banner::after {
    content: "" !important;
    position: absolute !important;
    left: -8% !important;
    right: -6% !important;
    bottom: -62px !important;
    height: 88px !important;
    border-radius: 50% 50% 0 0 / 72% 72% 0 0 !important;
    background: #fff !important;
    transform: rotate(1deg) !important;
}

html body #stok .public-size-product-icon {
    position: relative !important;
    z-index: 3 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 64px !important;
    height: 64px !important;
    margin: 0 !important;
    color: #075ce5 !important;
    background: linear-gradient(145deg, #fff, #e8f2ff) !important;
    border: 5px solid rgba(255,255,255,.55) !important;
    border-radius: 20px !important;
    box-shadow: 0 12px 26px rgba(0,54,145,.26) !important;
}

html body #stok .public-size-product-icon i {
    color: #075ce5 !important;
    font-size: 27px !important;
}

html body #stok .public-size-product-copy {
    position: relative !important;
    z-index: 3 !important;
    min-width: 0 !important;
}

html body #stok .public-size-product-copy h3 {
    margin: 0 0 6px !important;
    color: #fff !important;
    font-size: clamp(17px, 2vw, 23px) !important;
    font-weight: 900 !important;
    line-height: 1.2 !important;
}

html body #stok .public-size-product-copy p {
    margin: 0 !important;
    color: rgba(255,255,255,.84) !important;
    font-size: 11px !important;
    font-weight: 500 !important;
}

html body #stok .public-size-product-copy p strong {
    color: #fff !important;
    font-size: 13px !important;
    font-weight: 900 !important;
}

html body #stok .public-size-product-chip {
    position: relative !important;
    z-index: 3 !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 7px !important;
    padding: 9px 12px !important;
    color: #fff !important;
    background: rgba(255,255,255,.14) !important;
    border: 1px solid rgba(255,255,255,.22) !important;
    border-radius: 999px !important;
    backdrop-filter: blur(8px) !important;
    font-size: 10px !important;
    font-weight: 700 !important;
    white-space: nowrap !important;
}

html body #stok .public-size-product-body {
    position: relative !important;
    z-index: 4 !important;
    padding: 5px 18px 20px !important;
    background: #fff !important;
}

html body #stok .public-size-grid-modern {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(165px, 1fr)) !important;
    gap: 12px !important;
}

html body #stok .public-size-card-modern {
    position: relative !important;
    display: flex !important;
    flex-direction: column !important;
    min-width: 0 !important;
    min-height: 220px !important;
    padding: 15px !important;
    overflow: hidden !important;
    background: linear-gradient(180deg, #fff 0%, #fbfdff 100%) !important;
    border: 1px solid #dfe8f5 !important;
    border-radius: 18px !important;
    box-shadow: 0 9px 22px rgba(35,66,111,.08) !important;
    animation: none !important;
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease !important;
}

html body #stok .public-size-card-modern::before {
    content: "" !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    height: 5px !important;
    background: linear-gradient(90deg, #075ce5, #42baff) !important;
}

html body #stok .public-size-card-modern.is-low::before {
    background: linear-gradient(90deg, #ff5270, #ff9db0) !important;
}

html body #stok .public-size-card-modern:hover {
    transform: translateY(-4px) !important;
    border-color: #bdd4f6 !important;
    box-shadow: 0 16px 30px rgba(26,74,148,.14) !important;
}

html body #stok .public-size-card-head {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 8px !important;
    margin: 0 0 12px !important;
}

html body #stok .public-size-label {
    color: #53657f !important;
    font-size: 10px !important;
    font-weight: 800 !important;
    text-transform: uppercase !important;
    letter-spacing: .045em !important;
}

html body #stok .public-size-state {
    display: inline-flex !important;
    align-items: center !important;
    gap: 4px !important;
    padding: 5px 7px !important;
    border-radius: 999px !important;
    font-size: 8px !important;
    font-weight: 800 !important;
    white-space: nowrap !important;
}

html body #stok .public-size-state.safe {
    color: #087c58 !important;
    background: #eafbf4 !important;
}

html body #stok .public-size-state.low {
    color: #c92842 !important;
    background: #fff0f3 !important;
}

html body #stok .public-size-total {
    display: flex !important;
    align-items: baseline !important;
    gap: 6px !important;
    margin: 0 !important;
}

html body #stok .public-size-total strong {
    color: #075ce5 !important;
    font-size: clamp(27px, 3vw, 37px) !important;
    font-weight: 900 !important;
    line-height: 1 !important;
    letter-spacing: -.035em !important;
}

html body #stok .public-size-total span {
    color: #8a99ad !important;
    font-size: 10px !important;
    font-weight: 700 !important;
}

html body #stok .public-size-note {
    display: block !important;
    min-height: 26px !important;
    margin: 5px 0 13px !important;
    color: #93a0b2 !important;
    font-size: 9px !important;
    font-weight: 600 !important;
    line-height: 1.35 !important;
}

html body #stok .public-size-card-modern .public-size-condition-list {
    margin-top: auto !important;
    margin-bottom: 0 !important;
}

/* Warna chip kondisi: B biru, RR oranye, U ungu, RB merah. */
html body #stok .condition-baik {
    color: #075ce5 !important;
}
html body #stok .condition-rusak-ringan {
    color: #e87500 !important;
}
html body #stok .condition-usang {
    color: #7c3aed !important;
}
html body #stok .condition-rusak-berat {
    color: #dc2626 !important;
}

@media (max-width: 767.98px) {
    html body #stok .unej-stock-card-modern {
        min-height: 322px !important;
        border-radius: 21px !important;
    }

    html body #stok .unej-stock-card-banner {
        min-height: 94px !important;
    }

    html body #stok .public-size-product-banner {
        grid-template-columns: auto minmax(0,1fr) !important;
        min-height: 112px !important;
        padding: 18px 18px 27px !important;
    }

    html body #stok .public-size-product-chip {
        display: none !important;
    }

    html body #stok .public-size-product-icon {
        width: 56px !important;
        height: 56px !important;
        border-radius: 17px !important;
    }

    html body #stok .public-size-product-body {
        padding: 4px 12px 15px !important;
    }

    html body #stok .public-size-grid-modern {
        grid-template-columns: repeat(2, minmax(0,1fr)) !important;
        gap: 9px !important;
    }

    html body #stok .public-size-card-modern {
        min-height: 211px !important;
        padding: 12px !important;
        border-radius: 15px !important;
    }

    html body #stok .public-size-card-head {
        align-items: flex-start !important;
        flex-direction: column !important;
        gap: 6px !important;
    }

    html body #stok .unej-stock-card-modern .unej-condition-breakdown,
    html body #stok .public-size-card-modern .public-size-condition-list {
        gap: 4px !important;
    }

    html body #stok .unej-stock-card-modern .unej-condition-breakdown > span,
    html body #stok .public-size-card-modern .public-size-condition-list > span {
        min-height: 27px !important;
        padding: 3px !important;
    }
}

@media (max-width: 390px) {
    html body #stok .public-size-grid-modern {
        grid-template-columns: 1fr !important;
    }
}

/* Penetralan alignment dari tema lama agar komponen modern tetap rapi. */
html body #stok .unej-stock-card-modern,
html body #stok .unej-stock-card-modern *,
html body #stok .public-size-product-card,
html body #stok .public-size-product-card * {
    text-align: left !important;
}

html body #stok .unej-stock-card-modern .unej-stock-percentage,
html body #stok .unej-stock-card-modern .unej-condition-breakdown > span,
html body #stok .public-size-card-modern .public-size-state,
html body #stok .public-size-card-modern .public-size-condition-list > span {
    text-align: center !important;
}

/* ==========================================================
   CAMPUSSTOCK COMPACT CARD — V7
   Header lebih pendek, ikon dinaikkan, dan jarak antarkartu
   dipersempit tanpa mengurangi keterbacaan informasi.
   ========================================================== */

/* Jarak antarkartu lebih rapat tetapi tetap jelas. */
html body #stok .unej-stock-grid {
    gap: 12px !important;
}

/* Card dibuat sedikit lebih ringkas. */
html body #stok .unej-stock-card-modern {
    min-height: 302px !important;
    border-radius: 21px !important;
    box-shadow: 0 14px 30px rgba(31, 65, 117, .11) !important;
}

/* Header biru diperpendek. */
html body #stok .unej-stock-card-banner {
    min-height: 78px !important;
    height: 78px !important;
    padding: 11px 13px !important;
}

/* Gelombang putih mengikuti header yang lebih pendek. */
html body #stok .unej-stock-card-banner::after {
    bottom: -21px !important;
    height: 47px !important;
}

/* Ornamen header disesuaikan agar tidak terlalu penuh. */
html body #stok .unej-stock-card-modern::before {
    top: -72px !important;
    left: -47px !important;
    width: 184px !important;
    height: 126px !important;
}

html body #stok .unej-stock-card-modern::after {
    top: 34px !important;
    right: -62px !important;
    width: 215px !important;
    height: 68px !important;
}

/* Ikon Bootstrap dinaikkan dan dibuat lebih terlihat. */
html body #stok .unej-stock-card-banner .unej-stock-icon {
    left: 16px !important;
    bottom: -8px !important;
    width: 54px !important;
    height: 54px !important;
    border-width: 4px !important;
    box-shadow: 0 8px 18px rgba(2, 66, 164, .22) !important;
}

html body #stok .unej-stock-card-banner .unej-stock-icon i {
    font-size: 23px !important;
    line-height: 1 !important;
}

/* Chip monitoring diperkecil agar proporsional dengan header. */
html body #stok .unej-stock-banner-chip {
    gap: 4px !important;
    padding: 5px 8px !important;
    font-size: 9px !important;
}

/* Body dinaikkan setelah ikon tidak lagi turun terlalu jauh. */
html body #stok .unej-stock-card-body {
    padding: 20px 14px 14px !important;
}

html body #stok .unej-stock-card-modern .unej-stock-main {
    gap: 8px !important;
    margin-bottom: 9px !important;
}

html body #stok .unej-stock-card-modern .unej-stock-copy h3 {
    margin-bottom: 4px !important;
    font-size: 14px !important;
}

html body #stok .unej-stock-card-modern .unej-stock-number {
    gap: 5px !important;
}

html body #stok .unej-stock-card-modern .unej-stock-number strong {
    font-size: clamp(24px, 2.1vw, 31px) !important;
}

html body #stok .unej-stock-card-modern progress {
    margin: 2px 0 12px !important;
}

html body #stok .unej-stock-card-modern .unej-condition-title {
    margin-bottom: 7px !important;
}

html body #stok .unej-stock-card-modern .unej-condition-breakdown {
    gap: 5px !important;
    margin-bottom: 11px !important;
}

html body #stok .unej-stock-card-modern .unej-condition-breakdown > span {
    min-height: 29px !important;
    padding: 4px 3px !important;
    border-radius: 9px !important;
}

html body #stok .unej-stock-card-modern .unej-stock-status {
    min-height: 39px !important;
    margin-top: auto !important;
    padding: 8px 10px !important;
}

/* Tablet dan mobile tetap ringkas serta mudah dibaca. */
@media (max-width: 767.98px) {
    html body #stok .unej-stock-grid {
        gap: 10px !important;
    }

    html body #stok .unej-stock-card-modern {
        min-height: 288px !important;
        border-radius: 19px !important;
    }

    html body #stok .unej-stock-card-banner {
        min-height: 70px !important;
        height: 70px !important;
        padding: 9px 11px !important;
    }

    html body #stok .unej-stock-card-banner::after {
        bottom: -18px !important;
        height: 40px !important;
    }

    html body #stok .unej-stock-card-banner .unej-stock-icon {
        left: 13px !important;
        bottom: -6px !important;
        width: 49px !important;
        height: 49px !important;
    }

    html body #stok .unej-stock-card-banner .unej-stock-icon i {
        font-size: 21px !important;
    }

    html body #stok .unej-stock-card-body {
        padding: 18px 12px 12px !important;
    }
}

/* ==========================================================
   CAMPUSSTOCK READABLE CONDITION CARD — V8
   - Ikon ditempatkan tepat di tengah header.
   - Rincian kondisi dibuat 2 x 2 agar angka tidak terpotong.
   - Nilai stok selalu tampil penuh tanpa ellipsis.
   ========================================================== */

/* Header tetap ringkas, tetapi memberi ruang yang cukup untuk ikon di tengah. */
html body #stok .unej-stock-card-banner {
    position: relative !important;
    min-height: 78px !important;
    height: 78px !important;
    padding: 8px 10px !important;
    align-items: center !important;
    justify-content: center !important;
}

/* Ikon benar-benar berada di tengah-tengah bidang header, bukan menggantung di bawah. */
html body #stok .unej-stock-card-banner .unej-stock-icon {
    left: 50% !important;
    top: 50% !important;
    right: auto !important;
    bottom: auto !important;
    transform: translate(-50%, -50%) !important;
    width: 52px !important;
    height: 52px !important;
    border-width: 4px !important;
    z-index: 8 !important;
    box-shadow: 0 8px 20px rgba(2, 66, 164, .24) !important;
}

html body #stok .unej-stock-card-banner .unej-stock-icon i {
    display: block !important;
    font-size: 23px !important;
    line-height: 1 !important;
}

/* Chip tidak mendorong posisi ikon; dipasang absolut pada sudut kanan atas. */
html body #stok .unej-stock-banner-chip {
    position: absolute !important;
    z-index: 9 !important;
    top: 8px !important;
    right: 8px !important;
    margin: 0 !important;
    padding: 4px 7px !important;
    font-size: 8.5px !important;
    line-height: 1.15 !important;
}

/* Karena ikon tidak lagi overlap ke body, ruang atas body dapat diringkas. */
html body #stok .unej-stock-card-body {
    padding: 14px 13px 13px !important;
}

/* Tambahkan sedikit tinggi agar dua baris kondisi dan status tetap lapang. */
html body #stok .unej-stock-card-modern {
    min-height: 323px !important;
}

/* Rincian kondisi dibuat dua kolom agar angka ribuan tidak terpotong. */
html body #stok .unej-stock-card-modern .unej-condition-breakdown,
html body #stok .public-size-card-modern .public-size-condition-list {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    column-gap: 6px !important;
    row-gap: 5px !important;
    width: 100% !important;
}

/* Setiap sub-card menampilkan simbol di kiri dan nilai penuh di kanan. */
html body #stok .unej-stock-card-modern .unej-condition-breakdown > span,
html body #stok .public-size-card-modern .public-size-condition-list > span {
    display: grid !important;
    grid-template-columns: auto minmax(0, 1fr) !important;
    align-items: center !important;
    justify-content: stretch !important;
    gap: 5px !important;
    min-width: 0 !important;
    min-height: 31px !important;
    padding: 5px 7px !important;
    overflow: visible !important;
    border-radius: 9px !important;
}

html body #stok .unej-stock-card-modern .unej-condition-breakdown small,
html body #stok .public-size-card-modern .public-size-condition-list small {
    display: block !important;
    min-width: 14px !important;
    overflow: visible !important;
    font-size: 9px !important;
    line-height: 1 !important;
    text-align: left !important;
    white-space: nowrap !important;
}

/* Hapus overflow hidden/ellipsis dari rule lama. */
html body #stok .unej-stock-card-modern .unej-condition-breakdown strong,
html body #stok .public-size-card-modern .public-size-condition-qty {
    display: block !important;
    width: auto !important;
    min-width: 0 !important;
    max-width: none !important;
    overflow: visible !important;
    color: currentColor !important;
    font-size: clamp(10px, .86vw, 12px) !important;
    font-weight: 900 !important;
    font-variant-numeric: tabular-nums !important;
    letter-spacing: -.015em !important;
    line-height: 1 !important;
    text-align: right !important;
    text-overflow: clip !important;
    white-space: nowrap !important;
}

/* Jarak antarbagian tetap kompak, tetapi tidak saling menekan. */
html body #stok .unej-stock-card-modern .unej-stock-main {
    margin-bottom: 8px !important;
}

html body #stok .unej-stock-card-modern progress {
    margin-bottom: 10px !important;
}

html body #stok .unej-stock-card-modern .unej-condition-title {
    margin-bottom: 6px !important;
}

html body #stok .unej-stock-card-modern .unej-condition-breakdown {
    margin-bottom: 10px !important;
}

/* Pada stok per ukuran, angka stok utama dan kondisi tetap terbaca jelas. */
html body #stok .public-size-card-modern {
    min-width: 0 !important;
    overflow: visible !important;
}

html body #stok .public-size-card-modern .public-size-total strong {
    overflow: visible !important;
    text-overflow: clip !important;
    white-space: nowrap !important;
}

/* Tablet/HP: ikon tetap di tengah dan angka kondisi tetap dua kolom. */
@media (max-width: 767.98px) {
    html body #stok .unej-stock-card-banner {
        min-height: 72px !important;
        height: 72px !important;
    }

    html body #stok .unej-stock-card-banner .unej-stock-icon {
        left: 50% !important;
        top: 50% !important;
        bottom: auto !important;
        width: 48px !important;
        height: 48px !important;
        transform: translate(-50%, -50%) !important;
    }

    html body #stok .unej-stock-card-banner .unej-stock-icon i {
        font-size: 21px !important;
    }

    html body #stok .unej-stock-card-body {
        padding: 13px 12px 12px !important;
    }

    html body #stok .unej-stock-card-modern .unej-condition-breakdown strong,
    html body #stok .public-size-card-modern .public-size-condition-qty {
        font-size: 11px !important;
    }
}

/* Layar sangat sempit tetap mempertahankan angka penuh. */
@media (max-width: 390px) {
    html body #stok .unej-stock-card-modern .unej-condition-breakdown,
    html body #stok .public-size-card-modern .public-size-condition-list {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }

    html body #stok .unej-stock-card-modern .unej-condition-breakdown > span,
    html body #stok .public-size-card-modern .public-size-condition-list > span {
        padding: 5px 6px !important;
    }
}

/* ==========================================================
   CAMPUSSTOCK ICON MORE LEFT + CLEAN SIZE CARD — V10
   - Ikon posisi stok digeser ke kiri secara proporsional.
   - Garis aksen merah/biru pada card stok per ukuran dihapus.
   ========================================================== */

/* Ikon tidak lagi tepat di tengah. Posisi kiri dibuat proporsional,
   tetapi tetap mempunyai batas minimum dan maksimum agar tidak mepet. */
html body #stok .unej-stock-card-banner .unej-stock-icon {
    left: clamp(40px, 23%, 46px) !important;
    top: 50% !important;
    right: auto !important;
    bottom: auto !important;
    transform: translate(-50%, -50%) !important;
}

/* Pastikan chip Monitoring tetap di kanan dan tidak bertabrakan dengan ikon. */
html body #stok .unej-stock-banner-chip {
    top: 8px !important;
    right: 8px !important;
    max-width: calc(100% - 92px) !important;
}

/* Hilangkan seluruh garis aksen biru/merah di bagian atas sub-card ukuran. */
html body #stok .public-size-card-modern::before,
html body #stok .public-size-card-modern.is-low::before,
html body #stok .public-size-card-modern.is-safe::before,
html body #stok .public-size-card-modern.stock-alert-card::before {
    content: none !important;
    display: none !important;
    width: 0 !important;
    height: 0 !important;
    background: none !important;
}

/* Bersihkan kemungkinan border/inner shadow berwarna dari stylesheet lama. */
html body #stok .public-size-card-modern,
html body #stok .public-size-card-modern.is-low,
html body #stok .public-size-card-modern.is-safe,
html body #stok .public-size-card-modern.stock-alert-card {
    border-top-color: #dfe8f5 !important;
    box-shadow: 0 9px 22px rgba(35,66,111,.08) !important;
    animation: none !important;
}

html body #stok .public-size-card-modern:hover {
    border-top-color: #bdd4f6 !important;
    box-shadow: 0 16px 30px rgba(26,74,148,.14) !important;
}

/* Posisi pada tablet dan HP tetap konsisten serta tidak terlalu dekat tepi. */
@media (max-width: 767.98px) {
    html body #stok .unej-stock-card-banner .unej-stock-icon {
        left: clamp(38px, 20%, 44px) !important;
        top: 50% !important;
        transform: translate(-50%, -50%) !important;
    }
}

@media (max-width: 390px) {
    html body #stok .unej-stock-card-banner .unej-stock-icon {
        left: 40px !important;
    }
}

/* ==========================================================
   CAMPUSSTOCK CLEAN CARD WITHOUT HEADER — V11
   Menghapus seluruh banner/header penuh di dalam panel tab.
   Pengganti: toolbar ikon kecil, badge lembut, dan ringkasan putih.
   ========================================================== */

/* ---------- Posisi Stok: tanpa header/banner biru ---------- */
html body #stok .unej-stock-card-modern {
    min-height: 286px !important;
    overflow: hidden !important;
    background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%) !important;
    border: 1px solid #dce7f5 !important;
    border-radius: 20px !important;
    box-shadow: 0 12px 28px rgba(31, 65, 117, .10) !important;
}

/* Hapus seluruh ornamen yang sebelumnya membentuk bidang header. */
html body #stok .unej-stock-card-modern::before,
html body #stok .unej-stock-card-modern::after,
html body #stok .unej-stock-card-banner,
html body #stok .unej-stock-card-banner::before,
html body #stok .unej-stock-card-banner::after {
    content: none !important;
    display: none !important;
    background: none !important;
}

html body #stok .unej-stock-card-body {
    position: relative !important;
    z-index: 2 !important;
    display: flex !important;
    flex: 1 1 auto !important;
    flex-direction: column !important;
    padding: 14px !important;
    background: transparent !important;
}

/* Pengganti header: toolbar kecil di dalam card, bukan bidang penuh. */
html body #stok .unej-stock-card-toolbar {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 10px !important;
    min-height: 46px !important;
    margin: 0 0 12px !important;
    padding: 0 !important;
}

html body #stok .unej-stock-card-toolbar .unej-stock-icon {
    position: static !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex: 0 0 46px !important;
    width: 46px !important;
    height: 46px !important;
    margin: 0 !important;
    color: #075ce5 !important;
    background: linear-gradient(145deg, #edf5ff, #ffffff) !important;
    border: 1px solid #cfe1ff !important;
    border-radius: 14px !important;
    box-shadow: 0 7px 16px rgba(7, 92, 229, .12) !important;
    transform: none !important;
}

html body #stok .unej-stock-card-toolbar .unej-stock-icon i {
    color: #075ce5 !important;
    font-size: 22px !important;
    line-height: 1 !important;
}

html body #stok .unej-stock-banner-chip {
    position: static !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 5px !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 6px 9px !important;
    color: #075ce5 !important;
    background: #eef5ff !important;
    border: 1px solid #d1e2ff !important;
    border-radius: 999px !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
    font-size: 8.5px !important;
    font-weight: 800 !important;
    line-height: 1 !important;
    white-space: nowrap !important;
}

html body #stok .unej-stock-card-modern .unej-stock-main {
    margin-bottom: 8px !important;
}

html body #stok .unej-stock-card-modern:hover {
    transform: translateY(-4px) !important;
    border-color: #bfd4f3 !important;
    box-shadow: 0 18px 34px rgba(24, 69, 139, .14) !important;
}

/* ---------- Stok per Ukuran: ganti banner dengan summary putih ---------- */
html body #stok .public-size-product-card {
    overflow: hidden !important;
    background: #fff !important;
    border: 1px solid #dce7f5 !important;
    border-radius: 22px !important;
    box-shadow: 0 14px 34px rgba(31, 65, 117, .10) !important;
}

html body #stok .public-size-product-banner,
html body #stok .public-size-product-banner::before,
html body #stok .public-size-product-banner::after {
    content: none !important;
    display: none !important;
    background: none !important;
}

html body #stok .public-size-product-summary {
    display: grid !important;
    grid-template-columns: auto minmax(0, 1fr) auto !important;
    align-items: center !important;
    gap: 12px !important;
    min-height: 74px !important;
    margin: 0 !important;
    padding: 13px 16px !important;
    color: #172d4f !important;
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%) !important;
    border: 0 !important;
    border-bottom: 1px solid #e4edf8 !important;
}

html body #stok .public-size-product-summary .public-size-product-icon {
    position: static !important;
    z-index: auto !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 48px !important;
    height: 48px !important;
    margin: 0 !important;
    color: #075ce5 !important;
    background: #edf5ff !important;
    border: 1px solid #cfe1ff !important;
    border-radius: 14px !important;
    box-shadow: none !important;
}

html body #stok .public-size-product-summary .public-size-product-icon i {
    color: #075ce5 !important;
    font-size: 22px !important;
}

html body #stok .public-size-product-summary .public-size-product-copy {
    position: static !important;
    z-index: auto !important;
    min-width: 0 !important;
}

html body #stok .public-size-product-summary .public-size-product-copy h3 {
    margin: 0 0 4px !important;
    overflow: hidden !important;
    color: #172d4f !important;
    font-size: clamp(15px, 1.6vw, 19px) !important;
    font-weight: 900 !important;
    line-height: 1.2 !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
}

html body #stok .public-size-product-summary .public-size-product-copy p {
    margin: 0 !important;
    color: #7b8ba2 !important;
    font-size: 10px !important;
    font-weight: 600 !important;
    line-height: 1.35 !important;
}

html body #stok .public-size-product-total {
    display: inline-flex !important;
    align-items: baseline !important;
    justify-content: center !important;
    gap: 5px !important;
    min-width: 88px !important;
    padding: 9px 11px !important;
    color: #075ce5 !important;
    background: #eef5ff !important;
    border: 1px solid #d1e2ff !important;
    border-radius: 13px !important;
    white-space: nowrap !important;
}

html body #stok .public-size-product-total strong {
    color: #075ce5 !important;
    font-size: 17px !important;
    font-weight: 900 !important;
    line-height: 1 !important;
}

html body #stok .public-size-product-total small {
    color: #71839d !important;
    font-size: 9px !important;
    font-weight: 700 !important;
}

html body #stok .public-size-product-body {
    padding: 14px 16px 17px !important;
    background: #fff !important;
}

/* ---------- Grafik dan Fakultas: tanpa elemen header ---------- */
html body #stok .public-tab-card-clean {
    overflow: hidden !important;
    background: #fff !important;
    border: 1px solid #dce7f5 !important;
    border-radius: 20px !important;
    box-shadow: 0 14px 34px rgba(31, 65, 117, .10) !important;
}

html body #stok .public-card-toolbar {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 14px !important;
    margin: 0 !important;
    padding: 13px 16px !important;
    color: #172d4f !important;
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%) !important;
    border: 0 !important;
    border-bottom: 1px solid #e4edf8 !important;
}

html body #stok .public-card-toolbar-title {
    display: flex !important;
    align-items: center !important;
    gap: 11px !important;
    min-width: 0 !important;
}

html body #stok .public-card-toolbar-icon {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex: 0 0 44px !important;
    width: 44px !important;
    height: 44px !important;
    color: #075ce5 !important;
    background: #edf5ff !important;
    border: 1px solid #cfe1ff !important;
    border-radius: 13px !important;
}

html body #stok .public-card-toolbar-icon i {
    color: #075ce5 !important;
    font-size: 20px !important;
}

html body #stok .public-card-toolbar h3 {
    margin: 0 0 3px !important;
    color: #172d4f !important;
    font-size: 15px !important;
    font-weight: 900 !important;
    line-height: 1.25 !important;
}

html body #stok .public-card-toolbar p {
    margin: 0 !important;
    color: #7b8ba2 !important;
    font-size: 10px !important;
    font-weight: 600 !important;
    line-height: 1.35 !important;
}

html body #stok .public-card-toolbar-badge {
    display: inline-flex !important;
    align-items: center !important;
    gap: 5px !important;
    padding: 7px 9px !important;
    color: #087c58 !important;
    background: #eafbf4 !important;
    border: 1px solid #ccefe1 !important;
    border-radius: 999px !important;
    font-size: 9px !important;
    font-weight: 800 !important;
    white-space: nowrap !important;
}

html body #stok .public-chart-toolbar .public-chart-legend {
    flex: 0 0 auto !important;
    margin: 0 !important;
}

html body #stok .public-chart-wrap {
    padding-top: 10px !important;
}

/* ---------- Responsif ---------- */
@media (max-width: 767.98px) {
    html body #stok .unej-stock-card-modern {
        min-height: 276px !important;
        border-radius: 18px !important;
    }

    html body #stok .unej-stock-card-body {
        padding: 12px !important;
    }

    html body #stok .unej-stock-card-toolbar {
        min-height: 42px !important;
        margin-bottom: 10px !important;
    }

    html body #stok .unej-stock-card-toolbar .unej-stock-icon {
        flex-basis: 42px !important;
        width: 42px !important;
        height: 42px !important;
        border-radius: 12px !important;
    }

    html body #stok .unej-stock-card-toolbar .unej-stock-icon i {
        font-size: 20px !important;
    }

    html body #stok .public-size-product-summary {
        grid-template-columns: auto minmax(0, 1fr) !important;
        gap: 10px !important;
        min-height: 68px !important;
        padding: 11px 12px !important;
    }

    html body #stok .public-size-product-total {
        grid-column: 1 / -1 !important;
        justify-self: stretch !important;
        min-width: 0 !important;
        padding: 8px 10px !important;
    }

    html body #stok .public-size-product-body {
        padding: 12px !important;
    }

    html body #stok .public-card-toolbar {
        align-items: flex-start !important;
        flex-direction: column !important;
        gap: 10px !important;
        padding: 12px !important;
    }

    html body #stok .public-chart-toolbar .public-chart-legend,
    html body #stok .public-card-toolbar-badge {
        align-self: stretch !important;
        justify-content: center !important;
    }
}

@media (max-width: 390px) {
    html body #stok .unej-stock-banner-chip {
        padding: 5px 7px !important;
        font-size: 8px !important;
    }

    html body #stok .public-size-product-summary .public-size-product-icon {
        width: 43px !important;
        height: 43px !important;
    }

    html body #stok .public-size-product-summary .public-size-product-copy h3 {
        font-size: 14px !important;
    }
}


/* Ringkasan stok berbasis lokasi: pusat, unit, dan keseluruhan institusi. */
.public-stock-overview{
    display:grid;
    grid-template-columns:repeat(3,minmax(0,1fr));
    gap:14px;
    margin:18px 0 16px;
}
.public-stock-overview-card{
    display:flex;
    align-items:center;
    gap:14px;
    min-width:0;
    padding:18px;
    border:1px solid #e5e7eb;
    border-radius:18px;
    background:#fff;
    box-shadow:0 10px 28px rgba(15,23,42,.07);
}
.public-stock-overview-icon{
    display:grid;
    place-items:center;
    flex:0 0 48px;
    width:48px;
    height:48px;
    border-radius:15px;
    font-size:1.3rem;
    background:#eaf2ff;
    color:#075ce5;
}
.public-stock-overview-card.secondary .public-stock-overview-icon{background:#eefbf4;color:#138a4b}
.public-stock-overview-card.total .public-stock-overview-icon{background:#f3efff;color:#6d43d9}
.public-stock-overview-card div{display:grid;gap:2px;min-width:0}
.public-stock-overview-card small{font-weight:700;color:#64748b;line-height:1.3}
.public-stock-overview-card strong{font-size:1.75rem;line-height:1.12;color:#0f172a}
.public-stock-overview-card em{font-size:.78rem;font-style:normal;color:#64748b;line-height:1.35}
@media (max-width:900px){.public-stock-overview{grid-template-columns:1fr}}
@media (max-width:520px){
    .public-stock-overview-card{padding:15px;border-radius:15px}
    .public-stock-overview-icon{width:43px;height:43px;flex-basis:43px;border-radius:13px}
    .public-stock-overview-card strong{font-size:1.5rem}
}

/* ==========================================================
   HERO IMAGE 80% — MENYATU DENGAN AREA HERO
   Area carousel tetap penuh. Hanya isi gambar yang menjadi 80%,
   sementara latar putih gambar dibaurkan dengan latar hero.
   ========================================================== */
html body .unej-hero-visual {
    position: relative !important;
    display: block !important;
    overflow: hidden !important;
    background: transparent !important;
    isolation: isolate !important;
}

/* Picture tetap memenuhi area carousel agar perpindahan slide tidak
   membentuk kotak 80% yang terlihat terpisah. */
html body .unej-hero-visual > .unej-hero-image {
    position: absolute !important;
    inset: 0 !important;
    display: grid !important;
    place-items: center !important;
    width: 100% !important;
    height: 100% !important;
    max-width: none !important;
    max-height: none !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
    background: transparent !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    transform: none !important;
}

/* Yang diperkecil hanya elemen gambarnya. mix-blend-mode:multiply
   membuat bidang putih gambar mengikuti warna latar hero sehingga
   tidak lagi tampak sebagai persegi/card putih. */
html body .unej-hero-visual > .unej-hero-image img {
    display: block !important;
    width: 80% !important;
    height: 80% !important;
    max-width: 80% !important;
    max-height: 80% !important;
    margin: auto !important;
    object-fit: contain !important;
    object-position: center center !important;
    background: transparent !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    mix-blend-mode: multiply !important;
    transform: translateZ(0) !important;
}

/* Lapisan slide nonaktif tetap mengikuti rule carousel utama. */
html body .unej-hero-visual > .unej-hero-image:not(.active) {
    pointer-events: none !important;
}

/* ==========================================================
   HERO PROPORSIONAL 94% — BESAR, MENYATU, TIDAK TERPOTONG
   ========================================================== */
html body .unej-hero-visual {
    overflow: hidden !important;
    background: #fff !important;
}
html body .unej-hero-visual > .unej-hero-image {
    position: absolute !important;
    inset: 0 !important;
    display: flex !important;
    align-items: flex-start !important;
    justify-content: flex-end !important;
    width: 100% !important;
    height: 100% !important;
    padding: 0 !important;
    overflow: hidden !important;
    background: transparent !important;
}
html body .unej-hero-visual > .unej-hero-image img {
    display: block !important;
    width: 94% !important;
    height: 94% !important;
    max-width: 94% !important;
    max-height: 94% !important;
    margin: 0 !important;
    object-fit: contain !important;
    object-position: right top !important;
    background: transparent !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    mix-blend-mode: normal !important;
    transform: none !important;
}
@media (min-width: 981px) {
    html body .unej-hero-visual > .unej-hero-image img {
        width: 96% !important;
        height: 96% !important;
        max-width: 96% !important;
        max-height: 96% !important;
        object-position: right top !important;
    }
}
@media (max-width: 980px) {
    html body .unej-hero-visual > .unej-hero-image {
        align-items: center !important;
        justify-content: center !important;
    }
    html body .unej-hero-visual > .unej-hero-image img {
        width: 94% !important;
        height: 94% !important;
        max-width: 94% !important;
        max-height: 94% !important;
        object-position: center center !important;
    }
}


/* ==========================================================
   HERO NAIK — JANGKAR KANAN ATAS, GAMBAR TETAP UTUH
   Menghilangkan ruang kosong besar di atas gambar tanpa memakai
   object-fit: cover, sehingga bagian gambar tidak terpotong.
   ========================================================== */
@media (min-width: 981px) {
    html body .unej-hero-visual > .unej-hero-image {
        align-items: flex-start !important;
        justify-content: flex-end !important;
    }

    html body .unej-hero-visual > .unej-hero-image img {
        width: 96% !important;
        height: 96% !important;
        max-width: 96% !important;
        max-height: 96% !important;
        margin: 0 !important;
        object-fit: contain !important;
        object-position: right top !important;
        transform: none !important;
    }
}

@media (min-width: 981px) and (max-height: 760px) {
    html body .unej-hero-visual > .unej-hero-image img {
        width: 98% !important;
        height: 98% !important;
        max-width: 98% !important;
        max-height: 98% !important;
        object-position: right top !important;
    }
}

/* HERO LEBIH BESAR — 100%, TETAP UTUH DAN TIDAK TERPOTONG */
@media (min-width: 981px) {
    html body .unej-hero-visual > .unej-hero-image {
        align-items: flex-start !important;
        justify-content: flex-end !important;
        overflow: visible !important;
    }
    html body .unej-hero-visual > .unej-hero-image img {
        width: 100% !important;
        height: 100% !important;
        max-width: 100% !important;
        max-height: 100% !important;
        object-fit: contain !important;
        object-position: right top !important;
        margin: 0 !important;
        transform: none !important;
    }
}
@media (max-width: 980px) {
    html body .unej-hero-visual > .unej-hero-image img {
        width: 98% !important;
        height: 98% !important;
        max-width: 98% !important;
        max-height: 98% !important;
        object-fit: contain !important;
        object-position: center top !important;
    }
}
