/* Hajipur Production Head PMR Management Stylesheet */

.hajipur-prod-container {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: #1A1A1A;
    display: flex;
    flex-direction: column;
    gap: 16px;
    box-sizing: border-box;
}

/* Page Header */
.hajipur-prod-header {
    margin-bottom: 4px;
}

.hajipur-prod-title {
    font-size: 20px;
    font-weight: 700;
    color: #1A1A1A;
    margin: 0 0 4px 0;
    line-height: 1.2;
}

.hajipur-prod-desc {
    font-size: 12px;
    font-weight: 400;
    color: #9CA3AF;
    margin: 0;
    line-height: 1.3;
}

/* Filter Row (9 Dropdowns in single white card container) */
.hajipur-prod-filter-row {
    display: flex;
    flex-wrap: nowrap;
    gap: 8px;
    background-color: #ffffff;
    padding: 10px 14px;
    border-radius: 6px;
    border: 1px solid #d9e0e7;
    box-sizing: border-box;
    align-items: center;
    height: 65px;
    width: 100%;
}

.hajipur-prod-select-wrapper {
    flex: 1;
    min-width: 0;
    position: relative;
    box-sizing: border-box;
}

.hajipur-prod-filter-select {
    width: 100%;
    height: 36px;
    padding: 0 20px 0 8px;
    font-size: 11px;
    color: #555555;
    background-color: #ffffff;
    border: 1px solid #d9e0e7;
    border-radius: 4px;
    appearance: none;
    -webkit-appearance: none;
    cursor: pointer;
    box-sizing: border-box;
    text-overflow: ellipsis;
    white-space: nowrap;
    overflow: hidden;
}

.hajipur-prod-filter-select:focus {
    outline: none;
    border-color: #cbd5e1;
}

.hajipur-prod-select-chevron {
    position: absolute;
    right: 6px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    display: flex;
    align-items: center;
    color: #999999;
}

.hajipur-prod-select-chevron svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.2;
}

/* Table Card Container */
.hajipur-prod-table-card {
    background-color: #FFFFFF;
    border: 1px solid #EAEAEA;
    border-radius: 8px;
    overflow-x: auto;
    box-shadow: 0 1px 3px rgba(0,0,0,0.02);
}

.hajipur-prod-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 12.5px;
}

.hajipur-prod-table thead {
    background-color: #FAFAFA;
    border-bottom: 1px solid #EAEAEA;
}

.hajipur-prod-table th {
    padding: 12px 10px;
    font-size: 11.5px;
    font-weight: 600;
    color: #808080;
    text-align: left;
    white-space: nowrap;
}

.hajipur-prod-table td {
    padding: 12px 10px;
    vertical-align: middle;
    border-bottom: 1px solid #F1F5F9;
    color: #151515;
    font-size: 12.5px;
    font-weight: 400;
    white-space: nowrap;
}

.hajipur-prod-table tr:last-child td {
    border-bottom: none;
}

.hajipur-prod-pmr-no {
    font-weight: 400;
    color: #151515;
}

/* Standard Status Badges (Exact 105px x 26px, Vertically Centered) */
.status-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0 12px;
    border-radius: 12px;
    font-size: 10.5px;
    font-weight: 500;
    min-width: 105px;
    width: 105px;
    height: 26px;
    box-sizing: border-box;
    line-height: 24px;
    white-space: nowrap;
    vertical-align: middle;
}

/* Material Added Status Badge */
.status-material-added {
    background-color: #F2F2F2;
    border: 1px solid #999999;
    color: #B3B3B3;
}

/* Submitted Status Badge */
.status-submitted {
    background-color: #FEF3E7;
    border: 1px solid #FABB6B;
    color: #F59E0B;
}

/* Costing Done Status Badge */
.status-costing-done {
    background-color: #F3E8FF;
    border: 1px solid #C084FC;
    color: #9333EA;
}

/* Negotiating Status Badge */
.status-negotiating {
    background-color: #FDF6EE;
    border: 1px solid #E4CBB7;
    color: #9C7255;
}

/* Price Approved Status Badge */
.status-price-approved {
    background-color: #FDE6F1;
    border: 1px solid #E84393;
    color: #E84393;
}

