@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&display=swap');


/* =========================
   GLOBAL CSS
========================= */

:root {
    --color-primary-navy: #103e6f;
    --color-aqua-teal: #64cdd1;
    --color-soft-blue: #b8e1f2;
    --color-white: #ffffff;
    --color-soft-gray: #f0f4f6;

    --color-success: #198754;
    --color-danger: #dc3545;
    --color-warning: #ffc107;

    --bg: var(--color-soft-gray);
    --color1: var(--color-primary-navy);
    --color2: var(--color-aqua-teal);
    --color3: var(--color-soft-blue);
    --color4: var(--color-white);
    --color5: var(--color-primary-navy);
    --color6: var(--color-soft-blue);

    --surface: var(--color-white);
    --surface-soft: var(--color-soft-gray);
    --surface-tint: var(--color-soft-blue);
    --border: color-mix(in srgb, var(--color-primary-navy) 16%, var(--color-white));
    --border-strong: color-mix(in srgb, var(--color-primary-navy) 34%, var(--color-white));
    --text: var(--color-primary-navy);
    --text-soft: rgba(16, 62, 111, 0.68);
    --text-muted: rgba(16, 62, 111, 0.48);
    --muted: rgba(16, 62, 111, 0.42);

    --primary: var(--color-primary-navy);
    --primary-dark: var(--color-primary-navy);
    --primary-soft: var(--color-soft-blue);
    --primary-hover: var(--color-aqua-teal);
    --sidebar: var(--color-primary-navy);
    --sidebar-soft: color-mix(in srgb, var(--color-primary-navy) 86%, var(--color-aqua-teal));

    --success-bg: color-mix(in srgb, var(--color-success) 14%, var(--color-white));
    --success-text: color-mix(in srgb, var(--color-success) 72%, var(--color-primary-navy));
    --success-border: color-mix(in srgb, var(--color-success) 42%, var(--color-white));
    --warning-bg: color-mix(in srgb, var(--color-warning) 24%, var(--color-white));
    --warning-text: var(--color-primary-navy);
    --warning-border: color-mix(in srgb, var(--color-warning) 58%, var(--color-white));
    --danger-bg: color-mix(in srgb, var(--color-danger) 12%, var(--color-white));
    --danger-text: var(--color-danger);
    --danger-border: color-mix(in srgb, var(--color-danger) 42%, var(--color-white));
    --repair: var(--color-warning);
    --repair-dark: color-mix(in srgb, var(--color-warning) 80%, var(--color-primary-navy));
    --reject: var(--color-danger);
    --reject-dark: color-mix(in srgb, var(--color-danger) 82%, var(--color-primary-navy));

    --shadow: 0 10px 30px rgba(16, 62, 111, 0.08);
    --shadow-strong: 0 20px 50px rgba(16, 62, 111, 0.18);
    --radius: 16px;

    --sidebar-width: 300px;
    --navbar-height: 76px;
    --content-padding: 30px;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
    font-family: "Montserrat", Arial, sans-serif;
    background: var(--bg);
    color: var(--text);
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
}

a {
    text-decoration: none;
    color: inherit;
}

button,
input,
select,
textarea {
    font: inherit;
}

img {
    max-width: 100%;
    display: block;
}

.is-hidden {
    display: none !important;
}

.input-full,
.text-full {
    width: 100% !important;
}

.status-tag-list {
    margin-top: 6px;
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}


.app-shell {
    min-height: 100vh;
    display: flex;
}

.app-main {
    flex: 1;
    min-width: 0;
    margin-left: var(--sidebar-width);
    width: calc(100% - var(--sidebar-width));
    transition: margin-left 0.3s ease, width 0.3s ease;
}


/* =========================
   MESSAGE / ALERT
========================= */
.message-wrapper {
    margin: 0;
}

.message-wrapper .alert {
    margin-bottom: 20px;
}

.alert {
    padding: 14px 16px;
    border-radius: 14px;
    border: 1px solid transparent;
    margin-bottom: 10px;
    font-size: 0.94rem;
}

.alert-success,
.alert-info {
    background: var(--success-bg);
    color: var(--success-text);
    border-color: var(--success-border);
}

.alert-warning {
    background: var(--warning-bg);
    color: var(--warning-text);
    border-color: var(--warning-border);
}

.alert-error,
.alert-danger {
    background: var(--danger-bg);
    color: var(--danger-text);
    border-color: var(--danger-border);
}

.success-popup-stack {
    position: absolute;
    z-index: 850;
    top: 14px;
    left: 50%;
    width: min(520px, calc(100% - (var(--content-padding) * 2)));
    display: grid;
    gap: 10px;
    transform: translateX(-50%);
    pointer-events: none;
}

.success-popup {
    margin: 0;
    box-shadow: var(--shadow-strong);
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.24s ease, transform 0.24s ease;
    animation: success-popup-in 0.24s ease both;
}

.success-popup.is-hiding {
    opacity: 0;
    transform: translateY(-10px);
}

@keyframes success-popup-in {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* =========================
   CARD
========================= */
.card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 22px;
    margin-bottom: 20px;
}

.card-title {
    margin: 0 0 16px;
    font-size: 1.05rem;
}

.page-header {
    margin-bottom: 22px;
}

.page-header h1 {
    margin: 0 0 6px;
    font-size: 1.6rem;
}

.page-header p {
    margin: 0;
    color: var(--text-soft);
}


/* =========================
   BUTTON
========================= */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 11px 16px;
    border-radius: 12px;
    border: 1px solid transparent;
    font-weight: 600;
    cursor: pointer;
    transition: 0.25s ease;
    font-size: 0.94rem;
}

.btn-primary {
    background: var(--primary);
    color: var(--color-white);
}

.btn-primary:hover {
    background: var(--primary-dark);
}

.btn-secondary {
    background: var(--surface-soft);
    color: var(--text);
    border-color: var(--border);
}

.btn-secondary:hover {
    background: var(--color-soft-blue);
}

.btn:disabled,
.btn-disabled {
    cursor: not-allowed;
    opacity: 0.58;
    box-shadow: none;
    transform: none;
}

.btn:disabled:hover,
.btn-disabled:hover {
    cursor: not-allowed;
    box-shadow: none;
    transform: none;
}

.btn-primary:disabled,
.btn-primary:disabled:hover,
.btn-primary.btn-disabled,
.btn-primary.btn-disabled:hover {
    background: var(--primary);
    color: var(--color-white);
}

.btn-secondary:disabled,
.btn-secondary:disabled:hover,
.btn-secondary.btn-disabled,
.btn-secondary.btn-disabled:hover {
    background: var(--surface-soft);
    color: var(--text);
    border-color: var(--border);
}

.btn-block {
    width: 100%;
}


/* =========================
   TABLE
========================= */
.table-wrapper {
    background: var(--surface);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.table-toolbar {
    padding: 18px 20px;
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.table-title {
    margin: 0;
    font-size: 1.05rem;
}

table {
    width: 100%;
    border-collapse: collapse;
    background: var(--surface);
}

table th,
table td {
    padding: 14px 16px;
    text-align: left;
    border-bottom: 1px solid var(--border);
    font-size: 0.94rem;
    vertical-align: top;
}

table th {
    background: var(--color-soft-gray);
    color: var(--text);
    font-weight: 700;
}

table tr:hover td {
    background: var(--color-soft-gray);
}


/* =========================
   FORM
========================= */
.form-card {
    width: min(1000px, 100%);
    margin: 0 auto;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 24px;
}

fieldset {
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 18px;
    margin-bottom: 18px;
    background: var(--color-soft-gray);
}

legend {
    padding: 0 8px;
    font-weight: 700;
    color: var(--text);
}

form p {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 14px;
}

label {
    font-weight: 600;
    font-size: 0.92rem;
}

input,
select,
textarea {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    padding: 11px 13px;
    border-radius: 12px;
    border: 1px solid var(--border-strong);
    background: var(--color-white);
    font-size: 0.95rem;
    outline: none;
    transition: 0.2s ease;
}

input:focus,
select:focus,
textarea:focus {
    border-color: var(--color-aqua-teal);
    box-shadow: 0 0 0 4px rgba(16, 62, 111, 0.08);
}

textarea {
    min-height: 110px;
    resize: vertical;
}

.form-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 14px;
}


/* =========================
   CUSTOM FORM LAYOUT
========================= */
.form-group {
    display: flex;
    flex-direction: column;
    margin-bottom: 18px;
    min-width: 0;
}

.form-group > label {
    margin-bottom: 6px;
    color: var(--text);
}

.form-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.form-group input[type="file"] {
    padding: 10px 12px;
    background: var(--color-white);
    border: 1px solid var(--border-strong);
    border-radius: 12px;
    cursor: pointer;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-muted);
}

.form-group ul.errorlist {
    display: none;
    margin: 0;
    padding: 0;
    list-style: none;
}


/* =========================
   FORM ERROR
========================= */
.form-global-errors {
    margin-bottom: 18px;
    padding: 12px 14px;
    border: 1px solid var(--danger-border);
    background: var(--danger-bg);
    border-radius: 12px;
}

.input-error-text {
    margin: 6px 0 0;
    color: var(--reject);
    font-size: 0.83rem;
    font-style: italic;
    line-height: 1.45;
}

.form-global-errors .input-error-text:first-child {
    margin-top: 0;
}

.input-help-text {
    margin: 6px 0 0;
    color: var(--text-soft);
    font-size: 0.83rem;
    font-style: italic;
    line-height: 1.45;
}

.user-form-card input[disabled],
.user-form-card select[disabled],
.user-form-card textarea[disabled] {
    background: var(--color-soft-gray);
    color: var(--text-soft);
    cursor: not-allowed;
}

.form-group.has-error input,
.form-group.has-error select,
.form-group.has-error textarea {
    border-color: var(--danger-border);
    background: var(--danger-bg);
}

.form-group.has-error input:focus,
.form-group.has-error select:focus,
.form-group.has-error textarea:focus {
    border-color: var(--reject);
    box-shadow: 0 0 0 4px rgba(220, 53, 69, 0.08);
}


/* =========================
   DETAIL
========================= */
.detail-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.detail-item {
    background: var(--surface-soft);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 14px;
}

.detail-item label {
    display: block;
    margin-bottom: 6px;
    color: var(--text-soft);
    font-size: 0.84rem;
}

.detail-item p {
    margin: 0;
    font-weight: 600;
    min-width: 0;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.detail-list {
    margin: 0;
    padding-left: 18px;
    font-weight: 600;
}

.detail-list li + li {
    margin-top: 5px;
}

.detail-card-stack {
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 100%;
}

.detail-card-stack > .card,
.detail-card-stack > .detail-layout-grid,
.detail-card-stack > .pemeliharaan-detail-list,
.detail-card-stack .detail-layout-grid > .card,
.detail-card-stack .pemeliharaan-detail-list > .card {
    margin-top: 0;
    margin-bottom: 0;
}

.detail-card-stack .detail-layout-grid {
    gap: 20px;
}

.detail-card-stack .pemeliharaan-detail-list {
    gap: 20px;
}

.detail-layout-grid,
.detail-grid,
.card,
.card-title,
.detail-item,
.detail-item label,
.detail-item p,
.detail-item a,
.detail-item span,
.detail-item strong,
.timeline-content,
.timeline-content p,
.timeline-content strong {
    min-width: 0;
    max-width: 100%;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.detail-item a,
.timeline-content a {
    display: inline-block;
    max-width: 100%;
}

.card-title,
.timeline-content strong,
.detail-item label {
    hyphens: auto;
}


.empty-state {
    text-align: center;
    padding: 30px 20px;
    color: var(--text-soft);
}

.logout-link {
    background: none;
    border: none;
    padding: 0;
    margin: 0;
    color: var(--color-primary-navy);
    font: inherit;
    cursor: pointer;
    text-decoration: none;
}

.logout-link:hover {
    text-decoration: underline;
}


/* =========================
   RESPONSIVE GLOBAL
========================= */
@media (max-width: 992px) {
    .detail-grid {
        grid-template-columns: 1fr;
    }

    .detail-grid--kegiatan {
        grid-template-columns: 1fr;
    }

    .detail-grid--kegiatan .detail-item--span-3,
    .detail-grid--kegiatan .detail-item--span-2 {
        grid-column: 1 / -1;
    }

    .app-main {
        margin-left: 0;
        width: 100%;
    }
}

@media (max-width: 768px) {
    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
}

@media (max-width: 640px) {
    :root {
        --content-padding: 18px;
    }

    table th,
    table td {
        padding: 12px;
        font-size: 0.88rem;
    }

    .form-card {
        padding: 18px;
    }

    fieldset {
        padding: 14px;
    }
}


/* =========================
   GLOBAL LAYOUT
   Area konten utama aplikasi.
========================= */
.app-content {
    padding: var(--content-padding);
    position: relative;
}


/* =========================
   GLOBAL UTILITY
   Utility umum untuk state dan helper.
========================= */
.is-scroll-locked {
    overflow: hidden;
}

.alert p {
    margin: 0;
}

.alert p + p {
    margin-top: 8px;
}


/* =========================
   GLOBAL BUTTON
   Variasi tombol umum di luar navbar / sidebar.
========================= */
.btn-sm {
    padding: 8px 12px;
    font-size: 0.82rem;
    line-height: 1.2;
}

.btn-warning {
    background: var(--repair);
    color: var(--color-white);
    border: none;
}

.btn-warning:hover {
    background: var(--repair-dark);
}

.btn-warning:disabled,
.btn-warning:disabled:hover {
    background: var(--repair);
    color: var(--color-white);
    cursor: not-allowed;
    opacity: 0.58;
}

.btn-danger {
    background: var(--reject);
    color: var(--color-white);
    border: none;
}

.btn-danger:hover {
    background: var(--reject-dark);
}

.btn-danger:disabled {
    cursor: not-allowed;
    opacity: 0.58;
}

.btn-danger:disabled,
.btn-danger:disabled:hover,
.master-delete-lock.btn-danger:disabled,
.master-delete-lock.btn-danger:disabled:hover,
.operasional-delete-lock.btn-danger:disabled,
.operasional-delete-lock.btn-danger:disabled:hover,
.komponen-rutin__remove--locked:disabled,
.komponen-rutin__remove--locked:disabled:hover {
    border: 1px solid var(--danger-border);
    background: var(--danger-bg);
    color: var(--reject-dark);
    cursor: not-allowed;
    opacity: 0.58;
}


/* =========================
   HALAMAN PENGGUNA - DAFTAR
   Tabel aksi dan modal hapus pengguna.
========================= */
.table-action-group {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.delete-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: none;
}

.delete-modal.show {
    display: block;
}

.delete-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(16, 62, 111, 0.45);
    backdrop-filter: blur(2px);
}

.delete-modal-card {
    position: relative;
    width: calc(100% - 32px);
    max-width: 460px;
    margin: 10vh auto 0;
    background: var(--color-white);
    border-radius: 18px;
    box-shadow: 0 20px 50px rgba(16, 62, 111, 0.22);
    overflow: hidden;
    z-index: 2;
    animation: modalFadeIn 0.2s ease;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px) scale(0.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.delete-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 22px;
    border-bottom: 1px solid var(--border);
}

.delete-modal-header h3 {
    margin: 0;
    font-size: 1.125rem;
    color: var(--color-primary-navy);
}

.delete-modal-close {
    border: none;
    background: transparent;
    font-size: 1.75rem;
    line-height: 1;
    color: var(--text-soft);
    cursor: pointer;
}

.delete-modal-body {
    padding: 20px 22px 12px;
}

.delete-modal-body p {
    margin-top: 0;
    margin-bottom: 12px;
}

.delete-user-info {
    background: var(--color-soft-gray);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 14px 16px;
    margin: 14px 0;
}

.delete-user-info p:last-child {
    margin-bottom: 0;
}

.delete-warning-text {
    color: var(--reject-dark);
    font-weight: 600;
}

.delete-modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding: 0 22px 22px;
}


/* =========================
   HALAMAN PENGGUNA - DETAIL
   Layout detail pengguna.
========================= */
.detail-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.detail-user-card {
    max-width: 860px;
    margin: 0 auto;
}

.detail-card-action {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
}

.detail-card-action .btn {
    width: 100%;
}

.detail-card-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.detail-card-actions > .btn:only-child {
    grid-column: 1 / -1;
}

.detail-profile-top {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 14px;
    padding-bottom: 24px;
    margin-bottom: 24px;
    border-bottom: 1px solid var(--border);
}

.detail-avatar {
    width: 148px;
    height: 148px;
    border-radius: 50%;
    overflow: hidden;
    background: var(--border);
    border: 5px solid var(--color-white);
    box-shadow: 0 16px 40px rgba(16, 62, 111, 0.16);
}

.detail-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.detail-avatar__fallback {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.625rem;
    font-weight: 700;
    color: var(--color-primary-navy);
}

.detail-profile-meta h2 {
    margin: 0;
}

.detail-profile-meta p {
    margin: 6px 0 0;
    color: var(--text-soft);
}

.detail-role-chip {
    display: inline-flex;
    margin-top: 12px;
    padding: 8px 14px;
    border-radius: 999px;
    background: var(--color-soft-blue);
    color: var(--color-primary-navy);
    font-weight: 600;
}

.detail-grid--info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 18px;
}

.detail-grid--info .detail-item {
    padding: 16px 18px;
    border-radius: 16px;
    background: var(--color-soft-gray);
    border: 1px solid var(--border);
}

.detail-grid--info .detail-item label {
    display: block;
    font-size: 0.8125rem;
    font-weight: 700;
    color: var(--text-soft);
    margin-bottom: 8px;
}

.detail-grid--info .detail-item p {
    margin: 0;
    color: var(--color-primary-navy);
    line-height: 1.6;
}

.detail-grid--info .detail-item--full {
    grid-column: 1 / -1;
}


/* =========================
   HALAMAN PENGGUNA - FORM
   Form tambah / edit pengguna dan preview upload.
========================= */
.user-form-card {
    max-width: 980px;
    margin: 0 auto;
}

.form-profile-top {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 0 0 24px;
    text-align: center;
}

.form-profile-meta {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
}

.form-profile-meta h2 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-primary-navy);
}

.form-profile-meta p {
    margin: 0;
    color: var(--text-soft);
    font-size: 0.875rem;
}

.avatar-preview {
    width: 88px;
    height: 88px;
    border-radius: 50%;
    overflow: hidden;
    background: var(--border);
    border: 4px solid var(--color-white);
    box-shadow: 0 10px 24px rgba(16, 62, 111, 0.12);
    flex-shrink: 0;
}

.avatar-preview--large {
    width: 120px;
    height: 120px;
}

.avatar-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

.avatar-fallback {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.125rem;
    font-weight: 700;
    color: var(--color-primary-navy);
}

.form-hint-text {
    margin: 0;
    color: var(--text-soft);
}

.upload-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 18px;
    margin-bottom: 18px;
}

.upload-card {
    padding: 18px;
    border: 1px solid var(--border);
    border-radius: 18px;
    background: var(--color-soft-gray);
}

.upload-card.has-error {
    border-color: var(--danger-border);
    background: var(--danger-bg);
}

.upload-card__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 10px;
}

.upload-card__hint {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--color-primary-navy);
    background: var(--color-soft-blue);
    padding: 5px 10px;
    border-radius: 999px;
}

.upload-input-wrap {
    margin-top: 6px;
}

.upload-input-wrap--inline {
    display: flex;
    align-items: stretch;
    gap: 10px;
}

.upload-input-wrap__field {
    flex: 1 1 auto;
    min-width: 0;
}

.upload-input-wrap--file-proxy {
    position: relative;
}

.upload-input-wrap--file-proxy .upload-file-state__action--icon {
    width: 42px;
    height: 42px;
}

.input-file--proxy {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
    opacity: 0;
    pointer-events: none;
}

