/* Daftar Informasi Publik */

.ppid-info-page {
    padding-bottom: 2.5rem;
}

.ppid-info-breadcrumb {
    margin-bottom: 1.25rem;
}

.ppid-info-breadcrumb .breadcrumb {
    margin: 0;
    padding: 0;
    background: transparent;
    font-size: 0.8125rem;
}

.ppid-info-breadcrumb .breadcrumb-item a {
    color: #6b7280;
    text-decoration: none;
}

.ppid-info-breadcrumb .breadcrumb-item a:hover {
    color: #9b1428;
}

.ppid-info-breadcrumb .breadcrumb-item.active {
    color: #374151;
    font-weight: 500;
}

.ppid-info-breadcrumb .breadcrumb-item + .breadcrumb-item::before {
    color: #d1d5db;
}

.ppid-info-hero {
    margin-bottom: 1.25rem;
    padding: 1.25rem 1.5rem;
    background: #f2f2f2;
    border-radius: 12px;
}

.ppid-info-hero h1 {
    margin: 0;
    font-size: 1.625rem !important;
    font-weight: 700;
    color: #1f2937;
    letter-spacing: -0.02em;
}

.ppid-info-hero p {
    margin: 0.4rem 0 0;
    font-size: 0.875rem;
    color: #6b7280;
}

.ppid-info-category-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.25rem;
}

.ppid-info-category-tab {
    display: inline-flex;
    align-items: center;
    padding: 0.45rem 0.85rem;
    font-size: 0.8125rem;
    font-weight: 500;
    color: #4b5563;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 999px;
    text-decoration: none;
    transition: all 0.15s ease;
}

.ppid-info-category-tab:hover {
    color: #1f2937;
    border-color: #d1d5db;
    text-decoration: none;
    background: #fafafa;
}

.ppid-info-category-tab.is-active {
    color: #fff;
    background: #9b1428;
    border-color: #9b1428;
}

.ppid-info-layout {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 1.25rem;
    align-items: start;
}

.ppid-info-sidebar-card {
    background: #fff;
    border: 1px solid #eef0f3;
    border-radius: 14px;
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.04);
    overflow: hidden;
    margin-bottom: 1rem;
}

.ppid-info-sidebar-card:last-child {
    margin-bottom: 0;
}

.ppid-info-sidebar-sticky {
    position: sticky;
    top: 88px;
}

.ppid-info-sidebar-head {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.95rem 1.1rem;
    border-bottom: 1px solid #f3f4f6;
    background: #fafbfc;
}

.ppid-info-sidebar-head i {
    font-size: 1.15rem;
    color: #9b1428;
}

.ppid-info-sidebar-head h2 {
    margin: 0;
    font-size: 0.9375rem;
    font-weight: 600;
    color: #1f2937;
}

.ppid-info-sidebar-body {
    padding: 1.1rem;
}

.ppid-info-field {
    margin-bottom: 0.85rem;
}

.ppid-info-field label {
    display: block;
    margin-bottom: 0.35rem;
    font-size: 0.8125rem;
    font-weight: 500;
    color: #374151;
}

.ppid-info-field .form-control,
.ppid-info-field .select2-container .select2-selection--single {
    min-height: 42px;
    border: 1px solid #e5e7eb !important;
    border-radius: 10px !important;
    font-size: 0.875rem;
}

.ppid-info-field .select2-container .select2-selection--single .select2-selection__rendered {
    line-height: 40px !important;
    padding-left: 12px;
    color: #374151;
}

.ppid-info-field .select2-container .select2-selection--single .select2-selection__arrow {
    height: 40px !important;
}

.ppid-info-actions {
    display: grid;
    gap: 0.5rem;
    margin-top: 1rem;
}

.ppid-info-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    width: 100%;
    min-height: 42px;
    padding: 0.55rem 1rem;
    font-size: 0.875rem;
    font-weight: 500;
    border-radius: 10px;
    border: 1px solid transparent;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.ppid-info-btn-primary {
    color: #fff;
    background: #9b1428;
    border-color: #9b1428;
}

.ppid-info-btn-primary:hover {
    color: #fff;
    background: #7f1021;
    text-decoration: none;
}

.ppid-info-btn-light {
    color: #4b5563;
    background: #f3f4f6;
    border-color: #e5e7eb;
}

.ppid-info-btn-light:hover {
    color: #1f2937;
    background: #e5e7eb;
}

.ppid-info-stat-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.45rem 0;
    font-size: 0.8125rem;
    color: #4b5563;
}

.ppid-info-stat-row strong {
    color: #1f2937;
    font-weight: 600;
}

.ppid-info-stat-total {
    margin-top: 0.65rem;
    padding-top: 0.75rem;
    border-top: 1px solid #f3f4f6;
    font-weight: 600;
    color: #1f2937;
}

.ppid-info-results-card {
    background: #fff;
    border: 1px solid #eef0f3;
    border-radius: 14px;
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.04);
    overflow: hidden;
}