/* In Production Status Badge */
.status-in-production {
    background-color: #FFE3FF;
    border: 1px solid #CC00CF;
    color: #CC00CF;
}

/* Completed Status Badge */
.status-completed {
    background-color: #E8F6ED;
    border: 1px solid #16A34A;
    color: #16A34A;
}

/* Codification Status Badge */
.status-codification {
    background-color: #FFF4ED;
    border: 1px solid #FF7A00;
    color: #FF7A00;
}

/* Lab Revised Status Badge */
.status-lab-revised {
    background-color: #D3E2FF;
    border: 1px solid #3776EA;
    color: #3776EA;
}

/* Prod Revised Status Badge */
.status-prod-revised {
    background-color: #DBF4FF;
    border: 1px solid #00B4E5;
    color: #00B4E5;
}

/* Discarded Status Badge */
.status-discarded {
    background-color: #FBE9E9;
    border: 1px solid #E87F7F;
    color: #DC2626;
}

/* Default Status Badge */
.status-default {
    background-color: #F2F2F2;
    border: 1px solid #999999;
    color: #71717A;
}

/* Action Eye Icon Button */
.action-view-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 6px;
    border: 1px solid #EAEAEA;
    background-color: #FFFFFF;
    cursor: pointer;
    transition: background-color 0.15s, border-color 0.15s;
    box-sizing: border-box;
}

.action-view-btn:hover {
    background-color: #fee2e2;
    border-color: #f87171;
}

.action-view-btn svg {
    width: 14px;
    height: 14px;
    fill: none;
    stroke: #ef4444;
    stroke-width: 2;
}

/* Hajipur Pagination Style */
.hajipur-prod-pagination-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    border-top: 1px solid #EAEAEA;
    background-color: #FFFFFF;
}

.hajipur-prod-pagination-info {
    font-size: 12px;
    color: #9CA3AF;
}

.hajipur-prod-pagination-nav {
    display: flex;
    align-items: center;
    gap: 6px;
}

.hajipur-prod-pagination-btn {
    min-width: 28px;
    height: 28px;
    border: 1px solid #E2E8F0;
    background-color: #FFFFFF;
    border-radius: 6px;
    color: #64748B;
    font-size: 12px;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 0;
    transition: all 0.15s ease;
}

.hajipur-prod-pagination-btn:hover:not(:disabled) {
    background-color: #F8FAFC;
    border-color: #CBD5E1;
}

.hajipur-prod-pagination-btn.active {
    background-color: #0405AB;
    border-color: #0405AB;
    color: #FFFFFF;
}

.hajipur-prod-pagination-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.hajipur-prod-pagination-btn svg {
    width: 14px;
    height: 14px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
}

/* ================================================================
   HAJIPUR PRODUCTION HEAD PMR DETAIL VIEW STYLES
   ================================================================ */

.hph-pmr-detail-page {
    display: flex;
    flex-direction: column;
    gap: 14px;
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: #1A1A1A;
    width: 100%;
}

/* Card base */
.hph-card {
    background-color: #FFFFFF;
    border: 1px solid #EAEAEA;
    border-radius: 8px;
    padding: 16px 20px;
    box-sizing: border-box;
    box-shadow: 0 1px 3px rgba(0,0,0,0.02);
}

/* Header Back Icon Button */
.header-back-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: none;
    border: none;
    color: #111827;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 4px;
    transition: background-color 0.15s;
}

.header-back-btn:hover {
    background-color: #F3F4F6;
}

.header-back-btn svg {
    width: 16px;
    height: 16px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
}

/* Top Card: PMR Information */
.hph-card-title-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.hph-title-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
}

.hph-card-title {
    font-size: 15px;
    font-weight: 700;
    color: #1A1A1A;
    margin: 0;
    line-height: 1.2;
}

.hph-info-icon-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.hph-info-icon {
    width: 16px;
    height: 16px;
}

.hph-codification-badge {
    display: inline-flex;
    align-items: center;
    padding: 2px 12px;
    background-color: #FFF4ED;
    border: 1px solid #FF7A00;
    color: #FF7A00;
    font-size: 11.5px;
    font-weight: 500;
    border-radius: 14px;
    margin-left: 4px;
}

