/* =========================================
   ALERT DIALOGS / MODAL OVERLAY STYLES
   Figma Mockup Compliant
   ========================================= */

/* Lock background scrolling while any dialog overlay is open */
body.dialog-open-no-scroll {
    overflow: hidden !important;
}

/* Custom Grey Scrollbar */
.dialog-overlay,
.dialog-card,
.dialog-body,
.dialog-overlay *,
.dialog-card * {
    scrollbar-width: thin;
    scrollbar-color: #cbd5e1 #f8fafc;
}

::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

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

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

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

.dialog-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.45);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    animation: dialogFadeIn 0.15s ease-out;
}

@keyframes dialogFadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.dialog-card {
    background-color: #ffffff;
    width: 440px;
    max-width: 100%;
    border-radius: 12px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.15), 0 10px 10px -5px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    animation: dialogScaleIn 0.18s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes dialogScaleIn {
    from {
        transform: scale(0.95);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

/* Header */
.dialog-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 16px;
    border-bottom: 1px solid #f1f5f9;
}


.dialog-title {
    font-size: 18px;
    font-weight: 500;
    color: #111827;
    margin: 0;
    line-height: 1.3;
}


.dialog-close-btn {
    background: transparent;
    border: none;
    font-size: 20px;
    line-height: 1;
    color: #6b7280;
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.15s, background-color 0.15s;
}

    .dialog-close-btn:hover {
        color: #111827;
        background-color: #f3f4f6;
    }

/* Body */
.dialog-body {
    padding: 20px 20px 24px 20px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    box-sizing: border-box;
    max-height: 75vh;
    overflow-y: auto;
}


.dialog-form-group {
    display: flex;
    flex-direction: column;
}

.dialog-label {
    font-size: 13px;
    font-weight: 600;
    color: #151515;
    margin-bottom: 6px;
}

    .dialog-label .required-star {
        color: #ef4444;
        margin-left: 2px;
    }

.dialog-input,
.dialog-select {
    width: 100%;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    padding: 9px 12px;
    font-size: 13px;
    color: #151515;
    background-color: #ffffff;
    outline: none;
    box-sizing: border-box;
    transition: border-color 0.15s, box-shadow 0.15s;
}

    .dialog-input::placeholder,
    .dialog-select::placeholder {
        color: #808080;
    }

    .dialog-input:focus,
    .dialog-select:focus {
        border-color: var(--primary-color, #0405AB);
        box-shadow: 0 0 0 2px rgba(4, 5, 171, 0.1);
    }

textarea.dialog-input {
    min-height: 80px;
    max-height: 160px;
    min-width: 100%;
    max-width: 100%;
    resize: vertical;
    overflow-y: auto;
}

/* Toggle Switch */
.dialog-status-wrapper {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.dialog-toggle {
    position: relative;
    width: 38px;
    height: 20px;
    display: inline-block;
}

    .dialog-toggle input {
        opacity: 0;
        width: 0;
        height: 0;
    }

.dialog-toggle-slider {
    position: absolute;
    inset: 0;
    background-color: #d1d5db;
    border-radius: 20px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.dialog-toggle input:checked + .dialog-toggle-slider {
    background-color: #22c55e;
}

.dialog-toggle-slider::before {
    content: '';
    position: absolute;
    width: 14px;
    height: 14px;
    left: 3px;
    top: 3px;
    background-color: #ffffff;
    border-radius: 50%;
    transition: transform 0.2s;
}

.dialog-toggle input:checked + .dialog-toggle-slider::before {
    transform: translateX(18px);
}

/* Footer */
.dialog-footer {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    padding: 16px 20px;
    border-top: 1px solid #f1f5f9;
    background-color: #ffffff;
    border-bottom-left-radius: 12px;
    border-bottom-right-radius: 12px;
}

.dialog-cancel-btn {
    background-color: #ffffff;
    border: 1px solid #e5e7eb;
    color: #374151;
    font-size: 13px;
    font-weight: 600;
    padding: 8px 24px;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.15s, border-color 0.15s;
}

    .dialog-cancel-btn:hover {
        background-color: #f9fafb;
        border-color: #d1d5db;
    }

.dialog-submit-btn {
    background-color: var(--primary-color, #0405AB);
    border: none;
    color: #ffffff;
    font-size: 13px;
    font-weight: 600;
    padding: 8px 24px;
    border-radius: 6px;
    cursor: pointer;
    transition: opacity 0.15s;
}

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

/* =========================================
   CUSTOM SELECT WRAPPER (chevron overlay)
   ========================================= */

.dialog-select-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

    .dialog-select-wrapper .dialog-select {
        appearance: none;
        -webkit-appearance: none;
        padding-right: 36px;
        /* room for chevron */
    }

.dialog-select-chevron {
    position: absolute;
    right: 10px;
    pointer-events: none;
    display: flex;
    align-items: center;
    color: #6b7280;
}

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

/* =========================================
   ADD CUSTOMER DIALOG — wider card
   ========================================= */

.add-customer-dialog-card {
    width: 680px;
}

/* Two-column grid row */
.dialog-two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

/* =========================================
   EMAIL TAG INPUT
   ========================================= */

.dialog-tag-input-box {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    min-height: 40px;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    padding: 6px 10px;
    background-color: #ffffff;
    cursor: text;
    box-sizing: border-box;
    transition: border-color 0.15s, box-shadow 0.15s;
}

    .dialog-tag-input-box:focus-within {
        border-color: var(--primary-color, #0405AB);
        box-shadow: 0 0 0 2px rgba(4, 5, 171, 0.1);
    }

.dialog-email-tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background-color: #ffffff;
    border: 1px solid var(--primary-color, #0405AB);
    color: var(--primary-color, #0405AB);
    border-radius: 20px;
    padding: 2px 8px 2px 10px;
    font-size: 12px;
    font-weight: 500;
    white-space: nowrap;
}

.dialog-tag-remove {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--primary-color, #0405AB);
    font-size: 14px;
    line-height: 1;
    padding: 0;
    display: flex;
    align-items: center;
}

.dialog-tag-input {
    flex: 1;
    min-width: 80px;
    border: none;
    outline: none;
    font-size: 13px;
    color: #151515;
    background: transparent;
    padding: 0;
}

    .dialog-tag-input::placeholder {
        color: #808080;
    }

/* =========================================
   RADIO BUTTONS (Local / Outside)
   ========================================= */

.dialog-radio-row {
    display: flex;
    align-items: center;
    gap: 24px;
}

.dialog-radio-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 500;
    color: #374151;
    cursor: pointer;
}

    .dialog-radio-label input[type="radio"] {
        display: none;
    }

.dialog-radio-custom {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: 2px solid #d1d5db;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: border-color 0.15s;
}

    .dialog-radio-custom::after {
        content: '';
        width: 8px;
        height: 8px;
        border-radius: 50%;
        background-color: var(--radio-color, #0405AB);
        opacity: 0;
        transition: opacity 0.15s;
    }

.dialog-radio-label input[type="radio"]:checked + .dialog-radio-custom {
    border-color: var(--radio-color, #0405AB);
}

    .dialog-radio-label input[type="radio"]:checked + .dialog-radio-custom::after {
        opacity: 1;
    }

.dialog-inline-toggle-row {
    display: flex;
    align-items: center;
    gap: 12px;
}

    .dialog-inline-toggle-row .dialog-label {
        margin-bottom: 0;
    }

/* Red submit button utility */
.dialog-submit-btn.red-btn {
    background-color: #ff0000 !important;
}

/* Upload Document Dialog Styles */
.upload-doc-card {
    width: 480px;
    max-width: 95vw;
}

.ud-outer-container {
    border: 1px solid #fee2e2;
    border-radius: 10px;
    background-color: #ffffff;
    overflow: hidden;
}

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

.ud-header-title {
    font-weight: 600;
    font-size: 13.5px;
    color: #1f2937;
}

.ud-header-count {
    font-size: 12px;
    color: #9ca3af;
}

.ud-dropzone {
    border: 1.5px dashed #e5e7eb;
    border-radius: 8px;
    background-color: #fafafa;
    padding: 24px;
    text-align: center;
    margin: 12px;
    cursor: pointer;
    transition: border-color 0.15s;
}

    .ud-dropzone:hover {
        border-color: #ff0000;
    }

.ud-upload-icon {
    width: 24px;
    height: 24px;
    color: #374151;
    margin-bottom: 8px;
}

.ud-drop-text {
    font-size: 13px;
    color: #6b7280;
}

.ud-highlight-text {
    color: #ff0000;
    font-weight: 600;
}

.ud-subtext {
    font-size: 11.5px;
    color: #9ca3af;
    margin-top: 4px;
}

/* Add Rate Dialog Styles */
.add-rate-card {
    width: 440px;
    max-width: 95vw;
}

/* Change Rate Dialog Styles */
.change-rate-card {
    width: 900px;
    max-width: 95vw;
}

    .change-rate-card .dialog-header {
        padding: 10px 18px;
    }

    .change-rate-card .dialog-title {
        font-size: 15px;
        font-weight: 600;
    }

.cr-body {
    padding: 14px 18px;
}

.cr-table-wrapper {
    overflow-x: auto;
    border: 1px solid #f0f0f0;
    border-radius: 6px;
    max-height: 250px;
    overflow-y: auto;
}

.cr-table {
    width: 100%;
    border-collapse: collapse;
}

    .cr-table th {
        background-color: #f9fafb;
        padding: 8px 12px;
        text-align: left;
        font-size: 12px;
        font-weight: 600;
        color: #6b7280;
        border-bottom: 1px solid #e5e7eb;
        white-space: nowrap;
    }

    .cr-table td {
        padding: 7px 12px;
        font-size: 12.5px;
        color: #1f2937;
        border-bottom: 1px solid #f3f4f6;
        vertical-align: middle;
        white-space: nowrap;
    }

.cr-checkbox {
    width: 16px;
    height: 16px;
    cursor: pointer;
    accent-color: #ff0000;
}

.cr-input {
    width: 160px;
    height: 30px;
    padding: 0 10px;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    font-size: 12px;
    color: #1f2937;
    outline: none;
    box-sizing: border-box;
}

    .cr-input:focus {
        border-color: #ff0000;
    }

.cr-percent-wrapper {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    width: 280px;
    margin-left: auto;
    margin-top: 12px;
}

.cr-percent-input {
    width: 100%;
}

/* Confirm Price Change Icon Wrap */
.cpc-icon-wrap {
    width: 72px;
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px auto;
}

.cpc-icon {
    width: 32px;
    height: 32px;
}

.cpc-icon-img {
    width: 72px;
    height: 72px;
    object-fit: contain;
}

/* Confirm IP Bypass Icon Wrap */
.cib-icon-wrap {
    width: 72px;
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px auto;
}

.cib-icon-img {
    width: 72px;
    height: 72px;
    object-fit: contain;
}

.cib-icon-svg {
    width: 32px;
    height: 32px;
}

/* =========================================
   PMR HISTORY ALERT DIALOG STYLES
   ========================================= */

.pmr-history-dialog-card {
    width: 380px;
    max-width: 95vw;
    border-radius: 12px;
    background: #ffffff;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
}

.ph-dialog-header {
    padding: 16px 20px;
    border-bottom: 1px solid #f1f5f9;
}

.ph-dialog-title {
    font-size: 16px;
    font-weight: 700;
    color: #111827;
    margin: 0;
}

.ph-dialog-body {
    padding: 16px 20px 20px 20px;
}

.ph-table-wrapper {
    max-height: 240px;
    overflow-y: auto;
    border: 1px solid #f1f5f9;
    border-radius: 8px;
    background: #ffffff;
}

    /* Custom scrollbar for PMR History dialog */
    .ph-table-wrapper::-webkit-scrollbar {
        width: 6px;
    }

    .ph-table-wrapper::-webkit-scrollbar-track {
        background: #f8fafc;
        border-radius: 8px;
    }

    .ph-table-wrapper::-webkit-scrollbar-thumb {
        background: #cbd5e1;
        border-radius: 8px;
    }

        .ph-table-wrapper::-webkit-scrollbar-thumb:hover {
            background: #94a3b8;
        }

.ph-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13.5px;
}

    .ph-table th {
        background-color: #fafafa;
        color: #9ca3af;
        font-weight: 600;
        font-size: 13px;
        text-align: left;
        padding: 12px 16px;
        border-bottom: 1px solid #f1f5f9;
        position: sticky;
        top: 0;
        z-index: 1;
    }

    .ph-table td {
        padding: 14px 16px;
        border-bottom: 1px solid #f3f4f6;
        color: #151515;
        font-weight: 400;
        vertical-align: middle;
    }

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

/* ================================================================
   HAJIPUR ADD COMMENT DIALOG & PMR SUBMITTED SUCCESS DIALOG
   ================================================================ */

.hajipur-comment-dialog {
    width: 440px;
    max-width: 92vw;
    border-radius: 12px;
}

    .hajipur-comment-dialog .dialog-header {
        padding: 10px 16px;
    }

    .hajipur-comment-dialog .dialog-title {
        font-size: 18px;
        font-weight: 600;
    }


    .hajipur-comment-dialog .dialog-body {
        padding: 14px 16px 14px 16px;
    }


.dialog-textarea {
    width: 100%;
    min-height: 90px;
    padding: 10px 12px;
    font-size: 13px;
    color: #151515;
    background: #FFFFFF;
    border: 1px solid #E5E5EE;
    border-radius: 8px;
    outline: none;
    font-family: inherit;
    box-sizing: border-box;
    resize: vertical;
    transition: border-color 0.15s;
}

    .dialog-textarea:focus {
        border-color: #0405AB;
    }

    .dialog-textarea::placeholder {
        color: #A0A0A0;
    }

.dialog-btn.cancel-hajipur {
    background-color: #FFFFFF;
    color: #151515;
    border: 1px solid #E5E5EE;
    border-radius: 6px;
    padding: 8px 20px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    font-family: inherit;
    transition: background-color 0.12s;
}

    .dialog-btn.cancel-hajipur:hover {
        background-color: #F8F9FA;
    }

.dialog-btn.submit-hajipur {
    background-color: #0405AB;
    color: #FFFFFF;
    border: none;
    border-radius: 6px;
    padding: 8px 24px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    transition: background-color 0.12s;
}

    .dialog-btn.submit-hajipur:hover {
        background-color: #030490;
    }

/* PMR Submitted Success Dialog */
.hajipur-success-dialog {
    width: 440px;
    max-width: 92vw;
    border-radius: 12px;
    padding-bottom: 24px;
}

.dialog-header-clean {
    display: flex;
    justify-content: flex-end;
    padding: 12px 14px 0 14px;
}

.text-center-body {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 0 24px 16px 24px;
}

.dialog-success-icon-wrap {
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.dialog-success-img {
    width: 80px;
    height: 80px;
    display: block;
}

.dialog-success-title {
    font-size: 18px;
    font-weight: 700;
    color: #151515;
    margin: 0 0 8px 0;
    line-height: 1.3;
}

.dialog-success-subtitle {
    font-size: 13px;
    font-weight: 400;
    color: #808080;
    margin: 0;
    line-height: 1.5;
    max-width: 320px;
}

/* ================================================================
   EMAIL TO MARKETING USER DIALOG (input_file_0.png)
   ================================================================ */
.email-marketing-dialog {
    width: 1100px;
    max-width: 95vw;
    border-radius: 12px;
}

.email-mkt-body {
    padding: 16px 20px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.email-mkt-filter-bar {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
}

.email-mkt-filter-item {
    flex: 1;
    position: relative;
}

.email-mkt-select {
    width: 100%;
    height: 36px;
    padding: 0 28px 0 10px;
    font-size: 12px;
    color: #555555;
    background-color: #FFFFFF;
    border: 1px solid #E5E7EB;
    border-radius: 6px;
    appearance: none;
    -webkit-appearance: none;
    cursor: pointer;
    box-sizing: border-box;
}

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

    .email-mkt-chevron svg {
        width: 18px;
        height: 18px;
        fill: none;
        stroke: currentColor;
        stroke-width: 2;
    }

.email-mkt-table-wrapper {
    border: 1px solid #E5E7EB;
    border-radius: 8px;
    overflow-x: auto;
    max-height: 320px;
    overflow-y: auto;
}

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

    .email-mkt-table th {
        background-color: #FAFBFD;
        color: #808080;
        font-weight: 500;
        font-size: 12px;
        padding: 10px 12px;
        border-bottom: 1px solid #E5E7EB;
        white-space: nowrap;
        text-align: left;
        position: sticky;
        top: 0;
        z-index: 2;
    }

    .email-mkt-table td {
        padding: 8px 12px;
        border-bottom: 1px solid #F3F4F6;
        color: #151515;
        white-space: nowrap;
        vertical-align: middle;
    }

    .email-mkt-table tbody tr:hover {
        background-color: #F9FAFB;
    }

.email-mkt-checkbox {
    width: 16px;
    height: 16px;
    accent-color: #FF0000;
    cursor: pointer;
}

.email-mkt-prod-link {
    color: #151515;
    text-decoration: underline;
    text-decoration-color: #B0B0B0;
    text-underline-offset: 3px;
    font-weight: 400;
    cursor: pointer;
}

/* Status Badges - PMR List Standard (105px x 26px, 10.5px font) */
.email-mkt-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 105px;
    height: 26px;
    border-radius: 50px;
    font-size: 10.5px;
    font-weight: 500;
    line-height: 1;
    white-space: nowrap;
    box-sizing: border-box;
}




.badge-submitted {
    background-color: #FFF7ED;
    border: 1px solid #FED7AA;
    color: #F97316;
}

.badge-material-added {
    background-color: #F3F4F6;
    border: 1px solid #E5E7EB;
    color: #6B7280;
}

.badge-costing-done {
    background-color: #F3E8FF;
    border: 1px solid #E9D5FF;
    color: #9333EA;
}

.badge-negotiating {
    background-color: #FEF3C7;
    border: 1px solid #FDE68A;
    color: #D97706;
}

.badge-price-approved {
    background-color: #FCE7F3;
    border: 1px solid #FBCFE8;
    color: #EC4899;
}

.badge-in-production {
    background-color: #FAE8FF;
    border: 1px solid #F5D0FE;
    color: #D946EF;
}

.badge-completed {
    background-color: #DCFCE7;
    border: 1px solid #BBF7D0;
    color: #16A34A;
}

.badge-discarded {
    background-color: #FEE2E2;
    border: 1px solid #FECACA;
    color: #EF4444;
}

.dialog-btn.email-mkt-submit-btn {
    background-color: #FF0000;
    color: #FFFFFF;
    border: none;
    border-radius: 6px;
    padding: 8px 24px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    transition: background-color 0.12s;
}

.dialog-btn.santej-create-pmr-submit-btn:hover {
    background-color: #D60000;
}

/* ================================================================
   SANTEJ PMR DETAILS DIALOG (input_file_0.png)
   ================================================================ */
.santej-pmr-details-dialog {
    width: 880px;
    max-width: 95vw;
    border-radius: 12px;
    /* Bound the card to the viewport so header/footer stay fixed
       and only the body scrolls */
    max-height: 90vh;
    overflow: hidden;
}

    /* Keep header and footer from shrinking so the body absorbs
       the scrolling area */
    .santej-pmr-details-dialog .spmrd-header,
    .santej-pmr-details-dialog .spmrd-footer {
        flex-shrink: 0;
    }

.spmrd-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

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

.spmrd-body {
    padding: 16px 20px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    box-sizing: border-box;
    flex: 1 1 auto;
    min-height: 0;
    max-height: calc(90vh - 120px);
    overflow-y: auto !important;
    overflow-x: hidden !important;
}


.spmrd-info-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    column-gap: 20px;
    row-gap: 14px;
    width: 100%;
}

.spmrd-info-item {
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
}

.spmrd-info-label {
    font-size: 11.5px;
    font-weight: 600;
    color: #151515;
    line-height: 1.3;
}

.spmrd-info-value {
    font-size: 12.5px;
    font-weight: 400;
    color: #808080;
    line-height: 1.4;
    word-break: break-all;
}

.spmrd-col-span-full {
    grid-column: span 3;
}

.spmrd-card {
    background-color: #F8F9FA;
    border: 1px solid #E5E7EB;
    border-radius: 8px;
    padding: 14px 18px;
    box-sizing: border-box;
}

.spmrd-card-title {
    font-size: 13.5px;
    font-weight: 700;
    color: #151515;
    margin: 0 0 4px 0;
    line-height: 1.2;
}

.spmrd-card-subtitle {
    font-size: 11.5px;
    font-weight: 400;
    color: #808080;
    margin: 0 0 10px 0;
}

.spmrd-cost-val {
    font-size: 12.5px;
    font-weight: 500;
    color: #151515;
}

.spmrd-cost-bold {
    font-size: 16px;
    font-weight: 700;
    color: #151515;
    margin-left: 4px;
}

.spmrd-cost-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
    width: 100%;
}

.spmrd-cost-diff {
    font-size: 12.5px;
    color: #6B7280;
}

.spmrd-cost-diff-bold {
    font-size: 16px;
    font-weight: 700;
    color: #FF0000;
    margin-left: 4px;
}

.spmrd-field-group {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-bottom: 12px;
    width: 100%;
}

.spmrd-field-label {
    font-size: 12px;
    font-weight: 600;
    color: #151515;
}

.spmrd-field-input {
    width: 100%;
    height: 38px;
    border: 1px solid #E5E7EB;
    border-radius: 6px;
    padding: 0 12px;
    font-size: 12.5px;
    color: #151515;
    background-color: #FFFFFF;
    outline: none;
    box-sizing: border-box;
    font-family: inherit;
    transition: border-color 0.15s;
}

    .spmrd-field-input:focus {
        border-color: #FF0000;
    }

/* Stepper Timeline - Long Progress Lines */
.spmrd-stepper {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-top: 14px;
    width: 100%;
    padding: 0 4px;
    box-sizing: border-box;
}

.spmrd-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    flex: 0 0 auto;
}

.spmrd-step-icon {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background-color: #808080;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #FFFFFF;
    font-size: 11px;
    font-weight: 700;
}

    .spmrd-step-icon.gray {
        background-color: #808080;
    }

.spmrd-step-label {
    font-size: 10.5px;
    font-weight: 600;
    color: #151515;
    text-align: center;
    white-space: nowrap;
}

.spmrd-step-line {
    flex: 1;
    height: 2px;
    background-color: #E2E8F0;
    margin: 11px 8px 0 8px;
    align-self: flex-start;
}

    .spmrd-step-line.active,
    .spmrd-step-line.done {
        background-color: #A7F3D0;
    }

/* Done: step already passed - filled green, same look as the old "completed" state */
.spmrd-step.done .spmrd-step-icon {
    background-color: #22C55E;
}

/* Current: active step being worked on - highlighted ring */
.spmrd-step.current .spmrd-step-icon {
    background-color: #2563EB;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.2);
}

.spmrd-step.current .spmrd-step-label {
    color: #2563EB;
}



/* Footer Action Buttons */
.dialog-footer.spmrd-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 12px 20px;
    box-sizing: border-box;
}

.spmrd-footer-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.spmrd-btn-approve {
    background-color: #FF0000;
    color: #FFFFFF;
    border: none;
    border-radius: 6px;
    padding: 8px 24px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    transition: background-color 0.12s;
}

    .spmrd-btn-approve:hover {
        background-color: #D60000;
    }

.spmrd-btn-email-mkt {
    background-color: #FFFFFF;
    color: #151515;
    border: 1px solid #D1D5DB;
    border-radius: 6px;
    padding: 8px 20px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    transition: background-color 0.12s;
}

    .spmrd-btn-email-mkt:hover {
        background-color: #F8F9FA;
    }

.spmrd-btn-submit-admin {
    background-color: #151515;
    color: #FFFFFF;
    border: none;
    border-radius: 6px;
    padding: 8px 20px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    transition: background-color 0.12s;
}

    .spmrd-btn-submit-admin:hover {
        background-color: #2D2D2D;
    }



/* ================================================================
   SANTEJ CREATE PMR DIALOG (input_file_0.png)
   ================================================================ */
.santej-create-pmr-dialog {
    width: 980px;
    max-width: 95vw;
    border-radius: 12px;
}

.scpmr-body {
    padding: 16px 20px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    box-sizing: border-box;
    max-height: 75vh;
    overflow-y: auto;
}


.scpmr-form-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    column-gap: 18px;
    row-gap: 14px;
    width: 100%;
}

.scpmr-form-group {
    display: flex;
    flex-direction: column;
    gap: 4px;
    width: 100%;
}

.scpmr-label {
    font-size: 12px;
    font-weight: 600;
    color: #151515;
    line-height: 1.3;
}

.req-star {
    color: #EF4444;
    font-weight: 700;
}

.scpmr-input {
    width: 100%;
    height: 36px;
    padding: 0 12px;
    font-size: 12px;
    color: #151515;
    background-color: #FFFFFF;
    border: 1px solid #E5E7EB;
    border-radius: 6px;
    outline: none;
    box-sizing: border-box;
    font-family: inherit;
    transition: border-color 0.15s;
}

    .scpmr-input:focus {
        border-color: #FF0000;
    }

    .scpmr-input::placeholder {
        color: #9CA3AF;
    }

.scpmr-select-wrap,
.scpmr-date-wrap {
    position: relative;
    width: 100%;
}

.scpmr-select {
    width: 100%;
    height: 36px;
    padding: 0 28px 0 12px;
    font-size: 12px;
    color: #151515;
    background-color: #FFFFFF;
    border: 1px solid #E5E7EB;
    border-radius: 6px;
    appearance: none;
    -webkit-appearance: none;
    outline: none;
    cursor: pointer;
    box-sizing: border-box;
    font-family: inherit;
}

    .scpmr-select:focus {
        border-color: #FF0000;
    }

.scpmr-chevron,
.scpmr-calendar-icon {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    display: flex;
    align-items: center;
    color: #9CA3AF;
}

    .scpmr-chevron svg {
        width: 18px;
        height: 18px;
        fill: none;
        stroke: currentColor;
        stroke-width: 2;
    }

/* Searchable free-text dropdown (Received From / Product Name) */
.scpmr-searchable-wrapper {
    position: relative;
    width: 100%;
}

.scpmr-searchable-input-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

    .scpmr-searchable-input-wrap .scpmr-input {
        padding-right: 30px;
    }

.scpmr-searchable-clear-btn {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    display: flex;
    align-items: center;
    color: #9CA3AF;
    line-height: 1;
}

    .scpmr-searchable-clear-btn:hover {
        color: #374151;
    }

.scpmr-searchable-dropdown {
    position: absolute;
    top: calc(100% + 2px);
    left: 0;
    right: 0;
    background: #FFFFFF;
    border: 1px solid #E5E7EB;
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.10);
    z-index: 1000;
    max-height: 180px;
    overflow-y: auto;
}

.scpmr-searchable-item {
    padding: 8px 12px;
    font-size: 13px;
    color: #374151;
    cursor: pointer;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

    .scpmr-searchable-item:hover {
        background-color: #F3F4F6;
    }

/* Color Card Section */
.scpmr-color-card {
    border: 1px solid #E5E7EB;
    border-radius: 8px;
    overflow: hidden;
    background: #FFFFFF;
    width: 100%;
    box-sizing: border-box;
}

.scpmr-color-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    border-bottom: 1px solid #E5E7EB;
    background-color: #FFFFFF;
}

.scpmr-color-title {
    font-size: 13.5px;
    font-weight: 700;
    color: #151515;
    margin: 0 0 2px 0;
    line-height: 1.2;
}

.scpmr-color-subtitle {
    font-size: 11.5px;
    font-weight: 400;
    color: #808080;
    margin: 0;
}

.scpmr-btn-add-color {
    background-color: #FFFFFF;
    color: #151515;
    border: 1px solid #E5E7EB;
    border-radius: 6px;
    padding: 6px 14px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s ease;
    font-family: inherit;
}

    .scpmr-btn-add-color:hover {
        background-color: #F8F9FA;
        border-color: #CBD5E1;
    }

.scpmr-color-table-wrapper {
    width: 100%;
    overflow-x: auto;
    max-height: 220px;
    overflow-y: auto;
}

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

    .scpmr-color-table th {
        background-color: #FAFBFD;
        color: #808080;
        font-weight: 500;
        font-size: 12px;
        padding: 10px 12px;
        border-bottom: 1px solid #E5E7EB;
        white-space: nowrap;
        text-align: left;
        position: sticky;
        top: 0;
        z-index: 2;
    }

    .scpmr-color-table td {
        padding: 8px 10px;
        border-bottom: 1px solid #F3F4F6;
        vertical-align: middle;
    }

.scpmr-btn-delete {
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 4px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: background-color 0.12s;
}

    .scpmr-btn-delete:hover {
        background-color: #FEE2E2;
    }

        .scpmr-btn-delete:hover svg {
            stroke: #EF4444;
        }

.dialog-btn.santej-create-pmr-submit-btn {
    background-color: #FF0000;
    color: #FFFFFF;
    border: none;
    border-radius: 6px;
    padding: 8px 24px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    transition: background-color 0.12s;
}

    .dialog-btn.santej-create-pmr-submit-btn:hover {
        background-color: #D60000;
    }

/* ================================================================
   SANTEJ PRODUCTION PMR DETAILS DIALOG STYLES
   ================================================================ */
.prod-pmr-details-dialog {
    width: 680px;
    max-width: 94vw;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
}

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

.prod-dialog-title-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
}

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

/* Section 1: Product Code Box */
.prod-code-box {
    background-color: #F8FAFC;
    border: 1px solid #EAEAEA;
    border-radius: 8px;
    padding: 12px 14px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

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

.prod-code-input-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.prod-code-input {
    flex: 1;
    height: 36px;
    padding: 0 12px;
    font-size: 12px;
    color: #333333;
    background-color: #FFFFFF;
    border: 1px solid #E2E8F0;
    border-radius: 6px;
    box-sizing: border-box;
}

    .prod-code-input::placeholder {
        color: #9CA3AF;
    }

.prod-btn-save-code {
    background-color: #1A1A1A;
    color: #FFFFFF;
    border: none;
    border-radius: 6px;
    padding: 0 18px;
    height: 36px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.15s ease;
}

    .prod-btn-save-code:hover {
        background-color: #000000;
    }

/* Section 2: 3-Column Info Grid */
.prod-info-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    column-gap: 16px;
    row-gap: 10px;
}

.prod-info-item {
    display: flex;
    flex-direction: column;
    gap: 3px;
    border-bottom: 1px solid #F1F5F9;
    padding-bottom: 8px;
}

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

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

/* Section 3: Raw Material Weights Card (Grey Outer Box) */
.prod-rm-weights-card {
    background-color: #F8FAFC;
    border: 1px solid #EAEAEA;
    border-radius: 8px;
    padding: 14px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.prod-rm-header-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
}

.prod-rm-title {
    font-size: 14px;
    font-weight: 700;
    color: #151515;
    margin: 0 0 2px 0;
}

.prod-rm-subtitle {
    font-size: 11.5px;
    color: #9CA3AF;
    margin: 0;
}

.prod-rm-controls {
    display: flex;
    align-items: center;
    gap: 8px;
}

.prod-toggle-text {
    font-size: 12px;
    font-weight: 500;
    color: #333333;
}

.prod-recommended-pill {
    background-color: #F3E8FF;
    border: 1px solid #C084FC;
    color: #9333EA;
    border-radius: 12px;
    padding: 0 12px;
    font-size: 10.5px;
    font-weight: 500;
    min-width: 105px;
    width: 105px;
    height: 26px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 24px;
    box-sizing: border-box;
    vertical-align: middle;
    white-space: nowrap;
}

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

.prod-rm-table {
    width: 100%;
    border-collapse: collapse;
}

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

    .prod-rm-table th {
        font-size: 11.5px;
        font-weight: 500;
        color: #64748B;
        padding: 8px 12px;
        text-align: left;
    }

    .prod-rm-table td {
        padding: 8px 12px;
        vertical-align: middle;
        border-bottom: 1px solid #F1F5F9;
        font-size: 12px;
        font-weight: 400;
        color: #151515;
    }

    .prod-rm-table tfoot td {
        border-bottom: none;
        background-color: #FAFAFA;
    }

.prod-weight-input {
    width: 100%;
    height: 32px;
    padding: 0 10px;
    font-size: 12px;
    color: #333333;
    background-color: #FFFFFF;
    border: 1px solid #E2E8F0;
    border-radius: 6px;
    box-sizing: border-box;
}

    .prod-weight-input::placeholder {
        color: #9CA3AF;
    }

    .prod-weight-input:focus {
        outline: none;
        border-color: #CBD5E1;
    }

/* Footer Actions */
.prod-dialog-footer {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    padding: 12px 20px;
    border-top: 1px solid #EAEAEA;
    background-color: #FFFFFF;
}

.prod-btn-close {
    background-color: #FFFFFF;
    border: 1px solid #D9E0E7;
    border-radius: 6px;
    padding: 8px 22px;
    font-size: 12.5px;
    font-weight: 600;
    color: #1A1A1A;
    cursor: pointer;
    height: 36px;
    transition: all 0.15s ease;
}

    .prod-btn-close:hover {
        background-color: #F8FAFC;
        border-color: #CBD5E1;
    }

.prod-btn-submit-admin {
    background-color: #FF0000;
    color: #FFFFFF;
    border: none;
    border-radius: 6px;
    padding: 8px 22px;
    font-size: 12.5px;
    font-weight: 600;
    cursor: pointer;
    height: 36px;
    transition: background-color 0.15s ease;
}

    .prod-btn-submit-admin:hover {
        background-color: #CC0000;
    }

/* ================================================================
   PRODUCTION RECOMMENDED DIALOG STYLES
   ================================================================ */
.prod-recommended-dialog {
    width: 480px;
    max-width: 90vw;
    background-color: #FFFFFF;
    border-radius: 12px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.15);
    overflow: hidden;
}

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

