.kutim-keuangan-section {
    padding: 50px 0 80px;
    background: #f8fafd;
}
.kutim-keuangan-filter-card {
    background: #ffffff;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 4px 16px rgba(13, 71, 161, 0.06);
    margin-bottom: 28px;
    border: 1px solid #e3e8ee;
}
.filter-group-row {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    align-items: flex-end;
}
.filter-col {
    display: flex;
    flex-direction: column;
}
.filter-col label {
    font-size: 13px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 6px;
}
.filter-col label i {
    color: #0d47a1;
}
.filter-col input,
.filter-col select {
    height: 44px;
    padding: 8px 14px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 14px;
    color: #1f2937;
    background-color: #fff;
    transition: all 0.2s ease;
}
.filter-col input:focus,
.filter-col select:focus {
    border-color: #0d47a1;
    outline: none;
    box-shadow: 0 0 0 3px rgba(13, 71, 161, 0.12);
}
.filter-search {
    flex: 2;
    min-width: 240px;
}
.filter-select {
    flex: 1;
    min-width: 170px;
}
.filter-year {
    max-width: 150px;
}
.filter-btn {
    display: flex;
    flex-direction: row;
    gap: 8px;
    align-items: flex-end;
}
.btn-filter-submit {
    height: 44px;
    padding: 0 20px;
    background: #0d47a1;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: background 0.2s ease;
}
.btn-filter-submit:hover {
    background: #1565c0;
}
.btn-filter-reset {
    height: 44px;
    padding: 0 16px;
    background: #f3f4f6;
    color: #4b5563;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
    transition: all 0.2s ease;
}
.btn-filter-reset:hover {
    background: #e5e7eb;
    color: #111827;
}
.kutim-keuangan-info-bar {
    margin-bottom: 16px;
    font-size: 14px;
    color: #6b7280;
}
.kutim-keuangan-info-bar strong {
    color: #0d47a1;
}
.kutim-keuangan-table-wrap {
    background: #ffffff;
    border-radius: 12px;
    overflow-x: auto;
    box-shadow: 0 4px 16px rgba(13, 71, 161, 0.06);
    border: 1px solid #e3e8ee;
}
.kutim-keuangan-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}
.kutim-keuangan-table thead {
    background: #0d47a1;
    color: #ffffff;
}
.kutim-keuangan-table th {
    padding: 16px 18px;
    font-weight: 600;
    text-align: left;
    font-size: 13.5px;
    letter-spacing: 0.3px;
    border: none;
}
.kutim-keuangan-table tbody tr {
    border-bottom: 1px solid #edf2f7;
    transition: background-color 0.15s ease;
}
.kutim-keuangan-table tbody tr:last-child {
    border-bottom: none;
}
.kutim-keuangan-table tbody tr:hover {
    background-color: #f8faff;
}
.kutim-keuangan-table td {
    padding: 16px 18px;
    vertical-align: middle;
    color: #374151;
}
.col-no {
    font-weight: 600;
    color: #6b7280;
}
.col-judul .judul-text {
    font-weight: 600;
    color: #1f2937;
    font-size: 14.5px;
    display: block;
    line-height: 1.45;
}
.mobile-meta {
    display: none;
}
.badge-dimensi {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 20px;
    background: #e3f2fd;
    color: #0d47a1;
    font-size: 12px;
    font-weight: 600;
}
.col-penerbit i {
    color: #0d47a1;
    margin-right: 4px;
}
.col-tanggal {
    font-size: 13.5px;
    color: #4b5563;
}
.btn-unduh-doc {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    background: #0d47a1;
    color: #ffffff !important;
    border: none;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s ease;
}
.btn-unduh-doc:hover {
    background: #1565c0;
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(13, 71, 161, 0.25);
}
.btn-unduh-doc i {
    font-size: 12px;
}
.kutim-keuangan-empty {
    background: #ffffff;
    border-radius: 12px;
    padding: 60px 24px;
    text-align: center;
    border: 1px solid #e3e8ee;
    box-shadow: 0 4px 16px rgba(13, 71, 161, 0.06);
}
.kutim-keuangan-empty .empty-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background: #e3f2fd;
    color: #0d47a1;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 34px;
}
.kutim-keuangan-empty h4 {
    font-size: 20px;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 8px;
}
.kutim-keuangan-empty p {
    color: #6b7280;
    font-size: 15px;
    margin-bottom: 20px;
}
.btn-filter-reset-empty {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: #0d47a1;
    color: #fff !important;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.2s ease;
}
.btn-filter-reset-empty:hover {
    background: #1565c0;
}
@media (max-width: 768px) {
    .filter-group-row {
        flex-direction: column;
        align-items: stretch;
    }
    .filter-col {
        width: 100%;
        min-width: 100%;
    }
    .filter-year {
        max-width: 100%;
    }
    .filter-btn {
        width: 100%;
    }
    .btn-filter-submit,
    .btn-filter-reset {
        flex: 1;
        justify-content: center;
    }
    .col-dimensi,
    .col-penerbit,
    .col-tanggal {
        display: none;
    }
    .mobile-meta {
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
        align-items: center;
        margin-top: 8px;
        font-size: 12px;
        color: #6b7280;
    }
    .mobile-meta span {
        display: inline-flex;
        align-items: center;
        gap: 4px;
    }
}
.kutim-doc-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
}
.kutim-doc-modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.78);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 1;
}
.kutim-doc-modal-dialog {
    position: relative;
    z-index: 2;
    width: 94%;
    max-width: 1020px;
    height: 90vh;
    max-height: 840px;
    margin: auto;
    display: flex;
    flex-direction: column;
    animation: modalScaleIn 0.22s ease-out;
}
@keyframes modalScaleIn {
    from {
        opacity: 0;
        transform: scale(0.96);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}
.kutim-doc-modal-content {
    background: #ffffff;
    border-radius: 14px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.45);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
}
.kutim-doc-modal-header {
    padding: 16px 22px;
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    flex-shrink: 0;
}
.doc-header-info {
    display: flex;
    align-items: center;
    gap: 14px;
    flex: 1;
    min-width: 0;
}
.doc-icon-badge {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: #e3f2fd;
    color: #0d47a1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}
.doc-titles {
    flex: 1;
    min-width: 0;
}
.doc-titles h4 {
    margin: 0 0 4px;
    font-size: 16px;
    font-weight: 700;
    color: #111827;
    line-height: 1.35;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.doc-meta-tags {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 12.5px;
    color: #6b7280;
    flex-wrap: wrap;
}
.doc-meta-tags span {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
.doc-meta-tags em {
    font-style: normal;
}
.badge-dimensi-modal {
    padding: 2px 8px;
    background: #e0f2fe;
    color: #0369a1;
    border-radius: 12px;
    font-weight: 600;
    font-size: 11.5px;
}
.kutim-doc-modal-close {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: none;
    background: #f3f4f6;
    color: #4b5563;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    transition: all 0.2s ease;
    flex-shrink: 0;
}
.kutim-doc-modal-close:hover {
    background: #fee2e2;
    color: #dc2626;
    transform: rotate(90deg);
}
.kutim-doc-modal-body {
    flex: 1;
    position: relative;
    background: #525659;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 320px;
}
.preview-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    gap: 12px;
}
.preview-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid rgba(255, 255, 255, 0.2);
    border-top-color: #ffffff;
    border-radius: 50%;
    animation: spinDoc 0.8s linear infinite;
}
@keyframes spinDoc {
    to { transform: rotate(360deg); }
}
.preview-frame-wrap {
    width: 100%;
    height: 100%;
}
.preview-frame-wrap iframe {
    width: 100%;
    height: 100%;
    border: none;
    display: block;
}
.preview-img-wrap {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    overflow: auto;
}
.preview-img-wrap img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 4px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}
.preview-fallback-wrap {
    padding: 40px 24px;
    text-align: center;
    background: #ffffff;
    border-radius: 12px;
    margin: 20px;
    max-width: 480px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}