/* PMR Info Grid (4 cols x 2 rows) */
.hph-info-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    row-gap: 16px;
    column-gap: 20px;
}

.hph-info-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.hph-info-label {
    font-size: 11.5px;
    font-weight: 600;
    color: #4B5563;
}

.hph-info-value {
    font-size: 13px;
    font-weight: 400;
    color: #6B7280;
}

/* Main Detail Grid (2 columns: Left ~74%, Right ~26%) */
.hph-detail-grid {
    display: grid;
    grid-template-columns: 1fr 310px;
    gap: 14px;
    align-items: stretch;
}

.hph-left-col {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.hph-right-col {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.hph-card-subtitle {
    font-size: 12px;
    color: #9CA3AF;
    margin: 4px 0 14px 0;
}

/* Raw Material Table */
.hph-rm-table-wrap {
    margin-bottom: 14px;
    overflow-x: auto;
}

.hph-rm-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 6px;
}

.hph-rm-thead-row {
    background-color: #F8FAFC;
    height: 36px;
}

.hph-rm-table th {
    font-size: 11.5px;
    font-weight: 500;
    color: #6B7280;
    padding: 0 12px;
    border-top: 1px solid #F1F5F9;
    border-bottom: 1px solid #F1F5F9;
}

.hph-rm-table th:first-child {
    border-left: 1px solid #F1F5F9;
    border-top-left-radius: 6px;
    border-bottom-left-radius: 6px;
}

.hph-rm-table th:last-child {
    border-right: 1px solid #F1F5F9;
    border-top-right-radius: 6px;
    border-bottom-right-radius: 6px;
}

.hph-th-left {
    text-align: left;
}

.hph-th-right {
    text-align: right;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 4px;
    height: 36px;
}

.hph-edit-pen-icon {
    width: 14px;
    height: 14px;
    stroke: #2563EB;
    stroke-width: 2.2;
    cursor: pointer;
}

.hph-td-mat {
    padding-right: 6px;
}

.hph-td-pct {
    padding-left: 6px;
    text-align: right;
}

.hph-select-wrapper {
    position: relative;
    width: 100%;
}

.hph-select {
    width: 100%;
    height: 38px;
    padding: 0 28px 0 12px;
    font-size: 12.5px;
    color: #374151;
    background-color: #FFFFFF;
    border: 1px solid #E5E7EB;
    border-radius: 6px;
    appearance: none;
    -webkit-appearance: none;
    cursor: pointer;
    box-sizing: border-box;
}

.hph-select-chevron {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    display: flex;
    align-items: center;
    color: #9CA3AF;
}

.hph-select-chevron svg {
    width: 16px;
    height: 16px;
}

.hph-pct-input {
    width: 100px;
    height: 38px;
    padding: 0 12px;
    font-size: 12.5px;
    color: #374151;
    text-align: right;
    background-color: #FFFFFF;
    border: 1px solid #E5E7EB;
    border-radius: 6px;
    box-sizing: border-box;
}

/* Total Weight & Cost Row */
.hph-total-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 14px;
    border-top: 1px solid #F3F4F6;
}

.hph-total-label {
    font-size: 13px;
    font-weight: 700;
    color: #1A1A1A;
}

.hph-total-pills {
    display: flex;
    align-items: center;
    gap: 12px;
}

.hph-pill-weight {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 90px;
    height: 32px;
    padding: 0 16px;
    background-color: #F3F4F6;
    color: #6B7280;
    font-size: 12.5px;
    font-weight: 500;
    border-radius: 6px;
    box-sizing: border-box;
}

.hph-pill-cost {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 100px;
    height: 32px;
    padding: 0 16px;
    background-color: #FAF5FF;
    color: #DC2626;
    font-size: 12.5px;
    font-weight: 600;
    border-radius: 6px;
    box-sizing: border-box;
}

/* Bottom Actions Row */
.hph-left-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.hph-actions-group-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.hph-actions-group-right {
    display: flex;
    align-items: center;
}

.hph-btn-black {
    height: 38px;
    padding: 0 18px;
    background-color: #111827;
    color: #FFFFFF;
    font-size: 12px;
    font-weight: 600;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.15s;
}

.hph-btn-black:hover {
    background-color: #1F2937;
}

