/* NE Vault User Dashboard Styles */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;600;700&family=Open+Sans:wght@400;600&display=swap');

.ne-user-dashboard {
    font-family: 'Open Sans', sans-serif;
    max-width: 1400px;
    margin: 0 auto;
    padding: 24px;
}

/* Auth Container */
.ne-dash-auth {
    max-width: 480px;
    margin: 40px auto;
}

.ne-auth-container {
    background: var(--ne-white, #fff);
    border: 1px solid var(--ne-gray-200, #e5e7eb);
    border-radius: 12px;
    padding: 32px;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1);
}

.ne-auth-header {
    text-align: center;
    margin-bottom: 24px;
}

.ne-auth-header h2 {
    font-family: 'Poppins', sans-serif;
    font-size: 24px;
    font-weight: 700;
    color: var(--ne-text, #001a33);
    margin: 0 0 8px 0;
}

.ne-auth-header p {
    color: var(--ne-gray-500, #6b7280);
    margin: 0;
}

.ne-auth-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 24px;
}

.ne-auth-tab {
    flex: 1;
    padding: 12px 16px;
    background: var(--ne-gray-100, #f3f4f6);
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    color: var(--ne-gray-600, #4b5563);
    cursor: pointer;
    transition: all 0.15s;
}

.ne-auth-tab:hover {
    background: var(--ne-gray-200, #e5e7eb);
}

.ne-auth-tab.active {
    background: var(--ne-primary, #020873);
    color: var(--ne-white, #fff);
}

.ne-auth-form {
    display: none;
}

.ne-auth-form.active {
    display: block;
}

.ne-form-group {
    margin-bottom: 16px;
}

.ne-form-group label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: var(--ne-gray-700, #374151);
    margin-bottom: 6px;
}

.ne-form-group .required {
    color: var(--ne-error, #ef4444);
}

.ne-form-group input,
.ne-form-group select,
.ne-form-group textarea {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--ne-gray-300, #d1d5db);
    border-radius: 8px;
    font-size: 14px;
    transition: border-color 0.15s, box-shadow 0.15s;
}

.ne-form-group input:focus,
.ne-form-group select:focus,
.ne-form-group textarea:focus {
    outline: none;
    border-color: var(--ne-primary, #020873);
    box-shadow: 0 0 0 3px rgba(2,8,115,0.1);
}

.ne-form-group small {
    display: block;
    font-size: 12px;
    color: var(--ne-gray-500, #6b7280);
    margin-top: 4px;
}

.ne-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.ne-form-error {
    background: #fef2f2;
    color: #dc2626;
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 13px;
    margin-bottom: 16px;
    display: none;
}

.ne-form-error:not(:empty) {
    display: block;
}

.ne-forgot-link {
    font-size: 13px;
    color: var(--ne-primary, #020873);
    text-decoration: none;
}

.ne-forgot-link:hover {
    text-decoration: underline;
}

/* Dashboard Content */
.ne-dash-content {
    min-height: 600px;
}

.ne-dash-header {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin: 0 0 20px;
    padding: 20px 28px;
    background: linear-gradient(135deg, #020873 0%, #2B4CB9 100%);
    border-radius: 12px;
    border-bottom: none;
}

.ne-dash-welcome {
    flex: 1;
    min-width: 0;
}

.ne-dash-welcome h1 {
    font-family: 'Poppins', sans-serif;
    font-size: 20px;
    font-weight: 700;
    color: #fff;
    margin: 0;
    line-height: 1.3;
}

.ne-dash-welcome p {
    color: rgba(255,255,255,0.6);
    margin: 3px 0 0;
    font-size: 13px;
}

.ne-dash-actions {
    display: flex;
    align-items: center;
    justify-content: center;
}

.ne-dash-header .ne-btn-secondary {
    background: rgba(255,255,255,0.12) !important;
    border: 1px solid rgba(255,255,255,0.28);
    color: rgba(255,255,255,0.9);
    font-size: 13px;
    font-weight: 500;
    padding: 8px 18px;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s;
    text-decoration: none;
    display: inline-block;
}

.ne-dash-header .ne-btn-secondary:hover {
    background: rgba(255,255,255,0.22) !important;
    border-color: rgba(255,255,255,0.5);
    color: #fff;
}

/* Dashboard Navigation */
.ne-dash-nav {
    display: flex;
    justify-content: center;
    gap: 0;
    margin: 0 0 24px;
    padding: 0 4px;
    background: #0c155a;
    border-radius: 10px;
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: none;
}

.ne-dash-nav::-webkit-scrollbar {
    display: none;
}

.ne-dash-tab {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 13px 18px;
    background: transparent;
    border: none;
    border-bottom: 3px solid transparent;
    font-family: 'Poppins', sans-serif;
    font-size: 13px;
    font-weight: 500;
    color: rgba(255,255,255,0.55);
    cursor: pointer;
    transition: color 0.15s, border-color 0.15s, background 0.15s;
    white-space: nowrap;
    line-height: 1;
    flex-shrink: 0;
}

.ne-dash-tab:hover {
    color: rgba(255,255,255,0.9);
    background: rgba(255,255,255,0.06);
}

.ne-dash-tab.active {
    color: #FCD361;
    border-bottom-color: #FCD361;
    background: rgba(255,255,255,0.06);
    box-shadow: none;
}

.ne-dash-tab svg {
    width: 16px;
    height: 16px;
}

/* Dashboard Panels */
.ne-dash-panel {
    display: none;
}

.ne-dash-panel.active {
    display: block;
}

.ne-panel-header {
    margin-bottom: 24px;
}

.ne-panel-header h2 {
    font-family: 'Poppins', sans-serif;
    font-size: 20px;
    font-weight: 600;
    color: var(--ne-text, #001a33);
    margin: 0 0 4px 0;
}

.ne-panel-header p {
    color: var(--ne-gray-500, #6b7280);
    margin: 0;
}

/* Stats Grid */
.ne-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-bottom: 32px;
}

.ne-stat-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 18px 20px;
    background: var(--ne-white, #fff);
    border: 1px solid var(--ne-gray-200, #e5e7eb);
    border-left: 4px solid var(--ne-primary, #020873);
    border-radius: 0 8px 8px 0;
}

.ne-stat-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
}

.ne-stat-icon svg {
    width: 24px;
    height: 24px;
}

.ne-stat-blue { background: #dbeafe; color: #2563eb; }
.ne-stat-yellow { background: #fef3c7; color: #d97706; }
.ne-stat-green { background: #d1fae5; color: #059669; }
.ne-stat-purple { background: #ede9fe; color: #7c3aed; }

.ne-stat-content {
    display: flex;
    flex-direction: column;
}

.ne-stat-value {
    font-family: 'Poppins', sans-serif;
    font-size: 24px;
    font-weight: 700;
    color: var(--ne-text, #001a33);
}

.ne-stat-label {
    font-size: 13px;
    color: var(--ne-gray-500, #6b7280);
}

/* Orders Table */
.ne-recent-orders h3,
.ne-doc-list-section h3,
.ne-doc-upload-section h3 {
    font-size: 16px;
    font-weight: 600;
    color: var(--ne-text, #001a33);
    margin: 0 0 16px 0;
}

.ne-orders-table-wrap {
    overflow-x: auto;
}

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

.ne-orders-table th,
.ne-orders-table td {
    padding: 12px 16px;
    text-align: left;
    border-bottom: 1px solid var(--ne-gray-200, #e5e7eb);
}

.ne-orders-table th {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--ne-gray-500, #6b7280);
    background: var(--ne-gray-50, #f9fafb);
}

.ne-orders-table td {
    font-size: 14px;
    color: var(--ne-text, #001a33);
}

/* Status Badges */
.ne-status {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 100px;
    font-size: 12px;
    font-weight: 500;
    text-transform: capitalize;
}

.ne-status-pending { background: #fef3c7; color: #92400e; }
.ne-status-processing { background: #dbeafe; color: #1e40af; }
.ne-status-on-hold { background: #fef3c7; color: #92400e; }
.ne-status-completed { background: #d1fae5; color: #065f46; }
.ne-status-cancelled { background: #fee2e2; color: #991b1b; }
.ne-status-refunded { background: #f3f4f6; color: #374151; }
.ne-status-failed { background: #fee2e2; color: #991b1b; }
.ne-status-invoiced { background: #ede9fe; color: #5b21b6; }
.ne-status-engineering-review { background: #fce7f3; color: #9d174d; }

/* Order detail — Tracking info */
.ne-order-detail-tracking {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--ne-gray-200, #e5e7eb);
}

.ne-order-detail-tracking h5 {
    font-size: 13px;
    font-weight: 600;
    color: var(--ne-gray-500, #6b7280);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin: 0 0 10px;
}

.ne-tracking-info {
    background: var(--ne-gray-50, #f9fafb);
    border: 1px solid var(--ne-gray-200, #e5e7eb);
    border-radius: 8px;
    padding: 12px 14px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.ne-tracking-row {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 13px;
}

.ne-tracking-label {
    width: 100px;
    flex-shrink: 0;
    color: var(--ne-gray-500, #6b7280);
    font-weight: 500;
}

.ne-tracking-value {
    color: var(--ne-text, #111827);
    font-weight: 500;
}

.ne-tracking-link {
    color: var(--ne-secondary-color, #2B4CB9);
    text-decoration: none;
    font-weight: 600;
}

.ne-tracking-link:hover {
    text-decoration: underline;
}

/* Order Cards */
.ne-orders-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.ne-order-card {
    background: var(--ne-white, #fff);
    border: 1px solid var(--ne-gray-200, #e5e7eb);
    border-radius: 12px;
    padding: 20px;
}

.ne-order-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 16px;
}

.ne-order-info h4 {
    font-size: 16px;
    font-weight: 600;
    color: var(--ne-text, #001a33);
    margin: 0 0 4px 0;
}

.ne-order-date {
    font-size: 13px;
    color: var(--ne-gray-500, #6b7280);
}

.ne-order-items {
    padding: 12px 0;
    border-top: 1px solid var(--ne-gray-100, #f3f4f6);
    border-bottom: 1px solid var(--ne-gray-100, #f3f4f6);
}

.ne-order-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
}

.ne-item-name {
    flex: 1;
    font-size: 14px;
    color: var(--ne-text, #001a33);
}

.ne-item-qty {
    font-size: 13px;
    color: var(--ne-gray-500, #6b7280);
    margin: 0 16px;
}

.ne-item-total {
    font-size: 14px;
    font-weight: 500;
    color: var(--ne-text, #001a33);
}

.ne-order-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 16px;
    flex-wrap: wrap;
    gap: 12px;
}

.ne-order-total {
    font-size: 14px;
    color: var(--ne-gray-600, #4b5563);
}

.ne-order-total strong {
    font-size: 18px;
    color: var(--ne-text, #001a33);
    margin-left: 8px;
}

.ne-order-docs {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 13px;
    color: var(--ne-gray-500, #6b7280);
}

.ne-order-docs svg {
    width: 16px;
    height: 16px;
}

/* Documents */
.ne-doc-upload-section {
    background: var(--ne-white, #fff);
    border: 1px solid var(--ne-gray-200, #e5e7eb);
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 24px;
}

.ne-doc-upload-form {
    max-width: 600px;
}

.ne-file-drop {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 32px;
    border: 2px dashed var(--ne-gray-300, #d1d5db);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.15s;
    text-align: center;
    position: relative;
}

.ne-file-drop:hover,
.ne-file-drop.ne-drag-over {
    border-color: var(--ne-primary, #020873);
    background: rgba(2,8,115,0.02);
}

.ne-file-drop svg {
    color: var(--ne-gray-400, #9ca3af);
    margin-bottom: 12px;
}

.ne-file-drop span {
    font-size: 14px;
    color: var(--ne-gray-600, #4b5563);
    margin-bottom: 4px;
}

.ne-file-drop small {
    font-size: 12px;
    color: var(--ne-gray-500, #6b7280);
}

.ne-file-drop input[type="file"] {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
    z-index: 1;
}

.ne-doc-list-section {
    background: var(--ne-white, #fff);
    border: 1px solid var(--ne-gray-200, #e5e7eb);
    border-radius: 12px;
    padding: 24px;
}

.ne-doc-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.ne-doc-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: var(--ne-gray-50, #f9fafb);
    border-radius: 8px;
}

.ne-doc-item-sm {
    padding: 8px 12px;
}

.ne-doc-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--ne-white, #fff);
    border-radius: 8px;
    color: var(--ne-gray-500, #6b7280);
}

.ne-doc-info {
    flex: 1;
    min-width: 0;
}

.ne-doc-name {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: var(--ne-text, #001a33);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ne-doc-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: var(--ne-gray-500, #6b7280);
}

.ne-doc-type {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 500;
    text-transform: uppercase;
}

.ne-doc-type-po { background: #dbeafe; color: #1e40af; }
.ne-doc-type-qc { background: #d1fae5; color: #065f46; }
.ne-doc-type-batch { background: #fef3c7; color: #92400e; }

/* Account Section */
.ne-account-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
}

.ne-account-section {
    background: var(--ne-white, #fff);
    border: 1px solid var(--ne-gray-200, #e5e7eb);
    border-radius: 12px;
    padding: 24px;
}

.ne-account-section h3 {
    font-size: 16px;
    font-weight: 600;
    color: var(--ne-text, #001a33);
    margin: 0 0 16px 0;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--ne-gray-100, #f3f4f6);
}

.ne-profile-info {
    margin-bottom: 16px;
}

.ne-profile-row {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid var(--ne-gray-100, #f3f4f6);
}

.ne-profile-row:last-child {
    border-bottom: none;
}

.ne-profile-row label {
    font-size: 13px;
    color: var(--ne-gray-500, #6b7280);
}

.ne-profile-row span {
    font-size: 14px;
    color: var(--ne-text, #001a33);
    font-weight: 500;
}

.ne-credit-status {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 16px;
}

.ne-credit-approved {
    background: #d1fae5;
    color: #065f46;
}

.ne-credit-pending {
    background: #fef3c7;
    color: #92400e;
}

.ne-credit-details {
    margin-bottom: 16px;
}

.ne-credit-row {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid var(--ne-gray-100, #f3f4f6);
}

.ne-credit-row label {
    font-size: 13px;
    color: var(--ne-gray-500, #6b7280);
}

.ne-credit-row span {
    font-size: 14px;
    color: var(--ne-text, #001a33);
}

.ne-credit-available span {
    font-size: 18px;
    font-weight: 700;
    color: var(--ne-primary, #020873);
}

.ne-credit-apply-text {
    font-size: 14px;
    color: var(--ne-gray-600, #4b5563);
    margin-bottom: 16px;
}

.ne-prepaid-balance {
    text-align: center;
    padding: 20px;
    background: var(--ne-gray-50, #f9fafb);
    border-radius: 8px;
}

.ne-prepaid-amount {
    display: block;
    font-size: 32px;
    font-weight: 700;
    color: var(--ne-primary, #020873);
}

.ne-prepaid-label {
    font-size: 13px;
    color: var(--ne-gray-500, #6b7280);
}

/* Empty States */
.ne-empty-state {
    text-align: center;
    padding: 48px 24px;
    color: var(--ne-gray-500, #6b7280);
}

.ne-empty-state svg {
    width: 48px;
    height: 48px;
    margin-bottom: 16px;
    opacity: 0.5;
}

.ne-empty-state h3 {
    font-size: 16px;
    font-weight: 600;
    color: var(--ne-text, #001a33);
    margin: 0 0 8px 0;
}

.ne-empty-state p {
    margin: 0 0 16px 0;
}

.ne-empty-small {
    padding: 24px;
}

/* Modal */
.ne-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.ne-modal.active {
    display: flex;
}

.ne-modal-content {
    background: var(--ne-white, #fff);
    border-radius: 12px;
    max-width: 600px;
    width: 100%;
    max-height: 80vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.ne-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 24px;
    border-bottom: 1px solid var(--ne-gray-200, #e5e7eb);
}

.ne-modal-header h3 {
    font-size: 18px;
    font-weight: 600;
    margin: 0;
}

.ne-modal-close {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--ne-gray-100, #f3f4f6);
    border: none;
    border-radius: 8px;
    font-size: 20px;
    cursor: pointer;
}

.ne-modal-close:hover {
    background: var(--ne-gray-200, #e5e7eb);
}

.ne-modal-body {
    padding: 24px;
    overflow-y: auto;
}

/* Order Detail in Modal */
.ne-order-detail-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 20px;
}

.ne-order-detail-header h4 {
    font-size: 18px;
    font-weight: 600;
    margin: 0 0 4px 0;
}

.ne-order-detail-items {
    margin-bottom: 20px;
}

.ne-order-detail-items h5,
.ne-order-detail-docs h5 {
    font-size: 14px;
    font-weight: 600;
    color: var(--ne-gray-500, #6b7280);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 0 0 12px 0;
}

.ne-detail-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid var(--ne-gray-100, #f3f4f6);
}

.ne-order-detail-totals {
    background: var(--ne-gray-50, #f9fafb);
    padding: 16px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.ne-total-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
}

.ne-total-final {
    border-top: 1px solid var(--ne-gray-200, #e5e7eb);
    margin-top: 8px;
    padding-top: 12px;
    font-weight: 600;
    font-size: 16px;
}

/* Buttons */
.ne-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 500;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.15s;
    text-decoration: none;
}

.ne-btn-primary {
    background: var(--ne-button-primary, var(--ne-yellow, #FCD361));
    color: var(--ne-button-primary-text, #000);
}

.ne-btn-primary:hover {
    background: var(--ne-button-hover, var(--ne-secondary, #2b4cb9));
    color: var(--ne-button-hover-text, #fff);
}

.ne-btn-secondary {
    background: var(--ne-white, #fff);
    border: 1px solid var(--ne-gray-300, #d1d5db);
    color: var(--ne-text, #001a33);
}

.ne-btn-secondary:hover {
    background: var(--ne-gray-50, #f9fafb);
}

.ne-btn-sm {
    padding: 6px 12px;
    font-size: 13px;
}

.ne-btn-full {
    width: 100%;
}

.ne-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Loading */
.ne-loading {
    text-align: center;
    padding: 24px;
    color: var(--ne-gray-500, #6b7280);
}

/* Checkbox */
.ne-checkbox {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 14px;
}

.ne-checkbox input {
    width: 16px !important;
    height: 16px;
    margin: 0;
}

/* Responsive */
@media (max-width: 768px) {
    .ne-user-dashboard {
        padding: 16px;
    }

    .ne-dash-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }

    .ne-dash-nav {
        flex-direction: column;
        padding: 4px;
    }

    .ne-dash-tab {
        justify-content: flex-start;
    }

    .ne-form-row {
        grid-template-columns: 1fr;
    }

    .ne-stats-grid {
        grid-template-columns: 1fr;
    }

    .ne-account-grid {
        grid-template-columns: 1fr;
    }

    .ne-order-footer {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* ================================
   Revision Badges & Notifications
   ================================ */

/* Revision badge on order items */
.ne-item-revision {
    display: inline-flex;
    align-items: center;
    background: #e0e7ff;
    color: #3730a3;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    margin-left: 8px;
}

/* Update available notice */
.ne-revision-notice {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: #d97706;
    font-size: 12px;
    font-weight: 500;
    padding: 2px 8px;
    background: #fef3c7;
    border-radius: 4px;
    cursor: help;
}

.ne-revision-notice svg {
    flex-shrink: 0;
}

/* Inline notice in order details modal */
.ne-revision-notice-inline {
    color: #d97706;
    font-size: 12px;
    font-weight: 500;
    margin-left: 8px;
}

/* ================================
   Cart Tab Styles
   ================================ */

.ne-cart {
    max-width: 900px;
}

.ne-cart-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    background: var(--ne-primary, #020873);
    color: var(--ne-white, #fff);
    border-radius: 10px;
    font-size: 11px;
    font-weight: 600;
    margin-left: 8px;
}

.ne-dash-tab.active .ne-cart-count {
    background: rgba(255,255,255,0.2);
}

.ne-cart-items {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 24px;
}

.ne-cart-item {
    display: grid;
    grid-template-columns: 80px 1fr auto auto auto;
    gap: 16px;
    align-items: center;
    background: var(--ne-white, #fff);
    border: 1px solid var(--ne-gray-200, #e5e7eb);
    border-radius: 8px;
    padding: 16px;
    transition: box-shadow 0.15s;
}

.ne-cart-item:hover {
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.ne-cart-item-image {
    width: 80px;
    height: 80px;
    border-radius: 6px;
    overflow: hidden;
    background: var(--ne-gray-100, #f3f4f6);
}

.ne-cart-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ne-cart-item-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--ne-gray-400, #9ca3af);
}

.ne-cart-item-3d {
    width: 100%;
    height: 100%;
    background: var(--ne-gray-100, #f3f4f6);
}

.ne-cart-item-3d canvas {
    display: block;
    width: 100% !important;
    height: 100% !important;
}

.ne-cart-item-details {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.ne-cart-item-name {
    font-size: 15px;
    font-weight: 600;
    margin: 0;
}

.ne-cart-item-name a {
    color: var(--ne-text, #001a33);
    text-decoration: none;
}

.ne-cart-item-name a:hover {
    color: var(--ne-primary, #020873);
}

.ne-cart-item-sku {
    font-size: 12px;
    color: var(--ne-gray-500, #6b7280);
}

.ne-cart-item-price {
    font-size: 13px;
    color: var(--ne-gray-600, #4b5563);
}

.ne-cart-item-quantity {
    display: flex;
    align-items: center;
    gap: 8px;
}

.ne-cart-item-quantity label {
    font-size: 13px;
    color: var(--ne-gray-600, #4b5563);
}

.ne-cart-qty-input {
    width: 70px;
    padding: 8px 10px;
    border: 1px solid var(--ne-gray-300, #d1d5db);
    border-radius: 6px;
    font-size: 14px;
    text-align: center;
}

.ne-cart-qty-input:focus {
    outline: none;
    border-color: var(--ne-primary, #020873);
    box-shadow: 0 0 0 2px rgba(2,8,115,0.1);
}

.ne-cart-item-total {
    font-size: 16px;
    font-weight: 600;
    color: var(--ne-primary, #020873);
    min-width: 80px;
    text-align: right;
}

.ne-cart-remove-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border: none;
    background: transparent;
    color: var(--ne-gray-400, #9ca3af);
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.15s;
}

.ne-cart-remove-btn:hover {
    background: #fee2e2;
    color: #dc2626;
}

/* Cart Summary */
.ne-cart-summary {
    background: var(--ne-gray-50, #f9fafb);
    border: 1px solid var(--ne-gray-200, #e5e7eb);
    border-radius: 8px;
    padding: 24px;
}

.ne-cart-totals {
    margin-bottom: 20px;
}

.ne-cart-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    font-size: 14px;
    color: var(--ne-gray-600, #4b5563);
}

.ne-cart-row.ne-cart-total {
    border-top: 1px solid var(--ne-gray-200, #e5e7eb);
    margin-top: 8px;
    padding-top: 16px;
    font-size: 18px;
    font-weight: 600;
    color: var(--ne-text, #001a33);
}

.ne-cart-total-amount {
    color: var(--ne-primary, #020873);
}

.ne-cart-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
}

.ne-cart-actions .ne-btn {
    padding: 12px 24px;
}

/* Cart loading state */
.ne-cart.ne-loading {
    opacity: 0.6;
    pointer-events: none;
}

/* Responsive Cart */
@media (max-width: 768px) {
    .ne-cart-item {
        grid-template-columns: 60px 1fr;
        grid-template-rows: auto auto auto;
        gap: 12px;
    }

    .ne-cart-item-image {
        width: 60px;
        height: 60px;
        grid-row: 1 / 3;
    }

    .ne-cart-item-quantity {
        grid-column: 2;
    }

    .ne-cart-item-total {
        grid-column: 2;
        text-align: left;
    }

    .ne-cart-remove-btn {
        position: absolute;
        top: 8px;
        right: 8px;
    }

    .ne-cart-item {
        position: relative;
        padding-right: 48px;
    }

    .ne-cart-actions {
        flex-direction: column;
    }

    .ne-cart-actions .ne-btn {
        width: 100%;
        justify-content: center;
    }
}

/* Checkout tab (PO / Net 30) */
.ne-checkout .ne-po-file-wrapper {
    display: block;
    position: relative;
}
.ne-checkout .ne-po-file-wrapper input[type="file"] {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
    z-index: 2;
}
.ne-checkout .ne-po-file-label {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 15px;
    background: #fff;
    border: 2px dashed #cbd5e0;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
}
.ne-checkout .ne-po-file-wrapper:hover .ne-po-file-label {
    border-color: #4a5568;
    background: #f7fafc;
}
.ne-checkout .ne-po-file-wrapper.has-file .ne-po-file-label {
    border-color: #48bb78;
    background: #f0fff4;
}
.ne-checkout .ne-po-file-hint {
    display: block;
    margin-top: 5px;
    color: #718096;
    font-size: 12px;
}
.ne-checkout .ne-form-group label .optional {
    color: #718096;
    font-weight: 400;
}
.ne-checkout-not-approved {
    padding: 24px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
}
.ne-checkout-not-approved p {
    margin: 0 0 12px;
}
.ne-checkout-not-approved .ne-btn {
    margin-top: 12px;
}

/* ── My Requests Tab ──────────────────────────────────────── */
.ne-requests-list { display: flex; flex-direction: column; gap: 12px; }
.ne-request-card { background: #fff; border: 1px solid var(--ne-gray-200); border-radius: 8px; padding: 16px 20px; }
.ne-request-card-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 8px; gap: 12px; }
.ne-request-ref { font-weight: 700; font-size: 14px; margin-right: 8px; }
.ne-request-type { font-size: 12px; color: var(--ne-gray-500); background: var(--ne-gray-100); padding: 2px 8px; border-radius: 3px; }
.ne-status-badge { font-size: 12px; font-weight: 600; padding: 3px 10px; border-radius: 20px; white-space: nowrap; }
.ne-request-desc { font-size: 13px; color: var(--ne-gray-600); margin-bottom: 12px; line-height: 1.5; }
.ne-request-card-footer { display: flex; justify-content: space-between; align-items: center; }
.ne-request-date { font-size: 12px; color: var(--ne-gray-400); }
.ne-request-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.ne-quote-actions { display: flex; align-items: center; gap: 8px; }
.ne-btn-sm { padding: 6px 14px; font-size: 13px; }
.ne-quote-badge { font-size: 12px; font-weight: 600; padding: 4px 12px; border-radius: 20px; }
.ne-quote-approved { background: #d1fae5; color: #065f46; }

/* ============================================================
   OVERVIEW — Quick Actions
   ============================================================ */
.ne-quick-actions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 14px;
    margin-bottom: 24px;
}

.ne-quick-action-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 28px 20px 22px;
    background: #ffffff !important;
    border: 1px solid rgba(0,0,0,0.07);
    border-radius: 16px;
    cursor: pointer;
    transition: box-shadow 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
    text-align: center;
    text-decoration: none;
    color: inherit;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    font-family: inherit;
    -webkit-user-select: none;
    user-select: none;
}

.ne-quick-action-card:hover {
    box-shadow: 0 10px 28px rgba(2,8,115,0.12);
    transform: translateY(-4px);
    border-color: rgba(2,8,115,0.15);
}

.ne-quick-action-card:focus-visible {
    outline: 2px solid #FCD361;
    outline-offset: 2px;
}

.ne-qa-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.ne-qa-navy   { background: linear-gradient(135deg, #e8eaf6 0%, #c5caf0 100%); color: #020873; }
.ne-qa-yellow { background: linear-gradient(135deg, #fef9e7 0%, #fde68a 100%); color: #92400e; }
.ne-qa-teal   { background: linear-gradient(135deg, #e0f2fe 0%, #bae6fd 100%); color: #0369a1; }
.ne-qa-green  { background: linear-gradient(135deg, #dcfce7 0%, #bbf7d0 100%); color: #15803d; }
.ne-qa-purple { background: linear-gradient(135deg, #f3e8ff 0%, #ddd6fe 100%); color: #6d28d9; }

.ne-qa-label {
    font-family: 'Poppins', sans-serif;
    font-size: 13px;
    font-weight: 600;
    color: #001a33;
    line-height: 1.3;
}

.ne-qa-sub {
    font-size: 11.5px;
    color: #9ca3af;
    line-height: 1.4;
}

/* ============================================================
   OVERVIEW — Credit Widget
   ============================================================ */
.ne-credit-widget {
    background: linear-gradient(135deg, #020873 0%, #2B4CB9 100%);
    border-radius: 10px;
    padding: 20px 24px;
    margin-bottom: 20px;
    color: #fff;
}

.ne-credit-widget-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 14px;
}

.ne-credit-widget-title {
    font-family: 'Poppins', sans-serif;
    font-size: 12px;
    font-weight: 600;
    color: rgba(255,255,255,0.65);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.ne-credit-available-badge {
    font-size: 11px;
    font-weight: 600;
    background: rgba(252,211,97,0.2);
    color: #FCD361;
    padding: 3px 10px;
    border-radius: 20px;
    border: 1px solid rgba(252,211,97,0.4);
}

.ne-credit-amounts {
    display: flex;
    gap: 28px;
    flex-wrap: wrap;
}

.ne-credit-stat {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.ne-credit-stat-value {
    font-family: 'Poppins', sans-serif;
    font-size: 22px;
    font-weight: 700;
    color: #fff;
    line-height: 1;
}

.ne-credit-stat-value .woocommerce-Price-amount {
    color: #fff;
}

.ne-credit-stat-label {
    font-size: 11px;
    color: rgba(255,255,255,0.55);
}

.ne-credit-bar-track {
    height: 5px;
    background: rgba(255,255,255,0.2);
    border-radius: 999px;
    margin-top: 16px;
    overflow: hidden;
}

.ne-credit-bar-fill {
    height: 100%;
    background: #FCD361;
    border-radius: 999px;
    transition: width 0.6s ease;
    min-width: 2px;
}

.ne-credit-bar-label {
    display: block;
    font-size: 11px;
    color: rgba(255,255,255,0.5);
    margin-top: 5px;
}

/* ============================================================
   OVERVIEW — Section Cards (Active Orders, Pending Quotes)
   ============================================================ */
.ne-overview-section {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    margin-bottom: 20px;
    overflow: hidden;
}

.ne-overview-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 20px;
    border-bottom: 1px solid #f3f4f6;
    background: #f9fafb;
}

.ne-overview-section-header h3 {
    font-family: 'Poppins', sans-serif;
    font-size: 13px;
    font-weight: 600;
    color: #001a33;
    margin: 0;
    display: flex;
    align-items: center;
}

.ne-link-btn {
    display: inline-block;
    background: #f0f2ff !important;
    border: 1px solid #c7cef5;
    color: #2B4CB9 !important;
    font-size: 11.5px;
    font-weight: 600;
    cursor: pointer;
    padding: 4px 12px;
    border-radius: 20px;
    font-family: 'Poppins', sans-serif;
    text-decoration: none;
    line-height: 1.6;
    transition: background 0.15s, border-color 0.15s;
    -webkit-user-select: none;
    user-select: none;
}

.ne-link-btn:hover {
    background: #e0e4ff !important;
    border-color: #a0abec;
    text-decoration: none;
}

.ne-overview-row {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 20px;
    border-bottom: 1px solid #f9fafb;
    font-size: 13px;
    flex-wrap: wrap;
}

.ne-overview-row:last-child {
    border-bottom: none;
}

.ne-overview-row-main {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.ne-overview-row-title {
    font-weight: 600;
    color: #001a33;
    font-size: 13px;
}

.ne-overview-row-sub {
    font-size: 12px;
    color: #6b7280;
}

.ne-overview-row-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.ne-overview-row-total {
    font-size: 13px;
    font-weight: 600;
    color: #001a33;
}

.ne-overview-row-actions {
    flex-shrink: 0;
}

.ne-empty-mini {
    padding: 32px 20px;
    text-align: center;
    color: #9ca3af;
    font-size: 13px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.ne-empty-mini p {
    margin: 0;
    color: #9ca3af;
}

/* Cart count badge on nav tab */
.ne-cart-count {
    background: #FCD361;
    color: #001a33;
    font-size: 10px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 20px;
    line-height: 1;
}

/* ============================================================
   CREDIT APPLICATION — CTA & STATUS CARDS
   ============================================================ */
.ne-credit-cta-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 20px;
    background: linear-gradient(135deg, #f0f2ff 0%, #e8eaf6 100%);
    border: 1px solid #c7cef5;
    border-radius: 12px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}
.ne-credit-cta-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #020873 0%, #2B4CB9 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    flex-shrink: 0;
}
.ne-credit-cta-text {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 3px;
}
.ne-credit-cta-text strong {
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: #020873;
}
.ne-credit-cta-text span {
    font-size: 12.5px;
    color: #4b5563;
}
.ne-credit-status-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 18px;
    border-radius: 12px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}
.ne-credit-pending { background: #fefce8; border: 1px solid #fde68a; }
.ne-credit-pending .ne-credit-status-icon { color: #d97706; }
.ne-credit-rejected { background: #fff1f2; border: 1px solid #fca5a5; }
.ne-credit-rejected .ne-credit-status-icon { color: #dc2626; }
.ne-credit-status-icon { flex-shrink: 0; }
.ne-credit-status-text {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.ne-credit-status-text strong {
    font-family: 'Poppins', sans-serif;
    font-size: 13px;
    font-weight: 600;
    color: #111827;
}
.ne-credit-status-text span { font-size: 12px; color: #6b7280; }

/* ============================================================
   CREDIT APPLICATION FORM
   ============================================================ */
.ne-credit-app-wrap { margin-bottom: 24px; }
.ne-credit-app-form {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    overflow: hidden;
}
.ne-credit-app-form-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 20px 24px;
    background: linear-gradient(135deg, #020873 0%, #2B4CB9 100%);
}
.ne-credit-app-form-header h2 {
    font-family: 'Poppins', sans-serif;
    font-size: 16px;
    font-weight: 700;
    color: #fff;
    margin: 0 0 4px;
}
.ne-credit-app-form-header p { font-size: 12px; color: rgba(255,255,255,0.65); margin: 0; }
.ne-credit-app-close {
    width: 32px;
    height: 32px;
    background: rgba(255,255,255,0.15);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: rgba(255,255,255,0.8);
    flex-shrink: 0;
    transition: background 0.15s;
}
.ne-credit-app-close:hover { background: rgba(255,255,255,0.25); color: #fff; }
.ne-caf-section {
    padding: 22px 24px;
    border-bottom: 1px solid #f3f4f6;
}
.ne-caf-section:last-child { border-bottom: none; }
.ne-caf-section-title {
    font-family: 'Poppins', sans-serif;
    font-size: 13px;
    font-weight: 600;
    color: #020873;
    margin: 0 0 14px;
    padding-bottom: 8px;
    border-bottom: 2px solid #e8eaf6;
}
.ne-caf-section-hint { font-size: 12.5px; color: #9ca3af; margin: -8px 0 14px; }
.ne-caf-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.ne-caf-full { grid-column: 1 / -1; }
.ne-caf-field { display: flex; flex-direction: column; gap: 5px; }
.ne-caf-field label { font-size: 12.5px; font-weight: 500; color: #374151; }
.ne-caf-req { color: #dc2626; }
.ne-caf-hint { color: #9ca3af; font-weight: 400; font-size: 11.5px; }
.ne-caf-field input[type="text"],
.ne-caf-field input[type="email"],
.ne-caf-field input[type="tel"],
.ne-caf-field input[type="number"] {
    padding: 9px 12px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 13px;
    font-family: 'Open Sans', sans-serif;
    color: #111827;
    background: #fff !important;
    transition: border-color 0.15s, box-shadow 0.15s;
    width: 100%;
    box-sizing: border-box;
}
.ne-caf-field input:focus { border-color: #2B4CB9; box-shadow: 0 0 0 3px rgba(43,76,185,0.1); outline: none; }
.ne-caf-field input[disabled] { background: #f9fafb !important; color: #9ca3af; }
.ne-caf-radio-group { display: flex; flex-wrap: wrap; gap: 10px; padding-top: 4px; }
.ne-caf-radio {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: #374151;
    cursor: pointer;
    font-weight: 400;
}
.ne-caf-refs-table { border: 1px solid #e5e7eb; border-radius: 8px; overflow: hidden; }
.ne-caf-refs-head {
    display: grid;
    grid-template-columns: 28px 1fr 1fr 1fr;
    background: #f9fafb;
    padding: 8px 12px;
    font-size: 11.5px;
    font-weight: 600;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: .04em;
    border-bottom: 1px solid #e5e7eb;
    gap: 8px;
}
.ne-caf-refs-row {
    display: grid;
    grid-template-columns: 28px 1fr 1fr 1fr;
    gap: 8px;
    align-items: center;
    padding: 8px 12px;
    border-bottom: 1px solid #f3f4f6;
}
.ne-caf-refs-row:last-child { border-bottom: none; }
.ne-caf-refs-num { font-size: 12px; color: #9ca3af; font-weight: 600; }
.ne-caf-refs-row input {
    padding: 7px 10px;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    font-size: 12.5px;
    width: 100%;
    box-sizing: border-box;
    font-family: 'Open Sans', sans-serif;
    background: #fff !important;
}
.ne-caf-refs-row input:focus { border-color: #2B4CB9; outline: none; }
.ne-caf-terms-box {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 16px 18px;
    margin-bottom: 16px;
    font-size: 12.5px;
    color: #374151;
    line-height: 1.7;
}
.ne-caf-terms-box p { margin: 0 0 10px; font-weight: 500; }
.ne-caf-terms-box ol { margin: 0; padding-left: 18px; }
.ne-caf-terms-box li { margin-bottom: 6px; }
.ne-caf-terms-box a { color: #2B4CB9; text-decoration: underline; }
.ne-caf-agree-check {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 13px;
    color: #374151;
    cursor: pointer;
    font-weight: 400;
    margin-top: 4px;
}
.ne-caf-agree-check input { margin-top: 2px; flex-shrink: 0; }
.ne-caf-submit-row {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 16px;
    padding: 18px 24px;
    background: #f9fafb;
    border-top: 1px solid #e5e7eb;
    flex-wrap: wrap;
}
.ne-caf-error { color: #dc2626; font-size: 13px; }
.ne-btn-lg { padding: 11px 28px !important; font-size: 14px !important; }
.ne-credit-app-success {
    padding: 48px 24px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}
.ne-credit-app-success h3 {
    font-family: 'Poppins', sans-serif;
    font-size: 18px;
    font-weight: 700;
    color: #065f46;
    margin: 0;
}
.ne-credit-app-success p { font-size: 14px; color: #6b7280; max-width: 420px; margin: 0; line-height: 1.6; }
@media (max-width: 640px) {
    .ne-caf-grid { grid-template-columns: 1fr; }
    .ne-caf-full { grid-column: auto; }
    .ne-credit-cta-card { flex-direction: column; align-items: flex-start; }
}

/* ── Add Part to Library Form ──────────────────────────────────────── */
.ne-add-part-form-wrap {
    margin-bottom: 24px;
}
.ne-add-part-form-inner {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 28px 32px;
    position: relative;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}
.ne-add-part-form-header {
    margin-bottom: 24px;
    padding-right: 36px;
}
.ne-add-part-form-header h3 {
    font-family: 'Poppins', sans-serif;
    font-size: 18px;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 6px;
}
.ne-add-part-form-header p {
    font-size: 14px;
    color: #6b7280;
    margin: 0;
    line-height: 1.6;
}
.ne-add-part-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    font-size: 22px;
    color: #9ca3af;
    cursor: pointer;
    line-height: 1;
    padding: 4px 8px;
    border-radius: 4px;
}
.ne-add-part-close:hover { color: #374151; background: #f3f4f6; }
.ne-add-part-error {
    background: #fef2f2;
    border: 1px solid #fca5a5;
    color: #b91c1c;
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 13px;
    margin-bottom: 16px;
}
.ne-add-part-success-notice {
    background: #d1fae5;
    border: 1px solid #34d399;
    color: #065f46;
    padding: 14px 18px;
    border-radius: 8px;
    margin-bottom: 16px;
    font-size: 14px;
    font-weight: 600;
}
@media (max-width: 640px) {
    .ne-add-part-form-inner { padding: 20px 16px; }
}

/* ── Bulk Upload ──────────────────────────────────────────────────────────── */

.ne-bulk-row {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 16px;
    margin-bottom: 12px;
}
.ne-bulk-row-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}
.ne-bulk-row-num {
    font-weight: 700;
    font-size: 13px;
    color: #1e293b;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.ne-bulk-row-remove {
    background: none;
    border: none;
    color: #94a3b8;
    font-size: 12px;
    cursor: pointer;
    padding: 2px 6px;
    border-radius: 4px;
    transition: color 0.15s, background 0.15s;
}
.ne-bulk-row-remove:hover { color: #dc2626; background: #fef2f2; }
.ne-bulk-row-fields {
    display: grid;
    grid-template-columns: 2fr 1fr 2fr 2fr 1fr;
    gap: 10px;
    align-items: start;
}
.ne-bulk-field label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 4px;
}
.ne-bulk-field input[type="text"],
.ne-bulk-field input[type="number"],
.ne-bulk-field select,
.ne-bulk-field textarea {
    width: 100%;
    padding: 7px 10px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 13px;
    font-family: inherit;
    box-sizing: border-box;
    background: #fff;
    transition: border-color 0.15s;
}
.ne-bulk-field input:focus,
.ne-bulk-field select:focus,
.ne-bulk-field textarea:focus {
    outline: none;
    border-color: #FCD361;
    box-shadow: 0 0 0 2px rgba(252,211,97,0.25);
}
.ne-bulk-field input[type="file"] {
    width: 100%;
    font-size: 12px;
    padding: 4px 0;
}
.ne-bulk-row-status { margin-top: 8px; min-height: 20px; }

/* Progress bar */
.ne-bulk-progress-bar-track {
    height: 8px;
    background: #e2e8f0;
    border-radius: 99px;
    overflow: hidden;
}
.ne-bulk-progress-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #FCD361, #f59e0b);
    border-radius: 99px;
    transition: width 0.4s ease;
    width: 0%;
}

@media (max-width: 768px) {
    .ne-bulk-row-fields {
        grid-template-columns: 1fr 1fr;
    }
}
@media (max-width: 480px) {
    .ne-bulk-row-fields {
        grid-template-columns: 1fr;
    }
}