.fallback-icon {
    font-size: 52px;
    color: #0d47a1;
    margin-bottom: 16px;
}
.fallback-card h5 {
    font-size: 16px;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 8px;
    word-break: break-all;
}
.fallback-card p {
    font-size: 14px;
    color: #6b7280;
    margin-bottom: 0;
    line-height: 1.5;
}
.kutim-doc-modal-footer {
    padding: 14px 22px;
    background: #f8fafc;
    border-top: 1px solid #e5e7eb;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    flex-shrink: 0;
}
.footer-left {
    display: flex;
    align-items: center;
    gap: 8px;
}
.file-name-indicator {
    font-size: 13px;
    color: #64748b;
    max-width: 320px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: inline-block;
}
.footer-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}
.btn-action-download {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: #059669;
    color: #ffffff !important;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
    box-shadow: 0 2px 6px rgba(5, 150, 105, 0.3);
}
.btn-action-download:hover {
    background: #047857;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(5, 150, 105, 0.4);
}
.btn-action-open {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 16px;
    background: #ffffff;
    color: #0d47a1 !important;
    border: 1px solid #bfdbfe;
    border-radius: 8px;
    font-size: 13.5px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
}
.btn-action-open:hover {
    background: #eff6ff;
    border-color: #93c5fd;
}
.btn-action-close {
    padding: 10px 16px;
    background: #f1f5f9;
    color: #475569;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    font-size: 13.5px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}
.btn-action-close:hover {
    background: #e2e8f0;
    color: #0f172a;
}
@media (max-width: 640px) {
    .kutim-doc-modal-dialog {
        width: 100%;
        height: 100%;
        max-height: 100%;
        border-radius: 0;
    }
    .kutim-doc-modal-content {
        border-radius: 0;
    }
    .kutim-doc-modal-footer {
        flex-direction: column;
        align-items: stretch;
    }
    .footer-actions {
        width: 100%;
        flex-direction: column;
    }
    .btn-action-download,
    .btn-action-open,
    .btn-action-close {
        width: 100%;
        justify-content: center;
    }
}
.kutim-keuangan-table .kk-no { width: 60px; text-align: center; }
.kutim-keuangan-table .kk-dimensi, .kutim-keuangan-table .kk-penerbit { width: 180px; }
.kutim-keuangan-table .kk-tanggal { width: 130px; text-align: center; }
.kutim-keuangan-table .kk-dokumen { width: 170px; text-align: center; }
.preview-frame-wrap iframe { width: 100%; height: 100%; border: 0; }
.preview-pdf-wrap {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    background: #525659;
}
.preview-pdf-wrap[hidden] { display: none; }
.preview-pdf-wrap.is-loading { visibility: hidden; }
.pdf-toolbar {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 6px 12px;
    background: #323639;
    color: #f1f5f9;
    font-size: 13px;
    user-select: none;
}
.pdf-toolbar button {
    min-width: 36px;
    height: 32px;
    padding: 0 10px;
    border: 0;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.1);
    color: inherit;
    font-size: 16px;
    line-height: 1;
    cursor: pointer;
}
.pdf-toolbar button:hover:not(:disabled) { background: rgba(255, 255, 255, 0.2); }
.pdf-toolbar button:focus-visible { outline: 2px solid #93c5fd; outline-offset: 1px; }
.pdf-toolbar button:disabled { opacity: 0.4; cursor: default; }
.pdf-toolbar .pdf-zoom-label { min-width: 46px; text-align: center; font-variant-numeric: tabular-nums; }
.pdf-toolbar .pdf-zoom-fit { font-size: 13px; }
.pdf-toolbar .pdf-page-info {
    margin-left: 12px;
    padding-left: 12px;
    border-left: 1px solid rgba(255, 255, 255, 0.2);
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}
.pdf-pages {
    flex: 1;
    overflow: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    padding: 12px;
    outline: none;
}
.pdf-page {
    position: relative;
    margin: 0 auto 12px;
    background: #ffffff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
}
.pdf-page:not(.is-rendered)::after {
    content: attr(data-page);
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #cbd5e1;
    font-size: 28px;
    font-weight: 700;
}
.pdf-page canvas {
    display: block;
    width: 100%;
    height: 100%;
}
.kutim-doc-modal-body .preview-loading { position: relative; z-index: 1; }
@media (max-width: 576px) {
    .pdf-toolbar { gap: 4px; padding: 6px 8px; }
    .pdf-toolbar .pdf-page-info { margin-left: 6px; padding-left: 8px; }
    .pdf-pages { padding: 8px; }
    .pdf-page { margin-bottom: 8px; }
}
@media (max-width: 640px) {
    .kutim-doc-modal-footer {
        flex-direction: row;
        align-items: center;
        padding: 8px 12px;
        padding-bottom: max(8px, env(safe-area-inset-bottom));
    }
    .kutim-doc-modal-footer .footer-left { display: none; }
    .footer-actions {
        width: 100%;
        flex-direction: row;
        gap: 8px;
    }
    .btn-action-download,
    .btn-action-open,
    .btn-action-close {
        width: auto;
        min-width: 0;
        height: 40px;
        padding: 0 12px;
        justify-content: center;
        font-size: 13px;
        white-space: nowrap;
    }
    .btn-action-download { flex: 1.4 1 0; }
    .btn-action-open { flex: 1 1 0; }
    .btn-action-close { flex: 0 0 auto; }
}
@media (max-width: 360px) {
    .footer-actions { gap: 6px; }
    .btn-action-download,
    .btn-action-open,
    .btn-action-close { padding: 0 8px; font-size: 12.5px; }
    .btn-action-download i,
    .btn-action-open i { display: none; }
}
