/* --- SCOPED CSS FOR PAYMENT MANAGEMENT PAGE --- */
.pm-wrapper {
    font-family: 'Inter', 'Segoe UI', sans-serif;
    margin-bottom: 32px;
}

/* ── Page Header ── */
.pm-page-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 18px;
}

.pm-title-block h1 {
    font-size: 20px;
    font-weight: 700;
    color: #111827;
    margin: 0 0 4px 0;
}

.pm-title-block p {
    font-size: 13px;
    color: #6B7280;
    margin: 0;
}

.pm-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

/* ── Buttons ── */
.pm-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    border: 1px solid transparent;
    transition: background-color 0.15s, color 0.15s;
    font-family: inherit;
    white-space: nowrap;
}

.pm-btn-outline {
    background-color: #FFFFFF;
    border-color: #E5E7EB;
    color: #4B5563;
}

    .pm-btn-outline:hover {
        background-color: #F9FAFB;
        color: #1F2937;
    }

.pm-btn-green {
    background-color: #16A34A;
    border-color: #16A34A;
    color: #FFFFFF;
    padding: 10px 22px;
    font-size: 13px;
}

    .pm-btn-green:hover {
        background-color: #15803D;
        border-color: #15803D;
    }

/* ── KPI Cards ── */
.pm-kpi-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 18px;
}

.pm-kpi-grid-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.pm-kpi-grid-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.pm-kpi-card {
    border-radius: 10px;
    padding: 14px 18px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    border: 1px solid #E5E7EB;
    border-left-width: 4px;
    min-height: 80px;
    min-width: 0;
}

