/* ==========================================================================
   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);
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
    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: 14px;
    width: 760px;
    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;
}

.hpud-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;
}

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

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

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

.hpud-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);
}

.hpud-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);
}

.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-y: auto;
    overflow-x: hidden;
    max-height: 220px;
    scrollbar-width: thin;
    scrollbar-color: #cbd5e1 #f8fafc;
}

.hpud-rm-table-wrapper::-webkit-scrollbar {
    width: 6px;
}

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

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

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

.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;
    position: sticky;
    top: 0;
    z-index: 1;
}

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

.hpud-rm-table th.text-center,
.hpud-rm-table td.text-center {
    text-align: center;
}

.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;
}

