/* Halaman cek status permohonan / keberatan */

.ppid-cek-status-page {
    padding-bottom: 2rem;
}

.ppid-cek-status-hero {
    margin-bottom: 1.5rem;
    padding: 1rem 1.25rem;
    background: #f2f2f2;
    border-radius: 10px;
}

.ppid-cek-status-hero h1 {
    margin: 0;
    font-size: 26px !important;
    font-weight: 700;
    color: #1f2937;
    text-align: center;
}

.ppid-cek-status-card {
    max-width: 640px;
    margin: 0 auto 1.5rem;
    background: #fff;
    border: 1px solid #eef0f3;
    border-radius: 14px;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.05);
    overflow: hidden;
}

.ppid-cek-status-card-head {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1.1rem 1.35rem;
    background: linear-gradient(135deg, #fff 0%, #fafbfc 100%);
    border-bottom: 1px solid #eef0f3;
}

.ppid-cek-status-card-head i {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    font-size: 22px;
    color: #F63854;
    background: #fff5f7;
    border-radius: 12px;
}

.ppid-cek-status-card-head h2 {
    margin: 0;
    font-size: 17px;
    font-weight: 700;
    color: #1f2937;
}

.ppid-cek-status-card-head p {
    margin: 0.15rem 0 0;
    font-size: 13px;
    color: #6b7280;
}

.ppid-cek-status-card-body {
    padding: 1.35rem;
}

.ppid-cek-status-field {
    margin-bottom: 1rem;
}

.ppid-cek-status-field label {
    display: block;
    margin-bottom: 0.35rem;
    font-size: 13px;
    font-weight: 600;
    color: #374151;
}

.ppid-cek-status-field .form-control {
    border-radius: 10px;
    border-color: #e5e7eb;
    min-height: 44px;
}

.ppid-cek-status-field .form-control:focus {
    border-color: #F63854;
    box-shadow: 0 0 0 3px rgba(246, 56, 84, 0.12);
}

.ppid-cek-status-hint {
    margin-top: 0.35rem;
    font-size: 12px;
    color: #9ca3af;
}

.ppid-cek-status-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: flex-end;
    padding-top: 0.25rem;
}

.ppid-cek-status-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.55rem 1.15rem;
    font-size: 14px;
    font-weight: 600;
    border-radius: 10px;
    transition: all 0.15s ease;
}

.ppid-cek-status-btn-primary {
    color: #fff;
    background: #F63854;
    border: none;
    box-shadow: 0 4px 12px rgba(246, 56, 84, 0.25);
}

.ppid-cek-status-btn-primary:hover {
    color: #fff;
    background: #e02e48;
    transform: translateY(-1px);
}

.ppid-cek-status-btn-light {
    color: #6b7280;
    background: #f3f4f6;
    border: 1px solid #e5e7eb;
}

.ppid-cek-status-btn-light:hover {
    color: #374151;
    text-decoration: none;
    background: #e5e7eb;
}

.ppid-cek-status-result {
    max-width: 640px;
    margin: 0 auto 1.25rem;
    padding: 1rem 1.15rem;
    border-radius: 12px;
    border: 1px solid transparent;
}

.ppid-cek-status-result.is-success {
    color: #166534;
    background: #f0fdf4;
    border-color: #bbf7d0;
}

.ppid-cek-status-result.is-error {
    color: #991b1b;
    background: #fef2f2;
    border-color: #fecaca;
}

.ppid-cek-status-result-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    font-size: 15px;
    font-weight: 700;
}

.ppid-cek-status-result-body {
    font-size: 14px;
    line-height: 1.65;
    margin-bottom: 0.75rem;
}

.ppid-cek-status-result-body strong {
    color: #F63854;
}

.ppid-cek-status-result-action .btn {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.45rem 0.95rem;
    font-size: 13px;
    font-weight: 600;
    border-radius: 8px;
}

/* Modal detail */

.ppid-status-modal .modal-content {
    border: none;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 20px 48px rgba(15, 23, 42, 0.18);
}

.ppid-status-modal .modal-header {
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
    padding: 1.25rem 1.5rem;
    background: linear-gradient(135deg, #fff 0%, #fafbfc 100%);
    border-bottom: 1px solid #eef0f3;
}

.ppid-status-modal-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    font-size: 22px;
    color: #F63854;
    background: #fff5f7;
    border-radius: 12px;
    flex-shrink: 0;
}

.ppid-status-modal-heading {
    flex: 1;
    min-width: 0;
}

.ppid-status-modal-heading .modal-title {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    color: #1f2937;
}

.ppid-status-modal-subtitle {
    margin: 0.2rem 0 0;
    font-size: 13px;
    color: #6b7280;
}

.ppid-status-modal .close {
    margin: 0;
    padding: 0.25rem;
    font-size: 1.5rem;
    opacity: 0.5;
}

.ppid-status-modal .modal-body {
    padding: 1.25rem 1.5rem 1rem;
}

.ppid-status-modal-badge-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.ppid-status-modal-ticket {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.35rem 0.7rem;
    font-size: 13px;
    font-weight: 700;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    color: #1f2937;
    background: #f3f4f6;
    border-radius: 8px;
}

.ppid-status-modal-ticket-num {
    color: #F63854;
}

.ppid-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.35rem 0.75rem;
    font-size: 12px;
    font-weight: 700;
    border-radius: 999px;
}

.ppid-status-badge.is-received {
    color: #1d4ed8;
    background: #dbeafe;
}

.ppid-status-badge.is-process {
    color: #b45309;
    background: #fef3c7;
}

.ppid-status-badge.is-done {
    color: #15803d;
    background: #dcfce7;
}