.prod-rec-body {
    padding: 18px 20px 22px 20px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.prod-rec-info-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

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

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

.prod-rec-value {
    font-size: 12.5px;
    font-weight: 400;
    color: #808080;
}

.prod-rec-divider {
    height: 1px;
    background-color: #F1F5F9;
    width: 100%;
}

.prod-rec-note-section {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.prod-rec-note-text {
    font-size: 12.5px;
    font-weight: 400;
    color: #808080;
    margin: 0;
    line-height: 1.45;
}

/* ==========================================================================
   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;
    }

/* 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;
    }

/* Hajipur Dispatch User PMR Details Dialog Styles (hdpd-*) */
.hdpd-card {
    background-color: #FFFFFF;
    border-radius: 12px;
    width: 780px;
    max-width: 95vw;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    overflow: hidden;
}

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

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

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

.hdpd-status-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 3px 12px;
    background-color: #FFF0F0;
    border: 1px solid #FFC2C2;
    color: #F04438;
    font-size: 11.5px;
    font-weight: 500;
    border-radius: 14px;
}

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

.hdpd-body {
    padding: 22px;
    overflow-y: auto;
}

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

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

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

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

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

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

    .hdpd-btn-completed:hover {
        background-color: #000000;
    }

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

    .hdpd-btn-upload-invoice:hover {
        opacity: 0.9;
    }


/* ================================================================
   PMR QUOTATION EMAIL TEMPLATE
   Scoped styles to avoid conflicts with existing application CSS
   ================================================================ */

.pmr-email-template {
    font-family: "IBM Plex Sans", Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f5f5f5;
    color: #555555;
    width: 100%;
}

    .pmr-email-template table {
        border-collapse: collapse;
    }

    .pmr-email-template .email-container {
        width: 650px;
        max-width: 100%;
        margin: 20px auto;
        background-color: #ffffff;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    }

    .pmr-email-template .email-header {
        border-bottom: 4px solid #A7805D;
        padding: 20px;
    }

    .pmr-email-template .email-content {
        padding: 20px;
    }

    .pmr-email-template .email-details {
        width: 100%;
        font-size: 14px;
        line-height: 1.8;
        margin-bottom: 20px;
    }

        .pmr-email-template .email-details td {
            vertical-align: top;
        }

    .pmr-email-template .email-label {
        width: 70px;
        font-weight: 600;
        color: #333333;
    }

    .pmr-email-template .company-name {
        font-size: 18px;
        font-weight: 700;
        text-decoration: underline;
        color: #333333;
    }

    .pmr-email-template .sample-table {
        width: 100%;
        margin: 20px 0;
        border: 1px solid #555555;
        font-size: 14px;
    }

        .pmr-email-template .sample-table th,
        .pmr-email-template .sample-table td {
            border: 1px solid #555555;
            padding: 8px;
            text-align: center;
            vertical-align: middle;
        }

        .pmr-email-template .sample-table th {
            font-weight: 700;
            background-color: #f5f5f5;
            color: #333333;
        }

        .pmr-email-template .sample-table td {
            color: #333333;
        }

    .pmr-email-template .price {
        font-weight: 700;
    }

    .pmr-email-template .signature {
        font-size: 15px;
        font-weight: 600;
        line-height: 1.4;
    }

@media only screen and (max-width: 650px) {
    .pmr-email-template .email-container {
        width: 100% !important;
        margin: 0 !important;
    }

    .pmr-email-template .email-content {
        padding: 15px !important;
    }

    .pmr-email-template .sample-table {
        font-size: 11px !important;
    }

        .pmr-email-template .sample-table th,
        .pmr-email-template .sample-table td {
            padding: 5px !important;
        }
}

/* =========================================
   DELETE CONFIRMATION DIALOG (Location-wise)
   ========================================= */
.dialog-delete-card {
    width: 380px;
    max-width: 90vw;
}

.delete-icon-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    margin: 0 auto;
    border-radius: 50%;
    background-color: #fee2e2;
}

.delete-icon-wrapper svg {
    stroke: #dc2626;
}

.dialog-delete-submit-btn {
    background-color: #dc2626 !important;
}

.dialog-delete-submit-btn:hover {
    background-color: #b91c1c !important;
}

.dialog-delete-title {
    font-size: 15px;
    font-weight: 600;
    color: #1e293b;
    word-break: break-word;
    overflow-wrap: anywhere;
    max-width: 100%;
    padding: 0 8px;
    box-sizing: border-box;
}

.dialog-delete-msg {
    font-size: 12.5px;
    color: #64748b;
    word-break: break-word;
    overflow-wrap: anywhere;
    max-width: 100%;
    box-sizing: border-box;
}


/* =========================================
   CUSTOMER DIALOG - INPUT VALIDATION
   ========================================= */

/* Default / untouched / empty */
.dialog-card .dialog-input,
.dialog-card .dialog-input.form-control {
    border: 1px solid #e5e7eb !important;
    box-shadow: none !important;
    outline: none !important;
}

    /* =========================================
   FOCUS
   ========================================= */

    .dialog-card .dialog-input:focus,
    .dialog-card .dialog-input.form-control:focus {
        border-color: var(--primary-color) !important;
        outline: none !important;
        box-shadow: 0 0 0 2px color-mix( in srgb, var(--primary-color) 15%, transparent ) !important;
    }

    /* =========================================
   VALID - ONLY AFTER VALUE IS ENTERED
   ========================================= */

    .dialog-card .dialog-input.valid:not(:focus):not(:placeholder-shown),
    .dialog-card .dialog-input.is-valid:not(:focus):not(:placeholder-shown) {
        border-color: #198754 !important;
        box-shadow: none !important;
    }

    /* =========================================
   INVALID
   ========================================= */

    .dialog-card .dialog-input.invalid:not(:focus),
    .dialog-card .dialog-input.is-invalid:not(:focus) {
        border-color: #dc3545 !important;
        box-shadow: none !important;
    }

    /* =========================================
   FOCUS - VALID / INVALID
   ========================================= */

    /* Valid + focused = metallic / dark gray */
    .dialog-card .dialog-input.valid:focus,
    .dialog-card .dialog-input.is-valid:focus {
        border-color: #9CA3AF !important;
        box-shadow: 0 0 0 2px rgba(108, 117, 125, 0.15) !important;
    }

    /* Invalid + focused = metallic / dark gray */
    .dialog-card .dialog-input.invalid:focus,
    .dialog-card .dialog-input.is-invalid:focus {
        border-color: #9CA3AF !important;
        box-shadow: 0 0 0 2px rgba(108, 117, 125, 0.15) !important;
    }