.hph-btn-outline {
    height: 38px;
    padding: 0 20px;
    background-color: #FFFFFF;
    color: #374151;
    font-size: 12px;
    font-weight: 600;
    border: 1px solid #D1D5DB;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.15s, border-color 0.15s;
}

.hph-btn-outline:hover {
    background-color: #F9FAFB;
    border-color: #9CA3AF;
}

/* Cost Summary Card */
.hph-cost-card {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.hph-cost-title-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.hph-badge-n {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    background-color: #2563EB;
    color: #FFFFFF;
    font-size: 10.5px;
    font-weight: 700;
    border-radius: 4px;
}

.hph-divider {
    border: 0;
    border-top: 1px solid #EAEAEA;
    margin: 10px 0 16px 0;
}

.hph-cost-fields {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.hph-cost-field-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.hph-cost-label {
    font-size: 12.5px;
    font-weight: 600;
    color: #374151;
    white-space: nowrap;
}

.hph-cost-input {
    width: 110px;
    height: 34px;
    padding: 0 12px;
    font-size: 12.5px;
    color: #374151;
    text-align: right;
    background-color: #FFFFFF;
    border: 1px solid #E5E7EB;
    border-radius: 6px;
    box-sizing: border-box;
}

.hph-cost-input.disabled {
    background-color: #F3F4F6;
    color: #6B7280;
    border-color: transparent;
}

.hph-right-actions {
    width: 100%;
}

.hph-btn-submit-marketing {
    width: 100%;
    height: 40px;
    background-color: #0000D1;
    color: #FFFFFF;
    font-size: 12.5px;
    font-weight: 600;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.15s;
}

.hph-btn-submit-marketing:hover {
    background-color: #0000B0;
}

/* Rounded Footer Card Container (Matching upper cards) */
.hph-footer-card {
    background: #FFFFFF;
    border: 1px solid #EAEAEA;
    border-radius: 8px;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-sizing: border-box;
    margin-top: 4px;
    width: 100%;
}

.hph-footer-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.hph-footer-center {
    display: flex;
    align-items: center;
    justify-content: center;
}

.hph-footer-right {
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.hph-btn-black {
    height: 38px;
    padding: 0 20px;
    background-color: #161D27;
    color: #FFFFFF;
    font-size: 13px;
    font-weight: 600;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.15s;
    white-space: nowrap;
}

.hph-btn-black:hover {
    background-color: #202936;
}

.hph-btn-outline {
    height: 38px;
    padding: 0 20px;
    background-color: #FFFFFF;
    color: #374151;
    font-size: 13px;
    font-weight: 500;
    border: 1px solid #D1D5DB;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.15s, border-color 0.15s;
    white-space: nowrap;
}

.hph-btn-outline:hover {
    background-color: #F9FAFB;
    border-color: #9CA3AF;
}

.hph-btn-blue-marketing {
    height: 38px;
    padding: 0 24px;
    background-color: #0000D1;
    color: #FFFFFF;
    font-size: 13px;
    font-weight: 600;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.15s;
    white-space: nowrap;
}

.hph-btn-blue-marketing:hover {
    background-color: #0000B0;
}

.hph-btn-blue-marketing:disabled,
.hph-btn-blue-marketing.disabled {
    background-color: #B5B5F0;
    cursor: not-allowed;
    opacity: 0.7;
}

/* Card Title Row & Header Badges on Same Line */
.hpdv-card-title-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
}

.hpdv-card-title-row .hpdv-card-title {
    margin: 0;
    font-size: 14px;
    font-weight: 700;
    color: #1A1A1A;
    line-height: 1;
    display: inline-flex;
    align-items: center;
}

.hpdv-info-badge-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    line-height: 0;
    flex-shrink: 0;
}

.hpdv-info-badge-btn img,
.hpdv-info-icon {
    width: 16px;
    height: 16px;
    display: block;
}

/* Codification Tag Badge */
.hpdv-codification-tag {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 2px 12px;
    background-color: #FFF4ED;
    border: 1px solid #FF7A00;
    color: #FF7A00;
    font-size: 11.5px;
    font-weight: 500;
    border-radius: 14px;
    line-height: 1.4;
    vertical-align: middle;
}

/* Cost Summary Field Inputs */
input.hpdv-cost-input-gray,
.hpdv-cost-input-gray {
    width: 110px;
    height: 32px;
    padding: 0 10px;
    font-size: 12px;
    font-weight: 500;
    color: #808080;
    background-color: #EFEFEF;
    border: none;
    border-radius: 6px;
    text-align: right;
    outline: none;
    box-sizing: border-box;
    font-family: inherit;
}

input.hpdv-cost-input-white,
.hpdv-cost-input-white {
    width: 110px;
    height: 32px;
    padding: 0 10px;
    font-size: 12px;
    font-weight: 500;
    color: #151515;
    background-color: #FFFFFF;
    border: 1px solid #E2E2E6;
    border-radius: 6px;
    text-align: right;
    outline: none;
    box-sizing: border-box;
    font-family: inherit;
    transition: border-color 0.15s;
}

input.hpdv-cost-input-white.hpdv-input-error,
.hpdv-cost-input-white.hpdv-input-error {
    border-color: #EF4444 !important;
    background-color: #FEF2F2;
}

.hpdv-cost-input-wrap {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.hpdv-error-text {
    font-size: 10.5px;
    color: #EF4444;
    font-weight: 500;
    text-align: right;
    margin-top: 3px;
    white-space: nowrap;
}

/* Table column proportions and alignments for Production Head PMR Detail View */
.hpdv-rm-table .hpdv-col-material { width: 78%; }
.hpdv-rm-table .hpdv-col-pct      { width: 22%; text-align: right; }

.hpdv-th-right {
    text-align: right;
}

.hpdv-td-right {
    text-align: right;
}

.hpdv-edit-btn {
    background: none;
    border: none;
    padding: 0;
    margin: 0;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    vertical-align: middle;
    outline: none;
}

.hpdv-edit-btn:hover .hpdv-edit-icon {
    opacity: 0.8;
}

.hpdv-th-right img.hpdv-edit-icon {
    display: inline-block;
    width: 12px;
    height: 12px;
    vertical-align: middle;
    margin-left: 4px;
}

.hpdv-plain-text {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 32px;
    width: 100px;
    padding: 0 8px;
    font-size: 12px;
    color: #808080;
    font-weight: 500;
    font-family: inherit;
    border: 1px solid #E0E0E6;
    border-radius: 5px;
    background-color: #F4F5F7;
    box-sizing: border-box;
    text-align: center;
    user-select: none;
}

.hpdv-rm-table input.hpdv-plain-val,
.hpdv-rm-table .hpdv-plain-val {
    width: 100px;
    height: 32px;
    text-align: center;
    box-sizing: border-box;
}

/* ==========================================================================
   Hajipur Production Head Dialogs (Upload PO & Codification Modals)
   ========================================================================== */
.hph-dialog-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.hph-upload-po-card {
    background-color: #FFFFFF;
    border-radius: 12px;
    width: 480px;
    max-width: 92vw;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    overflow: hidden;
}

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

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

.hph-dialog-title {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: #151515;
}

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

.hph-dialog-body {
    padding: 18px 20px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* Upload PO Box Container */
.hph-up-box {
    border: 1px solid #EBEBEE;
    border-radius: 10px;
    overflow: hidden;
    background-color: #FFFFFF;
}

.hph-up-header-bar {
    background-color: #F7F7FD;
    padding: 10px 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid #EBEBEE;
}

.hph-up-header-title {
    font-size: 13px;
    font-weight: 600;
    color: #151515;
}

.hph-up-header-count {
    font-size: 11px;
    color: #8E8EA9;
}

.hph-up-dropzone {
    border: 1px dashed #D6D6E0;
    border-radius: 8px;
    margin: 12px;
    padding: 18px 12px;
    text-align: center;
    background-color: #FAFAFD;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.hph-up-icon {
    width: 24px;
    height: 24px;
    color: #4338CA;
    margin-bottom: 4px;
}

.hph-up-text {
    font-size: 12px;
    color: #666666;
}

.hph-up-blue-link {
    color: #0000D1;
    font-weight: 700;
    cursor: pointer;
}

.hph-up-subtext {
    font-size: 11px;
    color: #999999;
}

.hph-up-files-list {
    padding: 0 12px 12px 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: 175px;
    overflow-y: auto;
}

.hph-up-file-item {
    border: 1px solid #EEEEEF;
    border-radius: 12px;
    padding: 10px 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: #FFFFFF;
}

.hph-up-file-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.hph-up-file-icon-box {
    width: 34px;
    height: 34px;
    border-radius: 8px;
    background-color: #EFF6FF;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hph-up-file-icon-box svg {
    width: 18px;
    height: 18px;
}

.hph-up-file-info {
    display: flex;
    flex-direction: column;
}

.hph-up-file-name {
    font-size: 12px;
    font-weight: 600;
    color: #151515;
}

.hph-up-file-size {
    font-size: 11px;
    color: #999999;
}

.hph-up-file-delete-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hph-up-file-delete-btn svg {
    width: 16px;
    height: 16px;
}

.hph-up-user-rows {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 4px;
}

.hph-up-user-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.hph-up-checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 600;
    color: #151515;
    cursor: pointer;
}

.hph-up-checkbox {
    width: 16px;
    height: 16px;
    accent-color: #0000D1;
    border-radius: 4px;
    cursor: pointer;
}

.hph-up-select-wrap {
    position: relative;
    width: 220px;
}

.hph-up-select {
    width: 100%;
    height: 36px;
    padding: 0 30px 0 12px;
    border: 1px solid #E2E2E8;
    border-radius: 8px;
    font-size: 12px;
    color: #888888;
    background-color: #FFFFFF;
    appearance: none;
    outline: none;
    cursor: pointer;
}

.hph-up-select-chevron {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    width: 14px;
    height: 14px;
    color: #888888;
}

.hph-up-select-chevron svg {
    width: 100%;
    height: 100%;
    stroke-width: 2;
}

/* Custom Checkbox Dropdown */
.hph-custom-dd {
    position: relative;
    width: 220px;
}

.hph-custom-dd-trigger {
    width: 100%;
    height: 36px;
    padding: 0 10px 0 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: #FFFFFF;
    border: 1px solid #E2E2E8;
    border-radius: 8px;
    cursor: pointer;
    box-sizing: border-box;
    transition: border-color 0.15s ease;
    outline: none;
}

.hph-custom-dd-trigger:hover,
.hph-custom-dd--open .hph-custom-dd-trigger {
    border-color: #CBD5E1;
}

.hph-custom-dd--disabled .hph-custom-dd-trigger {
    background-color: #F8FAFC;
    cursor: not-allowed;
    opacity: 0.6;
}

.hph-custom-dd-text {
    font-size: 12px;
    color: #344054;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex: 1;
    text-align: left;
}

.hph-custom-dd-placeholder {
    color: #888888;
}

.hph-custom-dd-chevron {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
    stroke: #888888;
    stroke-width: 2;
    margin-left: 6px;
    transition: transform 0.2s ease;
}

.hph-custom-dd--open .hph-custom-dd-chevron {
    transform: rotate(180deg);
}

.hph-custom-dd-panel {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    z-index: 1000;
    background-color: #FFFFFF;
    border: 1px solid #E2E8F0;
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    overflow-y: auto;
    max-height: 180px;
    box-sizing: border-box;
    animation: hphPanelIn 0.12s ease-out;
}

@keyframes hphPanelIn {
    from { opacity: 0; transform: translateY(-4px); }
    to   { opacity: 1; transform: translateY(0); }
}

.hph-custom-dd-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    cursor: pointer;
    user-select: none;
    transition: background-color 0.12s;
    box-sizing: border-box;
    width: 100%;
}

.hph-custom-dd-item:hover {
    background-color: #F8FAFC;
}

.hph-custom-dd-item--all {
    background-color: #F1F5F9;
    border-bottom: 1px solid #E2E8F0;
}

.hph-custom-dd-item--all:hover {
    background-color: #E9EEF5;
}

.hph-custom-dd-divider {
    height: 1px;
    background-color: #E2E8F0;
}

.hph-custom-dd-checkbox {
    width: 15px;
    height: 15px;
    accent-color: #0405AB;
    cursor: pointer;
    flex-shrink: 0;
}

.hph-custom-dd-label {
    font-size: 12px;
    color: #344054;
    line-height: 1.3;
}

.hph-custom-dd-label-all {
    font-size: 12px;
    font-weight: 700;
    color: #151515;
}

.hph-custom-dd-empty {
    padding: 10px 12px;
    font-size: 12px;
    color: #94A3B8;
    margin: 0;
}

/* Codification Table Styles */
.hph-cod-table-wrap {
    border: 1px solid #F0F0F5;
    border-radius: 8px;
    overflow-x: auto;
    overflow-y: auto;
    max-height: 145px;
    background-color: #FFFFFF;
}

.hph-cod-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 12px;
    text-align: left;
}