.file-input-proxy {
    min-height: 42px;
    width: 100%;
    display: flex;
    align-items: stretch;
    border: 1px solid var(--border-strong);
    border-radius: 12px;
    overflow: hidden;
    background: var(--color-white);
    cursor: pointer;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.file-input-proxy:hover,
.file-input-proxy:focus-within {
    border-color: var(--color-soft-blue);
    box-shadow: 0 0 0 3px rgba(100, 205, 209, 0.12);
}

.file-input-proxy__button {
    flex: 0 0 auto;
    min-width: 48px;
    justify-content: center;
    padding: 10px 12px;
    background: var(--color-soft-gray);
    border-right: 1px solid var(--border-strong);
    color: var(--color-primary-navy);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    cursor: pointer;
}

.file-input-proxy__button i {
    font-size: 1rem;
    line-height: 1;
    pointer-events: none;
}

.file-input-proxy__text {
    flex: 1 1 auto;
    min-width: 0;
    padding: 10px 14px;
    color: var(--color-primary-navy);
    font-weight: 400;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: inline-flex;
    align-items: center;
    cursor: pointer;
}

.file-input-proxy__text.is-placeholder {
    color: var(--text-muted);
}

.upload-input-wrap--file-proxy .file-input-proxy__text,
.upload-input-wrap--file-proxy .file-input-proxy__text[data-inline-file-text] {
    font-size: clamp(0.84rem, 1vw, 0.95rem);
}

.form-group.has-error .file-input-proxy {
    border-color: var(--reject);
}

.upload-card input[type="file"] {
    width: 100%;
}

.upload-file-state {
    margin-bottom: 12px;
    padding: 10px 12px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: var(--color-white);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.upload-file-state--inline {
    margin-bottom: 0;
    padding: 0;
    border: none;
    background: transparent;
    justify-content: flex-end;
}

.upload-file-state.is-hidden {
    display: none;
}

.upload-file-state__info {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.upload-file-state__icon {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    background: var(--color-soft-blue);
    color: var(--color-primary-navy);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    flex-shrink: 0;
}

.upload-file-state__text {
    font-size: 0.8125rem;
    color: var(--text);
    font-weight: 600;
    line-height: 1.4;
}

.upload-file-state__action {
    border: none;
    background: transparent;
    color: var(--reject);
    font-size: 0.8125rem;
    font-weight: 700;
    cursor: pointer;
    padding: 6px 4px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}

.upload-file-state__action--icon {
    width: 42px;
    min-width: 42px;
    height: 42px;
    padding: 0;
    border: 1px solid var(--danger-border);
    border-radius: 12px;
    background: var(--danger-bg);
    justify-content: center;
    font-size: 1rem;
}

.upload-file-state__action:hover {
    color: var(--reject-dark);
}

.upload-preview-stack {
    display: grid;
    gap: 14px;
    margin-top: 14px;
}

.upload-preview-section {
    display: grid;
    gap: 8px;
}

.upload-preview-section__label {
    font-size: 0.8125rem;
    font-weight: 700;
    color: var(--text);
}

.upload-preview-card {
    margin-top: 0;
    border: 1px dashed var(--border-strong);
    border-radius: 16px;
    background: var(--color-white);
    padding: 16px;
    height: 250px;
    min-height: 250px;
    max-height: 250px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.upload-preview-card__empty,
.upload-preview-card__body {
    width: 100%;
    height: 100%;
}

.upload-preview-card__empty {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--muted);
    font-size: 0.875rem;
}

.upload-preview-card__body {
    display: none;
    align-items: center;
    justify-content: center;
}

.upload-preview-card:not(.is-empty) .upload-preview-card__body {
    display: flex;
}

.upload-preview-card:not(.is-empty) .upload-preview-card__empty {
    display: none;
}

.upload-preview-frame {
    width: 100%;
    height: 100%;
    border-radius: 20px;
    overflow: hidden;
    background: var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
}

.upload-preview-frame img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
    object-position: center;
}

.upload-card--signature .upload-preview-card:not(.is-empty),
.upload-card--signature .upload-preview-card:not(.is-empty) .upload-preview-card__body,
.upload-card--signature .upload-preview-card:not(.is-empty) .upload-preview-frame {
    height: auto;
    min-height: 0;
    max-height: none;
}

.upload-card--signature .upload-preview-card:not(.is-empty) .upload-preview-frame {
    background: transparent;
}

.upload-card--signature .upload-preview-frame img {
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 250px;
}

input[type="hidden"] {
    display: none !important;
}


.empty-state {
    text-align: center;
    padding: 30px 20px;
    color: var(--text-soft);
}

.logout-link {
    background: none;
    border: none;
    padding: 0;
    margin: 0;
    color: var(--color-primary-navy);
    font: inherit;
    cursor: pointer;
    text-decoration: none;
}

.logout-link:hover {
    text-decoration: underline;
}


/* =========================
   RESPONSIVE GLOBAL TAMBAHAN
   Responsif tambahan untuk halaman global.
========================= */
@media (max-width: 640px) {
    .detail-header {
        flex-direction: column;
        align-items: stretch;
    }

    .detail-card-action .btn {
        width: 100%;
    }

    .detail-card-actions {
        grid-template-columns: 1fr;
    }

    .upload-file-state {
        flex-direction: column;
        align-items: stretch;
    }

    .upload-input-wrap--inline {
        flex-direction: column;
    }

    .upload-input-wrap--file-proxy.upload-input-wrap--inline {
        flex-direction: row;
        align-items: stretch;
        flex-wrap: nowrap;
    }

    .upload-input-wrap--file-proxy.upload-input-wrap--inline .upload-input-wrap__field {
        flex: 1 1 auto;
        min-width: 0;
    }

    .upload-input-wrap--file-proxy.upload-input-wrap--inline .upload-file-state--inline {
        align-self: auto;
        flex: 0 0 auto;
    }

    .upload-file-state--inline {
        align-self: flex-end;
    }

    .upload-file-state__action {
        justify-content: center;
    }

    .upload-preview-card {
        height: 220px;
        min-height: 220px;
        max-height: 220px;
    }
}



/* =========================
   HALAMAN OPERASIONAL
   Layout form dan tabel untuk data operasional.
========================= */
.master-form-card {
    max-width: 760px;
    margin: 0 auto;
}

.table-action-group form {
    margin: 0;
}

.table td {
    vertical-align: top;
}



/* =========================
   MASTER DATA
   Style untuk halaman master data.
========================= */
.form-group-full {
    grid-column: 1 / -1;
}

.card-soft,
.master-data-note {
    background: var(--color-soft-gray);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 14px 16px;
    color: var(--text-soft);
    line-height: 1.6;
    margin-top: 10px;
}

.master-data-note strong {
    color: var(--text);
    display: inline-block;
    margin-right: 6px;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 100px;
    padding: 7px 12px;
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 700;
    border: 1px solid transparent;
}

.badge-primary {
    background: var(--color-soft-gray);
    color: var(--color-primary-navy);
    border-color: var(--color-soft-blue);
}

.badge-success {
    background: var(--success-bg);
    color: var(--success-text);
    border-color: var(--success-border);
}

.badge-warning {
    background: var(--warning-bg);
    color: var(--warning-text);
    border-color: var(--warning-border);
}

.badge-danger {
    background: var(--danger-bg);
    color: var(--reject-dark);
    border-color: var(--danger-border);
}

.badge-secondary {
    background: var(--color-soft-gray);
    color: var(--text-soft);
    border-color: var(--border-strong);
}

[data-bmn-code-wrapper].is-hidden {
    display: none;
}

.master-data-form-card input[disabled],
.master-data-form-card select[disabled],
.master-data-form-card textarea[disabled],
.master-data-form-card input.is-readonly-field[readonly],
.master-data-form-card input[data-bmn-auto-volume-field="true"][readonly],
.master-data-form-card input[data-total-volume-field="true"] {
    background: var(--color-soft-gray);
    color: var(--text-soft);
    border-color: var(--border-strong);
    cursor: not-allowed !important;
}

.master-data-form-card input[disabled]:hover,
.master-data-form-card select[disabled]:hover,
.master-data-form-card textarea[disabled]:hover,
.master-data-form-card input.is-readonly-field[readonly]:hover,
.master-data-form-card input[data-bmn-auto-volume-field="true"][readonly]:hover,
.master-data-form-card input[data-total-volume-field="true"]:hover {
    background: var(--color-soft-blue);
    border-color: var(--muted);
    cursor: not-allowed !important;
}

.master-data-form-card input.is-readonly-field[readonly]:focus,
.master-data-form-card input[data-bmn-auto-volume-field="true"][readonly]:focus,
.master-data-form-card input[data-total-volume-field="true"]:focus {
    border-color: var(--muted);
    box-shadow: none;
    cursor: not-allowed !important;
}

.master-data-form-card .form-group.is-readonly-field-group,
.master-data-form-card .form-group.is-readonly-field-group label,
.master-data-form-card .form-group.is-readonly-field-group input {
    cursor: not-allowed !important;
}


/* =========================
   MASTER DATA - FORM & LAMPIRAN
   Menyamakan tampilan form master data dengan form pada app pengguna.
========================= */
.master-data-form-card {
    max-width: 980px;
}

.master-data-form .form-row {
    gap: 18px;
}

.master-upload-stack {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.master-upload-stack .upload-card {
    width: 100%;
    margin-bottom: 0;
}

.komponen-rutin {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.komponen-rutin__list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.komponen-rutin__row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 42px;
    gap: 10px;
    align-items: center;
}

.komponen-rutin__remove {
    width: 42px;
    height: 42px;
    border: 1px solid var(--danger-border);
    border-radius: 8px;
    background: var(--danger-bg);
    color: var(--reject-dark);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.komponen-rutin__remove:not(.komponen-rutin__remove--locked):not(:disabled):hover {
    background: var(--reject);
    border-color: var(--reject);
    color: var(--color-white);
}

.komponen-rutin__remove:disabled {
    opacity: 0.48;
    cursor: not-allowed;
}

.komponen-rutin__remove--locked,
.komponen-rutin__remove--locked:hover,
.komponen-rutin__remove--locked:focus,
.komponen-rutin__remove--locked:disabled {
    background: var(--danger-bg);
    border-color: var(--danger-border);
    color: var(--reject-dark);
    cursor: not-allowed;
    opacity: 0.58;
    box-shadow: none;
    transform: none;
}

.komponen-rutin__remove--locked:disabled:hover {
    background: var(--danger-bg);
    border-color: var(--danger-border);
    color: var(--reject-dark);
}

.komponen-rutin__add {
    align-self: flex-start;
    gap: 6px;
}

.upload-preview-card--master {
    height: 280px;
    min-height: 280px;
    max-height: 280px;
}

.upload-preview-frame--master {
    border-radius: 22px;
}

.upload-preview-frame--master img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
}

.upload-card--document {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.document-file-state {
    padding: 12px 14px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: var(--color-white);
}

.document-file-state__info {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.document-file-state__icon {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    background: var(--danger-bg);
    color: var(--reject);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.05rem;
    flex-shrink: 0;
}

.document-file-state__meta {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.document-file-state__meta strong {
    font-size: 0.875rem;
    color: var(--text);
    line-height: 1.45;
}

.document-file-state__meta a {
    color: var(--color-primary-navy);
    text-decoration: none;
    font-size: 0.84rem;
    font-weight: 600;
    word-break: break-word;
}

.document-file-state__meta a:hover {
    text-decoration: underline;
}

@media (max-width: 640px) {
    .upload-preview-card--master {
        height: 220px;
        min-height: 220px;
        max-height: 220px;
    }

    .document-file-state__info {
        align-items: center;
    }
}


.upload-file-state__icon--pdf {
    background: var(--danger-bg);
    color: var(--reject);
}

.document-file-link-wrap {
    margin-top: 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 12px 14px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: var(--color-white);
}

.document-file-link-wrap__info {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.document-file-link-wrap__icon {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    background: var(--danger-bg);
    color: var(--reject);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.05rem;
    flex-shrink: 0;
}

.document-file-link-wrap__title {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text);
    line-height: 1.45;
}


.pelatihan-file-card .document-file-link-wrap__info {
    flex: 1 1 auto;
    width: 100%;
    min-width: 0;
}

.pelatihan-file-name {
    display: block;
    min-width: 0;
    max-width: 100%;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis;
    overflow-wrap: normal !important;
    word-break: normal !important;
}

.document-file-link-wrap.is-disabled {
    background: var(--color-soft-gray);
    border-color: var(--border);
}

.document-file-link-wrap.is-disabled .document-file-link-wrap__title {
    color: var(--text-soft);
}

.document-file-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--color-primary-navy);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    flex-shrink: 0;
}

.document-file-link:hover {
    text-decoration: underline;
}

.document-file-link--disabled {
    color: var(--muted);
    cursor: not-allowed;
    pointer-events: none;
    text-decoration: none;
}


.document-file-link-wrap .pelatihan-file-name {
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis;
    overflow-wrap: normal !important;
    word-break: normal !important;
}

@media (max-width: 640px) {
    .document-file-link-wrap {
        flex-direction: column;
        align-items: flex-start;
    }
}



/* =========================
   HALAMAN MASTER DATA - DETAIL BARANG
   Layout detail barang pada app master_data.
========================= */
.detail-asset-card {
    max-width: 920px;
}

.detail-asset-top {
    gap: 18px;
}

.detail-asset-avatar {
    width: min(100%, 360px);
    height: 220px;
    border-radius: 22px;
    background: linear-gradient(135deg, var(--color-soft-gray), var(--color-soft-blue));
}

.detail-asset-avatar img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: var(--color-soft-gray);
}

.detail-avatar__fallback--asset {
    color: var(--color-primary-navy);
    font-size: 3.4rem;
    background: linear-gradient(135deg, var(--color-soft-gray), var(--color-soft-blue));
}

.detail-chip-group {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 12px;
}

.detail-asset-card .detail-item p a {
    color: var(--primary);
    font-weight: 700;
}

.detail-asset-card .detail-item p a:hover {
    text-decoration: underline;
}

@media (max-width: 640px) {
    .detail-asset-avatar {
        height: 190px;
        border-radius: 18px;
    }
}


/* =========================
   PEMINJAMAN & VERIFIKASI
========================= */
.btn-sm {
    padding: 8px 12px;
    font-size: 0.86rem;
}

.table-action-group {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.compact-table table th,
.compact-table table td {
    padding: 10px 12px;
    font-size: 0.88rem;
}

.peminjaman-form-card {
    max-width: 1200px;
}

.peminjaman-form-card,
.peminjaman-form,
.peminjaman-section-card,
.activity-subsection {
    width: 100%;
    max-width: 100%;
    min-width: 0;
}

.checkbox-grid ul {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px 18px;
    padding: 0;
    list-style: none;
    margin: 0;
}

.checkbox-grid li label,
.checkbox-inline {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
}

.checkbox-grid input,
.checkbox-inline input {
    width: auto;
    margin: 0;
}

.align-end-row {
    align-items: end;
}

.checkbox-inline-field {
    justify-content: end;
}

.detail-header-card {
    margin-bottom: 20px;
}

.detail-shell {
    grid-template-columns: minmax(320px, 1.02fr) minmax(0, 1.58fr);
    gap: 14px;
    align-items: stretch;
}

.detail-main {
    min-height: 112px;
    padding: 18px 20px;
    justify-content: center;
    gap: 6px;
}

.detail-main--loan {
    min-height: auto;
    justify-content: center;
}

.detail-header-panel {
    display: grid;
    gap: 12px;
    min-width: 0;
}

.detail-state-row {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.detail-action-row {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(0, 1fr);
    gap: 10px;
}

.detail-state {
    min-height: 56px;
    padding: 10px 12px;
    border-radius: 14px;
    border: 1px solid var(--border);
    background: var(--color-white);
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
}

.detail-state .status-badge {
    width: fit-content;
}

.detail-stat {
    min-height: 56px;
}

.detail-value-compact {
    font-size: 0.92rem;
    font-weight: 700;
    line-height: 1.45;
}

.detail-action-row form,
.detail-action-row .detail-action-btn,
.detail-action-row .btn {
    width: 100%;
}

.detail-action-row form {
    display: flex;
}

.detail-action-btn {
    min-height: 44px;
    padding: 10px 14px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    line-height: 1.25;
    font-size: 0.9rem;
}

.return-global-error-card {
    border-left: 0;
    padding: 0;
    background: transparent;
    border: 0;
    box-shadow: none;
}

.return-global-error-card .card-title {
    margin-bottom: 6px;
}

.return-note-card .card-title {
    margin-bottom: 14px;
}

.return-note-group {
    margin-bottom: 0;
}

.return-note-group textarea {
    min-height: 112px;
    resize: vertical;
}

.return-note-error {
    margin-top: 8px;
}

.return-field-group {
    min-width: 0;
}

.return-field-group .input-error-text {
    margin-top: 6px;
}

.return-field-group.has-error .select-input,
.return-field-group.has-error .input-qty,
.return-field-group.has-error textarea {
    border-color: var(--danger-border);
    background: transparent;
}

.return-field-group.has-error .select-input:focus,
.return-field-group.has-error .input-qty:focus,
.return-field-group.has-error textarea:focus {
    border-color: var(--reject);
    box-shadow: 0 0 0 4px rgba(220, 53, 69, 0.08);
}


.return-section-note {
    margin-bottom: 12px;
}

.return-table-error-stack {
    display: flex;
    flex-direction: column;
}

.return-table-error-stack[hidden],
.return-table-error-item[hidden],
.return-table-error-entry[hidden] {
    display: none !important;
}

.return-table-error-item {
    margin-top: 12px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
}

.return-table-error-label {
    margin: 0;
    color: var(--text-soft);
    font-size: 0.84rem;
    font-weight: 600;
    line-height: 1.4;
}

.return-table-error-messages {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
}

.return-table-error-entry {
    width: 100%;
}

.return-table-error-entry .input-error-text {
    margin: 0;
}

.return-table-error-entry .input-error-text + .input-error-text {
    margin-top: 4px;
}

.return-approval-options {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}

.return-approval-option {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
}

.return-action-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.return-action-grid > .btn,
.return-action-grid > button {
    width: 100%;
    justify-content: center;
}

.return-action-grid > :only-child {
    grid-column: 1 / -1;
}

.return-action-grid--full {
    grid-template-columns: minmax(0, 1fr);
}

.return-action-btn--full {
    width: 100%;
    display: inline-flex;
    justify-content: center;
}


.detail-header-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    flex-wrap: wrap;
}

.detail-meta {
    margin: 4px 0 0;
    color: var(--text-soft);
}

.detail-header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.detail-header-shell {
    display: grid;
    grid-template-columns: minmax(260px, 1.05fr) minmax(0, 1.95fr);
    gap: 18px;
    align-items: stretch;
}

.detail-header-primary {
    padding: 20px;
    border-radius: 18px;
    border: 1px solid var(--border);
    background: linear-gradient(180deg, var(--color-soft-gray) 0%, var(--color-soft-blue) 100%);
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
}

.detail-header-primary .card-title {
    margin-bottom: 8px;
}

.detail-header-primary .detail-meta {
    margin-top: 0;
}

.detail-header-secondary {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    align-content: start;
}

.detail-header-tile {
    min-height: 100%;
    padding: 16px;
    border-radius: 16px;
    border: 1px solid var(--border);
    background: var(--color-white);
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 8px;
    min-width: 0;
}

.detail-header-tile--action {
    justify-content: space-between;
}

.detail-header-tile--action .btn,
.detail-header-tile--action form,
.detail-header-tile--action .header-action-stack {
    width: 100%;
}

.detail-header-tile--action .btn,
.detail-header-tile--action button {
    width: 100%;
    justify-content: center;
}

.detail-header-tile-label {
    display: block;
    margin: 0;
    color: var(--text-soft);
    font-size: 0.82rem;
    line-height: 1.4;
}

.detail-header-tile-value {
    margin: 0;
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.45;
    color: var(--text);
    overflow-wrap: anywhere;
}

.detail-header-tile-value .status-badge {
    width: fit-content;
}

.detail-header-tile-meta {
    margin: 0;
    font-size: 0.88rem;
    color: var(--text-soft);
    line-height: 1.5;
}

.detail-header-tile .header-action-stack {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.return-inline-checkbox {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
}

.return-inline-checkbox input {
    width: auto;
    margin: 0;
}

.return-transfer-box,
.return-transfer-box--lab {
    display: grid;
    gap: 8px;
}

.return-transfer-box[hidden],
.return-transfer-box--lab[hidden] {
    display: none !important;
}

.return-qty-input {
    min-width: 88px;
}

.return-table-note {
    margin-top: 6px;
    font-size: 0.82rem;
    color: var(--text-soft);
}

.return-table-note strong {
    color: var(--primary);
}

.return-validation-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 98px;
    padding: 6px 10px;
    border-radius: 999px;
    background: var(--color-soft-blue);
    color: var(--color-primary-navy);
    font-size: 0.82rem;
    font-weight: 700;
}

.return-validation-pill.is-complete {
    background: var(--success-bg);
    color: var(--success-text);
}

.return-validation-pill.is-over {
    background: var(--color-white)1f2;
    color: var(--reject-dark);
}

@media (max-width: 1200px) {
    .detail-header-shell,
    .detail-shell {
        grid-template-columns: 1fr;
    }

    .detail-header-secondary {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 768px) {
    .detail-header-primary,
    .detail-main {
        padding: 18px;
    }

    .detail-header-secondary {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .detail-header-tile {
        padding: 14px;
    }

    .detail-state-row,
    .detail-header-actions-grid,
    .detail-actions--compact,
    .return-action-grid {
        grid-template-columns: 1fr;
    }

    .detail-action-row {
        grid-auto-flow: row;
        grid-template-columns: 1fr;
    }
}

@media (max-width: 520px) {
    .detail-header-secondary {
        grid-template-columns: 1fr;
    }

    .detail-header-status-stack {
        grid-template-columns: 1fr;
    }

    .return-global-error-card,
    .return-note-card,
    .peminjaman-form > .card {
        padding: 14px;
    }

    .return-transfer-toggle {
        min-height: 36px;
        width: 38px;
        min-width: 38px;
        padding: 7px 8px;
    }

}

.detail-layout-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.detail-item-full {
    grid-column: 1 / -1;
}

.detail-grid--kegiatan {
    grid-template-columns: repeat(6, minmax(0, 1fr));
}

.detail-grid--kegiatan .detail-item--span-3 {
    grid-column: span 3;
}

.detail-grid--kegiatan .detail-item--span-2 {
    grid-column: span 2;
}

.detail-grid--kegiatan .detail-item {
    min-width: 0;
}

.detail-grid--kegiatan .detail-item p,
.detail-grid--kegiatan .detail-item a {
    overflow-wrap: anywhere;
    word-break: break-word;
}

@media (max-width: 992px) {
    .detail-grid--kegiatan {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .detail-grid--kegiatan .detail-item,
    .detail-grid--kegiatan .detail-item--span-3,
    .detail-grid--kegiatan .detail-item--span-2,
    .detail-grid--kegiatan .detail-item-full {
        grid-column: 1 / -1;
    }
}

@media (max-width: 992px) {
    .card,
    .detail-item {
        overflow: hidden;
    }

    .detail-grid--kegiatan .detail-item p,
    .detail-grid--kegiatan .detail-item a,
    .detail-grid--kegiatan .detail-item label,
    .detail-grid--kegiatan .detail-item strong,
    .detail-grid--kegiatan .detail-item span {
        white-space: normal;
        overflow-wrap: anywhere;
        word-break: break-word;
    }
}

.timeline-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.timeline-item {
    display: flex;
    gap: 14px;
    align-items: flex-start;
}

.timeline-point {
    width: 14px;
    height: 14px;
    border-radius: 999px;
    background: var(--primary);
    margin-top: 5px;
    flex-shrink: 0;
}

.timeline-content strong {
    display: block;
    font-size: 1rem;
    line-height: 1.45;
}

.timeline-content p {
    margin: 4px 0 0;
    color: var(--text-soft);
    font-size: 0.9rem;
    line-height: 1.55;
}

@media (max-width: 992px) {
    .detail-layout-grid {
        grid-template-columns: 1fr;
    }

    .checkbox-grid ul {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .detail-card-stack,
    .detail-card-stack .detail-layout-grid,
    .detail-card-stack .pemeliharaan-detail-list {
        gap: 16px;
    }
}


.peminjaman-section-card {
    border-color: var(--border);
    background: linear-gradient(180deg, var(--color-white) 0%, var(--color-soft-gray) 100%);
    padding: 22px;
}

.inventory-sheet {
    overflow: hidden;
}

.inventory-sheet-tabs {
    display: grid;
    grid-template-columns: repeat(4, minmax(180px, 1fr));
    gap: 0;
    margin: 0 -22px;
    padding: 0 22px;
    overflow-x: auto;
    border-bottom: 1px solid var(--border);
    scroll-margin-top: calc(var(--navbar-height) + 12px);
    scrollbar-width: thin;
}

.inventory-sheet-tab {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 52px;
    padding: 10px 14px;
    border: 0;
    border-right: 1px solid var(--border);
    background: var(--color-soft-gray);
    color: var(--text-soft);
    cursor: pointer;
    font: inherit;
    font-size: 0.84rem;
    font-weight: 700;
    line-height: 1.35;
    text-align: center;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.inventory-sheet-tab:first-child {
    border-left: 1px solid var(--border);
}

.inventory-sheet-tab::after {
    content: '';
    position: absolute;
    inset: auto 0 -1px;
    height: 3px;
    background: transparent;
}

.inventory-sheet-tab:hover,
.inventory-sheet-tab.is-active {
    background: var(--color-white);
    color: var(--primary);
}

.inventory-sheet-tab.is-active::after {
    background: var(--primary);
}

.inventory-sheet-panels {
    margin-top: 20px;
}

.inventory-sheet-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}

.list-search-box {
    display: flex;
    align-items: center;
    gap: 9px;
    min-height: 42px;
    padding: 0 10px 0 13px;
    overflow: hidden;
    border: 0;
    border-radius: 10px;
    background: var(--color-soft-gray);
    color: var(--text-soft);
}

.list-search-box:focus-within {
    box-shadow: none;
}

.list-search-box > i {
    flex: 0 0 auto;
}

.list-search-box input {
    width: 100%;
    min-width: 0;
    padding: 9px 0;
    border: 0 !important;
    outline: 0 !important;
    background: transparent;
    box-shadow: none !important;
    color: var(--text-primary);
    font: inherit;
}

.list-search-box input:focus {
    border: 0 !important;
    outline: 0 !important;
    box-shadow: none !important;
}

.list-search-box input::-webkit-search-cancel-button {
    appearance: none;
}

.list-search-clear {
    display: inline-grid;
    flex: 0 0 auto;
    width: 28px;
    height: 28px;
    padding: 0;
    place-items: center;
    border: 0;
    border-radius: 6px;
    background: transparent;
    color: var(--text-soft);
    cursor: pointer;
}

.list-search-clear[hidden] {
    display: none !important;
}

.list-search-clear:hover,
.list-search-clear:focus-visible {
    background: var(--color-white);
    color: var(--primary);
    outline: none;
}

.inventory-sheet-search {
    width: min(100%, 420px);
}

.inventory-sheet-result {
    flex: 0 0 auto;
    color: var(--text-soft);
    font-size: 0.82rem;
    font-weight: 700;
}

.inventory-sheet-panel[hidden] {
    display: none !important;
}

.peminjaman-form .inventory-sheet-panel .table-scroll table.table-mobile-scroll tr.is-search-hidden {
    display: none !important;
}

.inventory-sheet-panel .table-scroll {
    max-height: none;
    overflow-x: auto !important;
    overflow-y: visible !important;
}

.inventory-sheet-panel .table-mobile-scroll thead {
    position: sticky;
    top: 0;
    z-index: 3;
}

.inventory-sheet-backtop {
    position: fixed;
    left: var(--inventory-backtop-left, 50%);
    bottom: 24px;
    z-index: 80;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-height: 42px;
    padding: 9px 13px;
    border: 1px solid var(--border-strong);
    border-radius: 10px;
    background: var(--primary);
    box-shadow: 0 10px 24px rgba(16, 62, 111, 0.22);
    color: var(--color-white);
    cursor: pointer;
    font: inherit;
    font-size: 0.82rem;
    font-weight: 800;
    opacity: 0;
    pointer-events: none;
    transform: translate(-50%, 12px);
    transition: opacity 0.2s ease, transform 0.2s ease, background-color 0.2s ease;
}

.inventory-sheet-backtop.is-visible {
    opacity: 1;
    pointer-events: auto;
    transform: translate(-50%, 0);
}

.inventory-sheet-backtop:hover {
    background: var(--primary-dark);
}

.activity-subsection {
    padding: 18px;
    margin-bottom: 18px;
    border: 1px dashed var(--color-soft-blue);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.9);
}

.activity-subsection:last-child {
    margin-bottom: 0;
}

.activity-subsection .form-group:last-child {
    margin-bottom: 0;
}

.section-soft {
    background: rgba(255, 255, 255, 0.96);
}

.activity-subsection__label {
    display: none;
}

.form-row-1 {
    grid-template-columns: minmax(0, 1fr);
}

.peminjam-selector-row {
    margin-bottom: 16px;
}

.peminjam-selector-row .form-group {
    width: 100%;
    max-width: none;
}

.form-row-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.form-row-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.form-row-2,
.form-row-2-inner {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.form-row-2-inner {
    gap: 16px;
}

.form-group--date-range {
    margin-bottom: 0;
}

.input-help-text--tight {
    margin-top: 2px;
}

.conditional-toggle-row {
    display: flex;
    justify-content: flex-start;
    margin: 10px 0 14px;
}

.conditional-toggle-row--spaced {
    margin-top: 8px;
}

.checkbox-toggle-card {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    border-radius: 14px;
    border: 1px solid var(--border);
    background: var(--color-soft-gray);
    cursor: pointer;
    font-weight: 600;
    transition: 0.2s ease;
}

.checkbox-toggle-card:hover {
    border-color: var(--color-soft-blue);
    background: var(--color-soft-gray);
}

.checkbox-toggle-card input {
    width: 18px;
    height: 18px;
    margin: 0;
}

.conditional-panel {
    display: none;
    padding: 16px;
    border: 1px dashed var(--color-soft-blue);
    background: var(--color-soft-gray);
    border-radius: 14px;
    margin-bottom: 18px;
}

.conditional-panel.is-active {
    display: block;
    
}

.panel-inline {
    margin-bottom: 0;
}

.panel-full {
    width: 100%;
}

.conditional-panel label {
    display: block;
    margin: 0 0 6px;
}

.form-row-instansi {
    grid-template-columns: minmax(0, 1fr) minmax(190px, 220px);
    align-items: start;
    column-gap: 14px;
}

.form-row-instansi > *,
.form-row-instansi-full > *,
.form-row-1 > *,
.form-row-2 > *,
.form-row-2-inner > *,
.form-row-3 > *,
.form-row-4 > * {
    min-width: 0;
}

.form-row-instansi-full {
    grid-template-columns: 1fr;
    column-gap: 14px;
}

.form-row-instansi-full .conditional-panel {
    grid-column: 1 / -1;
}

.form-group-toggle-end {
    margin-bottom: 18px;
}

.form-group-inline {
    min-width: 0;
}

.form-group-toggle-end .survey-choice-card {
    width: 100%;
}

.form-group-toggle {
    min-width: 0;
}

.form-group-toggle::before {
    content: "\00a0";
    display: block;
    margin-bottom: 6px;
    line-height: 1.2;
    visibility: hidden;
}

.form-group-toggle .survey-choice-card {
    width: 100%;
}

.form-row--date-stack {
    margin-top: 0;
}

.survey-choice-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 12px;
    width: 100%;
}

.choice-grid-option {
    margin-bottom: 14px;
}

.survey-choice-card {
    position: relative;
    display: flex;
    min-width: 0;
    cursor: pointer;
}

.survey-choice-card input {
    position: absolute;
    opacity: 0;
    inset: 0;
    pointer-events: none;
}

.survey-choice-card span {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    justify-content: flex-start;
    width: 100%;
    min-height: 56px;
    height: 100%;
    padding: 12px 16px;
    border-radius: 18px;
    border: 1px solid var(--border-strong);
    background: var(--color-white);
    color: var(--text);
    font-weight: 600;
    line-height: 1.35;
    transition: 0.2s ease;
}

.survey-choice-card span::before {
    content: '';
    width: 18px;
    height: 18px;
    border-radius: 999px;
    border: 2px solid var(--muted);
    background: var(--color-white);
    transition: 0.2s ease;
    box-shadow: inset 0 0 0 3px var(--color-white);
    flex-shrink: 0;
}

.survey-choice-card:hover span {
    border-color: var(--color-aqua-teal);
    background: var(--color-soft-gray);
    transform: translateY(-1px);
}

.survey-choice-card input:disabled + span {
    background: var(--color-soft-gray);
    border-color: var(--border);
    color: var(--muted);
    cursor: not-allowed;
    box-shadow: none;
    transform: none;
}

.survey-choice-card input:disabled + span::before {
    border-color: var(--border-strong);
    background: var(--color-white);
}

.survey-choice-card input:checked + span {
    border-color: var(--color-primary-navy);
    background: var(--color-soft-blue);
    color: var(--color-primary-navy);
    box-shadow: 0 10px 20px rgba(16, 62, 111, 0.12);
}

.survey-choice-card input:checked + span::before {
    border-color: var(--color-primary-navy);
    background: var(--color-primary-navy);
}


.survey-choice-card--selectlike span {
    min-height: 48px;
    padding: 11px 14px;
    border-radius: 12px;
    background: var(--color-white);
}

.choice-card-instansi span {
    min-height: 48px;
    padding: 11px 14px;
    border-radius: 12px;
    background: var(--color-white);
}

.survey-choice-card--selectlike span::before {
    content: none;
}

.survey-choice-card--selectlike span::after {
    content: '';
    margin-left: auto;
    width: 10px;
    height: 10px;
    border-right: 2px solid var(--text-soft);
    border-bottom: 2px solid var(--text-soft);
    transform: translateY(-2px) rotate(45deg);
    flex-shrink: 0;
    transition: 0.2s ease;
}

.survey-choice-card--selectlike:hover span::after,
.survey-choice-card--selectlike input:checked + span::after {
    border-color: var(--color-primary-navy);
}

.survey-choice-card--selectlike input:disabled + span::after {
    border-color: var(--border-strong);
}

.conditional-panel .text-input,
.conditional-panel input,
.conditional-panel select,
.conditional-panel textarea,
.form-group .text-input,
.form-group input[type='email'],
.form-group input[type='text'],
.form-group input[type='date'],
.form-group select,
.form-group textarea {
    overflow: hidden;
    text-overflow: ellipsis;
}

.peminjaman-section-card .table-responsive {
    width: 100%;
    max-width: 100%;
    min-width: 0;
}

.table-shell {
    padding: 0;
}

.table-scroll-area {
    display: block;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    padding-bottom: 4px;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-gutter: stable both-edges;
    scrollbar-width: thin;
    scrollbar-color: var(--border-strong) var(--color-soft-blue);
}

.table-scroll-area::-webkit-scrollbar {
    height: 10px;
}

.table-scroll-area::-webkit-scrollbar-track {
    background: var(--color-soft-blue);
    border-radius: 999px;
}

.table-scroll-area::-webkit-scrollbar-thumb {
    background: var(--border-strong);
    border-radius: 999px;
}

.table-scroll-area::-webkit-scrollbar-thumb:hover {
    background: var(--muted);
}

.peminjaman-section-card .table-responsive input[type='number'] {
    min-width: 96px;
}
.table-responsive table th,
.table-responsive table td {
    font-size: 0.9rem;
}

.table-action-group--end {
    justify-content: flex-end;
}

@media (max-width: 1100px) {
    .form-row-4 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 992px) {
    .form-row-1,
    .form-row-2,
    .form-row-2-inner,
    .form-row-3,
    .form-row-instansi,
    .form-row-instansi-full {
        grid-template-columns: 1fr;
    }

    .form-group-toggle-end {
        margin-bottom: 8px;
    }

    .form-group-toggle-end .survey-choice-card {
        max-width: 240px;
    }

    .form-group-toggle::before {
        display: none;
    }

    .form-row-instansi-full .conditional-panel {
        grid-column: auto;
    }
}

@media (max-width: 768px) {
    .activity-subsection {
        padding: 16px;
    }

    .survey-choice-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .choice-grid-list {
        grid-template-columns: 1fr;
    }

    .survey-choice-card span {
        min-height: 54px;
        padding: 12px 14px;
        border-radius: 16px;
        font-size: 0.92rem;
    }

    .form-group-toggle-end .survey-choice-card {
        max-width: none;
    }

    .form-group-toggle .survey-choice-card {
        width: 100%;
    }

    .panel-full {
        padding: 16px;
    }

    .table-responsive {
        width: 100%;
        max-width: 100%;
        min-width: 0;
        border: none;
        box-shadow: none;
        background: transparent;
    }

    .table-responsive .table-toolbar {
        padding: 0 0 14px;
        border-bottom: none;
    }

    .table-action-group,
    .table-action-group--end {
        justify-content: flex-start;
    }
}

@media (max-width: 640px) {
    .form-row-4 {
        grid-template-columns: 1fr;
    }

    .peminjaman-section-card {
        padding: 16px;
    }

    .survey-choice-card span {
        font-size: 0.88rem;
    }

    .survey-choice-card--selectlike span {
        min-height: 50px;
    }

    .choice-card-instansi span {
        min-height: 50px;
    }

    .peminjaman-section-card .table-responsive input[type='number'] {
        width: 100%;
        min-width: 0;
    }

}

.form-group-toggle .survey-choice-card span {
    justify-content: flex-start;
}

.panel-full input,
.panel-full .text-input,
.panel-full textarea,
.panel-full select {
    width: 100%;
}


@media (max-width: 768px) {
    .form-row-instansi {
        gap: 12px;
    }

    .form-group-toggle {
        margin-bottom: 0;
    }

    .form-group-toggle .survey-choice-card span {
        min-height: 52px;
    }
}



/* =========================
   LIST TABLE SCROLL
   Dipakai untuk seluruh halaman list agar mengikuti pola app pengguna.
========================= */
.table-panel {
    width: 100%;
    max-width: 100%;
}

.table-scroll-hint--list {
    padding: 14px 20px 0;
    margin: 0;
}

.table-scroll--list {
    display: block;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-gutter: stable both-edges;
    scrollbar-width: thin;
    scrollbar-color: var(--border-strong) var(--color-soft-blue);
}

.table-scroll--list::-webkit-scrollbar {
    height: 10px;
}

.table-scroll--list::-webkit-scrollbar-track {
    background: var(--color-soft-blue);
    border-radius: 999px;
}

.table-scroll--list::-webkit-scrollbar-thumb {
    background: var(--border-strong);
    border-radius: 999px;
}

.table-scroll--list::-webkit-scrollbar-thumb:hover {
    background: var(--muted);
}

.table-scroll--list .table-data {
    width: max-content;
    min-width: 100%;
    max-width: none;
    table-layout: auto;
}

.table-scroll--list .table-data th,
.table-scroll--list .table-data td {
    white-space: nowrap;
    vertical-align: middle;
}

.table-scroll--list .table-data td small {
    display: block;
    margin-top: 4px;
    color: var(--text-soft);
    line-height: 1.45;
}

.table-scroll--list .table-data .cell-wrap {
    white-space: normal;
    min-width: 180px;
    line-height: 1.5;
}

.table-scroll--list .table-data .cell-wrap--wide {
    min-width: 260px;
}

.table-scroll--list .table-data .cell-wrap--medium {
    min-width: 220px;
}

.table-scroll--list .table-data .cell-status {
    min-width: 150px;
}

.table-scroll--list .table-data .cell-action {
    min-width: 144px;
}


.table-scroll--list .table-data th.is-sortable {
    padding: 0;
}

.table-scroll--list .table-data .table-sort-button {
    width: 100%;
    min-height: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 14px 16px;
    border: 0;
    background: transparent;
    color: inherit;
    font: inherit;
    font-weight: 600;
    line-height: 1.4;
    text-align: left;
    cursor: pointer;
}

.table-scroll--list .table-data .table-sort-button:hover,
.table-scroll--list .table-data .table-sort-button:focus-visible {
    background: rgba(16, 62, 111, 0.04);
    outline: none;
}

.table-scroll--list .table-data th.is-sorted-asc .table-sort-button,
.table-scroll--list .table-data th.is-sorted-desc .table-sort-button {
    color: var(--primary);
}

.table-scroll--list .table-data .table-sort-button__label {
    flex: 1 1 auto;
    min-width: 0;
}

.table-scroll--list .table-data .table-sort-button__icon {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--text-soft);
}

.table-scroll--list .table-data th.is-sorted-asc .table-sort-button__icon,
.table-scroll--list .table-data th.is-sorted-desc .table-sort-button__icon {
    color: var(--primary);
}

.list-table--pengguna {
    min-width: 760px;
}

.list-table--operasional-simple {
    min-width: 640px;
}

.list-table--op-instansi {
    min-width: 880px;
}

.list-table--master-medium {
    min-width: 920px;
}

.list-table--master-wide {
    min-width: 1120px;
}

.list-table--peminjaman {
    min-width: 1180px;
}

.list-table--verifikasi {
    min-width: 920px;
}

@media (max-width: 768px) {
    .table-scroll-hint--list {
        padding: 12px 16px 0;
        font-size: 0.82rem;
    }

    .table-scroll--list .table-data th,
    .table-scroll--list .table-data td {
        padding: 10px 12px;
        font-size: 0.84rem;
    }

    .table-scroll--list .table-data .cell-wrap {
        min-width: 165px;
    }

    .table-scroll--list .table-data .cell-wrap--wide {
        min-width: 220px;
    }

    .table-scroll--list .table-data .cell-status .status-badge {
        min-width: 88px;
        font-size: 0.72rem;
        padding: 5px 8px;
    }
}

@media (max-width: 480px) {
    .table-scroll--list .table-data .cell-status .status-badge {
        min-width: 82px;
        font-size: 0.68rem;
        padding: 4px 7px;
    }

    .table-scroll--list .table-data th,
    .table-scroll--list .table-data td {
        padding: 9px 10px;
        font-size: 0.78rem;
    }
}


/* =========================
   MOBILE TABLE SCROLL & COMPACT TYPOGRAPHY
========================= */
.table-scroll {
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    width: 100%;
    max-width: 100%;
    min-width: 0;
}

.table-mobile-scroll {
    min-width: 760px;
    table-layout: auto;
}

.table-mobile-scroll th,
.table-mobile-scroll td {
    white-space: nowrap;
}

.table-mobile-scroll td {
    vertical-align: middle;
}

.table-mobile-scroll td[data-label]::before {
    content: none;
}

.table-mobile-scroll input[type='number'] {
    min-width: 96px;
}

@media (max-width: 992px) {
    .page-header h1 {
        font-size: 1.4rem;
    }

    .page-header p {
        font-size: 0.92rem;
    }

    .peminjaman-section-card legend {
        font-size: 0.96rem;
    }

    .peminjaman-section-card label,
    .detail-item label {
        font-size: 0.88rem;
    }

    .detail-item p,
    .form-group input,
    .form-group select,
    .form-group textarea,
    .btn,
    table th,
    table td {
        font-size: 0.9rem;
    }
}

@media (max-width: 768px) {
    .page-header {
        margin-bottom: 18px;
    }

    .page-header h1 {
        font-size: 1.28rem;
    }

    .page-header p {
        font-size: 0.86rem;
    }

    .form-card {
        padding: 16px;
    }

    .peminjaman-section-card {
        padding: 14px;
    }

    .peminjaman-section-card legend {
        font-size: 0.92rem;
    }

    .peminjaman-section-card label,
    .detail-item label,
    .input-help-text,
    .input-error-text {
        font-size: 0.82rem;
    }

    .detail-item p,
    .form-group input,
    .form-group select,
    .form-group textarea,
    .btn {
        font-size: 0.86rem;
    }

    .table-scroll {
        border-radius: 14px;
        border: 1px solid var(--border);
        background: var(--color-white);
        box-shadow: none;
        overflow-x: auto !important;
        overflow-y: hidden;
        width: 100%;
        max-width: 100%;
    }

    .table-scroll .table-mobile-scroll {
        display: table !important;
        width: max-content;
        min-width: 760px;
        border-collapse: collapse;
        border-spacing: 0;
        background: var(--color-white);
    }

    .table-scroll .table-mobile-scroll thead {
        display: table-header-group !important;
    }

    .table-scroll .table-mobile-scroll tbody {
        display: table-row-group !important;
    }

    .table-scroll .table-mobile-scroll tr {
        display: table-row !important;
        background: transparent;
        border: none;
        box-shadow: none;
    }

    .table-scroll .table-mobile-scroll th,
    .table-scroll .table-mobile-scroll td {
        display: table-cell !important;
        width: auto !important;
        min-width: 120px;
        padding: 9px 10px;
        font-size: 0.8rem;
        white-space: nowrap;
        border-bottom: 1px solid var(--border);
        background: transparent;
    }

    .table-scroll .table-mobile-scroll th:first-child,
    .table-scroll .table-mobile-scroll td:first-child {
        min-width: 74px;
    }

    .table-scroll .table-mobile-scroll td:last-child,
    .table-scroll .table-mobile-scroll th:last-child {
        min-width: 132px;
    }

    .table-scroll .table-mobile-scroll td::before {
        content: none !important;
        display: none !important;
    }

    .table-scroll .table-mobile-scroll input[type='number'] {
        width: 88px;
        min-width: 88px;
        padding: 8px 10px;
        font-size: 0.8rem;
    }

    .table-scroll .status-badge {
        font-size: 0.72rem;
        padding: 5px 8px;
    }

    .table-scroll .table-mobile-scroll--qty-first th:first-child,
    .table-scroll .table-mobile-scroll--qty-first td:first-child {
        min-width: 132px;
    }
}


@media (max-width: 480px) {
    .page-header h1 {
        font-size: 1.16rem;
    }

    .page-header p {
        font-size: 0.8rem;
    }

    .peminjaman-section-card legend {
        font-size: 0.88rem;
    }

    .btn {
        font-size: 0.82rem;
        padding: 10px 12px;
    }

    .table-scroll .table-mobile-scroll {
        min-width: 700px;
    }

    .table-scroll .table-mobile-scroll th,
    .table-scroll .table-mobile-scroll td {
        font-size: 0.76rem;
        padding: 8px 9px;
    }

    .table-scroll .table-mobile-scroll input[type='number'] {
        width: 82px;
        min-width: 82px;
        font-size: 0.76rem;
    }
}



/* =========================
   PEMINJAMAN FORM TABLE POLISH
========================= */
.table-scroll-hint {
    margin: 0 0 12px;
    color: var(--text-soft);
    font-size: 0.9rem;
    line-height: 1.6;
}

.table-scroll.compact-table {
    border-radius: 16px;
    border: 1px solid var(--border);
    background: var(--color-white);
    box-shadow: none;
}

.table-scroll .table-mobile-scroll {
    width: max-content;
    min-width: 100%;
    max-width: none;
}

.table-scroll .table-mobile-scroll th {
    vertical-align: middle;
    white-space: nowrap;
}

.table-scroll .table-mobile-scroll td {
    vertical-align: middle;
    line-height: 1.35;
}

.table-scroll .table-mobile-scroll .lab-category-row td {
    background: var(--color-soft-gray);
    color: var(--text-primary);
    font-weight: 700;
    letter-spacing: 0.01em;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    padding: 10px 14px;
}

.table-scroll .table-mobile-scroll .lab-category-title {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
    font-weight: 700;
}

.lab-category-row .lab-category-title {
    font-weight: 700 !important;
}

.table-scroll .table-mobile-scroll .lab-category-title::before {
    content: '';
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: var(--primary);
}

.table-scroll .table-mobile-scroll .cell-wrap {
    white-space: normal;
    min-width: 180px;
    word-break: break-word;
}

.table-scroll .table-mobile-scroll .cell-center,
.table-scroll .table-mobile-scroll .cell-select,
.table-scroll .table-mobile-scroll .cell-qty {
    text-align: center;
}

.table-scroll .table-mobile-scroll .cell-select {
    width: 72px;
}

.table-scroll .table-mobile-scroll .cell-select input[type='checkbox'] {
    width: 18px;
    height: 18px;
    margin: 0 auto;
    display: block;
}

.table-scroll .table-mobile-scroll .cell-qty {
    min-width: 132px;
}

.table-scroll .table-mobile-scroll .input-qty,
.table-scroll .table-mobile-scroll input[type='number'] {
    width: 96px;
    min-width: 96px;
    text-align: center;
    margin: 0 auto;
}

.table-mobile-scroll col.col-select {
    width: 72px;
}

.table-mobile-scroll col.col-name {
    width: 240px;
}

.table-mobile-scroll col.col-type {
    width: 200px;
}

.table-mobile-scroll col.col-code {
    width: 144px;
}

.table-mobile-scroll col.col-kind {
    width: 180px;
}

.table-mobile-scroll col.col-status-item {
    width: 130px;
}

.table-mobile-scroll col.col-status {
    width: 148px;
}

.table-mobile-scroll col.col-condition {
    width: 112px;
}

.table-mobile-scroll col.col-date {
    width: 138px;
}

.table-mobile-scroll col.col-stock {
    width: 118px;
}

.table-mobile-scroll col.col-unit {
    width: 108px;
}

.table-mobile-scroll col.col-qty {
    width: 142px;
}

.table-mobile-scroll col.col-year {
    width: 132px;
}

.table-mobile-scroll--lab {
    width: max(100%, 1180px);
    min-width: 1180px;
}

.table-mobile-scroll--support,
.table-mobile-scroll--material {
    width: max(100%, 860px);
    min-width: 860px;
}

.table-mobile-scroll--detail-lab {
    width: max(100%, 1460px);
    min-width: 1460px;
}

@media (min-width: 769px) {
    .peminjaman-form .table-scroll .table-mobile-scroll--support.table-mobile-scroll--fill-width,
    .peminjaman-form .table-scroll .table-mobile-scroll--material.table-mobile-scroll--fill-width {
        width: 100% !important;
        min-width: 100% !important;
        max-width: 100%;
        table-layout: fixed;
    }

    .peminjaman-form .table-scroll .table-mobile-scroll--support.table-mobile-scroll--fill-width .cell-wrap,
    .peminjaman-form .table-scroll .table-mobile-scroll--material.table-mobile-scroll--fill-width .cell-wrap {
        min-width: 0;
        white-space: normal;
        word-break: break-word;
    }
}

.table-mobile-scroll--qty-first .cell-qty {
    min-width: 142px;
}

@media (max-width: 768px) {
    .table-scroll-hint {
        font-size: 0.82rem;
        margin-bottom: 10px;
    }

    .table-scroll.compact-table {
        border-radius: 14px;
    }

    .table-scroll .table-mobile-scroll {
        width: max-content;
    }

    .table-scroll .table-mobile-scroll .cell-wrap {
        min-width: 170px;
    }

    .table-scroll .table-mobile-scroll .cell-qty {
        min-width: 118px;
    }

    .table-scroll .table-mobile-scroll .input-qty,
    .table-scroll .table-mobile-scroll input[type='number'] {
        width: 84px;
        min-width: 84px;
    }

    .table-mobile-scroll--lab {
        width: max(100%, 1120px);
        min-width: 1120px;
    }

    .table-mobile-scroll--support,
    .table-mobile-scroll--material {
        width: max(100%, 820px);
        min-width: 820px;
    }

    .table-mobile-scroll--detail-lab {
        width: max(100%, 1380px);
        min-width: 1380px;
    }
}

@media (max-width: 480px) {
    .table-scroll-hint {
        font-size: 0.78rem;
    }

    .table-scroll .table-mobile-scroll .cell-wrap {
        min-width: 160px;
    }

    .table-scroll .table-mobile-scroll .input-qty,
    .table-scroll .table-mobile-scroll input[type='number'] {
        width: 80px;
        min-width: 80px;
    }

    .table-mobile-scroll--lab {
        width: max(100%, 1080px);
        min-width: 1080px;
    }

    .table-mobile-scroll--support,
    .table-mobile-scroll--material {
        width: max(100%, 780px);
        min-width: 780px;
    }

    .table-mobile-scroll--detail-lab {
        width: max(100%, 1320px);
        min-width: 1320px;
    }
}


/* =========================
   PEMINJAMAN MOBILE REFINEMENT
========================= */
@media (max-width: 768px) {
    .peminjaman-form .choice-grid-list {
        display: flex;
        flex-direction: column;
        gap: 10px;
    }

    .peminjaman-form .choice-grid-list .survey-choice-card {
        width: 100%;
    }

    .peminjaman-form .choice-grid-list .survey-choice-card span {
        width: 100%;
        min-height: 52px;
    }
}

.peminjaman-form .table-mobile-scroll--support col.col-qty,
.peminjaman-form .table-mobile-scroll--material col.col-qty {
    width: 88px;
}

.peminjaman-form .table-mobile-scroll--support .cell-qty,
.peminjaman-form .table-mobile-scroll--material .cell-qty {
    min-width: 88px;
}

.peminjaman-form .table-mobile-scroll--support .input-qty,
.peminjaman-form .table-mobile-scroll--support input[type='number'],
.peminjaman-form .table-mobile-scroll--material .input-qty,
.peminjaman-form .table-mobile-scroll--material input[type='number'] {
    width: 60px;
    min-width: 60px;
    max-width: 60px;
    padding-inline: 6px;
}

@media (max-width: 768px) {
    .peminjaman-section-card .table-scroll .table-mobile-scroll--support .cell-qty,
    .peminjaman-section-card .table-scroll .table-mobile-scroll--material .cell-qty {
        min-width: 86px;
    }

    .peminjaman-section-card .table-scroll .table-mobile-scroll--support .input-qty,
    .peminjaman-section-card .table-scroll .table-mobile-scroll--support input[type='number'],
    .peminjaman-section-card .table-scroll .table-mobile-scroll--material .input-qty,
    .peminjaman-section-card .table-scroll .table-mobile-scroll--material input[type='number'] {
        width: 58px;
        min-width: 58px;
        max-width: 58px;
        padding: 8px 6px;
        margin-inline: auto;
    }

    .peminjaman-form .table-mobile-scroll--support,
    .peminjaman-form .table-mobile-scroll--material {
        min-width: 760px;
    }
}

@media (max-width: 480px) {
    .peminjaman-section-card .table-scroll .table-mobile-scroll--support .cell-qty,
    .peminjaman-section-card .table-scroll .table-mobile-scroll--material .cell-qty {
        min-width: 82px;
    }

    .peminjaman-section-card .table-scroll .table-mobile-scroll--support .input-qty,
    .peminjaman-section-card .table-scroll .table-mobile-scroll--support input[type='number'],
    .peminjaman-section-card .table-scroll .table-mobile-scroll--material .input-qty,
    .peminjaman-section-card .table-scroll .table-mobile-scroll--material input[type='number'] {
        width: 54px;
        min-width: 54px;
        max-width: 54px;
        padding: 7px 5px;
    }

    .peminjaman-form .table-mobile-scroll--support,
    .peminjaman-form .table-mobile-scroll--material {
        min-width: 720px;
    }
}



/* =========================
   PEMINJAMAN MOBILE REFINEMENT
========================= */
@media (max-width: 768px) {
    .peminjaman-form .choice-grid-option {
        grid-template-columns: 1fr;
        width: 100%;
    }

    .peminjaman-form .choice-grid-option .survey-choice-card {
        width: 100%;
    }

    .peminjaman-form .choice-grid-option .survey-choice-card span {
        width: 100%;
        min-height: 52px;
    }

    .peminjaman-form .table-scroll .table-mobile-scroll--support .cell-qty,
    .peminjaman-form .table-scroll .table-mobile-scroll--material .cell-qty,
    .peminjaman-form .table-scroll .table-mobile-scroll--support th:first-child,
    .peminjaman-form .table-scroll .table-mobile-scroll--material th:first-child,
    .peminjaman-form .table-scroll .table-mobile-scroll--support td:first-child,
    .peminjaman-form .table-scroll .table-mobile-scroll--material td:first-child {
        width: 88px !important;
        min-width: 88px !important;
        max-width: 88px !important;
        text-align: center;
    }

    .peminjaman-form .table-scroll .table-mobile-scroll--support th:first-child,
    .peminjaman-form .table-scroll .table-mobile-scroll--material th:first-child {
        padding-left: 8px;
        padding-right: 8px;
    }

    .peminjaman-form .table-scroll .table-mobile-scroll--support .cell-qty,
    .peminjaman-form .table-scroll .table-mobile-scroll--material .cell-qty {
        padding-left: 8px;
        padding-right: 8px;
    }

    .peminjaman-form .table-scroll .table-mobile-scroll--support .input-qty,
    .peminjaman-form .table-scroll .table-mobile-scroll--support input[type='number'],
    .peminjaman-form .table-scroll .table-mobile-scroll--material .input-qty,
    .peminjaman-form .table-scroll .table-mobile-scroll--material input[type='number'] {
        width: 52px;
        min-width: 52px;
        max-width: 52px;
        display: block;
        margin: 0 auto;
        padding-left: 4px;
        padding-right: 4px;
    }
}

@media (max-width: 480px) {
    .peminjaman-form .table-scroll .table-mobile-scroll--support .cell-qty,
    .peminjaman-form .table-scroll .table-mobile-scroll--material .cell-qty,
    .peminjaman-form .table-scroll .table-mobile-scroll--support th:first-child,
    .peminjaman-form .table-scroll .table-mobile-scroll--material th:first-child,
    .peminjaman-form .table-scroll .table-mobile-scroll--support td:first-child,
    .peminjaman-form .table-scroll .table-mobile-scroll--material td:first-child {
        width: 82px !important;
        min-width: 82px !important;
        max-width: 82px !important;
    }

    .peminjaman-form .table-scroll .table-mobile-scroll--support .input-qty,
    .peminjaman-form .table-scroll .table-mobile-scroll--support input[type='number'],
    .peminjaman-form .table-scroll .table-mobile-scroll--material .input-qty,
    .peminjaman-form .table-scroll .table-mobile-scroll--material input[type='number'] {
        width: 48px;
        min-width: 48px;
        max-width: 48px;
    }
}



/* =========================
   PEMINJAMAN DESKTOP QTY COLUMN ALIGNMENT
========================= */
@media (min-width: 769px) {
    .peminjaman-form .table-mobile-scroll--support col.col-qty,
    .peminjaman-form .table-mobile-scroll--material col.col-qty {
        width: 86px;
    }

    .peminjaman-form .table-mobile-scroll--support th:first-child,
    .peminjaman-form .table-mobile-scroll--material th:first-child,
    .peminjaman-form .table-mobile-scroll--support td:first-child,
    .peminjaman-form .table-mobile-scroll--material td:first-child,
    .peminjaman-form .table-mobile-scroll--support .cell-qty,
    .peminjaman-form .table-mobile-scroll--material .cell-qty {
        width: 86px;
        min-width: 86px;
        max-width: 86px;
        text-align: left;
        padding-left: 12px;
        padding-right: 8px;
    }

    .peminjaman-form .table-mobile-scroll--support .cell-qty,
    .peminjaman-form .table-mobile-scroll--material .cell-qty {
        display: table-cell;
        vertical-align: middle;
    }

    .peminjaman-form .table-mobile-scroll--support .input-qty,
    .peminjaman-form .table-mobile-scroll--support input[type='number'],
    .peminjaman-form .table-mobile-scroll--material .input-qty,
    .peminjaman-form .table-mobile-scroll--material input[type='number'] {
        width: 56px;
        min-width: 56px;
        max-width: 56px;
        margin: 0;
        display: inline-block;
        text-align: center;
    }
}


/* =========================
   GLOBAL TABLE LEFT ALIGNMENT
   Menyamakan seluruh isi tabel agar rata kiri di semua app.
========================= */
table th,
table td,
.table-scroll--list .table-data th,
.table-scroll--list .table-data td,
.table-scroll .table-mobile-scroll th,
.table-scroll .table-mobile-scroll td,
.table-responsive table th,
.table-responsive table td {
    text-align: left !important;
}

.table-scroll .table-mobile-scroll .cell-center,
.table-scroll .table-mobile-scroll .cell-select,
.table-scroll .table-mobile-scroll .cell-qty,
.table-scroll--list .table-data .cell-center,
.table-scroll--list .table-data .cell-select,
.table-scroll--list .table-data .cell-qty,
.table-responsive table .cell-center,
.table-responsive table .cell-select,
.table-responsive table .cell-qty {
    text-align: left !important;
}

.table-scroll .table-mobile-scroll .cell-select input[type='checkbox'],
.table-scroll--list .table-data .cell-select input[type='checkbox'],
.table-responsive table .cell-select input[type='checkbox'] {
    margin-left: 0;
    margin-right: 0;
}

.table-scroll .table-mobile-scroll .input-qty,
.table-scroll .table-mobile-scroll input[type='number'],
.table-scroll--list .table-data .input-qty,
.table-scroll--list .table-data input[type='number'],
.table-responsive table .input-qty,
.table-responsive table input[type='number'] {
    margin-left: 0;
    margin-right: 0;
}


/* =========================
   PEMINJAMAN TABLE LEFT ALIGNMENT REFINEMENT
   Merapikan 3 tabel pada form peminjaman agar seluruh isi sel benar-benar rata kiri.
========================= */
.peminjaman-form .table-mobile-scroll--lab th,
.peminjaman-form .table-mobile-scroll--lab td,
.peminjaman-form .table-mobile-scroll--support th,
.peminjaman-form .table-mobile-scroll--support td,
.peminjaman-form .table-mobile-scroll--material th,
.peminjaman-form .table-mobile-scroll--material td {
    text-align: left !important;
}

.peminjaman-form .table-mobile-scroll--lab .cell-select,
.peminjaman-form .table-mobile-scroll--lab .cell-center,
.peminjaman-form .table-mobile-scroll--lab .cell-qty,
.peminjaman-form .table-mobile-scroll--support .cell-select,
.peminjaman-form .table-mobile-scroll--support .cell-center,
.peminjaman-form .table-mobile-scroll--support .cell-qty,
.peminjaman-form .table-mobile-scroll--material .cell-select,
.peminjaman-form .table-mobile-scroll--material .cell-center,
.peminjaman-form .table-mobile-scroll--material .cell-qty {
    text-align: left !important;
}

.peminjaman-form .table-mobile-scroll--lab .cell-select input[type='checkbox'],
.peminjaman-form .table-mobile-scroll--support .cell-select input[type='checkbox'],
.peminjaman-form .table-mobile-scroll--material .cell-select input[type='checkbox'] {
    margin-left: 0 !important;
    margin-right: auto !important;
    display: inline-block;
}

.peminjaman-form .table-mobile-scroll--lab .status-badge,
.peminjaman-form .table-mobile-scroll--support .status-badge,
.peminjaman-form .table-mobile-scroll--material .status-badge {
    margin-left: 0 !important;
    margin-right: auto !important;
}

.peminjaman-form .table-mobile-scroll--lab .input-qty,
.peminjaman-form .table-mobile-scroll--lab input[type='number'],
.peminjaman-form .table-mobile-scroll--support .input-qty,
.peminjaman-form .table-mobile-scroll--support input[type='number'],
.peminjaman-form .table-mobile-scroll--material .input-qty,
.peminjaman-form .table-mobile-scroll--material input[type='number'] {
    margin-left: 0 !important;
    margin-right: auto !important;
}

@media (max-width: 768px) {
    .peminjaman-form .table-scroll .table-mobile-scroll--support th:first-child,
    .peminjaman-form .table-scroll .table-mobile-scroll--material th:first-child,
    .peminjaman-form .table-scroll .table-mobile-scroll--support td:first-child,
    .peminjaman-form .table-scroll .table-mobile-scroll--material td:first-child,
    .peminjaman-form .table-scroll .table-mobile-scroll--support .cell-qty,
    .peminjaman-form .table-scroll .table-mobile-scroll--material .cell-qty {
        text-align: left !important;
    }

    .peminjaman-form .table-scroll .table-mobile-scroll--support .input-qty,
    .peminjaman-form .table-scroll .table-mobile-scroll--support input[type='number'],
    .peminjaman-form .table-scroll .table-mobile-scroll--material .input-qty,
    .peminjaman-form .table-scroll .table-mobile-scroll--material input[type='number'] {
        margin-left: 0 !important;
        margin-right: auto !important;
    }
}


/* =========================
   DATE PICKER - PEMINJAMAN
========================= */
.date-picker-control {
    position: relative;
    width: 100%;
}

.date-picker-control .date-input,
.date-picker-control input[type='text'] {
    width: 100%;
    padding-right: 48px;
}

.date-picker-toggle {
    position: absolute;
    top: 50%;
    right: 12px;
    transform: translateY(-50%);
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: none;
    border-radius: 10px;
    background: transparent;
    color: var(--text-soft);
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease;
}

.date-picker-toggle:hover,
.date-picker-toggle:focus {
    background: var(--color-soft-gray);
    color: var(--color-primary-navy);
    outline: none;
}

.date-picker-popup {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    z-index: 30;
    width: min(320px, 100%);
    max-width: min(320px, calc(100vw - 32px));
    padding: 14px;
    border: 1px solid var(--border);
    border-radius: 16px;
    background: var(--color-white);
    box-shadow: 0 18px 44px rgba(16, 62, 111, 0.14);
}

.date-picker-header,
.date-picker-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.date-picker-header {
    margin-bottom: 12px;
}

.date-picker-title {
    flex: 1;
    text-align: center;
    font-weight: 700;
    color: var(--color-primary-navy);
}

.date-picker-nav,
.date-picker-footer-btn {
    border: 1px solid var(--border);
    background: var(--color-white);
    color: var(--text);
    border-radius: 10px;
    cursor: pointer;
    transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}

.date-picker-nav {
    width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
}

.date-picker-footer {
    margin-top: 12px;
}

.date-picker-footer-btn {
    padding: 8px 12px;
    font-size: 0.82rem;
    font-weight: 600;
}

.date-picker-nav:hover,
.date-picker-nav:focus,
.date-picker-footer-btn:hover,
.date-picker-footer-btn:focus {
    border-color: var(--color-soft-blue);
    background: var(--color-soft-gray);
    color: var(--color-primary-navy);
    outline: none;
}

.date-picker-weekdays,
.date-picker-grid {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 6px;
}

.date-picker-weekdays {
    margin-bottom: 8px;
}

.date-picker-weekday {
    text-align: center;
    font-size: 0.76rem;
    font-weight: 700;
    color: var(--text-soft);
}

.date-picker-day {
    min-height: 38px;
    border: 1px solid transparent;
    border-radius: 10px;
    background: var(--color-white);
    color: var(--color-primary-navy);
    font-size: 0.9rem;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.date-picker-day:hover,
.date-picker-day:focus {
    background: var(--color-soft-gray);
    border-color: var(--color-soft-blue);
    color: var(--color-primary-navy);
    outline: none;
}

.date-picker-day.is-today {
    border-color: var(--color-soft-blue);
    font-weight: 700;
}

.date-picker-day.is-selected {
    background: var(--color-primary-navy);
    border-color: var(--color-primary-navy);
    color: var(--color-white);
    font-weight: 700;
}

.date-picker-day.is-empty {
    visibility: hidden;
    pointer-events: none;
}

.date-picker-day.is-disabled,
.date-picker-day:disabled {
    background: var(--color-soft-gray);
    border-color: transparent;
    color: var(--muted);
    cursor: not-allowed;
}

.date-picker-day.is-disabled:hover,
.date-picker-day.is-disabled:focus,
.date-picker-day:disabled:hover,
.date-picker-day:disabled:focus {
    background: var(--color-soft-gray);
    border-color: transparent;
    color: var(--muted);
}

@media (max-width: 768px) {
    .date-picker-popup {
        width: min(280px, calc(100vw - 32px));
        max-width: calc(100vw - 32px);
        padding: 12px;
        border-radius: 14px;
    }

    .date-picker-header,
    .date-picker-footer {
        gap: 8px;
    }

    .date-picker-title {
        font-size: 0.92rem;
    }

    .date-picker-nav {
        width: 30px;
        height: 30px;
        font-size: 0.94rem;
    }

    .date-picker-weekdays,
    .date-picker-grid {
        gap: 5px;
    }

    .date-picker-weekday {
        font-size: 0.7rem;
    }

    .date-picker-day {
        min-height: 34px;
        font-size: 0.82rem;
        border-radius: 9px;
    }

    .date-picker-footer-btn {
        padding: 7px 10px;
        font-size: 0.76rem;
    }
}

@media (max-width: 480px) {
    .date-picker-popup {
        width: min(252px, calc(100vw - 24px));
        max-width: calc(100vw - 24px);
        padding: 10px;
        border-radius: 12px;
    }

    .date-picker-title {
        font-size: 0.86rem;
    }

    .date-picker-nav {
        width: 28px;
        height: 28px;
        font-size: 0.88rem;
    }

    .date-picker-weekday {
        font-size: 0.66rem;
    }

    .date-picker-day {
        min-height: 30px;
        font-size: 0.78rem;
        border-radius: 8px;
    }

    .date-picker-footer-btn {
        padding: 6px 9px;
        font-size: 0.72rem;
    }
}



/* =========================
   GLOBAL PLACEHOLDER SELECT, PASSWORD TOGGLE, MASTER DATA LOCK
   Konfigurasi: dropdown placeholder seluruh app, toggle password app pengguna,
   dan field lock status barang pada app master_data.
========================= */
.form-group select.is-placeholder-state {
    color: var(--text-muted);
}

.form-group select option {
    color: var(--color-primary-navy);
}

.form-group select option[value=""] {
    color: var(--text-muted);
}

.form-group select:not([disabled]):hover,
.conditional-panel select:not([disabled]):hover,
.panel-full select:not([disabled]):hover,
select.return-transfer-target-select:not([disabled]):hover,
select.return-status-select:not([disabled]):hover {
    border-color: var(--color-soft-blue);
    box-shadow: 0 0 0 3px rgba(100, 205, 209, 0.12);
    cursor: pointer;
}

.form-group select:not([disabled]),
.conditional-panel select:not([disabled]),
.panel-full select:not([disabled]),
select.return-transfer-target-select:not([disabled]),
select.return-status-select:not([disabled]) {
    cursor: pointer;
}

.other-select-field {
    width: 100%;
}

.other-select-field .other-select-manual-wrap {
    display: none;
    align-items: stretch;
    width: 100%;
}

.other-select-field.is-manual-mode > select {
    display: none;
}

.other-select-field.is-manual-mode .other-select-manual-wrap {
    display: flex;
}

.other-select-manual-wrap .layanan-other-input {
    flex: 1 1 auto;
    min-width: 0;
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
}

.other-select-reset-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    min-width: 44px;
    border: 1px solid var(--border-strong, #dbe4ea);
    border-left: 0;
    border-radius: 0 12px 12px 0;
    background: var(--color-white);
    color: var(--color-primary-navy);
    cursor: pointer;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, color 0.2s ease;
}

.other-select-reset-btn:hover,
.other-select-reset-btn:focus {
    border-color: var(--color-soft-blue);
    box-shadow: 0 0 0 3px rgba(100, 205, 209, 0.12);
    color: var(--color-ocean-blue);
    outline: none;
}

.password-field-wrap {
    position: relative;
}

.password-field-wrap input {
    padding-right: 46px;
}

.password-toggle-button {
    position: absolute;
    top: 50%;
    right: 12px;
    transform: translateY(-50%);
    width: 32px;
    height: 32px;
    border: 0;
    border-radius: 10px;
    background: transparent;
    color: var(--text-soft);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.password-toggle-button:hover {
    background: var(--color-soft-gray);
    color: var(--color-primary-navy);
}

.master-fieldset-stack {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.master-fieldset-stack .master-form-row {
    margin-top: 0;
}

.master-fieldset-stack .master-form-row + .master-form-row {
    margin-top: 0;
}

.master-fieldset-stack .master-form-row .form-group {
    margin-bottom: 0;
}

.master-form-row {
    grid-template-columns: repeat(12, minmax(0, 1fr));
}

.master-form-row--1 > .form-group { grid-column: span 12; }
.master-form-row--2 > .form-group { grid-column: span 6; }
.master-form-row--3 > .form-group { grid-column: span 4; }
.master-form-row--4 > .form-group { grid-column: span 3; }
.master-form-row--5 > .form-group { grid-column: span 2; }
.master-form-row > .form-group.form-group-full { grid-column: 1 / -1; }

.is-status-dependent.is-locked,
[data-status-dependent-group="true"].is-locked {
    opacity: 0.58;
}

.is-status-dependent.is-locked .form-group *,
[data-status-dependent-group="true"].is-locked .form-group *,
[data-status-dependent-group="true"].is-locked .upload-card *,
[data-status-dependent-group="true"].is-locked .upload-input-wrap *,
[data-status-dependent-group="true"].is-locked .upload-file-state__action {
    pointer-events: none;
}

[data-status-dependent-group="true"].is-locked input,
[data-status-dependent-group="true"].is-locked select,
[data-status-dependent-group="true"].is-locked textarea,
[data-status-dependent-group="true"].is-locked button {
    cursor: not-allowed;
}

@media (max-width: 768px) {
    .master-fieldset-stack {
        gap: 14px;
    }

    .master-form-row {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .master-form-row > .form-group {
        grid-column: 1 / -1;
    }
}


.detail-state {
    min-height: 0;
    padding: 10px 12px;
    border-radius: 14px;
    border: 1px solid var(--border);
    background: var(--color-white);
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
}

.detail-state .detail-header-tile-label {
    font-size: 0.76rem;
    line-height: 1.35;
}

.detail-state .status-badge,
.detail-stat .status-badge {
    width: fit-content;
    max-width: 100%;
    font-size: 0.72rem;
    line-height: 1.25;
    padding: 6px 10px;
}

.detail-stat {
    min-height: 0;
    padding: 10px 12px;
}

.detail-value-compact {
    font-size: 0.9rem;
    font-weight: 700;
    line-height: 1.45;
}

.detail-header-actions-grid,
.detail-actions--compact,
.detail-action-row {
    display: grid;
    gap: 10px;
}

.detail-header-actions-grid,
.detail-actions--compact {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.detail-header-actions-grid form,
.detail-header-actions-grid .detail-action-btn,
.detail-header-actions-grid .btn,
.detail-action-row form,
.detail-action-row .detail-action-btn,
.detail-action-row .btn {
    width: 100%;
}

.detail-action-btn {
    min-height: 44px;
    padding: 12px 14px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    line-height: 1.35;
}


.return-qty-input[data-allow-empty='true']::placeholder {
    color: var(--muted);
    opacity: 1;
}

.return-transfer-stack {
    display: grid;
    gap: 8px;
}

.return-transfer-inline {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: nowrap;
}

.return-transfer-check {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    min-width: 18px;
}

.return-transfer-check input {
    margin: 0;
}

.return-transfer-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    min-width: 42px;
    min-height: 38px;
    padding: 8px 10px;
    border: 1px solid rgba(16, 62, 111, 0.35);
    border-radius: 12px;
    background: var(--color-soft-gray);
    line-height: 1;
    transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.return-transfer-toggle input {
    margin: 0;
}

.return-transfer-toggle.is-active {
    border-color: rgba(16, 62, 111, 0.35);
    background: var(--color-soft-gray);
}

.return-transfer-box {
    min-width: 0;
}

.return-transfer-col {
    width: 180px;
    min-width: 180px;
}

.return-transfer-target-select,
select.return-transfer-target-select,
.return-status-select,
select.return-status-select {
    border-color: var(--border-strong);
    background-color: var(--color-white);
    line-height: 1.35;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image:
        linear-gradient(45deg, transparent 50%, var(--text-soft) 50%),
        linear-gradient(135deg, var(--text-soft) 50%, transparent 50%);
    background-position:
        calc(100% - 16px) calc(50% - 3px),
        calc(100% - 11px) calc(50% - 3px);
    background-size: 5px 5px, 5px 5px;
    background-repeat: no-repeat;
    padding-right: 38px;
}

.return-transfer-target-select,
select.return-transfer-target-select {
    width: 180px;
    min-width: 180px;
    max-width: 180px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.return-transfer-target-select.is-placeholder-state,
select.return-transfer-target-select.is-placeholder-state,
.return-status-select.is-placeholder-state,
select.return-status-select.is-placeholder-state {
    color: var(--muted);
}

.return-transfer-target-select option,
select.return-transfer-target-select option,
.return-status-select option,
select.return-status-select option {
    color: var(--color-primary-navy);
    white-space: normal;
    line-height: 1.45;
    font-size: 0.92rem;
}

.return-status-select option:disabled,
select.return-status-select option:disabled {
    color: var(--muted);
}

.table-scroll-area--fit > table,
.table-scroll-area--fit .tbl-scroll--ret-bahan {
    width: 100%;
}

.table-scroll-area--fit .tbl-scroll--ret-bahan {
    width: max-content !important;
    min-width: 100% !important;
}

@media (max-width: 1200px) {
    .detail-shell {
        grid-template-columns: 1fr;
    }

    .detail-header-actions-grid,
    .detail-actions--compact {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 768px) {
    .detail-state-row,
    .detail-header-actions-grid,
    .detail-actions--compact {
        grid-template-columns: 1fr;
    }

    .detail-action-row {
        grid-auto-flow: row;
        grid-template-columns: 1fr;
    }

    .detail-main {
        min-height: 0;
        padding: 16px 18px;
    }

    .detail-state,
    .detail-stat {
        padding: 12px;
    }

    .timeline-list {
        gap: 12px;
    }

    .timeline-item {
        gap: 10px;
    }

    .timeline-point {
        width: 12px;
        height: 12px;
        margin-top: 4px;
    }

    .timeline-content strong {
        font-size: 0.92rem;
    }

    .timeline-content p,
    .timeline-content .card-soft {
        font-size: 0.8rem;
    }

    .return-transfer-inline {
        align-items: center;
        flex-direction: row;
        flex-wrap: nowrap;
    }
}



.detail-main--loan {
    gap: 10px;
    align-items: flex-start;
}

.detail-header-number {
    margin: 0;
    font-size: 22px;
    font-weight: 800;
    line-height: 1.08;
    letter-spacing: 0;
    color: var(--text);
    word-break: break-word;
}

.detail-list {
    display: grid;
    gap: 3px;
    width: 100%;
}

.detail-row {
    display: grid;
    grid-template-columns: 150px 6px minmax(0, 1fr);
    gap: 3px;
    align-items: center;
}

.detail-label {
    max-width: 150px;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0;
    color: var(--text);
    white-space: normal;
    line-height: 1.2;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.detail-sep {
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    font-size: 12px;
    font-weight: 700;
    color: var(--text);
    line-height: 1;
}

.detail-value {
    font-size: 14px;
    font-weight: 700;
    line-height: 1.24;
    color: var(--text);
    white-space: nowrap;
}

@media (max-width: 768px) {
    .detail-header-number {
        font-size: 20px;
    }

    .detail-row {
        grid-template-columns: minmax(0, 1fr);
        gap: 2px;
    }

    .detail-sep {
        display: none;
    }

    .detail-label {
        color: var(--text-soft);
        font-size: 0.84rem;
        font-weight: 700;
        white-space: normal;
    }

    .detail-value {
        font-size: 0.98rem;
    }
}


@media (min-width: 769px) {
    .detail-main--loan {
        min-width: 0;
    }

    .detail-main--loan .detail-list,
    .detail-main--loan .detail-row,
    .detail-main--loan .detail-row > *,
    .detail-main--loan .detail-value {
        min-width: 0;
        max-width: 100%;
    }

    .detail-main--loan .detail-list {
        gap: 2px;
    }

    .detail-main--loan .detail-row {
        grid-template-columns: minmax(120px, 150px) 6px minmax(0, 1fr);
        gap: 2px;
        align-items: start;
    }

    .detail-main--loan .detail-header-number {
        font-size: 22px !important;
    }

    .detail-main--loan .detail-label {
        max-width: 150px;
        font-size: 12px !important;
        white-space: normal;
        overflow-wrap: anywhere;
        word-break: break-word;
    }

    .detail-main--loan .detail-sep {
        font-size: 12px !important;
    }

    .detail-main--loan .detail-value {
        font-size: 14px !important;
        white-space: normal;
        overflow-wrap: anywhere;
        word-break: break-word;
        line-height: 1.3;
    }
}

@media (max-width: 768px) {
    .detail-main--loan .detail-header-number {
        font-size: 18px !important;
    }

    .detail-main--loan .detail-list {
        gap: 4px;
    }

    .detail-main--loan .detail-row {
        gap: 2px;
    }

    .detail-main--loan .detail-label {
        max-width: 150px;
        font-size: 11px !important;
    }

    .detail-main--loan .detail-value {
        font-size: 12px !important;
    }
}


.peminjaman-form {
    --qty-col-width: 114px;
    --qty-stepper-width: 94px;
    --qty-stepper-height: 36px;
    --qty-stepper-button-width: 28px;
    --qty-stepper-font-size: 0.82rem;
}
#pengajuanSummaryModal.show,
#pengembalianSummaryModal.show {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
#pengajuanSummaryModal .delete-modal-backdrop,
#pengembalianSummaryModal .delete-modal-backdrop {
    z-index: 0;
}
.loan-summary-modal {
    width: min(calc(100vw - 48px), 1280px);
    max-width: min(calc(100vw - 48px), 1280px);
    max-height: calc(100dvh - 40px);
    margin: 0;
    z-index: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}
.loan-summary-body {
    flex: 1 1 auto;
    min-height: 0;
    max-height: none;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 20px 22px 8px;
}

.loan-summary-body > * {
    width: 100%;
    margin-left: auto;
    margin-right: auto;
}
#pengajuanSummaryModal .delete-modal-actions,
#pengembalianSummaryModal .delete-modal-actions {
    position: sticky;
    bottom: 0;
    z-index: 2;
    background: var(--color-white);
    border-top: 1px solid var(--border);
    padding: 16px 22px calc(16px + env(safe-area-inset-bottom, 0px));
}
.detail-grid-summary {
    grid-template-columns: 1fr;
}
.loan-summary-section {
    margin-top: 16px;
}
.loan-summary-empty {
    margin-top: 0;
}

.loan-summary-head,
.loan-summary-section,
.loan-summary-empty,
.loan-summary-modal .card,
.loan-summary-modal .detail-item,
.loan-summary-modal .detail-item p,
.loan-summary-modal .detail-item a,
.loan-summary-modal .detail-item label,
.loan-summary-modal .detail-item span,
.loan-summary-modal .detail-meta,
.loan-summary-modal .empty-state {
    min-width: 0;
    max-width: 100%;
}

.loan-summary-modal .delete-modal-header {
    align-items: flex-start;
    gap: 16px;
}

.loan-summary-modal .delete-modal-header > div,
.loan-summary-modal .detail-header-top > div,
.loan-summary-modal .detail-header-actions,
.loan-summary-modal .detail-grid,
.loan-summary-modal .detail-grid-summary,
.loan-summary-modal #summaryInventorySections,
.loan-summary-modal #summaryPengembalianSections {
    min-width: 0;
}

.loan-summary-modal .detail-header-top {
    gap: 16px;
}

.loan-summary-modal .detail-header-actions {
    flex-wrap: wrap;
    justify-content: flex-start;
}

.loan-summary-modal .card-title,
.loan-summary-modal .detail-meta,
.loan-summary-modal .detail-item p,
.loan-summary-modal .detail-item a,
.loan-summary-modal .detail-item label,
.loan-summary-modal .delete-modal-header h3,
.loan-summary-modal .delete-modal-header p {
    overflow-wrap: anywhere;
    word-break: break-word;
}

.loan-summary-table-scroll {
    width: 100%;
    margin: 0 auto;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
}

.loan-summary-table-scroll .table-mobile-scroll {
    width: max(100%, max-content);
    min-width: 100%;
    max-width: none;
    margin-inline: auto;
    table-layout: auto;
}

.loan-summary-table-scroll .table-mobile-scroll thead {
    display: table-header-group !important;
}

.loan-summary-table-scroll .table-mobile-scroll tbody {
    display: table-row-group !important;
}

.loan-summary-table-scroll .table-mobile-scroll th,
.loan-summary-table-scroll .table-mobile-scroll td {
    white-space: nowrap;
    vertical-align: middle;
}

.loan-summary-table-scroll .table-mobile-scroll th {
    background: var(--color-soft-gray) !important;
    color: var(--text);
}

.loan-summary-table-scroll .table-mobile-scroll td {
    line-height: 1.35;
    background: var(--color-white);
}

.loan-summary-table-scroll .table-mobile-scroll tr:hover td {
    background: var(--color-soft-gray);
}

.loan-summary-table-scroll .table-mobile-scroll td:first-child,
.loan-summary-table-scroll .table-mobile-scroll th:first-child {
    min-width: 180px;
}

.loan-summary-table-scroll .tbl-scroll--sum-lab {
    min-width: 960px;
}

.loan-summary-table-scroll .tbl-scroll--sum-support {
    min-width: 1160px;
}

.loan-summary-table-scroll .tbl-scroll--sum-material {
    min-width: 960px;
}

@media (max-width: 768px) {
    .loan-summary-modal .delete-modal-header {
        padding: 16px 18px;
    }

    .loan-summary-modal .delete-modal-header h3 {
        font-size: 1rem;
    }

    .loan-summary-modal .delete-modal-header p,
    .loan-summary-modal .detail-meta {
        font-size: 0.82rem;
        line-height: 1.55;
    }

    .loan-summary-modal .detail-header-top {
        flex-direction: column;
        align-items: flex-start;
    }

    .loan-summary-modal .detail-header-actions {
        width: 100%;
    }

    .loan-summary-modal .status-badge {
        font-size: 0.72rem;
        line-height: 1.25;
    }

    .loan-summary-modal .card {
        padding: 16px;
    }

    .loan-summary-modal .card-title {
        font-size: 0.96rem;
    }

    .loan-summary-modal .detail-grid,
    .loan-summary-modal .detail-grid-summary,
    .loan-summary-modal .detail-grid--kegiatan {
        gap: 12px;
    }

    .loan-summary-modal .detail-grid--kegiatan {
        grid-template-columns: 1fr;
    }

    .loan-summary-modal .detail-grid--kegiatan .detail-item,
    .loan-summary-modal .detail-grid--kegiatan .detail-item--span-3,
    .loan-summary-modal .detail-grid--kegiatan .detail-item--span-2,
    .loan-summary-modal .detail-grid--kegiatan .detail-item-full {
        grid-column: 1 / -1;
    }

    .loan-summary-table-scroll {
        width: 100%;
        margin-left: 0;
        margin-right: 0;
        padding-left: 0;
        padding-right: 0;
    }

    .loan-summary-table-scroll .table-mobile-scroll {
        width: max(100%, max-content);
        min-width: 100%;
        margin-inline: auto;
    }

    .loan-summary-table-scroll .table-mobile-scroll th {
        background: var(--color-soft-gray) !important;
    }

    .loan-summary-table-scroll .table-mobile-scroll th,
    .loan-summary-table-scroll .table-mobile-scroll td {
        font-size: 0.82rem;
        padding: 9px 11px;
    }


    .loan-summary-table-scroll .tbl-scroll--sum-lab {
        min-width: 900px;
    }

    .loan-summary-table-scroll .tbl-scroll--sum-support {
        min-width: 1120px;
    }

    .loan-summary-table-scroll .tbl-scroll--sum-material {
        min-width: 920px;
    }
}

@media (max-width: 480px) {
    .loan-summary-modal .delete-modal-header {
        padding: 15px 16px;
    }

    .loan-summary-modal .card {
        padding: 14px;
    }

    .loan-summary-modal .delete-modal-actions .btn {
        min-width: 0;
    }

    .loan-summary-table-scroll {
        width: 100%;
        margin-left: 0;
        margin-right: 0;
        padding-left: 0;
        padding-right: 0;
    }

    .loan-summary-table-scroll .tbl-scroll--sum-lab {
        min-width: 860px;
    }

    .loan-summary-table-scroll .tbl-scroll--sum-support {
        min-width: 1080px;
    }

    .loan-summary-table-scroll .tbl-scroll--sum-material {
        min-width: 900px;
    }
}
#inventorySelectionError.is-hidden {
    display: none;
}
#inventorySelectionError .input-error-text:last-child {
    margin-bottom: 0;
}
.qty-stepper {
    display: grid;
    grid-template-columns: var(--qty-stepper-button-width) minmax(0, 1fr) var(--qty-stepper-button-width);
    align-items: stretch;
    width: var(--qty-stepper-width);
    min-width: var(--qty-stepper-width);
    max-width: var(--qty-stepper-width);
    height: var(--qty-stepper-height);
    margin: 0 auto;
    border: 1px solid var(--border-strong);
    border-radius: 14px;
    overflow: hidden;
    background: var(--color-white);
    box-shadow: none;
}
.qty-stepper__button {
    border: 0;
    border-radius: 0;
    background: var(--color-soft-gray);
    color: var(--text-soft);
    font-size: 1rem;
    font-weight: 600;
    line-height: 1;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    transition: background-color 0.2s ease, color 0.2s ease;
}
.qty-stepper__button:hover:not(:disabled) {
    background: var(--color-soft-gray);
    color: var(--text);
}
.qty-stepper__button:disabled {
    cursor: not-allowed;
    color: var(--border-strong);
    background: var(--color-soft-gray);
}
.peminjaman-form .input-qty--stepper,
.peminjaman-form input.input-qty--stepper[type='number'] {
    width: 100% !important;
    min-width: 0 !important;
    max-width: none !important;
    height: 100%;
    border: 0 !important;
    border-left: 1px solid var(--border) !important;
    border-right: 1px solid var(--border) !important;
    border-radius: 0 !important;
    background: var(--color-white) !important;
    box-shadow: none !important;
    text-align: center !important;
    font-size: var(--qty-stepper-font-size) !important;
    font-weight: 400 !important;
    line-height: 1.2 !important;
    color: var(--text) !important;
    font-variant-numeric: tabular-nums;
    padding: 0 4px !important;
    appearance: textfield;
    -webkit-appearance: none;
    -moz-appearance: textfield;
}
.peminjaman-form .input-qty--stepper::-webkit-outer-spin-button,
.peminjaman-form .input-qty--stepper::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}
.peminjaman-form .input-qty--stepper:focus,
.peminjaman-form input.input-qty--stepper[type='number']:focus {
    outline: none;
    background: var(--color-white) !important;
}
.qty-stepper:focus-within {
    border-color: var(--muted);
    box-shadow: 0 0 0 3px rgba(100, 205, 209, 0.12);
}
.peminjaman-form .input-qty--stepper:disabled,
.peminjaman-form input.input-qty--stepper[type='number']:disabled {
    background: var(--color-soft-gray) !important;
    color: var(--muted) !important;
}
.peminjaman-form .input-qty--stepper:disabled + .qty-stepper__button,
.peminjaman-form input.input-qty--stepper[type='number']:disabled + .qty-stepper__button {
    color: var(--border-strong);
}
.peminjaman-form .table-mobile-scroll--support col.col-qty,
.peminjaman-form .table-mobile-scroll--material col.col-qty {
    width: var(--qty-col-width) !important;
}
.peminjaman-form .table-mobile-scroll--support .cell-qty,
.peminjaman-form .table-mobile-scroll--material .cell-qty,
.peminjaman-form .table-mobile-scroll--support th:first-child,
.peminjaman-form .table-mobile-scroll--material th:first-child,
.peminjaman-form .table-mobile-scroll--support td:first-child,
.peminjaman-form .table-mobile-scroll--material td:first-child {
    min-width: var(--qty-col-width) !important;
    width: var(--qty-col-width) !important;
    max-width: var(--qty-col-width) !important;
    padding-left: 10px !important;
    padding-right: 10px !important;
    vertical-align: middle;
}
.peminjaman-form .table-mobile-scroll--support .cell-qty,
.peminjaman-form .table-mobile-scroll--material .cell-qty {
    text-align: center !important;
}
.peminjaman-form .table-mobile-scroll--support,
.peminjaman-form .table-mobile-scroll--material {
    min-width: 860px !important;
}
.peminjaman-form .table-mobile-scroll--support .cell-wrap,
.peminjaman-form .table-mobile-scroll--material .cell-wrap {
    min-width: 190px;
}

.peminjaman-form .tbl-scroll--ret-penunjang .cell-qty,
.peminjaman-form .tbl-scroll--ret-bahan .cell-qty {
    min-width: var(--qty-col-width) !important;
    width: var(--qty-col-width) !important;
    max-width: var(--qty-col-width) !important;
    text-align: center !important;
    padding-left: 10px !important;
    padding-right: 10px !important;
    vertical-align: middle;
}
.peminjaman-form .tbl-scroll--ret-penunjang {
    min-width: 1360px !important;
}
.peminjaman-form .tbl-scroll--ret-bahan {
    width: max-content !important;
    min-width: 100% !important;
}

.peminjaman-form .tbl-scroll--ret-bahan th,
.peminjaman-form .tbl-scroll--ret-bahan td,
.peminjaman-form .tbl-scroll--ret-bahan .cell-wrap,
.peminjaman-form .tbl-scroll--ret-bahan .return-table-note {
    white-space: nowrap;
}

.peminjaman-form .tbl-scroll--ret-bahan .cell-wrap {
    min-width: max-content;
    word-break: normal;
    overflow-wrap: normal;
}
.peminjaman-form .tbl-scroll--ret-penunjang .cell-wrap {
    min-width: 180px;
}
@media (max-width: 768px) {
    .peminjaman-form {
        --qty-col-width: 108px;
        --qty-stepper-width: 88px;
        --qty-stepper-height: 34px;
        --qty-stepper-button-width: 26px;
        --qty-stepper-font-size: 0.78rem;
    }

    #pengajuanSummaryModal.show,
    #pengembalianSummaryModal.show {
        padding: 12px;
    }

    .loan-summary-modal {
        width: min(100%, calc(100vw - 24px));
        max-width: none;
        max-height: calc(100dvh - 24px);
        border-radius: 20px;
    }

    .loan-summary-body {
        padding: 16px 16px 12px;
    }

    #pengajuanSummaryModal .delete-modal-actions,
    #pengembalianSummaryModal .delete-modal-actions {
        gap: 12px;
        flex-wrap: wrap;
        padding: 14px 16px calc(14px + env(safe-area-inset-bottom, 0px));
    }

    #pengajuanSummaryModal .delete-modal-actions .btn,
    #pengembalianSummaryModal .delete-modal-actions .btn {
        flex: 1 1 calc(50% - 6px);
        justify-content: center;
    }

    .peminjaman-form .table-mobile-scroll--support .cell-qty,
    .peminjaman-form .table-mobile-scroll--material .cell-qty,
    .peminjaman-form .table-mobile-scroll--support th:first-child,
    .peminjaman-form .table-mobile-scroll--material th:first-child,
    .peminjaman-form .table-mobile-scroll--support td:first-child,
    .peminjaman-form .table-mobile-scroll--material td:first-child {
        padding-left: 8px !important;
        padding-right: 8px !important;
    }

    .peminjaman-form .table-mobile-scroll--support,
    .peminjaman-form .table-mobile-scroll--material {
        min-width: 760px !important;
    }

    .peminjaman-form .table-mobile-scroll--support .cell-wrap,
    .peminjaman-form .table-mobile-scroll--material .cell-wrap {
        min-width: 170px;
    }

    .peminjaman-form .tbl-scroll--ret-penunjang {
        min-width: 1240px !important;
    }

    .return-transfer-toggle {
        min-height: 36px;
        width: 38px;
        min-width: 38px;
        padding: 7px 8px;
    }

    .return-transfer-col {
        width: 172px;
        min-width: 172px;
    }

    .return-transfer-target-select,
    select.return-transfer-target-select,
    .return-status-select,
    select.return-status-select {
        min-height: 36px;
        font-size: 0.8rem;
        padding: 9px 34px 9px 11px;
    }

    .return-transfer-target-select,
    select.return-transfer-target-select {
        width: 172px;
        min-width: 172px;
        max-width: 172px;
    }

    .return-transfer-target-select option,
    select.return-transfer-target-select option,
    .return-status-select option,
    select.return-status-select option {
        font-size: 0.8rem;
    }

    .table-scroll-area--fit .tbl-scroll--ret-bahan {
        width: max-content !important;
        min-width: 100% !important;
    }
}

@media (max-width: 420px) {
    .peminjaman-form {
        --qty-col-width: 102px;
        --qty-stepper-width: 84px;
        --qty-stepper-height: 32px;
        --qty-stepper-button-width: 24px;
        --qty-stepper-font-size: 0.74rem;
    }

    .qty-stepper__button {
        font-size: 0.95rem;
    }

    .peminjaman-form .table-mobile-scroll--support,
    .peminjaman-form .table-mobile-scroll--material {
        min-width: 720px !important;
    }

    .peminjaman-form .table-mobile-scroll--support .cell-wrap,
    .peminjaman-form .table-mobile-scroll--material .cell-wrap {
        min-width: 152px;
    }

    .peminjaman-form .tbl-scroll--ret-penunjang {
        min-width: 1160px !important;
    }

    .return-transfer-toggle {
        min-height: 34px;
        width: 36px;
        min-width: 36px;
        padding: 6px 8px;
    }

    .return-transfer-col {
        width: 166px;
        min-width: 166px;
    }

    .return-transfer-target-select,
    select.return-transfer-target-select,
    .return-status-select,
    select.return-status-select {
        min-height: 34px;
        font-size: 0.76rem;
        padding: 8px 32px 8px 10px;
    }

    .return-transfer-target-select,
    select.return-transfer-target-select {
        width: 166px;
        min-width: 166px;
        max-width: 166px;
    }

    .return-transfer-target-select option,
    select.return-transfer-target-select option,
    .return-status-select option,
    select.return-status-select option {
        font-size: 0.76rem;
    }

    .table-scroll-area--fit .tbl-scroll--ret-bahan {
        width: max(100%, 780px) !important;
    }
}


@media (min-width: 993px) {
    .loan-summary-modal {
        width: min(calc(100vw - 48px), 1280px);
        max-width: min(calc(100vw - 48px), 1280px);
    }

    .loan-summary-body {
        padding-left: 24px;
        padding-right: 24px;
    }

    .loan-summary-section,
    .loan-summary-modal .card,
    .loan-summary-table-scroll {
        width: 100%;
        max-width: 100%;
    }

    .loan-summary-table-scroll {
        display: block;
    }

    .loan-summary-table-scroll .table-mobile-scroll {
        width: 100% !important;
        min-width: 100% !important;
        margin-left: auto;
        margin-right: auto;
    }
}

@media (max-width: 992px) {
    .upload-input-wrap--file-proxy {
        align-items: center;
        width: 100%;
        max-width: 100%;
    }

    .upload-input-wrap--file-proxy,
    .upload-input-wrap--file-proxy .upload-input-wrap__field,
    .upload-input-wrap--file-proxy .file-input-proxy {
        border-radius: 12px;
        box-sizing: border-box;
    }

    .upload-input-wrap--file-proxy .upload-input-wrap__field {
        width: 100%;
        min-width: 0;
        max-width: 100%;
    }

    .upload-input-wrap--file-proxy .file-input-proxy__text {
        box-sizing: border-box;
    }
}


.verify-note-form {
    margin: 0;
}

.body-verification-modal-open {
    overflow: hidden;
}

.verify-action-card {
    margin-top: 20px;
}

.verify-action-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 5px;
}

.verify-action-head p {
    margin: 4px 0 0;
    color: var(--text-soft);
}

.verify-action-grid {
    display: grid;
    gap: 12px;
}

.verify-action-grid--1 {
    grid-template-columns: 1fr;
}

.verify-action-grid--2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.verify-action-grid--3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.js-verify-action {
    width: 100%;
    min-height: 48px;
}

.verify-note-modal {
    max-width: 560px;
}

.verify-note-text {
    color: var(--text-soft);
}

.verify-note-actions {
    justify-content: space-between;
    flex-wrap: wrap;
}

.verify-note-actions .btn {
    min-width: 180px;
}

.verify-note-error {
    margin-top: 8px;
}

@media (max-width: 992px) {
    .verify-action-grid--2,
    .verify-action-grid--3 {
        grid-template-columns: 1fr;
    }

    .verify-action-head {
        align-items: stretch;
    }

    .verify-action-head .btn {
        width: 100%;
    }

    .verify-note-actions {
        flex-direction: column-reverse;
    }

    .verify-note-actions .btn {
        width: 100%;
        min-width: 0;
    }
}


.detail-header-card,
.detail-header-shell,
.detail-header-primary,
.detail-main,
.detail-main--loan,
.detail-header-panel,
.detail-list,
.detail-row,
.detail-layout-grid,
.detail-grid,
.detail-item,
.detail-item-full,
.timeline-item,
.timeline-content,
.form-row,
.form-grid,
.field-group,
.document-file-link-wrap,
.document-file-link,
.current-file-card,
.upload-input-wrap,
.upload-preview-card,
.file-preview-card {
    min-width: 0;
}

.detail-main--loan .detail-row > *,
.detail-item :is(p, a, strong, span, small, li, dt, dd),
.timeline-item :is(p, a, strong, span, small, li),
.form-row :is(label:not(.return-transfer-toggle), .help-text, .field-errors, small, p, span, a),
.field-group :is(label:not(.return-transfer-toggle), .help-text, .field-errors, small, p, span, a),
.document-file-link-wrap :is(a, span, strong, small, p),
.current-file-card :is(a, span, strong, small, p),
.upload-input-wrap :is(a, span, strong, small, p, label:not(.return-transfer-toggle)) {
    min-width: 0;
    max-width: 100%;
    overflow-wrap: anywhere;
    word-break: break-word;
}

@media (max-width: 992px) {
    .detail-header-card,
    .detail-header-shell,
    .detail-header-primary,
    .detail-main,
    .detail-main--loan,
    .detail-header-panel,
    .detail-list,
    .detail-row,
    .detail-layout-grid,
    .detail-grid,
    .detail-item,
    .detail-item-full,
    .detail-header-secondary,
    .detail-header-tile,
    .timeline-item,
    .timeline-content,
    .document-file-link-wrap,
    .document-file-link,
    .current-file-card,
    .upload-input-wrap,
    .upload-preview-card,
    .file-preview-card,
    .form-row,
    .form-grid,
    .field-group,
    .field-errors,
    .help-text,
    .form-help,
    .errorlist,
    .errorlist li {
        min-width: 0 !important;
        max-width: 100%;
    }

    .detail-header-primary .card-title,
    .detail-header-primary .detail-header-number,
    .detail-header-primary .detail-label,
    .detail-header-primary .detail-value,
    .detail-header-primary .detail-meta,
    .detail-header-primary .detail-row > *,
    .detail-header-tile-label,
    .detail-header-tile-value,
    .detail-header-tile-meta,
    .detail-item :is(p, a, label:not(.return-transfer-toggle), strong, span, small, li, dt, dd),
    .timeline-item :is(p, a, label:not(.return-transfer-toggle), strong, span, small, li),
    .document-file-link-wrap :is(a, span, strong, small, p),
    .current-file-card :is(a, span, strong, small, p),
    .upload-input-wrap :is(a, span, strong, small, p, label:not(.return-transfer-toggle)),
    .form-row :is(label:not(.return-transfer-toggle), .help-text, .field-errors, small, p, span, a),
    .field-group :is(label:not(.return-transfer-toggle), .help-text, .field-errors, small, p, span, a),
    .errorlist li {
        min-width: 0 !important;
        max-width: 100%;
        white-space: normal !important;
        overflow-wrap: anywhere;
        word-break: break-word;
    }

    .detail-header-primary,
    .detail-main,
    .detail-main--loan,
    .detail-item,
    .detail-header-tile,
    .timeline-item,
    .current-file-card,
    .upload-preview-card,
    .file-preview-card {
        overflow: hidden;
    }
}

@media (max-width: 992px) {
    .upload-input-wrap--file-proxy,
    .upload-input-wrap--file-proxy .upload-input-wrap__field {
        min-width: 0;
        width: 100%;
        max-width: 100%;
    }

    .upload-input-wrap--file-proxy.upload-input-wrap--inline {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        align-items: center;
        gap: 8px;
        width: 100%;
        max-width: 100%;
    }

    .upload-input-wrap--file-proxy .file-input-proxy {
        min-height: 40px;
        height: 40px;
        width: 100%;
        max-width: 100%;
        flex-wrap: nowrap;
        align-items: stretch;
        border-radius: 12px;
        white-space: nowrap !important;
        overflow: hidden;
    }

    .upload-input-wrap--file-proxy .file-input-proxy__button {
        flex: 0 0 44px;
        min-width: 44px;
        padding: 9px 10px;
    }

    .upload-input-wrap--file-proxy .file-input-proxy__text,
    .upload-input-wrap--file-proxy .file-input-proxy__text[data-inline-file-text] {
        display: flex !important;
        align-items: center;
        flex: 1 1 auto;
        min-width: 0;
        width: 100%;
        max-width: 100%;
        padding-top: 10px;
        padding-bottom: 10px;
        padding-left: 12px;
        padding-right: 12px;
        font-size: clamp(0.78rem, 2.8vw, 0.9rem);
        line-height: 1.25;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis;
        overflow-wrap: normal !important;
        word-break: normal !important;
        line-break: auto;
    }

    .upload-input-wrap--file-proxy .upload-file-state--inline {
        min-width: 40px;
    }

    .upload-input-wrap--file-proxy .upload-file-state__action--icon {
        width: 40px;
        height: 40px;
    }
}

.loan-summary-table-scroll .tbl-scroll--sum-lab,
.loan-summary-table-scroll .tbl-scroll--sum-support,
.loan-summary-table-scroll .tbl-scroll--sum-material {
    width: max(100%, max-content);
}

.loan-summary-table-scroll .table-mobile-scroll th,
.loan-summary-table-scroll .table-mobile-scroll td {
    padding: 9px 10px;
}

.loan-summary-table-scroll .table-mobile-scroll td:first-child,
.loan-summary-table-scroll .table-mobile-scroll th:first-child {
    min-width: 156px;
}

.loan-summary-table-scroll .tbl-scroll--sum-lab {
    min-width: 840px;
}

.loan-summary-table-scroll .tbl-scroll--sum-support {
    min-width: 620px;
}

.loan-summary-table-scroll .tbl-scroll--sum-material {
    min-width: 560px;
}

.loan-summary-table-scroll .tbl-scroll--sum-lab th:nth-child(n + 2),
.loan-summary-table-scroll .tbl-scroll--sum-lab td:nth-child(n + 2),
.loan-summary-table-scroll .tbl-scroll--sum-support th:nth-child(n + 2),
.loan-summary-table-scroll .tbl-scroll--sum-support td:nth-child(n + 2),
.loan-summary-table-scroll .tbl-scroll--sum-material th:nth-child(n + 2),
.loan-summary-table-scroll .tbl-scroll--sum-material td:nth-child(n + 2) {
    width: 1%;
}

@media (max-width: 768px) {
    .loan-summary-modal {
        width: calc(100vw - 24px);
        max-width: calc(100vw - 24px);
    }

    .loan-summary-body {
        padding: 14px 14px 8px;
    }

    .loan-summary-table-scroll {
        width: 100%;
    }

    .loan-summary-table-scroll .table-mobile-scroll {
        width: max(100%, max-content);
        min-width: 100%;
    }

    .loan-summary-table-scroll .table-mobile-scroll th,
    .loan-summary-table-scroll .table-mobile-scroll td {
        padding: 7px 8px;
        font-size: 0.78rem;
    }

    .loan-summary-table-scroll .table-mobile-scroll td:first-child,
    .loan-summary-table-scroll .table-mobile-scroll th:first-child {
        min-width: 138px;
    }

    .loan-summary-table-scroll .tbl-scroll--sum-lab {
        min-width: 740px;
    }

    .loan-summary-table-scroll .tbl-scroll--sum-support {
        min-width: 520px;
    }

    .loan-summary-table-scroll .tbl-scroll--sum-material {
        min-width: 470px;
    }
}


.loan-summary-table-scroll {
    width: 100%;
    max-width: 100%;
}

.loan-summary-table-scroll .table-mobile-scroll {
    width: 100%;
    min-width: 100%;
    margin-inline: auto;
    table-layout: fixed;
}

.loan-summary-table-scroll .table-mobile-scroll th,
.loan-summary-table-scroll .table-mobile-scroll td {
    overflow: hidden;
    text-overflow: ellipsis;
}

.loan-summary-table-scroll .table-mobile-scroll td:first-child,
.loan-summary-table-scroll .table-mobile-scroll th:first-child {
    min-width: 0;
}

.loan-summary-table-scroll .tbl-scroll--sum-lab {
    min-width: 100%;
}

.loan-summary-table-scroll .tbl-scroll--sum-support,
.loan-summary-table-scroll .tbl-scroll--sum-material {
    min-width: 100%;
}

.loan-summary-table-scroll .tbl-scroll--sum-lab th:nth-child(1),
.loan-summary-table-scroll .tbl-scroll--sum-lab td:nth-child(1) {
    width: 30%;
}

.loan-summary-table-scroll .tbl-scroll--sum-lab th:nth-child(2),
.loan-summary-table-scroll .tbl-scroll--sum-lab td:nth-child(2) {
    width: 22%;
}

.loan-summary-table-scroll .tbl-scroll--sum-lab th:nth-child(3),
.loan-summary-table-scroll .tbl-scroll--sum-lab td:nth-child(3) {
    width: 20%;
}

.loan-summary-table-scroll .tbl-scroll--sum-lab th:nth-child(4),
.loan-summary-table-scroll .tbl-scroll--sum-lab td:nth-child(4) {
    width: 10%;
}

.loan-summary-table-scroll .tbl-scroll--sum-lab th:nth-child(5),
.loan-summary-table-scroll .tbl-scroll--sum-lab td:nth-child(5) {
    width: 18%;
}

.loan-summary-table-scroll .tbl-scroll--sum-support th:nth-child(1),
.loan-summary-table-scroll .tbl-scroll--sum-support td:nth-child(1),
.loan-summary-table-scroll .tbl-scroll--sum-material th:nth-child(1),
.loan-summary-table-scroll .tbl-scroll--sum-material td:nth-child(1) {
    width: 46%;
}

.loan-summary-table-scroll .tbl-scroll--sum-support th:nth-child(2),
.loan-summary-table-scroll .tbl-scroll--sum-support td:nth-child(2),
.loan-summary-table-scroll .tbl-scroll--sum-support th:nth-child(3),
.loan-summary-table-scroll .tbl-scroll--sum-support td:nth-child(3),
.loan-summary-table-scroll .tbl-scroll--sum-material th:nth-child(2),
.loan-summary-table-scroll .tbl-scroll--sum-material td:nth-child(2),
.loan-summary-table-scroll .tbl-scroll--sum-material th:nth-child(3),
.loan-summary-table-scroll .tbl-scroll--sum-material td:nth-child(3) {
    width: 27%;
}

@media (max-width: 992px) {
    .loan-summary-modal {
        width: min(calc(100vw - 24px), 960px);
        max-width: min(calc(100vw - 24px), 960px);
    }

    .loan-summary-table-scroll .table-mobile-scroll {
        width: max(100%, 680px);
        min-width: 100%;
    }

    .loan-summary-table-scroll .tbl-scroll--sum-lab {
        width: max(100%, 760px);
    }

    .loan-summary-table-scroll .tbl-scroll--sum-support {
        width: max(100%, 560px);
    }

    .loan-summary-table-scroll .tbl-scroll--sum-material {
        width: max(100%, 540px);
    }
}

@media (max-width: 768px) {
    .loan-summary-table-scroll .table-mobile-scroll th,
    .loan-summary-table-scroll .table-mobile-scroll td {
        padding: 7px 8px;
        font-size: 0.78rem;
    }

    .loan-summary-table-scroll .tbl-scroll--sum-lab th:nth-child(1),
    .loan-summary-table-scroll .tbl-scroll--sum-lab td:nth-child(1) {
        width: 32%;
    }

    .loan-summary-table-scroll .tbl-scroll--sum-lab th:nth-child(2),
    .loan-summary-table-scroll .tbl-scroll--sum-lab td:nth-child(2) {
        width: 21%;
    }

    .loan-summary-table-scroll .tbl-scroll--sum-lab th:nth-child(3),
    .loan-summary-table-scroll .tbl-scroll--sum-lab td:nth-child(3) {
        width: 19%;
    }

    .loan-summary-table-scroll .tbl-scroll--sum-lab th:nth-child(4),
    .loan-summary-table-scroll .tbl-scroll--sum-lab td:nth-child(4) {
        width: 10%;
    }

    .loan-summary-table-scroll .tbl-scroll--sum-lab th:nth-child(5),
    .loan-summary-table-scroll .tbl-scroll--sum-lab td:nth-child(5) {
        width: 18%;
    }

    .loan-summary-table-scroll .tbl-scroll--sum-support th:nth-child(1),
    .loan-summary-table-scroll .tbl-scroll--sum-support td:nth-child(1),
    .loan-summary-table-scroll .tbl-scroll--sum-material th:nth-child(1),
    .loan-summary-table-scroll .tbl-scroll--sum-material td:nth-child(1) {
        width: 44%;
    }

    .loan-summary-table-scroll .tbl-scroll--sum-support th:nth-child(2),
    .loan-summary-table-scroll .tbl-scroll--sum-support td:nth-child(2),
    .loan-summary-table-scroll .tbl-scroll--sum-support th:nth-child(3),
    .loan-summary-table-scroll .tbl-scroll--sum-support td:nth-child(3),
    .loan-summary-table-scroll .tbl-scroll--sum-material th:nth-child(2),
    .loan-summary-table-scroll .tbl-scroll--sum-material td:nth-child(2),
    .loan-summary-table-scroll .tbl-scroll--sum-material th:nth-child(3),
    .loan-summary-table-scroll .tbl-scroll--sum-material td:nth-child(3) {
        width: 28%;
    }
}

.loan-summary-table-scroll {
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
}

.loan-summary-table-scroll .table-mobile-scroll {
    width: 100% !important;
    min-width: 100% !important;
    table-layout: auto !important;
    margin-inline: auto;
}

.loan-summary-table-scroll .table-mobile-scroll th,
.loan-summary-table-scroll .table-mobile-scroll td {
    width: auto !important;
    white-space: nowrap;
    overflow: visible;
    text-overflow: clip;
}

.loan-summary-table-scroll .tbl-scroll--sum-lab th:nth-child(1),
.loan-summary-table-scroll .tbl-scroll--sum-lab td:nth-child(1) {
    min-width: 220px;
}

.loan-summary-table-scroll .tbl-scroll--sum-lab th:nth-child(2),
.loan-summary-table-scroll .tbl-scroll--sum-lab td:nth-child(2) {
    min-width: 140px;
}

.loan-summary-table-scroll .tbl-scroll--sum-lab th:nth-child(3),
.loan-summary-table-scroll .tbl-scroll--sum-lab td:nth-child(3) {
    min-width: 140px;
}

.loan-summary-table-scroll .tbl-scroll--sum-lab th:nth-child(4),
.loan-summary-table-scroll .tbl-scroll--sum-lab td:nth-child(4) {
    min-width: 84px;
}

.loan-summary-table-scroll .tbl-scroll--sum-lab th:nth-child(5),
.loan-summary-table-scroll .tbl-scroll--sum-lab td:nth-child(5) {
    min-width: 130px;
}

.loan-summary-table-scroll .tbl-scroll--sum-support th:nth-child(1),
.loan-summary-table-scroll .tbl-scroll--sum-support td:nth-child(1),
.loan-summary-table-scroll .tbl-scroll--sum-material th:nth-child(1),
.loan-summary-table-scroll .tbl-scroll--sum-material td:nth-child(1) {
    min-width: 220px;
}

.loan-summary-table-scroll .tbl-scroll--sum-support th:nth-child(2),
.loan-summary-table-scroll .tbl-scroll--sum-support td:nth-child(2),
.loan-summary-table-scroll .tbl-scroll--sum-support th:nth-child(3),
.loan-summary-table-scroll .tbl-scroll--sum-support td:nth-child(3),
.loan-summary-table-scroll .tbl-scroll--sum-material th:nth-child(2),
.loan-summary-table-scroll .tbl-scroll--sum-material td:nth-child(2),
.loan-summary-table-scroll .tbl-scroll--sum-material th:nth-child(3),
.loan-summary-table-scroll .tbl-scroll--sum-material td:nth-child(3) {
    min-width: 120px;
}

@media (max-width: 992px) {
    .loan-summary-table-scroll .tbl-scroll--sum-lab th:nth-child(1),
    .loan-summary-table-scroll .tbl-scroll--sum-lab td:nth-child(1),
    .loan-summary-table-scroll .tbl-scroll--sum-support th:nth-child(1),
    .loan-summary-table-scroll .tbl-scroll--sum-support td:nth-child(1),
    .loan-summary-table-scroll .tbl-scroll--sum-material th:nth-child(1),
    .loan-summary-table-scroll .tbl-scroll--sum-material td:nth-child(1) {
        min-width: 190px;
    }

    .loan-summary-table-scroll .tbl-scroll--sum-lab th:nth-child(2),
    .loan-summary-table-scroll .tbl-scroll--sum-lab td:nth-child(2),
    .loan-summary-table-scroll .tbl-scroll--sum-lab th:nth-child(3),
    .loan-summary-table-scroll .tbl-scroll--sum-lab td:nth-child(3) {
        min-width: 120px;
    }

    .loan-summary-table-scroll .tbl-scroll--sum-lab th:nth-child(4),
    .loan-summary-table-scroll .tbl-scroll--sum-lab td:nth-child(4) {
        min-width: 74px;
    }

    .loan-summary-table-scroll .tbl-scroll--sum-lab th:nth-child(5),
    .loan-summary-table-scroll .tbl-scroll--sum-lab td:nth-child(5),
    .loan-summary-table-scroll .tbl-scroll--sum-support th:nth-child(2),
    .loan-summary-table-scroll .tbl-scroll--sum-support td:nth-child(2),
    .loan-summary-table-scroll .tbl-scroll--sum-support th:nth-child(3),
    .loan-summary-table-scroll .tbl-scroll--sum-support td:nth-child(3),
    .loan-summary-table-scroll .tbl-scroll--sum-material th:nth-child(2),
    .loan-summary-table-scroll .tbl-scroll--sum-material td:nth-child(2),
    .loan-summary-table-scroll .tbl-scroll--sum-material th:nth-child(3),
    .loan-summary-table-scroll .tbl-scroll--sum-material td:nth-child(3) {
        min-width: 104px;
    }
}


/* =========================
   PEMINJAMAN FORM TABLE LEFT ALIGNMENT
========================= */
.peminjaman-form .table-mobile-scroll--lab th,
.peminjaman-form .table-mobile-scroll--lab td,
.peminjaman-form .table-mobile-scroll--support th,
.peminjaman-form .table-mobile-scroll--support td,
.peminjaman-form .table-mobile-scroll--material th,
.peminjaman-form .table-mobile-scroll--material td,
.peminjaman-form .table-mobile-scroll--detail-lab th,
.peminjaman-form .table-mobile-scroll--detail-lab td,
.peminjaman-form .tbl-scroll--ret-penunjang th,
.peminjaman-form .tbl-scroll--ret-penunjang td,
.peminjaman-form .tbl-scroll--ret-bahan th,
.peminjaman-form .tbl-scroll--ret-bahan td {
    text-align: left !important;
}

.peminjaman-form .table-mobile-scroll--lab .cell-center,
.peminjaman-form .table-mobile-scroll--lab .cell-select,
.peminjaman-form .table-mobile-scroll--lab .cell-qty,
.peminjaman-form .table-mobile-scroll--support .cell-center,
.peminjaman-form .table-mobile-scroll--support .cell-select,
.peminjaman-form .table-mobile-scroll--support .cell-qty,
.peminjaman-form .table-mobile-scroll--material .cell-center,
.peminjaman-form .table-mobile-scroll--material .cell-select,
.peminjaman-form .table-mobile-scroll--material .cell-qty,
.peminjaman-form .table-mobile-scroll--detail-lab .cell-center,
.peminjaman-form .table-mobile-scroll--detail-lab .cell-select,
.peminjaman-form .table-mobile-scroll--detail-lab .cell-qty,
.peminjaman-form .tbl-scroll--ret-penunjang .cell-center,
.peminjaman-form .tbl-scroll--ret-penunjang .cell-select,
.peminjaman-form .tbl-scroll--ret-penunjang .cell-qty,
.peminjaman-form .tbl-scroll--ret-bahan .cell-center,
.peminjaman-form .tbl-scroll--ret-bahan .cell-select,
.peminjaman-form .tbl-scroll--ret-bahan .cell-qty,
.peminjaman-form .tbl-scroll--ret-penunjang .return-transfer-col,
.peminjaman-form .tbl-scroll--ret-bahan .return-transfer-col {
    text-align: left !important;
}

.peminjaman-form .table-mobile-scroll--lab .status-badge,
.peminjaman-form .table-mobile-scroll--support .status-badge,
.peminjaman-form .table-mobile-scroll--material .status-badge,
.peminjaman-form .table-mobile-scroll--detail-lab .status-badge,
.peminjaman-form .tbl-scroll--ret-penunjang .status-badge,
.peminjaman-form .tbl-scroll--ret-bahan .status-badge {
    margin-left: 0 !important;
    margin-right: auto !important;
}

.peminjaman-form .table-mobile-scroll--lab .cell-select input[type='checkbox'],
.peminjaman-form .table-mobile-scroll--support .cell-select input[type='checkbox'],
.peminjaman-form .table-mobile-scroll--material .cell-select input[type='checkbox'],
.peminjaman-form .table-mobile-scroll--detail-lab .cell-select input[type='checkbox'],
.peminjaman-form .tbl-scroll--ret-penunjang .cell-select input[type='checkbox'],
.peminjaman-form .tbl-scroll--ret-bahan .cell-select input[type='checkbox'],
.peminjaman-form .tbl-scroll--ret-penunjang .return-transfer-toggle input[type='checkbox'],
.peminjaman-form .tbl-scroll--ret-bahan .return-transfer-toggle input[type='checkbox'] {
    display: inline-block;
    margin-left: 0 !important;
    margin-right: auto !important;
}

.peminjaman-form .table-mobile-scroll--lab .qty-stepper,
.peminjaman-form .table-mobile-scroll--support .qty-stepper,
.peminjaman-form .table-mobile-scroll--material .qty-stepper,
.peminjaman-form .table-mobile-scroll--detail-lab .qty-stepper,
.peminjaman-form .tbl-scroll--ret-penunjang .qty-stepper,
.peminjaman-form .tbl-scroll--ret-bahan .qty-stepper,
.peminjaman-form .tbl-scroll--ret-penunjang .return-transfer-inline,
.peminjaman-form .tbl-scroll--ret-bahan .return-transfer-inline {
    justify-content: flex-start;
    margin-left: 0 !important;
    margin-right: auto !important;
}

.peminjaman-form .table-mobile-scroll--lab .input-qty,
.peminjaman-form .table-mobile-scroll--lab input[type='number'],
.peminjaman-form .table-mobile-scroll--support .input-qty,
.peminjaman-form .table-mobile-scroll--support input[type='number'],
.peminjaman-form .table-mobile-scroll--material .input-qty,
.peminjaman-form .table-mobile-scroll--material input[type='number'],
.peminjaman-form .table-mobile-scroll--detail-lab .input-qty,
.peminjaman-form .table-mobile-scroll--detail-lab input[type='number'],
.peminjaman-form .tbl-scroll--ret-penunjang .input-qty,
.peminjaman-form .tbl-scroll--ret-penunjang input[type='number'],
.peminjaman-form .tbl-scroll--ret-bahan .input-qty,
.peminjaman-form .tbl-scroll--ret-bahan input[type='number'],
.peminjaman-form .tbl-scroll--ret-penunjang .select-input,
.peminjaman-form .tbl-scroll--ret-bahan .select-input,
.peminjaman-form .table-mobile-scroll--detail-lab .select-input {
    text-align: left !important;
    margin-left: 0 !important;
    margin-right: auto !important;
}

.peminjaman-form .tbl-scroll--ret-penunjang .return-field-group,
.peminjaman-form .tbl-scroll--ret-bahan .return-field-group,
.peminjaman-form .table-mobile-scroll--detail-lab .return-field-group,
.peminjaman-form .tbl-scroll--ret-penunjang .return-transfer-stack,
.peminjaman-form .tbl-scroll--ret-bahan .return-transfer-stack,
.peminjaman-form .table-mobile-scroll--detail-lab .return-transfer-box,
.peminjaman-form .table-mobile-scroll--detail-lab .return-transfer-box--lab,
.peminjaman-form .tbl-scroll--ret-penunjang .return-transfer-box,
.peminjaman-form .tbl-scroll--ret-bahan .return-transfer-box,
.peminjaman-form .tbl-scroll--ret-penunjang .return-table-note,
.peminjaman-form .tbl-scroll--ret-bahan .return-table-note {
    align-items: flex-start;
    text-align: left !important;
}


.peminjaman-form .table-mobile-scroll--lab .input-qty.input-qty--stepper,
.peminjaman-form .table-mobile-scroll--lab input.input-qty--stepper[type='number'],
.peminjaman-form .table-mobile-scroll--support .input-qty.input-qty--stepper,
.peminjaman-form .table-mobile-scroll--support input.input-qty--stepper[type='number'],
.peminjaman-form .table-mobile-scroll--material .input-qty.input-qty--stepper,
.peminjaman-form .table-mobile-scroll--material input.input-qty--stepper[type='number'],
.peminjaman-form .tbl-scroll--ret-penunjang .input-qty.input-qty--stepper,
.peminjaman-form .tbl-scroll--ret-penunjang input.input-qty--stepper[type='number'],
.peminjaman-form .tbl-scroll--ret-bahan .input-qty.input-qty--stepper,
.peminjaman-form .tbl-scroll--ret-bahan input.input-qty--stepper[type='number'] {
    text-align: center !important;
}


.pengukuran-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 1rem;
    align-items: start;
}

.pengukuran-grid .field-group {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.pengukuran-grid .field-group > label {
    margin-bottom: 6px;
    color: var(--text);
}

.detail-grid--pengukuran {
    grid-template-columns: repeat(5, minmax(0, 1fr));
}

.detail-inline-edit-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    width: 100%;
}

.detail-inline-edit-wrap p {
    margin: 0;
    flex: 1 1 auto;
    min-width: 0;
}

.detail-inline-edit-btn {
    margin-left: auto;
    width: 34px;
    min-width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border-radius: 10px;
    flex-shrink: 0;
}

.return-date-modal {
    width: min(100%, 460px);
}

.return-date-form {
    display: flex;
    flex-direction: column;
}

.return-date-form .delete-modal-body {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.input-help-text {
    display: block;
    margin-top: 6px;
    color: var(--text-muted);
    font-size: 0.85rem;
    line-height: 1.45;
}

@media (max-width: 1200px) {
    .pengukuran-grid,
    .detail-grid--pengukuran {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

@media (max-width: 992px) {
    .pengukuran-grid,
    .detail-grid--pengukuran {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 768px) {
    .pengukuran-grid,
    .detail-grid--pengukuran {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 520px) {
    .pengukuran-grid,
    .detail-grid--pengukuran {
        grid-template-columns: minmax(0, 1fr);
    }

    .detail-inline-edit-wrap {
        align-items: flex-start;
        gap: 8px;
    }

    .detail-inline-edit-btn {
        width: 32px;
        min-width: 32px;
        height: 32px;
    }

    .return-date-modal {
        width: min(100%, 100%);
    }
}

.operasional-kop-thumb {
    width: 140px;
    height: 72px;
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid var(--border);
    background: var(--color-white);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.operasional-kop-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

[data-inline-file-error-node][hidden] {
    display: none !important;
}


/* =========================
   MASTER DATA - IMPORT EXCEL
========================= */
.table-toolbar-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    flex-wrap: wrap;
}

.import-data-modal-card {
    max-width: 760px;
    margin-top: 6vh;
}

.import-modal-subtitle {
    margin: 6px 0 0;
    color: var(--text-soft);
    font-size: 0.88rem;
    line-height: 1.45;
}

.import-modal-body {
    max-height: 64vh;
    overflow-y: auto;
}

.import-download-row {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 16px;
}

.import-file-group label {
    display: block;
    font-weight: 700;
    margin-bottom: 8px;
}

.form-help-text {
    display: block;
    margin-top: 8px;
    color: var(--text-soft);
    font-size: 0.84rem;
    line-height: 1.45;
}

.import-validation-box {
    margin-top: 16px;
    border-radius: 14px;
    padding: 14px 16px;
    border: 1px solid transparent;
    line-height: 1.55;
}

.import-validation-box strong {
    display: block;
    margin-bottom: 4px;
}

.import-validation-box ul {
    margin: 8px 0 0 18px;
    padding: 0;
}

.import-validation-box li + li {
    margin-top: 6px;
}

.import-validation-success {
    background: var(--success-bg);
    color: var(--success-text);
    border-color: var(--success-border);
}

.import-validation-error {
    background: var(--danger-bg);
    color: var(--danger-text);
    border-color: var(--danger-border);
}

.import-modal-actions .btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

@media (max-width: 640px) {
    .table-toolbar-actions,
    .import-download-row,
    .import-modal-actions {
        width: 100%;
        justify-content: stretch;
    }

    .table-toolbar-actions .btn,
    .import-download-row .btn,
    .import-modal-actions .btn {
        width: 100%;
    }

    .import-modal-actions {
        flex-direction: column;
    }
}



/* =========================
   MASTER DATA - IMPORT EXCEL UPLOAD
========================= */
.import-file-group .import-file-upload-wrap.upload-input-wrap--file-proxy.upload-input-wrap--inline {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 8px;
    width: 100%;
    max-width: 100%;
}

.import-file-group .import-file-upload-wrap .upload-input-wrap__field {
    min-width: 0;
    width: 100%;
    max-width: 100%;
}

.import-file-group .import-file-input-proxy {
    min-width: 0;
    width: 100%;
    height: 42px;
    min-height: 42px;
    max-height: 42px;
    flex-wrap: nowrap;
    align-items: stretch;
    overflow: hidden;
}

.import-file-group .import-file-input-proxy__text,
.import-file-group .import-file-input-proxy__text[data-inline-file-text] {
    min-width: 0;
    width: 100%;
    max-width: 100%;
    display: flex !important;
    align-items: center;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    overflow-wrap: normal !important;
    word-break: normal !important;
}

.import-file-group .import-file-clear-state.upload-file-state--inline {
    display: flex;
    align-items: center;
    justify-content: center;
    align-self: center;
    width: 42px;
    min-width: 42px;
    height: 42px;
    min-height: 42px;
    margin: 0;
    padding: 0;
}

.import-file-group .import-file-clear-state.upload-file-state--inline.is-hidden {
    display: none;
}

.import-file-group .import-file-clear-state .upload-file-state__action--icon {
    width: 42px;
    min-width: 42px;
    height: 42px;
    min-height: 42px;
    margin: 0;
}

@media (max-width: 640px) {
    .import-file-group .import-file-upload-wrap.upload-input-wrap--file-proxy.upload-input-wrap--inline {
        grid-template-columns: minmax(0, 1fr) auto;
        gap: 7px;
    }

    .import-file-group .import-file-input-proxy {
        height: 40px;
        min-height: 40px;
        max-height: 40px;
    }

    .import-file-group .import-file-input-proxy .file-input-proxy__button {
        flex: 0 0 42px;
        min-width: 42px;
        padding-left: 9px;
        padding-right: 9px;
    }

    .import-file-group .import-file-input-proxy__text,
    .import-file-group .import-file-input-proxy__text[data-inline-file-text] {
        font-size: clamp(0.76rem, 3.2vw, 0.88rem);
        padding-left: 10px;
        padding-right: 10px;
    }

    .import-file-group .import-file-clear-state.upload-file-state--inline,
    .import-file-group .import-file-clear-state .upload-file-state__action--icon {
        width: 40px;
        min-width: 40px;
        height: 40px;
        min-height: 40px;
    }
}


/* =========================
   MASTER DATA - IMPORT EXCEL UPLOAD
========================= */
.import-file-group .import-file-upload-wrap.upload-input-wrap--file-proxy.upload-input-wrap--inline {
    display: flex !important;
    align-items: flex-start !important;
    gap: 8px !important;
    width: 100% !important;
    max-width: 100% !important;
}

.import-file-group .import-file-upload-wrap .upload-input-wrap__field {
    flex: 1 1 auto !important;
    min-width: 0 !important;
    width: auto !important;
    max-width: 100% !important;
}

.import-file-group .import-file-input-proxy {
    display: flex !important;
    align-items: stretch !important;
    width: 100% !important;
    min-width: 0 !important;
    height: 42px !important;
    min-height: 42px !important;
    max-height: 42px !important;
    overflow: hidden !important;
}

.import-file-group .import-file-input-proxy .file-input-proxy__button {
    flex: 0 0 48px !important;
    min-width: 48px !important;
    height: 100% !important;
}

.import-file-group .import-file-input-proxy__text,
.import-file-group .import-file-input-proxy__text[data-inline-file-text] {
    display: inline-flex !important;
    align-items: center !important;
    flex: 1 1 auto !important;
    min-width: 0 !important;
    width: auto !important;
    max-width: 100% !important;
    height: 100% !important;
    color: var(--color-primary-navy) !important;
    opacity: 1 !important;
    visibility: visible !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    overflow-wrap: normal !important;
    word-break: normal !important;
}

.import-file-group .import-file-input-proxy__text.is-placeholder,
.import-file-group .import-file-input-proxy__text[data-inline-file-text].is-placeholder {
    color: var(--text-soft) !important;
}

.import-file-group .import-file-clear-state.upload-file-state--inline {
    flex: 0 0 42px !important;
    align-self: flex-start !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 42px !important;
    min-width: 42px !important;
    height: 42px !important;
    min-height: 42px !important;
    margin: 0 !important;
    padding: 0 !important;
    background: transparent !important;
    border: 0 !important;
}

.import-file-group .import-file-clear-state.upload-file-state--inline.is-hidden {
    display: none !important;
}

.import-file-group .import-file-clear-state .upload-file-state__action--icon {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 42px !important;
    min-width: 42px !important;
    height: 42px !important;
    min-height: 42px !important;
    margin: 0 !important;
    padding: 0 !important;
}

.import-feedback-area:empty {
    display: none;
}

.import-modal-actions .btn.is-loading {
    pointer-events: none;
    opacity: 0.7;
}

@media (max-width: 640px) {
    .import-file-group .import-file-upload-wrap.upload-input-wrap--file-proxy.upload-input-wrap--inline {
        flex-wrap: nowrap !important;
        gap: 7px !important;
    }

    .import-file-group .import-file-input-proxy {
        height: 40px !important;
        min-height: 40px !important;
        max-height: 40px !important;
    }

    .import-file-group .import-file-input-proxy .file-input-proxy__button {
        flex-basis: 42px !important;
        min-width: 42px !important;
        padding-left: 9px !important;
        padding-right: 9px !important;
    }

    .import-file-group .import-file-input-proxy__text,
    .import-file-group .import-file-input-proxy__text[data-inline-file-text] {
        font-size: clamp(0.76rem, 3.2vw, 0.88rem) !important;
        padding-left: 10px !important;
        padding-right: 10px !important;
    }

    .import-file-group .import-file-clear-state.upload-file-state--inline,
    .import-file-group .import-file-clear-state .upload-file-state__action--icon {
        width: 40px !important;
        min-width: 40px !important;
        height: 40px !important;
        min-height: 40px !important;
    }
}


/* =========================
   MASTER DATA - IMPORT EXCEL DOWNLOAD BUTTON
========================= */
.import-modal-body .import-download-row {
    width: 100% !important;
    justify-content: stretch !important;
}

.import-modal-body .import-download-row .btn {
    width: 100% !important;
    max-width: 100% !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
}

@media (max-width: 768px) {
    .inventory-sheet-tabs {
        grid-template-columns: repeat(4, minmax(168px, 1fr));
        margin-inline: -18px;
        padding-inline: 18px;
    }

    .inventory-sheet-tab {
        justify-content: flex-start;
        min-height: 48px;
        padding: 9px 12px;
        font-size: 0.78rem;
        text-align: left;
    }

    .inventory-sheet-toolbar {
        align-items: stretch;
        flex-direction: column;
        gap: 7px;
    }

    .inventory-sheet-search {
        width: 100%;
    }

    .inventory-sheet-result {
        padding-left: 2px;
    }

    .inventory-sheet-backtop {
        bottom: 14px;
        min-width: 42px;
        padding: 9px 11px;
    }

    .inventory-sheet-backtop span {
        display: none;
    }

}

/* =========================
   PEMINJAMAN - ORDER/WIDTH REFINEMENT
========================= */
.peminjaman-form .table-mobile-scroll--lab col.col-select {
    width: 52px !important;
}

.peminjaman-form .table-mobile-scroll--lab th:first-child,
.peminjaman-form .table-mobile-scroll--lab td.cell-select {
    width: 52px !important;
    min-width: 52px !important;
    max-width: 52px !important;
    padding-left: 8px !important;
    padding-right: 8px !important;
    text-align: center !important;
}

.peminjaman-form .table-mobile-scroll--lab .cell-select input[type='checkbox'] {
    display: block !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

.peminjaman-form .table-mobile-scroll--qty-first col.col-qty {
    width: calc(var(--qty-stepper-width) + 20px) !important;
}

.peminjaman-form .table-mobile-scroll--qty-first th:first-child,
.peminjaman-form .table-mobile-scroll--qty-first td.cell-qty {
    width: calc(var(--qty-stepper-width) + 20px) !important;
    min-width: calc(var(--qty-stepper-width) + 20px) !important;
    max-width: calc(var(--qty-stepper-width) + 20px) !important;
    padding-left: 10px !important;
    padding-right: 10px !important;
    text-align: center !important;
}

.peminjaman-form .table-mobile-scroll--qty-first .cell-qty .qty-stepper {
    margin-left: auto !important;
    margin-right: auto !important;
}

.peminjaman-form .table-mobile-scroll--qty-first .input-qty.input-qty--stepper,
.peminjaman-form .table-mobile-scroll--qty-first input.input-qty--stepper[type='number'] {
    text-align: center !important;
}

.peminjaman-form .tbl-scroll--ret-support th:nth-child(6),
.peminjaman-form .tbl-scroll--ret-support td:nth-child(6),
.peminjaman-form .tbl-scroll--ret-support th:nth-child(7),
.peminjaman-form .tbl-scroll--ret-support td:nth-child(7),
.peminjaman-form .tbl-scroll--ret-support th:nth-child(8),
.peminjaman-form .tbl-scroll--ret-support td:nth-child(8),
.peminjaman-form .tbl-scroll--ret-support th:nth-child(9),
.peminjaman-form .tbl-scroll--ret-support td:nth-child(9) {
    text-align: center !important;
    vertical-align: middle !important;
}

.peminjaman-form .tbl-scroll--ret-support .cell-qty {
    text-align: center !important;
}

.peminjaman-form .tbl-scroll--ret-support .cell-qty .return-field-group,
.peminjaman-form .tbl-scroll--ret-support td:nth-child(9) .return-field-group,
.peminjaman-form .tbl-scroll--ret-support td:nth-child(9) .return-transfer-stack,
.peminjaman-form .tbl-scroll--ret-support td:nth-child(9) .return-transfer-inline {
    width: 100%;
    display: flex;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
}

.peminjaman-form .tbl-scroll--ret-support .qty-stepper,
.peminjaman-form .tbl-scroll--ret-support .return-transfer-inline {
    margin-left: auto !important;
    margin-right: auto !important;
}

.peminjaman-form .tbl-scroll--ret-support .return-transfer-toggle input[type='checkbox'] {
    display: block !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

.peminjaman-form .tbl-scroll--ret-support .input-qty.input-qty--stepper,
.peminjaman-form .tbl-scroll--ret-support input.input-qty--stepper[type='number'] {
    text-align: center !important;
}

.peminjaman-form .return-note-col {
    min-width: 220px;
}

.peminjaman-form .return-item-note {
    width: 100%;
    min-width: 200px;
}

/* =========================
   PEMINJAMAN - JUMLAH COLUMN
========================= */
.peminjaman-form .table-scroll .table-mobile-scroll--qty-first.table-mobile-scroll--fill-width {
    table-layout: auto !important;
}

.peminjaman-form .table-mobile-scroll--qty-first {
    --qty-stepper-width: 88px;
    --qty-stepper-height: 34px;
    --qty-stepper-button-width: 26px;
    --qty-stepper-font-size: 0.78rem;
    --jumlah-col-width: calc(var(--qty-stepper-width) + 12px);
}

.peminjaman-form .table-scroll .table-mobile-scroll--qty-first col.col-qty {
    width: var(--jumlah-col-width) !important;
}

.peminjaman-form .table-scroll .table-mobile-scroll--qty-first th:first-child,
.peminjaman-form .table-scroll .table-mobile-scroll--qty-first td.cell-qty {
    width: var(--jumlah-col-width) !important;
    min-width: var(--jumlah-col-width) !important;
    max-width: var(--jumlah-col-width) !important;
    padding-left: 6px !important;
    padding-right: 6px !important;
    text-align: center !important;
    white-space: nowrap !important;
    box-sizing: border-box;
}

.peminjaman-form .table-scroll .table-mobile-scroll--qty-first .cell-qty .qty-stepper {
    width: var(--qty-stepper-width) !important;
    min-width: var(--qty-stepper-width) !important;
    max-width: var(--qty-stepper-width) !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

.peminjaman-form .table-scroll .table-mobile-scroll--qty-first .lab-category-row td {
    width: auto !important;
    min-width: 0 !important;
    max-width: none !important;
    padding-left: 14px !important;
    padding-right: 14px !important;
    text-align: left !important;
    white-space: normal !important;
}

@media (max-width: 768px) {
    .peminjaman-form .table-mobile-scroll--qty-first {
        --qty-stepper-width: 80px;
        --qty-stepper-height: 32px;
        --qty-stepper-button-width: 24px;
        --qty-stepper-font-size: 0.72rem;
        --jumlah-col-width: calc(var(--qty-stepper-width) + 10px);
    }

    .peminjaman-form .table-scroll .table-mobile-scroll--qty-first th:first-child,
    .peminjaman-form .table-scroll .table-mobile-scroll--qty-first td.cell-qty {
        padding-left: 5px !important;
        padding-right: 5px !important;
    }
}

@media (max-width: 420px) {
    .peminjaman-form .table-mobile-scroll--qty-first {
        --qty-stepper-width: 76px;
        --qty-stepper-height: 30px;
        --qty-stepper-button-width: 22px;
        --qty-stepper-font-size: 0.7rem;
        --jumlah-col-width: calc(var(--qty-stepper-width) + 8px);
    }

    .peminjaman-form .table-scroll .table-mobile-scroll--qty-first th:first-child,
    .peminjaman-form .table-scroll .table-mobile-scroll--qty-first td.cell-qty {
        padding-left: 4px !important;
        padding-right: 4px !important;
    }
}

/* =========================
   PEMINJAMAN - CELL-QTY HARD FIX 100PX
========================= */
.peminjaman-form .table-scroll .table-mobile-scroll--qty-first.table-mobile-scroll--fill-width,
.peminjaman-form .table-mobile-scroll--qty-first.table-mobile-scroll--fill-width {
    table-layout: fixed !important;
}

.peminjaman-form .table-mobile-scroll--qty-first {
    --qty-stepper-width: 100px !important;
    --qty-stepper-height: 34px !important;
    --qty-stepper-button-width: 28px !important;
    --qty-stepper-font-size: 0.78rem !important;
    --jumlah-col-width: 100px !important;
}

.peminjaman-form .table-scroll .table-mobile-scroll--qty-first col.col-qty,
.peminjaman-form .table-mobile-scroll--qty-first col.col-qty {
    width: 100px !important;
    min-width: 100px !important;
    max-width: 100px !important;
}

.peminjaman-form .table-scroll .table-mobile-scroll--qty-first th:first-child,
.peminjaman-form .table-scroll .table-mobile-scroll--qty-first td.cell-qty,
.peminjaman-form .table-mobile-scroll--qty-first th:first-child,
.peminjaman-form .table-mobile-scroll--qty-first td.cell-qty {
    width: 100px !important;
    min-width: 100px !important;
    max-width: 100px !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    text-align: center !important;
    vertical-align: middle !important;
    white-space: nowrap !important;
    box-sizing: border-box !important;
}

.peminjaman-form .table-scroll .table-mobile-scroll--qty-first .cell-qty .qty-stepper,
.peminjaman-form .table-mobile-scroll--qty-first .cell-qty .qty-stepper {
    width: 100px !important;
    min-width: 100px !important;
    max-width: 100px !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

.peminjaman-form .table-scroll .table-mobile-scroll--qty-first .input-qty.input-qty--stepper,
.peminjaman-form .table-scroll .table-mobile-scroll--qty-first input.input-qty--stepper[type='number'],
.peminjaman-form .table-mobile-scroll--qty-first .input-qty.input-qty--stepper,
.peminjaman-form .table-mobile-scroll--qty-first input.input-qty--stepper[type='number'] {
    text-align: center !important;
}

.peminjaman-form .table-scroll .table-mobile-scroll--qty-first .lab-category-row td,
.peminjaman-form .table-mobile-scroll--qty-first .lab-category-row td {
    width: auto !important;
    min-width: 0 !important;
    max-width: none !important;
    padding-left: 14px !important;
    padding-right: 14px !important;
    text-align: left !important;
    white-space: normal !important;
}

/* =========================
   PEMINJAMAN - CELL-QTY
========================= */
.peminjaman-form .table-scroll table.table-mobile-scroll--qty-first {
    table-layout: auto !important;
    width: max-content !important;
    min-width: max-content !important;
    max-width: none !important;
    margin-left: 8px !important;
    margin-right: 8px !important;
}

.peminjaman-form .table-scroll table.table-mobile-scroll--qty-first col.col-qty {
    width: 100px !important;
}

.peminjaman-form .table-scroll table.table-mobile-scroll--qty-first > thead > tr > th:first-child,
.peminjaman-form .table-scroll table.table-mobile-scroll--qty-first > tbody > tr > td.cell-qty {
    width: 100px !important;
    min-width: 100px !important;
    max-width: 100px !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    text-align: center !important;
    vertical-align: middle !important;
    white-space: nowrap !important;
    box-sizing: border-box !important;
}

.peminjaman-form .table-scroll table.table-mobile-scroll--qty-first > tbody > tr.lab-category-row > td {
    width: auto !important;
    min-width: 0 !important;
    max-width: none !important;
    padding-left: 14px !important;
    padding-right: 14px !important;
    text-align: left !important;
    white-space: normal !important;
}

.peminjaman-form .table-scroll table.table-mobile-scroll--qty-first > tbody > tr > td.cell-qty .qty-stepper {
    width: 100px !important;
    min-width: 100px !important;
    max-width: 100px !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

.peminjaman-form .table-scroll table.table-mobile-scroll--qty-first > tbody > tr > td.cell-qty .input-qty.input-qty--stepper,
.peminjaman-form .table-scroll table.table-mobile-scroll--qty-first > tbody > tr > td.cell-qty input.input-qty--stepper[type='number'] {
    width: 100% !important;
    min-width: 0 !important;
    max-width: none !important;
    text-align: center !important;
}

@media (max-width: 768px) {
    .peminjaman-form .table-scroll table.table-mobile-scroll--qty-first {
        margin-left: 10px !important;
        margin-right: 10px !important;
    }

    .peminjaman-form .table-scroll table.table-mobile-scroll--qty-first > thead > tr > th:first-child,
    .peminjaman-form .table-scroll table.table-mobile-scroll--qty-first > tbody > tr > td.cell-qty {
        width: 100px !important;
        min-width: 100px !important;
        max-width: 100px !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
}

/* =========================
   PEMINJAMAN - TABEL PENGAJUAN
========================= */
.peminjaman-form .table-scroll table.table-mobile-scroll--lab,
.peminjaman-form .table-scroll table.table-mobile-scroll--qty-first {
    width: 100% !important;
    min-width: 100% !important;
    max-width: 100% !important;
    table-layout: fixed !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
}

.peminjaman-form .table-scroll table.table-mobile-scroll--lab col:not(.col-select),
.peminjaman-form .table-scroll table.table-mobile-scroll--qty-first col:not(.col-qty) {
    width: auto !important;
    min-width: 0 !important;
    max-width: none !important;
}

.peminjaman-form .table-scroll table.table-mobile-scroll--lab col.col-select,
.peminjaman-form .table-scroll table.table-mobile-scroll--lab > thead > tr > th:first-child,
.peminjaman-form .table-scroll table.table-mobile-scroll--lab > tbody > tr > td.cell-select {
    width: 72px !important;
    min-width: 72px !important;
    max-width: 72px !important;
}

.peminjaman-form .table-scroll table.table-mobile-scroll--lab > thead > tr > th,
.peminjaman-form .table-scroll table.table-mobile-scroll--lab > tbody > tr > td,
.peminjaman-form .table-scroll table.table-mobile-scroll--qty-first > thead > tr > th,
.peminjaman-form .table-scroll table.table-mobile-scroll--qty-first > tbody > tr > td {
    min-width: 0 !important;
    max-width: none !important;
    overflow-wrap: anywhere;
    word-break: normal;
    white-space: normal !important;
}

.peminjaman-form .table-scroll table.table-mobile-scroll--qty-first col.col-qty,
.peminjaman-form .table-scroll table.table-mobile-scroll--qty-first > thead > tr > th:first-child,
.peminjaman-form .table-scroll table.table-mobile-scroll--qty-first > tbody > tr > td.cell-qty {
    width: 100px !important;
    min-width: 100px !important;
    max-width: 100px !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    text-align: center !important;
    vertical-align: middle !important;
    white-space: nowrap !important;
    box-sizing: border-box !important;
}

.peminjaman-form .table-scroll table.table-mobile-scroll--qty-first > tbody > tr > td.cell-qty .qty-stepper {
    width: 100px !important;
    min-width: 100px !important;
    max-width: 100px !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

.peminjaman-form .table-scroll table.table-mobile-scroll--qty-first > tbody > tr > td.cell-qty .input-qty.input-qty--stepper,
.peminjaman-form .table-scroll table.table-mobile-scroll--qty-first > tbody > tr > td.cell-qty input.input-qty--stepper[type='number'] {
    width: 100% !important;
    min-width: 0 !important;
    max-width: none !important;
    text-align: center !important;
}

.peminjaman-form .table-scroll table.table-mobile-scroll--lab > tbody > tr.lab-category-row > td,
.peminjaman-form .table-scroll table.table-mobile-scroll--qty-first > tbody > tr.lab-category-row > td {
    width: auto !important;
    min-width: 0 !important;
    max-width: none !important;
    padding-left: 14px !important;
    padding-right: 14px !important;
    text-align: left !important;
    white-space: normal !important;
}

.peminjaman-form .table-scroll table.table-mobile-scroll tr.is-hidden,
.peminjaman-form .table-scroll table.table-mobile-scroll tr[data-lab-category-group].is-hidden,
.peminjaman-form .table-scroll table.table-mobile-scroll tr[data-lab-item-row].is-hidden {
    display: none !important;
}

@media (max-width: 768px) {
    .peminjaman-form .table-scroll table.table-mobile-scroll--lab,
    .peminjaman-form .table-scroll table.table-mobile-scroll--qty-first {
        width: 100% !important;
        min-width: 100% !important;
        max-width: 100% !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }

    .peminjaman-form .table-scroll table.table-mobile-scroll--lab > thead > tr > th,
    .peminjaman-form .table-scroll table.table-mobile-scroll--lab > tbody > tr > td,
    .peminjaman-form .table-scroll table.table-mobile-scroll--qty-first > thead > tr > th,
    .peminjaman-form .table-scroll table.table-mobile-scroll--qty-first > tbody > tr > td {
        min-width: 0 !important;
        padding-left: 8px !important;
        padding-right: 8px !important;
        font-size: 0.78rem;
        white-space: normal !important;
    }

    .peminjaman-form .table-scroll table.table-mobile-scroll--lab col.col-select,
    .peminjaman-form .table-scroll table.table-mobile-scroll--lab > thead > tr > th:first-child,
    .peminjaman-form .table-scroll table.table-mobile-scroll--lab > tbody > tr > td.cell-select {
        width: 58px !important;
        min-width: 58px !important;
        max-width: 58px !important;
        padding-left: 6px !important;
        padding-right: 6px !important;
    }

    .peminjaman-form .table-scroll table.table-mobile-scroll--qty-first col.col-qty,
    .peminjaman-form .table-scroll table.table-mobile-scroll--qty-first > thead > tr > th:first-child,
    .peminjaman-form .table-scroll table.table-mobile-scroll--qty-first > tbody > tr > td.cell-qty {
        width: 100px !important;
        min-width: 100px !important;
        max-width: 100px !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    .peminjaman-form .table-scroll table.table-mobile-scroll--qty-first > tbody > tr > td.cell-qty .qty-stepper {
        width: 100px !important;
        min-width: 100px !important;
        max-width: 100px !important;
    }

    .peminjaman-form .table-scroll table.table-mobile-scroll tr.is-hidden,
    .peminjaman-form .table-scroll table.table-mobile-scroll tr[data-lab-category-group].is-hidden,
    .peminjaman-form .table-scroll table.table-mobile-scroll tr[data-lab-item-row].is-hidden {
        display: none !important;
    }
}

/* =========================
   PEMINJAMAN - MOBILE TABLE NO-WRAP SCROLL
========================= */
.peminjaman-form .table-scroll {
    overflow-x: auto !important;
    overflow-y: hidden !important;
    max-width: 100% !important;
}

.peminjaman-form .table-scroll table.table-mobile-scroll--lab,
.peminjaman-form .table-scroll table.table-mobile-scroll--qty-first {
    width: max-content !important;
    min-width: 100% !important;
    max-width: none !important;
    table-layout: auto !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
}

.peminjaman-form .table-scroll table.table-mobile-scroll--lab col:not(.col-select),
.peminjaman-form .table-scroll table.table-mobile-scroll--qty-first col:not(.col-qty) {
    width: auto !important;
    min-width: auto !important;
    max-width: none !important;
}

.peminjaman-form .table-scroll table.table-mobile-scroll--lab > thead > tr > th,
.peminjaman-form .table-scroll table.table-mobile-scroll--lab > tbody > tr > td,
.peminjaman-form .table-scroll table.table-mobile-scroll--qty-first > thead > tr > th,
.peminjaman-form .table-scroll table.table-mobile-scroll--qty-first > tbody > tr > td,
.peminjaman-form .table-scroll table.table-mobile-scroll--lab .cell-wrap,
.peminjaman-form .table-scroll table.table-mobile-scroll--qty-first .cell-wrap {
    width: auto !important;
    min-width: max-content !important;
    max-width: none !important;
    white-space: nowrap !important;
    word-break: normal !important;
    overflow-wrap: normal !important;
    line-height: 1.35 !important;
}

.peminjaman-form .table-scroll table.table-mobile-scroll--lab col.col-select,
.peminjaman-form .table-scroll table.table-mobile-scroll--lab > thead > tr > th:first-child,
.peminjaman-form .table-scroll table.table-mobile-scroll--lab > tbody > tr > td.cell-select {
    width: 72px !important;
    min-width: 72px !important;
    max-width: 72px !important;
    text-align: center !important;
    white-space: nowrap !important;
}

.peminjaman-form .table-scroll table.table-mobile-scroll--qty-first col.col-qty,
.peminjaman-form .table-scroll table.table-mobile-scroll--qty-first > thead > tr > th:first-child,
.peminjaman-form .table-scroll table.table-mobile-scroll--qty-first > tbody > tr > td.cell-qty {
    width: 100px !important;
    min-width: 100px !important;
    max-width: 100px !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    text-align: center !important;
    vertical-align: middle !important;
    white-space: nowrap !important;
    box-sizing: border-box !important;
}

.peminjaman-form .table-scroll table.table-mobile-scroll--qty-first > tbody > tr > td.cell-qty .qty-stepper {
    width: 100px !important;
    min-width: 100px !important;
    max-width: 100px !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

.peminjaman-form .table-scroll table.table-mobile-scroll--qty-first > tbody > tr > td.cell-qty .input-qty.input-qty--stepper,
.peminjaman-form .table-scroll table.table-mobile-scroll--qty-first > tbody > tr > td.cell-qty input.input-qty--stepper[type='number'] {
    width: 100% !important;
    min-width: 0 !important;
    max-width: none !important;
    text-align: center !important;
}

.peminjaman-form .table-scroll table.table-mobile-scroll--lab > tbody > tr.lab-category-row > td,
.peminjaman-form .table-scroll table.table-mobile-scroll--qty-first > tbody > tr.lab-category-row > td {
    min-width: 100% !important;
    max-width: none !important;
    padding-left: 14px !important;
    padding-right: 14px !important;
    text-align: left !important;
    white-space: nowrap !important;
}

.peminjaman-form .table-scroll table.table-mobile-scroll--lab > tbody > tr.lab-category-row .lab-category-title,
.peminjaman-form .table-scroll table.table-mobile-scroll--qty-first > tbody > tr.lab-category-row .lab-category-title {
    white-space: nowrap !important;
}

.peminjaman-form .table-scroll table.table-mobile-scroll tr.is-hidden,
.peminjaman-form .table-scroll table.table-mobile-scroll tr[data-lab-category-group].is-hidden,
.peminjaman-form .table-scroll table.table-mobile-scroll tr[data-lab-item-row].is-hidden {
    display: none !important;
}

@media (max-width: 768px) {
    .peminjaman-form .table-scroll table.table-mobile-scroll--lab,
    .peminjaman-form .table-scroll table.table-mobile-scroll--qty-first {
        width: max-content !important;
        min-width: 100% !important;
        max-width: none !important;
        table-layout: auto !important;
    }

    .peminjaman-form .table-scroll table.table-mobile-scroll--lab > thead > tr > th,
    .peminjaman-form .table-scroll table.table-mobile-scroll--lab > tbody > tr > td,
    .peminjaman-form .table-scroll table.table-mobile-scroll--qty-first > thead > tr > th,
    .peminjaman-form .table-scroll table.table-mobile-scroll--qty-first > tbody > tr > td,
    .peminjaman-form .table-scroll table.table-mobile-scroll--lab .cell-wrap,
    .peminjaman-form .table-scroll table.table-mobile-scroll--qty-first .cell-wrap {
        min-width: max-content !important;
        padding-left: 9px !important;
        padding-right: 9px !important;
        font-size: 0.78rem !important;
        white-space: nowrap !important;
        word-break: normal !important;
        overflow-wrap: normal !important;
    }

    .peminjaman-form .table-scroll table.table-mobile-scroll--lab col.col-select,
    .peminjaman-form .table-scroll table.table-mobile-scroll--lab > thead > tr > th:first-child,
    .peminjaman-form .table-scroll table.table-mobile-scroll--lab > tbody > tr > td.cell-select {
        width: 64px !important;
        min-width: 64px !important;
        max-width: 64px !important;
        padding-left: 8px !important;
        padding-right: 8px !important;
    }

    .peminjaman-form .table-scroll table.table-mobile-scroll--qty-first col.col-qty,
    .peminjaman-form .table-scroll table.table-mobile-scroll--qty-first > thead > tr > th:first-child,
    .peminjaman-form .table-scroll table.table-mobile-scroll--qty-first > tbody > tr > td.cell-qty {
        width: 100px !important;
        min-width: 100px !important;
        max-width: 100px !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
        text-align: center !important;
    }

    .peminjaman-form .table-scroll table.table-mobile-scroll tr.is-hidden,
    .peminjaman-form .table-scroll table.table-mobile-scroll tr[data-lab-category-group].is-hidden,
    .peminjaman-form .table-scroll table.table-mobile-scroll tr[data-lab-item-row].is-hidden {
        display: none !important;
    }
}

/* =========================
   PEMINJAMAN - MOBILE QTY TABLE
========================= */
@media (max-width: 768px) {
    .peminjaman-form .inventory-sheet-panel .table-scroll-area.table-scroll--qty-inline-offset {
        padding-left: 10px !important;
        padding-right: 8px !important;
        padding-bottom: 4px !important;
        box-sizing: border-box !important;
        scroll-padding-left: 10px;
    }

    .peminjaman-form .inventory-sheet-panel .table-scroll-area.table-scroll--qty-inline-offset > table.table-mobile-scroll--qty-first {
        margin-left: 0 !important;
        margin-right: 0 !important;
    }
}

@media (max-width: 420px) {
    .peminjaman-form .inventory-sheet-panel .table-scroll-area.table-scroll--qty-inline-offset {
        padding-left: 8px !important;
        padding-right: 6px !important;
        scroll-padding-left: 8px;
    }
}

/* =========================
   PEMINJAMAN - QTY TABLE LEFT OFFSET ALL SCREENS
========================= */
.peminjaman-form .inventory-sheet-panel .table-scroll-area.table-scroll--qty-inline-offset {
    padding-left: 14px !important;
    padding-right: 12px !important;
    padding-bottom: 4px !important;
    box-sizing: border-box !important;
    scroll-padding-left: 14px !important;
}

.peminjaman-form .inventory-sheet-panel .table-scroll-area.table-scroll--qty-inline-offset > table.table-mobile-scroll--qty-first {
    margin-left: 0 !important;
    margin-right: 0 !important;
}

@media (max-width: 768px) {
    .peminjaman-form .inventory-sheet-panel .table-scroll-area.table-scroll--qty-inline-offset {
        padding-left: 10px !important;
        padding-right: 8px !important;
        padding-bottom: 4px !important;
        scroll-padding-left: 10px !important;
    }
}

@media (max-width: 420px) {
    .peminjaman-form .inventory-sheet-panel .table-scroll-area.table-scroll--qty-inline-offset {
        padding-left: 8px !important;
        padding-right: 6px !important;
        scroll-padding-left: 8px !important;
    }
}

/* =========================
   MASTER DATA - SHOW ENTRIES & PAGINATION
========================= */
.master-list-controls,
.master-pagination-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: nowrap;
    gap: 14px;
    min-width: 0;
    padding: 14px 20px;
    background: var(--color-white);
}

.master-list-controls {
    --master-control-font: 1rem;
    --master-control-height: 38px;
    --master-control-radius: 10px;
    --master-search-clear: 28px;
    --master-search-gap: 9px;
    --master-search-icon: 1rem;
    --master-search-pad: 10px;
    border-bottom: 1px solid var(--border);
}

.master-pagination-bar {
    border-top: 1px solid var(--border);
}

.master-entries-form {
    display: inline-flex;
    flex: 0 1 auto;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    min-width: 0;
}

.master-list-search {
    flex: 0 1 230px;
    width: min(230px, 24vw);
    min-width: 160px;
    min-height: var(--master-control-height);
    height: var(--master-control-height);
    gap: var(--master-search-gap);
    padding-inline: var(--master-search-pad);
    border-radius: var(--master-control-radius);
    font-size: var(--master-control-font);
}

.master-list-search > i {
    font-size: var(--master-search-icon);
    line-height: 1;
}

.master-list-search input {
    height: 100%;
    padding-block: 0;
    font-size: inherit;
    line-height: 1.2;
}

.master-list-search .list-search-clear {
    width: var(--master-search-clear);
    height: var(--master-search-clear);
    font-size: var(--master-search-icon);
}

.table-scroll--list .is-list-search-hidden,
.table-scroll--list .is-list-search-empty[hidden] {
    display: none !important;
}

.master-list-controls--local .master-list-search {
    max-width: 230px;
}

.master-entries-info,
.master-pagination-summary {
    flex: 1 1 auto;
    min-width: 0;
    margin: 0;
    color: var(--text-soft);
    font-size: 0.88rem;
    line-height: 1.4;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.master-entries-info {
    text-align: right;
}

.master-entries-select {
    width: 112px;
    min-width: 112px;
    height: var(--master-control-height);
    border: 1px solid var(--border);
    border-radius: var(--master-control-radius);
    background: var(--color-white);
    color: var(--text);
    padding: 0 34px 0 12px;
    font: inherit;
    font-size: var(--master-control-font);
    cursor: pointer;
}

.master-year-select {
    width: 132px;
    min-width: 132px;
}

.master-entries-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(16, 62, 111, 0.12);
    outline: none;
}

.master-pagination {
    display: inline-flex;
    flex: 0 1 auto;
    align-items: center;
    justify-content: flex-end;
    gap: 6px;
    flex-wrap: nowrap;
    min-width: 0;
}

.master-page-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    min-width: 36px;
    min-height: 36px;
    padding: 7px 11px;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: var(--color-white);
    color: var(--text);
    font-size: 0.86rem;
    font-weight: 700;
    line-height: 1;
    text-decoration: none;
    transition: 0.18s ease;
}

.master-page-link:hover,
.master-page-link:focus-visible {
    border-color: var(--primary);
    color: var(--primary);
    outline: none;
}

.master-page-link.is-active {
    background: var(--primary);
    border-color: var(--primary);
    color: var(--color-white);
}

.master-page-link.is-disabled,
.master-page-link.is-ellipsis {
    cursor: not-allowed;
    opacity: 0.55;
    pointer-events: none;
}

.master-page-link.is-ellipsis {
    border-color: transparent;
    background: transparent;
}

@media (max-width: 768px) {
    .master-list-controls,
    .master-pagination-bar {
        align-items: center;
        flex-direction: row;
        gap: clamp(6px, 1.8vw, 12px);
        padding: 10px clamp(8px, 3vw, 16px);
    }

    .master-list-controls {
        --master-control-font: clamp(0.74rem, 2.3vw, 0.86rem);
        --master-control-height: 34px;
        --master-control-radius: 9px;
        --master-search-clear: clamp(22px, 6vw, 26px);
        --master-search-gap: clamp(5px, 1.5vw, 8px);
        --master-search-icon: clamp(0.72rem, 2.3vw, 0.86rem);
        --master-search-pad: clamp(7px, 2vw, 10px);
    }

    .master-entries-form {
        width: auto;
        justify-content: flex-start;
    }

    .master-pagination {
        width: auto;
        justify-content: flex-end;
        gap: clamp(3px, 1.2vw, 6px);
    }

    .master-entries-info,
    .master-pagination-summary {
        font-size: clamp(0.7rem, 2.2vw, 0.84rem);
        line-height: 1.25;
    }

    .master-entries-select {
        width: clamp(92px, 26vw, 112px);
        min-width: 0;
        padding: 0 28px 0 10px;
    }

    .master-year-select {
        width: clamp(108px, 30vw, 132px);
    }

    .master-page-link {
        min-width: clamp(28px, 6.6vw, 34px);
        min-height: clamp(28px, 6.6vw, 34px);
        padding: 6px clamp(6px, 1.6vw, 9px);
        border-radius: 9px;
        font-size: clamp(0.7rem, 2vw, 0.82rem);
    }
}

@media (max-width: 480px) {
    .master-list-controls,
    .master-pagination-bar {
        gap: 6px;
        padding: 9px 8px;
    }

    .master-list-controls {
        --master-control-font: clamp(0.66rem, 3vw, 0.76rem);
        --master-control-height: clamp(30px, 8.5vw, 32px);
        --master-control-radius: clamp(7px, 2vw, 8px);
        --master-search-clear: clamp(20px, 6vw, 24px);
        --master-search-gap: clamp(4px, 1.5vw, 6px);
        --master-search-icon: clamp(0.66rem, 3vw, 0.76rem);
        --master-search-pad: clamp(6px, 2vw, 8px);
    }

    .master-entries-form {
        display: inline-flex;
        gap: 6px;
    }

    .master-entries-select {
        width: clamp(88px, 30vw, 104px);
        padding-right: 24px;
        padding-left: 8px;
    }

    .master-year-select {
        width: clamp(96px, 34vw, 118px);
    }

    .master-pagination-summary {
        max-width: 32vw;
    }

    .master-page-link {
        min-width: clamp(24px, 6.6vw, 30px);
        min-height: clamp(24px, 6.6vw, 30px);
        padding: 5px clamp(4px, 1.2vw, 7px);
        border-radius: 8px;
        font-size: clamp(0.66rem, 2.6vw, 0.76rem);
    }
}

@media (max-width: 380px) {
    .master-pagination-summary {
        max-width: 24vw;
    }

    .master-pagination {
        gap: 2px;
    }

    .master-page-link {
        min-width: 23px;
        min-height: 23px;
        padding: 4px 5px;
        font-size: 0.66rem;
    }
}

.master-page-label-short {
    display: none;
}

@media (max-width: 480px) {
    .master-page-link--prev .master-page-label-full,
    .master-page-link--next .master-page-label-full {
        display: none;
    }

    .master-page-link--prev .master-page-label-short,
    .master-page-link--next .master-page-label-short {
        display: inline;
    }
}

@media (min-width: 481px) and (max-width: 664px) {
    .master-list-controls,
    .master-pagination-bar {
        display: grid;
        align-items: center;
        gap: clamp(4px, 1.2vw, 8px);
        max-width: 100%;
        min-width: 0;
        padding: 8px clamp(8px, 2vw, 12px);
    }

    .master-list-controls {
        --master-control-font: clamp(0.68rem, 1.9vw, 0.78rem);
        --master-control-height: 31px;
        --master-control-radius: 8px;
        --master-search-clear: clamp(20px, 5vw, 24px);
        --master-search-icon: clamp(0.68rem, 1.9vw, 0.78rem);
        grid-template-columns: minmax(88px, 0.32fr) minmax(0, 1fr);
    }

    .master-pagination-bar {
        grid-template-columns: minmax(76px, 0.26fr) minmax(0, 1fr);
    }

    .master-entries-form,
    .master-pagination,
    .master-entries-info,
    .master-pagination-summary {
        min-width: 0;
    }

    .master-entries-info,
    .master-pagination-summary {
        font-size: clamp(0.68rem, 1.9vw, 0.78rem);
        line-height: 1.15;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .master-entries-select {
        width: clamp(88px, 20vw, 104px);
        padding-left: 8px;
        padding-right: 24px;
    }

    .master-pagination {
        justify-content: flex-end;
        gap: clamp(2px, 0.8vw, 4px);
        overflow-x: auto;
        overflow-y: hidden;
        scrollbar-width: thin;
        -webkit-overflow-scrolling: touch;
    }

    .master-page-link {
        min-width: clamp(24px, 5.1vw, 29px);
        min-height: clamp(24px, 5.1vw, 29px);
        padding: 4px clamp(4px, 1vw, 6px);
        border-radius: 8px;
        font-size: clamp(0.64rem, 1.8vw, 0.74rem);
    }
}

@media (max-width: 664px) {
    .master-page-link--prev .master-page-label-full,
    .master-page-link--next .master-page-label-full {
        display: none;
    }

    .master-page-link--prev .master-page-label-short,
    .master-page-link--next .master-page-label-short {
        display: inline;
    }
}

@media (max-width: 768px) {
    .master-list-controls {
        display: flex;
        align-items: center;
        flex-direction: row;
        flex-wrap: wrap;
    }

    .master-entries-form {
        width: 100%;
        max-width: 100%;
        flex: 1 1 100%;
        flex-wrap: wrap;
    }

    .master-list-search,
    .master-list-controls--local .master-list-search {
        flex: 1 0 100%;
        width: 100%;
        min-width: 0;
        max-width: 100%;
    }

    .master-entries-info {
        flex-basis: 100%;
        width: 100%;
        text-align: left;
    }
}

/* =========================
   NOTIFIKASI PAGE
========================= */
.notif-page-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
}

.notif-header-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.notif-header-actions form {
    margin: 0;
}

.notif-header-actions .btn span,
.notif-history-panel .table-toolbar-actions .btn span {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
}

.notif-filter-card {
    display: flex;
    flex-wrap: nowrap;
    gap: 10px;
    padding: 14px;
    overflow: hidden;
}

.notif-filter-link {
    flex: 1 1 0;
    min-width: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 14px;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: var(--surface-soft);
    color: var(--text-soft);
    font-weight: 700;
    font-size: 0.88rem;
    line-height: 1.15;
    white-space: nowrap;
    text-align: center;
    overflow: hidden;
    text-overflow: ellipsis;
}

.notif-filter-link.active,
.notif-filter-link:hover {
    background: var(--color-soft-blue);
    color: var(--primary);
    border-color: var(--color-soft-blue);
}

.notif-list-card {
    overflow: hidden;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    margin-bottom: 20px;
}

.notif-list-item {
    position: relative;
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr) auto;
    align-items: flex-start;
    gap: 14px;
    padding: 18px 20px;
    border-bottom: 1px solid var(--border);
    transition: background 0.2s ease;
}

.notif-list-item:last-child {
    border-bottom: none;
}

.notif-list-item:hover,
.notif-list-item.unread {
    background: color-mix(in srgb, var(--color-soft-blue) 28%, var(--color-white));
}

.notif-list-icon {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    background: var(--color-soft-blue);
    color: var(--primary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.05rem;
}

.notif-list-content {
    min-width: 0;
}

.notif-list-topline {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 6px;
}

.notif-list-topline strong {
    color: var(--text);
    font-size: 0.98rem;
}

.notif-list-content p {
    margin: 0 0 7px;
    color: var(--text-soft);
    line-height: 1.55;
    font-size: 0.9rem;
}

.notif-list-content small {
    color: var(--text-muted);
    font-size: 0.78rem;
}

.notif-unread-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--reject);
    margin-top: 8px;
}

.notif-empty-state {
    min-height: 260px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: var(--text-soft);
    text-align: center;
    padding: 30px;
}

.notif-empty-state i {
    font-size: 2rem;
    color: var(--text-muted);
}

.notif-empty-state strong {
    color: var(--text);
}

.notif-form-card {
    position: relative;
    overflow: visible;
}

.notif-form-card .form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}


.field-error {
    margin-top: 6px;
    color: var(--reject);
    font-size: 0.83rem;
    font-style: italic;
    line-height: 1.45;
}

@media (max-width: 720px) {
    .notif-page-header {
        flex-direction: column;
    }

    .notif-header-actions {
        width: 100%;
        flex-wrap: nowrap;
        gap: 6px;
    }

    .notif-header-actions .btn,
    .notif-header-actions form {
        flex: 1 1 0;
        min-width: 0;
    }

    .notif-header-actions .btn {
        width: 100%;
        justify-content: center;
        padding: 9px clamp(5px, 1.5vw, 10px);
        font-size: clamp(0.56rem, 2.2vw, 0.78rem);
        white-space: nowrap;
    }

    .notif-header-actions .btn i {
        font-size: clamp(0.74rem, 2.5vw, 0.95rem);
    }

    .notif-filter-card {
        gap: 6px;
        padding: 10px;
    }

    .notif-filter-link {
        padding: 8px clamp(4px, 1.4vw, 8px);
        font-size: clamp(0.56rem, 2.05vw, 0.74rem);
        letter-spacing: -0.02em;
    }

    .notif-list-item {
        grid-template-columns: 38px minmax(0, 1fr) auto;
        padding: 15px;
    }

    .notif-list-icon {
        width: 38px;
        height: 38px;
    }

    .notif-form-card .form-grid {
        grid-template-columns: 1fr;
    }
}

.badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 5px 9px;
    border: 1px solid transparent;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 800;
    line-height: 1;
    white-space: nowrap;
}

.notif-form-card .form-control {
    width: 100%;
    border: 1px solid var(--border-strong);
    border-radius: 12px;
    background: var(--surface);
    color: var(--text);
    padding: 11px 14px;
    min-height: 44px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.notif-form-card textarea.form-control {
    min-height: 140px;
    resize: vertical;
}

.notif-form-card .form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--color-soft-blue) 55%, transparent);
}

/* =========================
   NOTIFIKASI - PENYESUAIAN FORM & BUTTON
========================= */
.notif-header-actions .btn,
.notif-form-card .form-actions .btn {
    gap: 8px;
}

.notif-form-card .date-picker-control .notif-datetime-input {
    padding-right: 48px;
}

.date-time-picker-control {
    position: relative;
}

.date-time-picker-control.is-open {
    z-index: 90;
}

.date-time-picker-popup {
    width: min(330px, calc(100vw - 36px));
    z-index: 1400;
}

.date-picker-time-row {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: 10px;
    margin-top: 12px;
    padding: 10px 12px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: var(--surface-soft);
}

.date-picker-time-row label {
    margin: 0;
    color: var(--text-soft);
    font-size: 0.82rem;
    font-weight: 700;
}

.date-picker-time-input {
    width: 100%;
    min-height: 34px;
    padding: 7px 10px;
    border: 1px solid var(--border-strong);
    border-radius: 10px;
    background: var(--surface);
    color: var(--text);
    font-weight: 700;
}

.date-picker-time-input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--color-soft-blue) 55%, transparent);
    outline: none;
}

@media (max-width: 720px) {
    .notif-form-card {
        overflow: visible;
    }

    .notif-form-card .date-picker-popup.date-time-picker-popup {
        left: 0;
        width: min(300px, calc(100vw - 44px));
        max-width: calc(100vw - 44px);
    }

    .notif-form-card .date-picker-time-row {
        grid-template-columns: 1fr;
        gap: 7px;
    }
}

@media (max-width: 420px) {
    .notif-form-card .date-picker-popup.date-time-picker-popup {
        width: min(278px, calc(100vw - 32px));
        max-width: calc(100vw - 32px);
        padding: 10px;
    }
}

@media (max-width: 420px) {
    .notif-header-actions {
        gap: 4px;
    }

    .notif-header-actions .btn {
        gap: 4px;
        padding: 8px 4px;
        font-size: clamp(0.48rem, 2.05vw, 0.64rem);
    }

    .notif-filter-card {
        gap: 4px;
        padding: 8px;
    }

    .notif-filter-link {
        padding: 7px 3px;
        font-size: clamp(0.5rem, 2.05vw, 0.62rem);
        letter-spacing: -0.04em;
    }
}

/* =========================
   NOTIFIKASI - RIWAYAT PENGUMUMAN
========================= */
.notif-history-panel .table-toolbar-actions .btn,
.notif-history-panel .delete-modal-actions .btn {
    gap: 8px;
}

.notif-history-panel .table-toolbar {
    flex-wrap: nowrap;
}

.notif-history-panel .table-title {
    min-width: 0;
}

.notif-history-panel .notif-toolbar-actions {
    flex-wrap: nowrap;
    flex-shrink: 0;
}

.notif-history-table {
    min-width: 1180px;
}

.notif-history-table th,
.notif-history-table td {
    vertical-align: top;
}

.notif-history-table .notif-message-cell {
    min-width: 260px;
    max-width: 380px;
    line-height: 1.55;
}

.notif-history-table small {
    color: var(--text-muted);
    font-size: 0.76rem;
}

.notif-history-table .cell-status {
    white-space: nowrap;
}

@media (max-width: 720px) {
    .notif-history-panel .table-toolbar {
        align-items: center;
        gap: 8px;
    }

    .notif-history-panel .table-title {
        min-width: 0;
        font-size: clamp(0.82rem, 2.4vw, 1rem);
    }

    .notif-history-panel .table-toolbar-actions {
        width: auto;
        flex: 0 0 auto;
        flex-wrap: nowrap;
        gap: 6px;
    }

    .notif-history-panel .table-toolbar-actions .btn {
        width: auto;
        justify-content: center;
        padding: 8px clamp(5px, 1.4vw, 10px);
        font-size: clamp(0.56rem, 2.1vw, 0.76rem);
        white-space: nowrap;
    }
}

@media (max-width: 520px) {
    .notif-history-panel .table-toolbar {
        flex-wrap: nowrap;
    }

    .notif-history-panel .table-title {
        font-size: clamp(0.72rem, 2.6vw, 0.88rem);
    }

    .notif-history-panel .table-toolbar-actions {
        gap: 4px;
    }

    .notif-history-panel .table-toolbar-actions .btn {
        gap: 4px;
        padding: 7px 4px;
        font-size: clamp(0.48rem, 2.15vw, 0.64rem);
    }
}

/* =========================
   NOTIFIKASI - AKSI EDIT RIWAYAT PENGUMUMAN
========================= */
.notif-history-table .table-action-group {
    flex-wrap: nowrap;
    justify-content: center;
}

.notif-history-table .cell-action .btn {
    min-width: 38px;
}

@media (max-width: 360px) {
    .notif-header-actions .btn {
        font-size: 0.46rem;
        padding-inline: 3px;
    }

    .notif-filter-link {
        font-size: 0.47rem;
        padding-inline: 2px;
    }

    .notif-history-panel .table-toolbar-actions .btn {
        font-size: 0.46rem;
        padding-inline: 3px;
    }
}

/* =========================
   NOTIFIKASI - RESPONSIVE HEADER ACTION ADMIN
========================= */
@media (max-width: 768px) {
    .notif-page-header {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }

    .notif-page-header > div:first-child {
        min-width: 0;
    }

    .notif-header-actions {
        width: 100%;
        display: grid;
        grid-auto-flow: column;
        grid-auto-columns: minmax(0, 1fr);
        align-items: stretch;
        gap: clamp(4px, 1.1vw, 8px);
        overflow: hidden;
    }

    .notif-header-actions > a,
    .notif-header-actions > form {
        min-width: 0;
        width: 100%;
    }

    .notif-header-actions .btn {
        width: 100%;
        min-width: 0;
        max-width: 100%;
        justify-content: center;
        gap: clamp(4px, 0.9vw, 7px);
        padding: 9px clamp(4px, 1.15vw, 9px);
        font-size: clamp(0.58rem, 1.65vw, 0.78rem);
        line-height: 1.15;
        white-space: nowrap;
        overflow: hidden;
    }

    .notif-header-actions .btn i {
        flex: 0 0 auto;
        font-size: clamp(0.72rem, 1.95vw, 0.95rem);
    }

    .notif-header-actions .btn span {
        min-width: 0;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
}

@media (max-width: 480px) {
    .notif-header-actions {
        gap: 4px;
    }

    .notif-header-actions .btn {
        gap: 3px;
        padding: 8px 3px;
        font-size: clamp(0.5rem, 2.1vw, 0.62rem);
        letter-spacing: -0.04em;
    }
}

@media (max-width: 370px) {
    .notif-header-actions .btn span {
        max-width: 8.6ch;
    }
}

/* =========================
   MASTER DATA - QR CODE & PUBLIC DETAIL
========================= */
.detail-qr-panel {
    display: flex;
    align-items: center;
    gap: 18px;
    margin: 22px 0;
    padding: 18px;
    border: 1px solid var(--border-color, #dbe4ea);
    border-radius: 20px;
    background: #f8fbfc;
}

.detail-qr-image {
    width: 150px;
    height: 150px;
    flex-shrink: 0;
    border-radius: 18px;
    background: #ffffff;
    border: 1px solid #e2e8ef;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
}

.detail-qr-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.detail-qr-info h3 {
    margin: 0 0 6px;
    color: var(--color-primary-navy, #103e6f);
}

.detail-qr-info p {
    margin: 0 0 14px;
    color: var(--muted, #64748b);
}

.detail-qr-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.public-detail-shell {
    width: min(960px, 100%);
    margin: 0 auto;
}

.public-detail-header {
    margin-bottom: 22px;
}

.public-detail-header h1 {
    margin-top: 10px;
}

.public-detail-badge {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    border-radius: 999px;
    background: #eaf7fb;
    color: #103e6f;
    font-weight: 700;
    font-size: 0.85rem;
}

.public-detail-card {
    margin-bottom: 32px;
}

.public-detail-footer {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 18px;
    padding: 12px 14px;
    border-radius: 14px;
    background: #f0f4f6;
    color: #103e6f;
    font-weight: 600;
}

@media (max-width: 640px) {
    .detail-qr-panel {
        flex-direction: column;
        align-items: stretch;
    }

    .detail-qr-image {
        width: 100%;
        height: 220px;
    }

    .detail-qr-actions {
        flex-direction: column;
    }

    .detail-qr-actions .btn {
        width: 100%;
        justify-content: center;
    }
}

/* =========================
   DATA PELATIHAN PENGGUNA
========================= */
.pelatihan-form-card .master-fieldset-stack {
    gap: 18px;
}

.pelatihan-form-card .form-row--date-range {
    align-items: start;
}

.detail-avatar--icon .detail-avatar__fallback {
    font-size: 3rem;
}

/* =========================
   DATA PELATIHAN - PENYEMPURNAAN FORM & DETAIL
========================= */
.pelatihan-form-card .form-row--single > .form-group,
.pelatihan-form-card .pelatihan-type-row > .form-group {
    grid-column: 1 / -1;
    width: 100%;
}

.pelatihan-form-card .pelatihan-type-row select,
.pelatihan-form-card .form-group-full :is(input, select, textarea) {
    width: 100%;
}

.pelatihan-form-card textarea {
    min-height: 128px;
    line-height: 1.55;
}

.pelatihan-form-card .date-picker-popup--training {
    width: min(320px, 100%);
}

.pelatihan-form-card .date-picker-popup--training .date-picker-title {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.pelatihan-form-card .date-picker-popup--training .date-picker-footer {
    flex-wrap: nowrap;
}

.pelatihan-form-card .date-picker-popup--training .date-picker-footer-btn {
    white-space: nowrap;
    flex: 1 1 0;
    text-align: center;
}

.pelatihan-form-card .date-picker-popup--training .date-picker-day,
.pelatihan-form-card .date-picker-popup--training .date-picker-weekday {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
}

.detail-grid--pelatihan {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: stretch;
}

.detail-grid--pelatihan .detail-item--span-2,
.detail-grid--pelatihan .detail-item--full {
    grid-column: 1 / -1;
}

.detail-grid--pelatihan .detail-item--long-text p {
    font-weight: 500;
    line-height: 1.65;
    white-space: normal;
}

@media (max-width: 640px) {
    .pelatihan-form-card .date-picker-popup--training {
        width: 100%;
        min-width: min(292px, calc(100vw - 48px));
        max-width: calc(100vw - 48px);
        padding: 12px;
    }

    .pelatihan-form-card .date-picker-popup--training .date-picker-weekdays,
    .pelatihan-form-card .date-picker-popup--training .date-picker-grid {
        gap: 4px;
    }

    .pelatihan-form-card .date-picker-popup--training .date-picker-day {
        min-height: 34px;
        font-size: 0.8rem;
    }

    .pelatihan-form-card .date-picker-popup--training .date-picker-footer-btn {
        padding: 7px 6px;
        font-size: 0.74rem;
    }

    .detail-grid--pelatihan {
        grid-template-columns: 1fr;
    }

    .detail-grid--pelatihan .detail-item,
    .detail-grid--pelatihan .detail-item--span-2,
    .detail-grid--pelatihan .detail-item--full {
        grid-column: 1 / -1;
    }
}

/* =========================
   DETAIL BARANG - GRAFIK PEMINJAMAN
   Bar chart riwayat peminjaman alat.
========================= */
.asset-chart-card {
    margin: 24px 0 22px;
    padding: 20px;
    border: 1px solid var(--border);
    border-radius: 22px;
    background: linear-gradient(135deg, var(--color-white), var(--color-soft-blue));
    box-shadow: 0 16px 36px rgba(16, 62, 111, 0.08);
}

.asset-chart-card--public {
    background: linear-gradient(135deg, #ffffff, #eaf7fb);
}

.asset-chart-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 16px;
}

.asset-chart-title {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}


.asset-chart-title h3 {
    margin: 0;
    color: var(--color-primary-navy);
    font-size: 1.1rem;
}


.asset-chart-filter {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 150px;
}


.asset-chart-filter select {
    min-height: 42px;
    padding: 8px 34px 8px 12px;
    border: 1px solid var(--border-strong);
    border-radius: 12px;
    background: var(--color-white);
    color: var(--color-primary-navy);
    font-weight: 700;
    outline: none;
}

.asset-chart-filter select:focus {
    border-color: var(--color-primary-navy);
    box-shadow: 0 0 0 3px rgba(16, 62, 111, 0.12);
}



.asset-chart-area {
    position: relative;
    height: 320px;
    padding: 14px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.86);
    border: 1px solid rgba(16, 62, 111, 0.1);
}

.asset-chart-plot {
    position: relative;
    width: 100%;
    height: 100%;
    min-width: 100%;
}

.asset-chart-area canvas {
    width: 100% !important;
    height: 100% !important;
}

.asset-chart-empty {
    position: absolute;
    inset: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.72);
    color: var(--text-soft);
    font-weight: 700;
    text-align: center;
    pointer-events: none;
}

.asset-chart-empty.is-hidden {
    display: none;
}

@media (max-width: 680px) {
    .asset-chart-card {
        padding: 16px;
        border-radius: 18px;
    }

    .asset-chart-head {
        flex-direction: column;
        align-items: stretch;
    }

    .asset-chart-filter {
        width: 100%;
    }

    .asset-chart-area {
        height: 280px;
        padding: 10px;
    }

    .asset-chart-area--scroll {
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: thin;
    }

    .asset-chart-area--scroll .asset-chart-plot {
        width: var(--loan-chart-width, 100%);
        min-width: var(--loan-chart-width, 100%);
    }

    .asset-chart-area--scroll::-webkit-scrollbar {
        height: 8px;
    }

    .asset-chart-area--scroll::-webkit-scrollbar-thumb {
        border-radius: 999px;
        background: rgba(16, 62, 111, 0.32);
    }
}