.ppid-status-badge.is-rejected {
    color: #b91c1c;
    background: #fee2e2;
}

/* Vertical tracker — Gojek-style */

.ppid-status-tracker-wrap {
    margin-bottom: 1.25rem;
    padding: 1rem 1.1rem;
    background: #f9fafb;
    border: 1px solid #eef0f3;
    border-radius: 12px;
}

.ppid-status-tracker-title {
    margin: 0 0 0.85rem;
    font-size: 14px;
    font-weight: 700;
    color: #1f2937;
}

.ppid-status-tracker {
    margin: 0;
    padding: 0;
    list-style: none;
}

.ppid-status-tracker-item {
    position: relative;
    display: flex;
    gap: 0.85rem;
    padding-bottom: 1.15rem;
}

.ppid-status-tracker-item:last-child {
    padding-bottom: 0;
}

.ppid-status-tracker-item:not(:last-child)::before {
    content: '';
    position: absolute;
    left: 15px;
    top: 32px;
    bottom: 0;
    width: 2px;
    background: #e5e7eb;
}

.ppid-status-tracker-item.is-done:not(:last-child)::before {
    background: #22c55e;
}

.ppid-status-tracker-item.is-active:not(:last-child)::before {
    background: linear-gradient(to bottom, #22c55e 0%, #e5e7eb 100%);
}

.ppid-status-tracker-item.is-failed:not(:last-child)::before {
    background: linear-gradient(to bottom, #22c55e 0%, #ef4444 100%);
}

.ppid-status-tracker-dot {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    font-size: 14px;
    flex-shrink: 0;
    background: #e5e7eb;
    color: #9ca3af;
    border: 2px solid #fff;
    box-shadow: 0 0 0 1px #e5e7eb;
}

.ppid-status-tracker-item.is-done .ppid-status-tracker-dot {
    background: #22c55e;
    color: #fff;
    box-shadow: 0 0 0 1px #22c55e;
}

.ppid-status-tracker-item.is-active .ppid-status-tracker-dot {
    background: #F63854;
    color: #fff;
    box-shadow: 0 0 0 4px rgba(246, 56, 84, 0.18);
    animation: ppid-tracker-pulse 1.6s ease-in-out infinite;
}

.ppid-status-tracker-item.is-failed .ppid-status-tracker-dot {
    background: #ef4444;
    color: #fff;
    box-shadow: 0 0 0 1px #ef4444;
}

.ppid-status-tracker-item.is-pending .ppid-status-tracker-dot {
    background: #f3f4f6;
    color: #d1d5db;
}

.ppid-status-tracker-content {
    flex: 1;
    min-width: 0;
    padding-top: 0.15rem;
}

.ppid-status-tracker-label {
    display: block;
    font-size: 14px;
    font-weight: 700;
    color: #1f2937;
    line-height: 1.35;
}

.ppid-status-tracker-item.is-pending .ppid-status-tracker-label {
    color: #9ca3af;
}

.ppid-status-tracker-desc {
    display: block;
    margin-top: 0.2rem;
    font-size: 12px;
    color: #6b7280;
    line-height: 1.5;
}

.ppid-status-tracker-date {
    display: inline-block;
    margin-top: 0.35rem;
    font-size: 11px;
    font-weight: 600;
    color: #F63854;
}

.ppid-status-tracker-item.is-done .ppid-status-tracker-date {
    color: #15803d;
}

.ppid-status-modal-section-title {
    margin: 0 0 0.75rem;
    font-size: 14px;
    font-weight: 700;
    color: #1f2937;
}

@keyframes ppid-tracker-pulse {
    0%, 100% {
        box-shadow: 0 0 0 4px rgba(246, 56, 84, 0.18);
    }
    50% {
        box-shadow: 0 0 0 7px rgba(246, 56, 84, 0.08);
    }
}

.ppid-status-modal-dl {
    margin: 0;
}

.ppid-status-modal-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem 1rem;
    padding: 0.75rem 0;
    border-bottom: 1px solid #f3f4f6;
}

.ppid-status-modal-row:last-child {
    border-bottom: none;
}

.ppid-status-modal-row dt {
    flex: 0 0 36%;
    max-width: 36%;
    margin: 0;
    font-size: 13px;
    font-weight: 600;
    color: #6b7280;
}

.ppid-status-modal-row dd {
    flex: 1;
    min-width: 0;
    margin: 0;
    font-size: 14px;
    font-weight: 500;
    color: #1f2937;
    line-height: 1.55;
    word-break: break-word;
}

.ppid-status-modal-row dd.is-multiline {
    white-space: pre-wrap;
}

.ppid-status-modal-download {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.45rem 0.9rem;
    font-size: 13px;
    font-weight: 600;
    color: #fff;
    background: #F63854;
    border-radius: 8px;
    text-decoration: none;
    transition: background 0.15s ease;
}

.ppid-status-modal-download:hover {
    color: #fff;
    background: #e02e48;
    text-decoration: none;
}

.ppid-status-modal .modal-footer {
    padding: 0.85rem 1.5rem 1.15rem;
    border-top: 1px solid #eef0f3;
    background: #fafbfc;
}

.ppid-status-modal .modal-footer .btn-secondary {
    border-radius: 10px;
    padding: 0.5rem 1.1rem;
    font-weight: 600;
}

@media (max-width: 767.98px) {
    .ppid-cek-status-card-body {
        padding: 1rem;
    }

    .ppid-status-modal-row dt {
        flex: 0 0 100%;
        max-width: 100%;
    }

    .ppid-status-modal .modal-header,
    .ppid-status-modal .modal-body,
    .ppid-status-modal .modal-footer {
        padding-left: 1rem;
        padding-right: 1rem;
    }
}