.hph-cod-tr-head {
    background-color: #F8F9FA;
    border-bottom: 1px solid #F0F0F5;
    position: sticky;
    top: 0;
    z-index: 1;
}

.hph-cod-th {
    padding: 10px 12px;
    font-weight: 500;
    color: #808080;
    font-size: 11px;
    white-space: nowrap;
}

.hph-cod-tr {
    border-bottom: 1px solid #F5F5F8;
}

.hph-cod-tr:last-child {
    border-bottom: none;
}

.hph-cod-td {
    padding: 10px 12px;
    color: #151515;
    font-size: 12px;
    font-weight: 400;
    vertical-align: middle;
    white-space: nowrap;
}

.hph-cod-bold {
    font-weight: 600;
}

.hph-cod-input {
    height: 32px;
    padding: 0 10px;
    border: 1px solid #EBEBEE;
    border-radius: 6px;
    font-size: 11px;
    color: #888888;
    background-color: #FFFFFF;
    outline: none;
    width: 100%;
    box-sizing: border-box;
    font-family: inherit;
}

.hph-cod-input:focus {
    border-color: #3449D8;
    color: #151515;
}

.hph-dialog-footer {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    padding: 14px 20px;
    border-top: 1px solid #F0F0F5;
    background-color: #FFFFFF;
}

