/* Pending approvals — mobile-first manager queue (Alpine + DaisyUI) */

html[data-theme='light'] .ec-pending-page,
.ec-pending-page {
    color-scheme: light;
}

.ec-pending-page .card,
.ec-pending-page .card-body {
    background-color: #ffffff;
    color: #1f2937;
}

.ec-pending-page .ec-filter-chip {
    min-height: 44px;
    padding: 0.5rem 0.875rem;
    font-size: 0.875rem;
    border-radius: 9999px;
    border: 1px solid #d1d5db;
    background: #fff;
    color: #374151;
}

.ec-pending-page .ec-filter-chip-active {
    border-color: #06C755;
    background: #F0FBF4;
    color: #047857;
    font-weight: 600;
}

.ec-pending-page .ec-pending-card {
    min-height: 88px;
}

@media (max-width: 639px) {
    .ec-pending-page .ec-pending-card .ec-pending-card-body {
        flex-direction: column;
        align-items: stretch;
    }

    .ec-pending-page .ec-pending-card .btn-view {
        width: 100%;
    }
}

@media (max-width: 639px) {
    .ec-pending-page .modal.modal-bottom .modal-box {
        width: 100%;
        max-width: none;
        margin: 0;
        border-bottom-left-radius: 0;
        border-bottom-right-radius: 0;
        max-height: 92vh;
    }
}

.ec-pending-page .ec-doc-thumb {
    aspect-ratio: 4 / 3;
    object-fit: cover;
}

.ec-pending-page .ec-doc-thumb-btn {
    cursor: zoom-in;
    -webkit-tap-highlight-color: rgba(6, 199, 85, 0.15);
}

.ec-pending-page .ec-doc-expandable {
    pointer-events: none;
}

.ec-pending-page .ec-doc-thumb-btn:active .ec-doc-expandable {
    opacity: 0.92;
}

.ec-doc-lightbox {
    touch-action: manipulation;
}

.ec-doc-lightbox-img {
    touch-action: pinch-zoom;
}

.ec-doc-lightbox-close {
    min-width: 44px;
    min-height: 44px;
}

[x-cloak] {
    display: none !important;
}

.ec-pending-page .btn-primary {
    background-color: var(--line-green, #06C755);
    border-color: var(--line-green, #06C755);
}

.ec-pending-page .btn-primary:hover {
    background-color: #05a847;
    border-color: #05a847;
}

/* E1 elderly registration workflow stepper (minimal) */
.ec-pending-page .ec-workflow-stepper {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.25rem;
    margin-bottom: 1rem;
    padding: 0.75rem 0.25rem;
    border-radius: 0.75rem;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
}

.ec-pending-page .ec-workflow-step {
    flex: 1 1 0;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
}

.ec-pending-page .ec-workflow-step:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 1rem;
    left: calc(50% + 1rem);
    right: calc(-50% + 1rem);
    height: 2px;
    background: #d1d5db;
    z-index: 0;
}

.ec-pending-page .ec-workflow-step.ec-workflow-step-done:not(:last-child)::after {
    background: #06C755;
}

.ec-pending-page .ec-workflow-step-marker {
    position: relative;
    z-index: 1;
    width: 2rem;
    height: 2rem;
    border-radius: 9999px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
    border: 2px solid #d1d5db;
    background: #fff;
    color: #9ca3af;
}

.ec-pending-page .ec-workflow-step-done .ec-workflow-step-marker {
    border-color: #06C755;
    background: #06C755;
    color: #fff;
}

.ec-pending-page .ec-workflow-step-active .ec-workflow-step-marker {
    border-color: #06C755;
    color: #047857;
    box-shadow: 0 0 0 3px rgba(6, 199, 85, 0.2);
}

.ec-pending-page .ec-workflow-step-label {
    margin-top: 0.375rem;
    font-size: 0.6875rem;
    line-height: 1.25;
    color: #6b7280;
    max-width: 5.5rem;
}

.ec-pending-page .ec-workflow-step-active .ec-workflow-step-label {
    color: #047857;
    font-weight: 600;
}

.ec-pending-page .ec-workflow-step-done .ec-workflow-step-label {
    color: #374151;
}

.ec-pending-page .ec-form-summary-section {
    margin-bottom: 0.75rem;
    padding: 0.75rem;
    border-radius: 0.5rem;
    border: 1px solid #e5e7eb;
    background: #fff;
}

.ec-pending-page .ec-form-summary-section h3 {
    font-size: 0.875rem;
    font-weight: 600;
    color: #374151;
    margin-bottom: 0.5rem;
}

.ec-pending-page .ec-form-summary-row {
    font-size: 0.875rem;
    line-height: 1.5;
    margin-bottom: 0.25rem;
}

.ec-pending-page .ec-pdf-download-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 48px;
    margin-top: 0.75rem;
    margin-bottom: 0.5rem;
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    background: #06C755;
    color: #fff;
    font-weight: 600;
    text-decoration: none;
    border: none;
    cursor: pointer;
}

.ec-pending-page .ec-pdf-download-btn:hover {
    background: #05a847;
    color: #fff;
}

.ec-pending-page .ec-pdf-missing-note {
    margin-top: 0.75rem;
    font-size: 0.8125rem;
    color: #6b7280;
    line-height: 1.45;
}
