/* ==========================================================================
   Hajipur Marketing User PMR Details Dialog Modal Styles (hmpd-*)
   ========================================================================== */

.hmpd-card {
    background-color: #FFFFFF;
    border-radius: 14px;
    width: 780px;
    max-width: 95vw;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 25px 50px -12px rgba(15, 23, 42, 0.25), 0 0 0 1px rgba(226, 232, 240, 0.85);
    overflow: hidden;
    position: relative;
}

.hmpd-card::before {
    content: "";
    display: block;
    height: 3px;
    width: 100%;
    background: linear-gradient(90deg, rgba(4, 5, 171, 0.85) 0%, rgba(4, 5, 171, 0.25) 30%, transparent 80%);
    flex-shrink: 0;
}

.hmpd-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 22px;
    border-bottom: 1px solid #F1F5F9;
    background-color: #FAFCFF;
}

.hmpd-title-wrap {
    display: flex;
    align-items: center;
    gap: 12px;
}

.hmpd-title-wrap .status-badge {
    margin: 0 !important;
}

.hmpd-title {
    margin: 0;
    font-size: 17px;
    font-weight: 700;
    color: #0F172A;
    letter-spacing: -0.01em;
}

.hmpd-close-btn {
    background: #F8FAFC;
    border: 1px solid #E2E8F0;
    font-size: 18px;
    color: #64748B;
    cursor: pointer;
    line-height: 1;
    width: 32px;
    height: 32px;
    padding: 0;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.hmpd-close-btn:hover {
    color: var(--primary-color, #0405AB);
    background-color: var(--primary-bg, #EEF0FF);
    border-color: var(--primary-color, #0405AB);
    transform: rotate(90deg) scale(1.08);
}

.hmpd-body {
    padding: 22px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 18px;
    scrollbar-width: thin;
    scrollbar-color: #cbd5e1 #f8fafc;
}

.hmpd-body::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

.hmpd-body::-webkit-scrollbar-thumb {
    background-color: #cbd5e1 !important;
    border-radius: 3px !important;
}

.hmpd-body::-webkit-scrollbar-thumb:hover {
    background-color: #94a3b8 !important;
}

.hmpd-body::-webkit-scrollbar-track {
    background-color: #f8fafc !important;
}

.hmpd-info-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    column-gap: 28px;
    row-gap: 14px;
}

.hmpd-info-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
    border-bottom: 1px solid #F5F5F8;
    padding-bottom: 10px;
}

.hmpd-info-label {
    font-size: 11.5px;
    font-weight: 600;
    color: #151515;
}

.hmpd-info-value {
    font-size: 13px;
    color: #808080;
    font-weight: 400;
}

.hmpd-card-box {
    background-color: #F8F8FC;
    border-radius: 8px;
    padding: 16px 20px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.hmpd-box-title {
    margin: 0;
    font-size: 14px;
    font-weight: 700;
    color: #151515;
}

.hmpd-box-subtitle {
    margin: 0;
    font-size: 11.5px;
    color: #808080;
}

.hmpd-cost-val {
    font-size: 13px;
    color: #151515;
    margin-top: 4px;
}

.hmpd-cost-bold {
    font-weight: 700;
    font-size: 14px;
}

/* Stepper Timeline Animations & Interactivity */
@keyframes hmpdStepperPulse {
    0% {
        box-shadow: 0 0 0 0 rgba(18, 183, 106, 0.45);
    }
    70% {
        box-shadow: 0 0 0 7px rgba(18, 183, 106, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(18, 183, 106, 0);
    }
}

@keyframes hmpdLineShimmer {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

/* Stepper Timeline */
.hmpd-stepper-wrapper {
    padding: 14px 10px 6px 10px;
}

.hmpd-stepper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
}

.hmpd-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    position: relative;
    z-index: 2;
    cursor: pointer;
    user-select: none;
    transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.hmpd-step:hover {
    transform: translateY(-2px);
}

.hmpd-step:active {
    transform: translateY(0) scale(0.96);
}

.hmpd-step-icon {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #888888;
    color: #FFFFFF;
    transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.hmpd-step.completed .hmpd-step-icon {
    background: linear-gradient(135deg, #12B76A 0%, #059669 100%);
    animation: hmpdStepperPulse 2.5s cubic-bezier(0.45, 0.05, 0.55, 0.95) infinite;
}

.hmpd-step:hover.completed .hmpd-step-icon {
    transform: scale(1.14);
    box-shadow: 0 0 0 5px rgba(18, 183, 106, 0.22), 0 4px 12px rgba(5, 150, 105, 0.4);
}

.hmpd-step.pending .hmpd-step-icon {
    background: linear-gradient(135deg, #98A2B3 0%, #667085 100%);
}

.hmpd-step:hover.pending .hmpd-step-icon {
    transform: scale(1.12);
    background: linear-gradient(135deg, #667085 0%, #475467 100%);
    box-shadow: 0 0 0 4px rgba(152, 162, 179, 0.22);
}

.hmpd-step-icon svg {
    width: 15px;
    height: 15px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.5;
    transition: transform 0.25s ease;
}

.hmpd-step:hover .hmpd-step-icon svg {
    transform: scale(1.12);
}

.hmpd-step-label {
    font-size: 11.5px;
    font-weight: 600;
    color: #64748B;
    white-space: nowrap;
    transition: color 0.2s ease, transform 0.2s ease;
}

.hmpd-step.completed .hmpd-step-label {
    color: #0F172A;
    font-weight: 700;
}

.hmpd-step:hover .hmpd-step-label {
    color: #0405AB;
    transform: translateY(-1px);
}

.hmpd-step-line {
    flex: 1;
    height: 3px;
    background-color: #E2E8F0;
    border-radius: 999px;
    position: relative;
    top: -14px;
    transition: background 0.3s ease;
}

.hmpd-step-line.active {
    background: linear-gradient(90deg, #12B76A, #34D399, #12B76A);
    background-size: 200% 100%;
    animation: hmpdLineShimmer 3s ease infinite;
    box-shadow: 0 0 8px rgba(18, 183, 106, 0.32);
}

.hmpd-footer {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding: 14px 22px;
    border-top: 1px solid #F0F0F5;
    background-color: #FFFFFF;
}

.hmpd-btn-email-customer {
    height: 38px;
    padding: 0 24px;
    background-color: #151515;
    border: none;
    border-radius: 6px;
    color: #FFFFFF;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.15s;
}

.hmpd-btn-email-customer:hover {
    background-color: #000000;
}