.hph-dialog-cancel-btn {
    height: 36px;
    padding: 0 18px;
    border: 1px solid #E2E2E8;
    border-radius: 6px;
    background-color: #FFFFFF;
    color: #151515;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
}

.hph-dialog-submit-btn {
    height: 36px;
    padding: 0 22px;
    border: none;
    border-radius: 6px;
    background-color: #0000D1;
    color: #FFFFFF;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
}

.hph-dialog-submit-btn:hover {
    background-color: #0000B3;
}

.hph-dialog-submit-pmr-btn {
    height: 36px;
    padding: 0 20px;
    border: none;
    border-radius: 6px;
    background-color: #151515;
    color: #FFFFFF;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.15s;
}

.hph-dialog-submit-pmr-btn:hover {
    background-color: #000000;
}

/* Confirm Codification Dialog Styles */
.hph-confirm-codification-card {
    background-color: #FFFFFF;
    border-radius: 12px;
    width: 440px;
    max-width: 92vw;
    padding: 24px 28px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    position: relative;
    box-sizing: border-box;
    text-align: center;
}

.hph-confirm-close-btn {
    position: absolute;
    top: 14px;
    right: 16px;
    background: none;
    border: none;
    font-size: 18px;
    color: #666666;
    cursor: pointer;
    line-height: 1;
    padding: 0;
}

.hph-confirm-body {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.hph-confirm-title {
    margin: 12px 0 8px 0;
    font-size: 17px;
    font-weight: 700;
    color: #151515;
}

.hph-confirm-desc {
    font-size: 12.5px;
    color: #999999;
    line-height: 1.45;
    margin: 0 0 24px 0;
    max-width: 380px;
}

.hph-confirm-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    width: 100%;
}

.hph-confirm-cancel-btn {
    height: 38px;
    padding: 0 24px;
    border: 1px solid #E2E2E8;
    border-radius: 6px;
    background-color: #FFFFFF;
    color: #151515;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.15s;
}

.hph-confirm-cancel-btn:hover {
    background-color: #F8F9FA;
}

.hph-confirm-okay-btn {
    height: 38px;
    padding: 0 28px;
    border: none;
    border-radius: 6px;
    background-color: var(--primary-color, #0405AB);
    color: #FFFFFF;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.15s;
}

.hph-confirm-okay-btn:hover {
    opacity: 0.9;
}