.ppid-info-results-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid #f3f4f6;
    background: linear-gradient(180deg, #fff 0%, #fafbfc 100%);
}

.ppid-info-results-head h2 {
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
    color: #1f2937;
}

.ppid-info-results-head .ppid-info-btn {
    width: auto;
    min-height: 38px;
    padding-left: 1rem;
    padding-right: 1rem;
}

.ppid-info-doc-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.ppid-info-doc-item {
    display: grid;
    grid-template-columns: 42px 1fr auto;
    gap: 0.85rem;
    align-items: center;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid #f3f4f6;
    transition: background 0.15s ease;
}

.ppid-info-doc-item:last-child {
    border-bottom: 0;
}

.ppid-info-doc-item:hover {
    background: #fafafa;
}

.ppid-info-doc-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    font-size: 0.8125rem;
    font-weight: 600;
    color: #6b7280;
    background: #f3f4f6;
    border-radius: 10px;
}

.ppid-info-doc-main {
    min-width: 0;
}

.ppid-info-doc-title {
    display: block;
    margin: 0 0 0.25rem;
    font-size: 0.9375rem;
    font-weight: 600;
    color: #1f2937;
    text-decoration: none;
    line-height: 1.4;
}

.ppid-info-doc-title:hover {
    color: #9b1428;
    text-decoration: none;
}

.ppid-info-doc-opd {
    margin: 0 0 0.35rem;
    font-size: 0.8125rem;
    color: #6b7280;
}

.ppid-info-doc-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
}

.ppid-info-doc-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.15rem 0.5rem;
    font-size: 0.6875rem;
    font-weight: 500;
    color: #6b7280;
    background: #f9fafb;
    border: 1px solid #eef0f3;
    border-radius: 999px;
}

.ppid-info-doc-action .ppid-info-btn {
    width: auto;
    min-height: 36px;
    padding: 0.4rem 0.85rem;
    font-size: 0.8125rem;
    white-space: nowrap;
}

.ppid-info-empty {
    padding: 3rem 1.5rem;
    text-align: center;
}

.ppid-info-empty i {
    font-size: 2.5rem;
    color: #d1d5db;
    margin-bottom: 0.75rem;
}

.ppid-info-empty p {
    margin: 0;
    font-size: 0.9375rem;
    color: #9ca3af;
}

.ppid-info-pagination {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 1rem 1.25rem;
    border-top: 1px solid #f3f4f6;
    background: #fafbfc;
    font-size: 0.8125rem;
    color: #6b7280;
}

.ppid-info-pagination .pagination {
    margin: 0;
}

.ppid-info-pagination .page-link {
    border-radius: 8px;
    margin: 0 2px;
    color: #4b5563;
    border-color: #e5e7eb;
    font-size: 0.8125rem;
}

.ppid-info-pagination .page-item.active .page-link {
    background: #9b1428;
    border-color: #9b1428;
}

/* Modal identitas */
.ppid-info-modal .modal-content {
    border: 1px solid #eef0f3;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(15, 23, 42, 0.12);
}

.ppid-info-modal .modal-header {
    padding: 1.1rem 1.25rem;
    background: #fafbfc;
    border-bottom: 1px solid #f3f4f6;
}

.ppid-info-modal .modal-title {
    font-size: 1rem;
    font-weight: 600;
    color: #1f2937;
}

.ppid-info-modal .modal-body {
    padding: 1.25rem;
}

.ppid-info-modal .form-group label {
    font-size: 0.8125rem;
    font-weight: 500;
    color: #374151;
}

.ppid-info-modal .form-control {
    min-height: 42px;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    font-size: 0.875rem;
}

.ppid-info-modal .form-control:focus {
    border-color: #cbd5e1;
    box-shadow: 0 0 0 3px rgba(155, 20, 40, 0.1);
}

.ppid-info-modal .modal-footer {
    padding: 1rem 1.25rem;
    border-top: 1px solid #f3f4f6;
    background: #fafbfc;
}

.ppid-info-modal .custom-control-label {
    font-size: 0.8125rem;
    color: #4b5563;
}

@media (max-width: 991.98px) {
    .ppid-info-layout {
        grid-template-columns: 1fr;
    }

    .ppid-info-sidebar-sticky {
        position: static;
    }

    .ppid-info-doc-item {
        grid-template-columns: 36px 1fr;
    }

    .ppid-info-doc-action {
        grid-column: 2;
        margin-top: 0.35rem;
    }

    .ppid-info-doc-action .ppid-info-btn {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 575.98px) {
    .ppid-info-hero {
        padding: 1rem 1.15rem;
    }

    .ppid-info-hero h1 {
        font-size: 1.375rem !important;
    }

    .ppid-info-results-head {
        flex-direction: column;
        align-items: stretch;
    }

    .ppid-info-results-head .ppid-info-btn {
        width: 100%;
    }
}