.pm-kpi-purple {
    border-left-color: #380EB3 !important;
    border-color: #E9D5FF;
    background: linear-gradient(90deg, #FFFFFF 0%, #F3E8FF 100%);
}

.pm-kpi-pink {
    border-left-color: #B30EA6 !important;
    border-color: #FBCFE8;
    background: linear-gradient(90deg, #FFFFFF 0%, #FCE7F3 100%);
}

.pm-kpi-green {
    border-left-color: #0EB353 !important;
    border-color: #BBF7D0;
    background: linear-gradient(90deg, #FFFFFF 0%, #DCFCE7 100%);
}

.pm-kpi-orange {
    border-left-color: #B3350E !important;
    border-color: #FED7AA;
    background: linear-gradient(90deg, #FFFFFF 0%, #FFEDD5 100%);
}

.pm-kpi-red {
    border-left-color: #B30E0E !important;
    border-color: #FECACA;
    background: linear-gradient(90deg, #FFFFFF 0%, #FEE2E2 100%);
}

.pm-kpi-yellow {
    border-left-color: #B39B0E !important;
    border-color: #FEF08A;
    background: linear-gradient(90deg, #FFFFFF 0%, #FEF9C3 100%);
}

.pm-kpi-info {
    min-width: 0;
}

.pm-kpi-label {
    font-size: 13px;
    color: #4B5563;
    font-weight: 500;
    margin-bottom: 4px;
}

.pm-kpi-value {
    font-size: 24px;
    font-weight: 700;
    color: #111827;
    line-height: 1.1;
}

.pm-kpi-icon {
    width: 38px;
    height: 38px;
    border-radius: 8px;
    background-color: #FFFFFF;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 17px;
}

.pm-kpi-purple .pm-kpi-icon {
    color: #9333EA;
}

.pm-kpi-pink .pm-kpi-icon {
    color: #DB2777;
}

.pm-kpi-green .pm-kpi-icon {
    color: #16A34A;
}

.pm-kpi-orange .pm-kpi-icon {
    color: #EA580C;
}

.pm-kpi-red .pm-kpi-icon {
    color: #DC2626;
}

.pm-kpi-yellow .pm-kpi-icon {
    color: #CA8A04;
}

/* ── Tabs Bar ── */
.pm-tabs-bar {
    background-color: #ECECF0;
    border-radius: 8px;
    padding: 5px;
    display: flex;
    gap: 4px;
    margin-bottom: 16px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.pm-tab {
    padding: 9px 18px;
    border-radius: 6px;
    border: none;
    background-color: transparent;
    color: #6B7280;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.15s;
    font-family: inherit;
    white-space: nowrap;
}

    .pm-tab:hover {
        color: #1F2937;
    }

.pm-tab-active {
    background-color: #FFFFFF;
    color: #1F2937;
    font-weight: 600;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

/* ── Card ── */
.pm-card {
    background-color: #FFFFFF;
    border: 1px solid #E5E7EB;
    border-radius: 12px;
    padding: 18px 20px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.02);
}

/* ── Table Head ── */
.pm-table-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 14px;
    margin-bottom: 16px;
}

.pm-table-title {
    font-size: 16px;
    font-weight: 700;
    color: #1F2937;
    margin: 0;
}

.pm-table-tools {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

/* ── Form Controls ── */
.pm-control {
    appearance: none;
    border: 1px solid #E5E7EB;
    border-radius: 6px;
    padding: 8px 12px;
    font-size: 12px;
    color: #374151;
    font-family: inherit;
    outline: none;
    width: 100%;
    transition: border-color 0.15s;
}

    .pm-control::placeholder {
        color: #9CA3AF;
    }

    .pm-control:focus {
        border-color: #3B82F6;
        background-color: #FFFFFF;
    }

.pm-input-with-icon {
    position: relative;
}

    .pm-input-with-icon .pm-control,
    .pm-input-with-icon .pm-modal-input {
        padding-right: 32px;
    }

.pm-input-icon {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #9CA3AF;
    pointer-events: none;
    font-size: 13px;
}

.pm-select {
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%239ca3af' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
}

/* ── Table Tools — higher specificity ── */
.pm-table-tools .pm-search {
    position: relative;
    width: 220px;
    flex: 0 0 auto;
}

    .pm-table-tools .pm-search i {
        position: absolute;
        left: 12px;
        top: 50%;
        transform: translateY(-50%);
        color: #9CA3AF;
        font-size: 13px;
    }

    .pm-table-tools .pm-search input {
        width: 100%;
        background-color: #F9FAFB;
        border: 1px solid #E5E7EB;
        border-radius: 6px;
        padding: 8px 12px 8px 34px;
        font-size: 12px;
        color: #374151;
        outline: none;
        font-family: inherit;
    }

        .pm-table-tools .pm-search input::placeholder {
            color: #9CA3AF;
        }

        .pm-table-tools .pm-search input:focus {
            border-color: #3B82F6;
            background-color: #FFFFFF;
        }

.pm-table-tools .pm-tool-select {
    width: 130px;
    flex: 0 0 auto;
    padding: 8px 30px 8px 12px;
    font-size: 12px;
}

.pm-table-tools .pm-tool-date {
    width: 130px;
    flex: 0 0 auto;
}

    .pm-table-tools .pm-tool-date .pm-control {
        width: 100%;
        padding: 8px 32px 8px 12px;
        font-size: 12px;
    }

/* ── Table ── */
.pm-table-wrap {
    border: 1px solid #E5E7EB;
    border-radius: 10px;
    overflow: hidden;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.pm-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 900px;
}

    .pm-table thead th {
        background-color: #F9FAFB;
        color: #374151;
        font-size: 12px;
        font-weight: 700;
        padding: 14px 16px;
        text-align: center;
        border-bottom: 1px solid #E5E7EB;
        white-space: nowrap;
    }

    .pm-table tbody td {
        font-size: 13px;
        color: #1F2937;
        padding: 16px;
        text-align: center;
        border-bottom: 1px solid #F3F4F6;
        vertical-align: middle;
    }

    .pm-table tbody tr:last-child td {
        border-bottom: none;
    }

    .pm-table tbody tr:hover {
        background-color: #FAFAFA;
    }

.pm-avatar-cell {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.pm-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.pm-scheme {
    color: #16A34A !important;
    font-weight: 500;
}

.pm-id-red {
    color: #DC2626 !important;
    font-weight: 500;
}

/* ── Status Pills ── */
.pm-pill {
    display: inline-block;
    padding: 4px 14px;
    border-radius: 99px;
    font-size: 11px;
    font-weight: 600;
    white-space: nowrap;
}

.pm-pill-orange {
    background-color: #FED7AA;
    color: #C2410C;
}

.pm-pill-purple {
    background-color: #E9D5FF;
    color: #7C3AED;
}

.pm-pill-green {
    background-color: #BBF7D0;
    color: #15803D;
}

.pm-pill-red {
    background-color: #FECACA;
    color: #B91C1C;
}

/* ── SLA inline colors ── */
.pm-sla-red {
    color: #DC2626;
    font-weight: 600;
}

.pm-sla-green {
    color: #16A34A;
    font-weight: 600;
}

.pm-sla-orange {
    color: #EA580C;
    font-weight: 600;
}

/* ── Action Button ── */
.pm-action-btn {
    background: none;
    border: none;
    color: #3B82F6;
    font-size: 16px;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 4px;
    transition: background-color 0.15s;
}

    .pm-action-btn:hover {
        background-color: #EFF6FF;
    }

/* ── Pagination ── */
.pm-pagination {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-top: 18px;
    flex-wrap: wrap;
}

.pm-page-size {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: #6B7280;
}

    .pm-page-size .pm-page-select {
        width: 70px;
        padding: 6px 26px 6px 10px;
        font-size: 12px;
    }

.pm-page-controls {
    display: flex;
    align-items: center;
    gap: 4px;
}

.pm-page-btn {
    min-width: 30px;
    height: 30px;
    padding: 0 6px;
    background-color: #FFFFFF;
    border: 1px solid #E5E7EB;
    border-radius: 6px;
    font-size: 12px;
    color: #4B5563;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s;
    font-family: inherit;
}

    .pm-page-btn:hover {
        background-color: #F9FAFB;
    }

.pm-page-active {
    border-color: #2563EB;
    color: #2563EB;
    font-weight: 700;
}

.pm-page-ellipsis {
    color: #9CA3AF;
    padding: 0 4px;
}

/* ═══════════════════════════════════════════
   PAYMENT DETAILS MODAL
   ═══════════════════════════════════════════ */
.pm-modal-backdrop {
    position: fixed;
    inset: 0;
    background-color: rgba(15, 23, 42, 0.5);
    z-index: 1050;
    display: flex;
    align-items: stretch; 
    justify-content: flex-end; 
    padding: 0; 
    overflow: hidden;
    animation: pm-fade-in 0.2s ease-out;
}

@keyframes pm-fade-in {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.pm-modal {
    background-color: #FFFFFF;
    border-radius: 14px 0 0 14px; 
    width: 100%;
    max-width: 960px; 
    height: 100vh; 
    max-height: 100vh;
    display: flex;
    flex-direction: column;
    box-shadow: -20px 0 50px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    animation: pm-slide-in-right 0.3s ease-out;
}

@keyframes pm-slide-in-right {
    from {
        transform: translateX(100%);
    }

    to {
        transform: translateX(0);
    }
}


/* Modal Header */
.pm-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 18px 24px;
    background-color: #F9FAFB;
    border-bottom: 1px solid #E5E7EB;
    flex-shrink: 0;
}

.pm-modal-title-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 4px;
}

.pm-modal-title {
    font-size: 18px;
    font-weight: 700;
    color: #111827;
    margin: 0;
}

.pm-modal-subtitle {
    font-size: 12px;
    color: #6B7280;
    margin: 0;
}

.pm-modal-close {
    background: none;
    border: none;
    color: #6B7280;
    font-size: 22px;
    cursor: pointer;
    padding: 4px;
    line-height: 1;
    transition: color 0.15s;
}

    .pm-modal-close:hover {
        color: #1F2937;
    }

/* Modal Body */
.pm-modal-body {
    padding: 20px 24px 24px 24px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    flex: 1;
}

/* ── Stepper ── */
.pm-stepper-card {
    background-color: #FFFFFF;
    border: 1px solid #E5E7EB;
    border-radius: 10px;
    padding: 16px;
    margin-bottom: 22px;
}

.pm-stepper {
    display: flex;
    align-items: center;
    gap: 8px;
}

.pm-step {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.pm-step-circle {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-color: #DCFCE7;
    color: #16A34A;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    flex-shrink: 0;
    border: 2px solid #BBF7D0;
}

.pm-step-info {
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.pm-step-name {
    font-size: 13px;
    font-weight: 700;
    color: #111827;
}

.pm-step-status {
    font-size: 11px;
    color: #16A34A;
    font-weight: 600;
}

.pm-step-date {
    font-size: 10px;
    color: #6B7280;
}

.pm-step-time {
    font-size: 10px;
    color: #6B7280;
}

.pm-step-line {
    flex: 1;
    min-width: 16px;
    height: 2px;
    background-color: #BBF7D0;
    align-self: center;
}

/* ── Modal Sections ── */
.pm-modal-section {
    margin-bottom: 22px;
}

.pm-section-title {
    font-size: 14px;
    font-weight: 700;
    color: #111827;
    margin: 0 0 10px 0;
}

/* ── Field Grid ── */
.pm-field-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.pm-field {
    background-color: #F9FAFB;
    border: 1px solid #F3F4F6;
    border-radius: 8px;
    padding: 12px 14px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.pm-field-full {
    grid-column: 1 / -1;
    margin-top: 10px;
}

.pm-field-label {
    font-size: 11px;
    color: #16A34A;
    font-weight: 600;
}

.pm-field-value {
    font-size: 13px;
    color: #111827;
    font-weight: 600;
    word-break: break-word;
}

/* ── Payment Details section (amount box + 2x2 form) ── */
.pm-payment-grid {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 14px;
    align-items: stretch;
}

.pm-payment-amount-box {
    background-color: #F9FAFB;
    border: 1px solid #F3F4F6;
    border-radius: 8px;
    padding: 18px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 6px;
    text-align: center;
}

.pm-payment-amount {
    font-size: 22px;
    font-weight: 700;
    color: #111827;
}

.pm-payment-fields {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.pm-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.pm-form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
}

.pm-form-label {
    font-size: 12px;
    font-weight: 600;
    color: #374151;
}

.pm-modal-input {
    appearance: none;
    background-color: #F9FAFB;
    border: 1px solid #E5E7EB;
    border-radius: 8px;
    padding: 10px 12px;
    font-size: 13px;
    color: #374151;
    font-family: inherit;
    outline: none;
    width: 100%;
    transition: border-color 0.15s, box-shadow 0.15s;
}

    .pm-modal-input::placeholder {
        color: #9CA3AF;
    }

    .pm-modal-input:focus {
        border-color: #3B82F6;
        background-color: #FFFFFF;
        box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
    }

select.pm-modal-input {
    padding-right: 32px;
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%239ca3af' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
}

/* ── Upload + Remarks ── */
.pm-upload-remarks-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin-bottom: 22px;
    align-items: start;
}

.pm-upload-zone {
    border: 2px dashed #BBF7D0;
    background-color: #F0FDF4;
    border-radius: 10px;
    padding: 22px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    transition: border-color 0.15s, background-color 0.15s;
    text-align: center;
}

    .pm-upload-zone:hover {
        border-color: #16A34A;
        background-color: #DCFCE7;
    }

.pm-upload-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #16A34A;
    color: #FFFFFF;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    margin-bottom: 4px;
}

.pm-upload-text {
    font-size: 13px;
    color: #374151;
    font-weight: 500;
}

.pm-upload-hint {
    font-size: 11px;
    color: #6B7280;
}

.pm-textarea {
    resize: vertical;
    min-height: 100px;
    padding: 10px 12px;
    line-height: 1.5;
}

/* ── Modal Actions ── */
.pm-modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding-top: 8px;
}

/* ═══════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════ */
@media (max-width: 1280px) {
    .pm-kpi-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .pm-kpi-grid-4 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 1024px) {
    .pm-kpi-grid,
    .pm-kpi-grid-3 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .pm-table-tools .pm-search {
        width: 180px;
    }
}

@media (max-width: 768px) {
    .pm-page-header {
        flex-direction: column;
    }

    .pm-title-block h1 {
        font-size: 17px;
    }

    .pm-actions {
        width: 100%;
    }

        .pm-actions .pm-btn {
            flex: 1;
            min-width: 0;
        }

    .pm-table-head {
        flex-direction: column;
        align-items: stretch;
    }

    .pm-table-tools {
        flex-wrap: wrap;
        gap: 8px;
    }

        .pm-table-tools .pm-search {
            width: 100%;
            flex: 1 1 100%;
        }

        .pm-table-tools .pm-tool-select,
        .pm-table-tools .pm-tool-date {
            flex: 1 1 calc(50% - 4px);
            width: auto;
        }

    .pm-card {
        padding: 14px;
    }

    .pm-pagination {
        flex-direction: column;
        align-items: stretch;
    }

    .pm-page-controls {
        justify-content: center;
        flex-wrap: wrap;
    }

    /* Modal */
   /* .pm-modal-backdrop {
        padding: 0;
    }*/

    .pm-modal {
        max-width: 100%;
        border-radius: 0;
        box-shadow: none;
    }

    .pm-modal-header {
        padding: 14px 16px;
    }

    .pm-modal-body {
        padding: 16px;
    }

    .pm-field-grid {
        grid-template-columns: 1fr;
    }

    .pm-payment-grid {
        grid-template-columns: 1fr;
    }

    .pm-payment-amount-box {
        padding: 14px;
    }

    .pm-form-row {
        grid-template-columns: 1fr;
    }

    .pm-upload-remarks-grid {
        grid-template-columns: 1fr;
    }

    .pm-modal-actions {
        flex-direction: column-reverse;
    }

        .pm-modal-actions .pm-btn {
            width: 100%;
        }
}

@media (max-width: 480px) {
    .pm-kpi-grid,
    .pm-kpi-grid-3,
    .pm-kpi-grid-4 {
        grid-template-columns: 1fr;
    }

    .pm-kpi-card {
        padding: 12px 14px;
    }

    .pm-kpi-value {
        font-size: 22px;
    }

    .pm-tab {
        font-size: 12px;
        padding: 7px 12px;
    }

    .pm-table thead th,
    .pm-table tbody td {
        padding: 12px;
        font-size: 12px;
    }

    .pm-pill {
        font-size: 10px;
        padding: 3px 10px;
    }

    .pm-table-tools .pm-tool-select,
    .pm-table-tools .pm-tool-date {
        flex: 1 1 100%;
    }

    .pm-modal-title {
        font-size: 16px;
    }

    .pm-step-name {
        font-size: 12px;
    }
}
/* ═══════════════════════════════════════════
   CENTERED DIALOG POPUPS (Confirm & Success)
   ═══════════════════════════════════════════ */
.pm-dialog-backdrop {
    position: fixed;
    inset: 0;
    background-color: rgba(15, 23, 42, 0.5);
    z-index: 1100;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    animation: pm-fade-in 0.2s ease-out;
}

.pm-dialog-container {
    background-color: #FFFFFF;
    border-radius: 12px;
    width: 100%;
    max-width: 480px;
    padding: 28px 24px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    display: flex;
    flex-direction: column;
    align-items: center;
    animation: pm-scale-in 0.2s ease-out;
}

@keyframes pm-scale-in {
    from {
        transform: scale(0.95);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

.pm-dialog-icon {
    width: 64px;
    height: 64px;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

    .pm-dialog-icon img {
        max-width: 100%;
        max-height: 100%;
        object-fit: contain;
    }

.pm-dialog-title {
    font-size: 18px;
    font-weight: 700;
    color: #16A34A;
    margin: 0 0 8px 0;
    text-align: center;
}

.pm-dialog-desc {
    font-size: 13px;
    color: #4B5563;
    text-align: center;
    margin: 0 0 20px 0;
    line-height: 1.5;
}

.pm-dialog-summary {
    background-color: #F9FAFB;
    border: 1px solid #F3F4F6;
    border-radius: 8px;
    width: 100%;
    padding: 16px;
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.pm-dialog-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    font-size: 13px;
}

.pm-dialog-label {
    color: #9CA3AF;
    font-weight: 500;
}

.pm-dialog-value {
    color: #4B5563;
    font-weight: 600;
    text-align: right;
}

    .pm-dialog-value.text-green {
        color: #16A34A;
    }

.pm-dialog-warning {
    background-color: #FFF7ED;
    border: 1px solid #FFEDD5;
    border-radius: 8px;
    padding: 14px 16px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    width: 100%;
    margin-bottom: 24px;
}

    .pm-dialog-warning i {
        color: #EA580C;
        font-size: 18px;
        line-height: 1;
        margin-top: 2px;
    }

    .pm-dialog-warning p {
        margin: 0;
        font-size: 13px;
        color: #C2410C;
        line-height: 1.5;
        font-weight: 500;
    }

.pm-dialog-actions {
    display: flex;
    gap: 12px;
    width: 100%;
}

    .pm-dialog-actions .pm-btn {
        flex: 1;
        padding: 10px 16px;
        font-size: 13px;
    }

    /* Specific button tweak for the dialog */
    .pm-dialog-actions .pm-btn-outline {
        border-color: #D1D5DB;
        color: #374151;
    }

        .pm-dialog-actions .pm-btn-outline:hover {
            background-color: #F3F4F6;
        }
/* ── Horizontal Stepper ── */
.pm-stepper-horizontal {
    display: flex;
    align-items: center;
    background-color: #FFFFFF;
    border: 1px solid #E5E7EB;
    border-radius: 12px;
    padding: 20px 24px;
    margin-bottom: 24px;
    overflow-x: auto;
}

.pm-step-horiz {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.pm-step-circle-lg {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}

.pm-circle-green {
    border: 2px solid #BBF7D0;
    background-color: #F0FDF4;
    color: #16A34A;
}

.pm-circle-purple {
    border: 2px solid #E9D5FF;
    background-color: #F5F3FF;
    color: #7C3AED;
}

.pm-circle-gray {
    border: 2px solid #E5E7EB;
    background-color: #F3F4F6;
    color: #9CA3AF;
}

.pm-step-details {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.pm-step-title {
    font-size: 14px;
    font-weight: 700;
    color: #111827;
}

.pm-step-subtitle {
    font-size: 10px;
    color: #16A34A;
    font-weight: 600;
}

.pm-step-meta {
    font-size: 10px;
    color: #6B7280;
}

.pm-step-line-horiz {
    height: 2px;
    width: 40px;
    margin: 0 16px;
    background-color: #16A34A;
    flex-shrink: 0;
}

.pm-step-line-gray {
    background-color: #E5E7EB;
}

/* ── Light Purple Pill ── */
.pm-pill-purple-light {
    background-color: #E0E7FF;
    color: #4F46E5;
}

/* ── Alert Box & Buttons ── */
.pm-alert-red {
    background-color: #FEF2F2;
    border: 1px solid #FECACA;
    border-radius: 8px;
    padding: 14px 16px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: #DC2626;
    font-size: 12px;
    font-weight: 500;
    margin-bottom: 24px;
}

.pm-btn-outline-red {
    background-color: #FFFFFF;
    border-color: #FCA5A5;
    color: #DC2626;
}

    .pm-btn-outline-red:hover {
        background-color: #FEF2F2;
    }


/* ── Light Pills ── */
.pm-pill-orange-light {
    background-color: #FFEDD5;
    color: #EA580C;
}

.pm-pill-green-light {
    background-color: #DCFCE7;
    color: #16A34A;
}

.pm-pill-red-light {
    background-color: #FEE2E2;
    color: #DC2626;
}

/* ── Red Stepper ── */
.pm-circle-red {
    border: 2px solid #FECACA;
    background-color: #FEF2F2;
    color: #DC2626;
}

/* ── File Row Strip ── */
.pm-file-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: 1px solid #E5E7EB;
    border-radius: 8px;
    padding: 12px 16px;
    margin-bottom: 24px;
}

.pm-file-info {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    font-weight: 600;
    color: #111827;
}

    .pm-file-info i {
        color: #DC2626;
        font-size: 18px;
    }

.pm-file-actions {
    display: flex;
    gap: 8px;
}

.pm-file-btn {
    padding: 6px 14px;
    font-size: 11px;
    border-radius: 6px;
    border: 1px solid #E5E7EB;
    background: #FFF;
    color: #4F46E5;
    cursor: pointer;
    font-weight: 600;
    transition: 0.15s;
}

    .pm-file-btn:hover {
        background: #F3F4F6;
    }

.pm-file-btn-pink {
    color: #DB2777;
}

/* ── Cancellation Summary Box ── */
.pm-cancel-box {
    background-color: #FEF2F2;
    border: 1px solid #FECACA;
    border-radius: 8px;
    padding: 18px 20px;
    margin-bottom: 24px;
}

.pm-cancel-title {
    font-size: 13px;
    font-weight: 700;
    color: #DC2626;
    margin: 0 0 14px 0;
}

.pm-cancel-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 14px;
}

@media(max-width: 768px) {
    .pm-cancel-grid {
        grid-template-columns: 1fr;
    }
}

.pm-cancel-label {
    font-size: 11px;
    color: #9CA3AF;
    margin-bottom: 4px;
    font-weight: 600;
}

.pm-cancel-value {
    font-size: 13px;
    color: #111827;
    font-weight: 600;
}

    .pm-cancel-value.text-red {
        color: #DC2626;
    }

.pm-cancel-remarks {
    font-size: 13px;
    color: #111827;
    font-weight: 600;
    line-height: 1.5;
}

/* ── Solid Red Button ── */
.pm-btn-red {
    background-color: #DC2626;
    border-color: #DC2626;
    color: #FFFFFF;
}

    .pm-btn-red:hover {
        background-color: #B91C1C;
        border-color: #B91C1C;
    }

/* ── Restore missing horizontal step CSS from previous response if needed ── */
.pm-stepper-horizontal {
    display: flex;
    align-items: center;
    background-color: #FFFFFF;
    border: 1px solid #E5E7EB;
    border-radius: 12px;
    padding: 20px 24px;
    margin-bottom: 24px;
    overflow-x: auto;
}

.pm-step-horiz {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.pm-step-circle-lg {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}

.pm-circle-green {
    border: 2px solid #BBF7D0;
    background-color: #F0FDF4;
    color: #16A34A;
}

.pm-circle-purple {
    border: 2px solid #E9D5FF;
    background-color: #F5F3FF;
    color: #7C3AED;
}

.pm-circle-gray {
    border: 2px solid #E5E7EB;
    background-color: #F3F4F6;
    color: #9CA3AF;
}

.pm-step-details {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.pm-step-title {
    font-size: 14px;
    font-weight: 700;
    color: #111827;
}

.pm-step-subtitle {
    font-size: 10px;
    color: #16A34A;
    font-weight: 600;
}

.pm-step-meta {
    font-size: 10px;
    color: #6B7280;
    line-height: 1.2;
}

.pm-step-line-horiz {
    height: 2px;
    width: 40px;
    margin: 0 16px;
    background-color: #16A34A;
    flex-shrink: 0;
}

.pm-step-line-gray {
    background-color: #E5E7EB;
}
/* --- Support for Cancel & Reinitiate Dialog Elements --- */
.pm-dialog-title.text-red {
    color: #DC2626 !important;
}

.pm-dialog-label.text-red {
    color: #DC2626 !important;
}

.pm-dialog-list {
    margin: 4px 0 0 0;
    padding-left: 16px;
    color: #C2410C;
    font-size: 11px;
}

    .pm-dialog-list li {
        margin-bottom: 4px;
    }

.pm-dialog-info-blue {
    background-color: #F0F9FF;
    border: 1px solid #BAE6FD;
    border-radius: 8px;
    padding: 14px 16px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    width: 100%;
    margin-bottom: 24px;
}

    .pm-dialog-info-blue i {
        color: #0284C7;
        font-size: 18px;
        line-height: 1;
    }

    .pm-dialog-info-blue p {
        margin: 0;
        font-size: 13px;
        color: #0369A1;
        line-height: 1.5;
        font-weight: 500;
    }