/* ==========================================================================
   Hajipur Production PMR Details Dialog Styles (hpud-*)
   ========================================================================== */

.hph-dialog-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.45);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1100;
    padding: 20px;
    box-sizing: border-box;
    overflow: hidden;
}

.hpud-card {
    background-color: #FFFFFF;
    border-radius: 12px;
    width: 760px;
    max-width: 95vw;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    overflow: hidden;
}

.hpud-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 24px;
    border-bottom: 1px solid #F0F0F5;
}

.hpud-header-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.hpud-title {
    margin: 0;
    font-size: 16px;
    font-weight: 700;
    color: #151515;
}

.hpud-status-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 3px 12px;
    background-color: #FBE9E9;
    border: 1px solid #E87F7F;
    color: #DC2626;
    font-size: 11px;
    font-weight: 500;
    border-radius: 14px;
}

.hpud-close-btn {
    background: none;
    border: none;
    font-size: 20px;
    color: #666666;
    cursor: pointer;
    line-height: 1;
    padding: 0;
}

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

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

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

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

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

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

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

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

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

.hpud-rm-card {
    background-color: #F6F7FE;
    border-radius: 8px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.hpud-rm-title {
    margin: 0 0 2px 0;
    font-size: 13.5px;
    font-weight: 700;
    color: #1E293B;
}

.hpud-rm-subtitle {
    margin: 0;
    font-size: 11.5px;
    color: #94A3B8;
    font-weight: 400;
}

.hpud-rm-table-wrapper {
    background-color: #FFFFFF;
    border: 1px solid #E2E8F0;
    border-radius: 6px;
    overflow: hidden;
}

.hpud-rm-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 12px;
}

.hpud-rm-table th {
    padding: 10px 16px;
    background-color: #FAFAFC;
    color: #808080;
    font-size: 11.5px;
    font-weight: 500;
    border-bottom: 1px solid #F1F5F9;
}

.hpud-rm-table td {
    padding: 11px 16px;
    color: #1E293B;
    font-weight: 500;
    font-size: 12px;
    border-bottom: 1px solid #F1F5F9;
}

.hpud-rm-table tr:last-child td {
    border-bottom: none;
}

.hpud-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 24px;
    border-top: 1px solid #F0F0F5;
    background-color: #FFFFFF;
}

.hpud-btn-download {
    height: 38px;
    padding: 0 18px;
    background-color: #151515;
    border: none;
    border-radius: 6px;
    color: #FFFFFF;
    font-size: 12.5px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.15s;
}

.hpud-btn-download:hover {
    background-color: #000000;
}

.hpud-btn-submit {
    height: 38px;
    padding: 0 24px;
    background-color: #0405AB;
    border: none;
    border-radius: 6px;
    color: #FFFFFF;
    font-size: 12.5px;
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.15s;
}

.hpud-btn-submit:hover {
    opacity: 0.9;
}

