
        /* ===================================================
           PROCUREMENT OFFICER — PR LIST  (Modern Design)
           =================================================== */

        /* ── Root container ── */
        .poc-root {
            display: flex;
            flex-direction: column;
            gap: 1.25rem;
            width: 100%;
        }

        /* ── Stats Strip ── */
        .poc-stats-strip {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
            gap: 0.75rem;
        }

        .poc-stat-card {
            background: #ffffff;
            border: 1px solid #e2e8f0;
            border-radius: 1rem;
            padding: 1rem 1.25rem;
            display: flex;
            align-items: center;
            gap: 0.9rem;
            box-shadow: 0 1px 4px rgba(15, 23, 42, .05);
            transition: box-shadow .18s;
        }

        .poc-stat-card:hover {
            box-shadow: 0 4px 14px rgba(15, 23, 42, .09);
        }

        .dark .poc-stat-card {
            background: #1e293b;
            border-color: #334155;
            box-shadow: none;
        }

        .poc-stat-icon {
            width: 2.6rem;
            height: 2.6rem;
            border-radius: 0.75rem;
            display: flex;
            align-items: center;
            justify-content: center;
            flex-shrink: 0;
        }

        .poc-stat-icon svg {
            width: 1.2rem;
            height: 1.2rem;
        }

        .poc-stat-icon.blue {
            background: #dbeafe;
            color: #1d4ed8;
        }

        .poc-stat-icon.amber {
            background: #fef3c7;
            color: #b45309;
        }

        .poc-stat-icon.green {
            background: #d1fae5;
            color: #065f46;
        }

        .poc-stat-icon.rose {
            background: #fee2e2;
            color: #be123c;
        }

        .poc-stat-icon.violet {
            background: #ede9fe;
            color: #6d28d9;
        }

        .dark .poc-stat-icon.blue {
            background: rgba(59, 130, 246, .15);
            color: #93c5fd;
        }

        .dark .poc-stat-icon.amber {
            background: rgba(245, 158, 11, .15);
            color: #fbbf24;
        }

        .dark .poc-stat-icon.green {
            background: rgba(16, 185, 129, .15);
            color: #34d399;
        }

        .dark .poc-stat-icon.rose {
            background: rgba(239, 68, 68, .15);
            color: #f87171;
        }

        .dark .poc-stat-icon.violet {
            background: rgba(139, 92, 246, .15);
            color: #a78bfa;
        }

        .poc-stat-value {
            font-size: 1.45rem;
            font-weight: 800;
            color: #0f172a;
            line-height: 1;
        }

        .dark .poc-stat-value {
            color: #f8fafc;
        }

        .poc-stat-label {
            font-size: 0.72rem;
            font-weight: 600;
            color: #64748b;
            text-transform: uppercase;
            letter-spacing: .04em;
            margin-top: .15rem;
        }

        .dark .poc-stat-label {
            color: #94a3b8;
        }

        /* ── Toolbar ── */
        .poc-toolbar {
            background: #ffffff;
            border: 1px solid #e2e8f0;
            border-radius: 1rem;
            padding: 1rem 1.25rem;
            box-shadow: 0 1px 4px rgba(15, 23, 42, .04);
            display: flex;
            flex-wrap: wrap;
            align-items: center;
            gap: .75rem;
        }

        .poc-date-range-group {
            display: flex;
            flex-wrap: wrap;
            gap: .75rem;
            align-items: center;
            flex: 1 1 420px;
            min-width: 0;
        }

        .dark .poc-toolbar {
            background: #1e293b;
            border-color: #334155;
        }

        .poc-search-wrap {
            position: relative;
            flex: 1 1 220px;
            min-width: 0;
        }

        .poc-search-icon {
            position: absolute;
            left: .85rem;
            top: 50%;
            transform: translateY(-50%);
            width: 1rem;
            height: 1rem;
            color: #94a3b8;
            pointer-events: none;
        }

        .poc-search-input {
            width: 100%;
            padding: .65rem .9rem .65rem 2.4rem;
            border-radius: .75rem;
            border: 1px solid #cbd5e1;
            background: #f8fafc;
            color: #0f172a;
            font-size: .875rem;
            font-weight: 600;
            transition: all .18s;
        }

        .poc-search-input:focus {
            outline: none;
            border-color: #6366f1;
            background: #ffffff;
            box-shadow: 0 0 0 3px rgba(99, 102, 241, .12);
        }

        .dark .poc-search-input {
            background: #0f172a;
            border-color: #334155;
            color: #f8fafc;
        }

        .dark .poc-search-input:focus {
            border-color: #818cf8;
            box-shadow: 0 0 0 3px rgba(129, 140, 248, .16);
        }

        .poc-search-input::placeholder {
            color: #94a3b8;
        }

        .poc-filter-select {
            padding: .65rem .9rem;
            border-radius: .75rem;
            border: 1px solid #cbd5e1;
            background: #f8fafc;
            color: #0f172a;
            font-size: .875rem;
            font-weight: 600;
            cursor: pointer;
            flex: 0 0 auto;
            transition: all .18s;
            min-width: 170px;
        }

        .poc-filter-select:focus {
            outline: none;
            border-color: #6366f1;
            box-shadow: 0 0 0 3px rgba(99, 102, 241, .12);
        }

        .dark .poc-filter-select {
            background: #0f172a;
            border-color: #334155;
            color: #f8fafc;
        }

        .poc-reset-btn {
            display: inline-flex;
            align-items: center;
            gap: .4rem;
            padding: .65rem 1rem;
            border-radius: .75rem;
            border: 1px solid #e2e8f0;
            background: #f8fafc;
            color: #64748b;
            font-size: .8rem;
            font-weight: 700;
            cursor: pointer;
            transition: all .18s;
            flex-shrink: 0;
        }

        .poc-reset-btn:hover {
            background: #fee2e2;
            border-color: #fecaca;
            color: #be123c;
        }

        .dark .poc-reset-btn {
            background: #1e293b;
            border-color: #334155;
            color: #94a3b8;
        }

        .dark .poc-reset-btn:hover {
            background: rgba(239, 68, 68, .15);
            border-color: rgba(239, 68, 68, .3);
            color: #f87171;
        }

        .poc-reset-btn svg {
            width: .85rem;
            height: .85rem;
        }

        /* ── Table card ── */
        .poc-table-card {
            background: #ffffff;
            border: 1px solid #e2e8f0;
            border-radius: 1.1rem;
            box-shadow: 0 1px 4px rgba(15, 23, 42, .04);
            overflow: hidden;
        }

        .dark .poc-table-card {
            background: #1e293b;
            border-color: #334155;
        }

        .poc-table {
            width: 100%;
            border-collapse: collapse;
            font-size: .875rem;
        }

        .poc-table thead th {
            background: #f8fafc;
            padding: .85rem 1rem;
            text-align: left;
            font-size: .7rem;
            font-weight: 800;
            color: #64748b;
            text-transform: uppercase;
            letter-spacing: .07em;
            border-bottom: 1px solid #e2e8f0;
            white-space: nowrap;
        }

        .dark .poc-table thead th {
            background: #0f172a;
            color: #64748b;
            border-bottom-color: #334155;
        }

        .poc-table tbody tr {
            border-bottom: 1px solid #f1f5f9;
            transition: background .14s;
        }

        .poc-table tbody tr:last-child {
            border-bottom: none;
        }

        .poc-table tbody tr:hover {
            background: #f8fafc;
        }

        .dark .poc-table tbody tr {
            border-bottom-color: #1e293b;
        }

        .dark .poc-table tbody tr:hover {
            background: #0f172a;
        }

        .poc-table td {
            padding: .9rem 1rem;
            color: #0f172a;
            vertical-align: middle;
        }

        .dark .poc-table td {
            color: #e2e8f0;
        }

        .poc-pr-number {
            font-weight: 800;
            color: #4f46e5;
            font-size: .9rem;
        }

        .dark .poc-pr-number {
            color: #818cf8;
        }

        .poc-vessel-name {
            font-weight: 700;
            color: #0f172a;
        }

        .dark .poc-vessel-name {
            color: #f1f5f9;
        }

        .poc-needs-text {
            color: #475569;
            font-weight: 500;
        }

        .dark .poc-needs-text {
            color: #94a3b8;
        }

        .poc-date-text {
            color: #64748b;
            font-size: .82rem;
            white-space: nowrap;
        }

        .dark .poc-date-text {
            color: #64748b;
        }

        .poc-requester-text {
            color: #374151;
            font-weight: 600;
            font-size: .82rem;
        }

        .dark .poc-requester-text {
            color: #cbd5e1;
        }

        /* ── Status pill ── */
        .poc-status-pill {
            display: inline-flex;
            align-items: center;
            gap: .35rem;
            padding: .28rem .75rem;
            border-radius: 9999px;
            font-size: .72rem;
            font-weight: 800;
            white-space: nowrap;
        }

        .poc-status-pill .poc-dot {
            width: .45rem;
            height: .45rem;
            border-radius: 50%;
            flex-shrink: 0;
        }

        .poc-pill-warning {
            background: #fffbeb;
            color: #92400e;
        }

        .poc-pill-danger {
            background: #fef2f2;
            color: #991b1b;
        }

        .poc-pill-info {
            background: #eff6ff;
            color: #1e40af;
        }

        .poc-pill-success {
            background: #ecfdf5;
            color: #065f46;
        }

        .poc-pill-gray {
            background: #f9fafb;
            color: #4b5563;
        }

        .poc-pill-violet {
            background: #ede9fe;
            color: #5b21b6;
        }

        .poc-dot-warning {
            background: #f59e0b;
        }

        .poc-dot-danger {
            background: #ef4444;
        }

        .poc-dot-info {
            background: #3b82f6;
        }

        .poc-dot-success {
            background: #10b981;
        }

        .poc-dot-gray {
            background: #9ca3af;
        }

        .poc-dot-violet {
            background: #8b5cf6;
        }

        .dark .poc-pill-warning {
            background: rgba(245, 158, 11, .12);
            color: #fbbf24;
        }

        .dark .poc-pill-danger {
            background: rgba(239, 68, 68, .12);
            color: #f87171;
        }

        .dark .poc-pill-info {
            background: rgba(59, 130, 246, .12);
            color: #60a5fa;
        }

        .dark .poc-pill-success {
            background: rgba(16, 185, 129, .12);
            color: #34d399;
        }

        .dark .poc-pill-gray {
            background: rgba(107, 114, 128, .1);
            color: #d1d5db;
        }

        .dark .poc-pill-violet {
            background: rgba(139, 92, 246, .12);
            color: #a78bfa;
        }

        /* ── Review button ── */
        .poc-review-btn {
            display: inline-flex;
            align-items: center;
            gap: .45rem;
            padding: .5rem 1.1rem;
            border-radius: .75rem;
            background: linear-gradient(135deg, #4f46e5, #7c3aed);
            color: #ffffff;
            font-size: .8rem;
            font-weight: 700;
            border: none;
            cursor: pointer;
            transition: all .18s;
            white-space: nowrap;
        }

        .poc-review-btn:hover {
            background: linear-gradient(135deg, #4338ca, #6d28d9);
            transform: translateY(-1px);
            box-shadow: 0 4px 12px rgba(79, 70, 229, .35);
        }

        .poc-review-btn svg {
            width: .8rem;
            height: .8rem;
        }

        /* ── Empty state ── */
        .poc-empty {
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            padding: 5rem 2rem;
            gap: 1rem;
        }

        .poc-empty-icon {
            width: 4rem;
            height: 4rem;
            color: #cbd5e1;
        }

        .poc-empty-title {
            font-size: 1.1rem;
            font-weight: 700;
            color: #475569;
        }

        .poc-empty-sub {
            font-size: .875rem;
            color: #94a3b8;
        }

        .dark .poc-empty-title {
            color: #94a3b8;
        }

        /* ── Pagination ── */
        .poc-pagination {
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: .85rem 1rem;
            border-top: 1px solid #f1f5f9;
            gap: .5rem;
            flex-wrap: wrap;
        }

        .dark .poc-pagination {
            border-top-color: #1e293b;
        }

        .poc-pagination-info {
            font-size: .8rem;
            color: #64748b;
            font-weight: 600;
        }

        .poc-pagination-btns {
            display: flex;
            align-items: center;
            gap: .35rem;
        }

        .poc-page-btn {
            min-width: 2rem;
            height: 2rem;
            padding: 0 .65rem;
            border-radius: .5rem;
            border: 1px solid #e2e8f0;
            background: #f8fafc;
            color: #374151;
            font-size: .8rem;
            font-weight: 700;
            cursor: pointer;
            transition: all .15s;
        }

        .poc-page-btn:hover {
            background: #4f46e5;
            border-color: #4f46e5;
            color: #ffffff;
        }

        .poc-page-btn.active {
            background: #4f46e5;
            border-color: #4f46e5;
            color: #ffffff;
        }

        .poc-page-btn:disabled {
            opacity: .4;
            cursor: not-allowed;
        }

        .poc-page-btn:disabled:hover {
            background: #f8fafc;
            border-color: #e2e8f0;
            color: #374151;
        }

        .dark .poc-page-btn {
            background: #1e293b;
            border-color: #334155;
            color: #cbd5e1;
        }

        .dark .poc-page-btn:hover,
        .dark .poc-page-btn.active {
            background: #4f46e5;
            border-color: #4f46e5;
            color: #ffffff;
        }

        .dark .poc-page-btn:disabled:hover {
            background: #1e293b;
            border-color: #334155;
            color: #cbd5e1;
        }

        /* ══════════════════════════════════════════
           DETAIL SIDE-PANEL  →  Full-screen Overlay
           ══════════════════════════════════════════ */
        .poc-panel-backdrop {
            position: fixed;
            inset: 0;
            z-index: 8000;
            background: rgba(2, 6, 23, .55);
            backdrop-filter: blur(4px);
            animation: pocFadeIn .2s ease;
        }

        @keyframes pocFadeIn {
            from {
                opacity: 0;
            }

            to {
                opacity: 1;
            }
        }

        @keyframes pocSlideUp {
            from {
                transform: translateY(2rem);
                opacity: 0;
            }

            to {
                transform: translateY(0);
                opacity: 1;
            }
        }

        .poc-panel {
            position: fixed;
            inset: 0;
            z-index: 8001;
            display: flex;
            flex-direction: column;
            background: #f1f5f9;
            animation: pocSlideUp .25s cubic-bezier(.22, 1, .36, 1);
            overflow: hidden;
        }

        .dark .poc-panel {
            background: #0f172a;
        }

        /* Panel header — top bar */
        .poc-panel-header {
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: 1rem 1.75rem;
            flex-shrink: 0;
            background: linear-gradient(135deg, #312e81 0%, #4f46e5 50%, #7c3aed 100%);
            box-shadow: 0 2px 12px rgba(79, 70, 229, .35);
            gap: 1rem;
        }

        .poc-panel-header-left {
            display: flex;
            align-items: center;
            gap: 1rem;
            min-width: 0;
        }

        .poc-panel-back-btn {
            width: 2.25rem;
            height: 2.25rem;
            border-radius: .6rem;
            border: 1.5px solid rgba(255, 255, 255, .3);
            background: rgba(255, 255, 255, .12);
            color: #fff;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            flex-shrink: 0;
            transition: background .15s;
        }

        .poc-panel-back-btn:hover {
            background: rgba(255, 255, 255, .25);
        }

        .poc-panel-back-btn svg {
            width: 1.1rem;
            height: 1.1rem;
        }

        .poc-panel-header-info {
            min-width: 0;
        }

        .poc-panel-kicker {
            font-size: .68rem;
            font-weight: 700;
            text-transform: uppercase;
            letter-spacing: .09em;
            color: rgba(255, 255, 255, .6);
            line-height: 1;
        }

        .poc-panel-pr-number {
            font-size: 1.35rem;
            font-weight: 900;
            color: #ffffff;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }

        .poc-panel-header-actions {
            display: flex;
            align-items: center;
            gap: .6rem;
            flex-shrink: 0;
        }

        .poc-panel-close-btn {
            width: 2.25rem;
            height: 2.25rem;
            border-radius: .6rem;
            border: 1.5px solid rgba(255, 255, 255, .3);
            background: rgba(255, 255, 255, .12);
            color: #fff;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: background .15s;
        }

        .poc-panel-close-btn:hover {
            background: rgba(255, 255, 255, .25);
        }

        .poc-panel-close-btn svg {
            width: 1.1rem;
            height: 1.1rem;
        }

        /* Panel body — scrollable area */
        .poc-panel-body {
            flex: 1;
            overflow-y: auto;
            padding: 1.5rem;
        }

        /* Two-column layout: info left, items right */
        .poc-detail-layout {
            display: grid;
            grid-template-columns: 340px 1fr;
            gap: 1.25rem;
            align-items: start;
            max-width: 1600px;
            margin: 0 auto;
        }

        @media (max-width: 960px) {
            .poc-detail-layout {
                grid-template-columns: 1fr;
            }
        }

        /* Left column */
        .poc-detail-left {
            display: flex;
            flex-direction: column;
            gap: 1rem;
            position: sticky;
            top: 0;
        }

        @media (max-width: 960px) {
            .poc-detail-left {
                position: static;
            }
        }

        /* Status banner */
        .poc-status-banner {
            background: #fff;
            border-radius: 1rem;
            padding: 1rem 1.25rem;
            border: 1px solid #e2e8f0;
            display: flex;
            flex-direction: column;
            gap: .6rem;
        }

        .dark .poc-status-banner {
            background: #1e293b;
            border-color: #334155;
        }

        .poc-sb-row {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: .5rem;
            flex-wrap: wrap;
        }

        .poc-sb-label {
            font-size: .7rem;
            font-weight: 700;
            text-transform: uppercase;
            letter-spacing: .06em;
            color: #94a3b8;
        }

        /* Info card */
        .poc-info-card {
            background: #fff;
            border: 1px solid #e2e8f0;
            border-radius: 1rem;
            padding: 1rem 1.25rem;
            display: flex;
            flex-direction: column;
            gap: 0;
        }

        .dark .poc-info-card {
            background: #1e293b;
            border-color: #334155;
        }

        .poc-info-card-title {
            font-size: .68rem;
            font-weight: 800;
            text-transform: uppercase;
            letter-spacing: .08em;
            color: #94a3b8;
            padding-bottom: .6rem;
            border-bottom: 1px solid #f1f5f9;
            margin-bottom: .1rem;
        }

        .dark .poc-info-card-title {
            border-bottom-color: #334155;
        }

        .poc-info-row {
            display: flex;
            align-items: flex-start;
            gap: .6rem;
            padding: .55rem 0;
            border-bottom: 1px solid #f8fafc;
        }

        .dark .poc-info-row {
            border-bottom-color: #0f172a;
        }

        .poc-info-row:last-child {
            border-bottom: none;
            padding-bottom: 0;
        }

        .poc-info-row:first-of-type {
            padding-top: .55rem;
        }

        .poc-info-row-icon {
            width: 1.6rem;
            height: 1.6rem;
            border-radius: .4rem;
            display: flex;
            align-items: center;
            justify-content: center;
            flex-shrink: 0;
            margin-top: .1rem;
        }

        .poc-info-row-icon svg {
            width: .8rem;
            height: .8rem;
        }

        .poc-row-icon-indigo {
            background: #e0e7ff;
            color: #4338ca;
        }

        .poc-row-icon-teal {
            background: #ccfbf1;
            color: #0f766e;
        }

        .poc-row-icon-amber {
            background: #fef9c3;
            color: #a16207;
        }

        .poc-row-icon-rose {
            background: #ffe4e6;
            color: #be123c;
        }

        .poc-row-icon-sky {
            background: #e0f2fe;
            color: #0369a1;
        }

        .poc-row-icon-violet {
            background: #ede9fe;
            color: #6d28d9;
        }

        .poc-row-icon-green {
            background: #d1fae5;
            color: #065f46;
        }

        .dark .poc-row-icon-indigo {
            background: rgba(67, 56, 202, .2);
            color: #a5b4fc;
        }

        .dark .poc-row-icon-teal {
            background: rgba(15, 118, 110, .2);
            color: #2dd4bf;
        }

        .dark .poc-row-icon-amber {
            background: rgba(161, 98, 7, .2);
            color: #fcd34d;
        }

        .dark .poc-row-icon-rose {
            background: rgba(190, 18, 60, .2);
            color: #fb7185;
        }

        .dark .poc-row-icon-sky {
            background: rgba(3, 105, 161, .2);
            color: #38bdf8;
        }

        .dark .poc-row-icon-violet {
            background: rgba(109, 40, 217, .2);
            color: #c4b5fd;
        }

        .dark .poc-row-icon-green {
            background: rgba(6, 95, 70, .2);
            color: #6ee7b7;
        }

        .poc-info-label {
            font-size: .68rem;
            font-weight: 700;
            text-transform: uppercase;
            letter-spacing: .06em;
            color: #94a3b8;
            line-height: 1;
            margin-bottom: .18rem;
        }

        .poc-info-value {
            font-size: .9rem;
            font-weight: 700;
            color: #0f172a;
            line-height: 1.4;
        }

        .dark .poc-info-value {
            color: #f1f5f9;
        }

        /* Convert button in header */
        .poc-convert-btn {
            display: inline-flex;
            align-items: center;
            gap: .45rem;
            padding: .6rem 1.25rem;
            border-radius: .75rem;
            border: none;
            background: linear-gradient(135deg, #059669, #0d9488);
            color: #fff;
            font-size: .85rem;
            font-weight: 700;
            cursor: pointer;
            transition: all .18s;
            white-space: nowrap;
        }

        .poc-convert-btn:hover {
            background: linear-gradient(135deg, #047857, #0f766e);
            transform: translateY(-1px);
            box-shadow: 0 4px 14px rgba(5, 150, 105, .4);
        }

        .poc-convert-btn svg {
            width: .9rem;
            height: .9rem;
        }

        .poc-close-action-btn {
            display: inline-flex;
            align-items: center;
            gap: .5rem;
            padding: .6rem 1.1rem;
            border-radius: .75rem;
            border: 1.5px solid rgba(255, 255, 255, .3);
            background: rgba(255, 255, 255, .12);
            color: #fff;
            font-size: .85rem;
            font-weight: 700;
            cursor: pointer;
            transition: all .15s;
        }

        .poc-close-action-btn:hover {
            background: rgba(255, 255, 255, .22);
        }

        /* Right column — items */
        .poc-items-card {
            background: #fff;
            border: 1px solid #e2e8f0;
            border-radius: 1rem;
            overflow: hidden;
        }

        .dark .poc-items-card {
            background: #1e293b;
            border-color: #334155;
        }

        .poc-items-toolbar {
            padding: 1rem 1.25rem;
            border-bottom: 1px solid #e2e8f0;
            display: flex;
            align-items: center;
            gap: .75rem;
            flex-wrap: wrap;
        }

        .dark .poc-items-toolbar {
            border-bottom-color: #334155;
        }

        .poc-items-title {
            font-size: .85rem;
            font-weight: 800;
            color: #0f172a;
            flex: 1;
            white-space: nowrap;
        }

        .dark .poc-items-title {
            color: #f1f5f9;
        }

        .poc-item-count-badge {
            padding: .2rem .65rem;
            border-radius: 9999px;
            background: #ede9fe;
            color: #6d28d9;
            font-size: .72rem;
            font-weight: 800;
        }

        .dark .poc-item-count-badge {
            background: rgba(139, 92, 246, .2);
            color: #c4b5fd;
        }

        .poc-item-search-wrap {
            position: relative;
            flex: 1 1 180px;
            min-width: 0;
        }

        .poc-item-search-icon {
            position: absolute;
            left: .75rem;
            top: 50%;
            transform: translateY(-50%);
            width: .85rem;
            height: .85rem;
            color: #94a3b8;
            pointer-events: none;
        }

        .poc-item-search-input {
            width: 100%;
            padding: .55rem .8rem .55rem 2.2rem;
            border-radius: .65rem;
            border: 1px solid #cbd5e1;
            background: #f8fafc;
            color: #0f172a;
            font-size: .82rem;
            font-weight: 600;
        }

        .poc-item-search-input:focus {
            outline: none;
            border-color: #6366f1;
            background: #fff;
            box-shadow: 0 0 0 3px rgba(99, 102, 241, .1);
        }

        .dark .poc-item-search-input {
            background: #0f172a;
            border-color: #334155;
            color: #f8fafc;
        }

        .poc-item-search-input::placeholder {
            color: #94a3b8;
        }

        .poc-item-cat-select {
            padding: .55rem .8rem;
            border-radius: .65rem;
            border: 1px solid #cbd5e1;
            background: #f8fafc;
            color: #0f172a;
            font-size: .82rem;
            font-weight: 600;
            cursor: pointer;
            min-width: 160px;
        }

        .poc-item-cat-select:focus {
            outline: none;
            border-color: #6366f1;
        }

        .dark .poc-item-cat-select {
            background: #0f172a;
            border-color: #334155;
            color: #f8fafc;
        }

        /* Items table */
        .poc-items-wrap {
            overflow-x: auto;
        }

        .poc-items-table {
            width: 100%;
            border-collapse: collapse;
            font-size: .83rem;
        }

        .poc-items-table thead th {
            background: #f8fafc;
            padding: .7rem 1rem;
            text-align: left;
            font-size: .68rem;
            font-weight: 800;
            color: #475569;
            text-transform: uppercase;
            letter-spacing: .07em;
            border-bottom: 1px solid #e2e8f0;
            white-space: nowrap;
        }

        .dark .poc-items-table thead th {
            background: #0f172a;
            color: #64748b;
            border-bottom-color: #1e293b;
        }

        .poc-items-table tbody tr {
            border-bottom: 1px solid #f1f5f9;
            transition: background .12s;
        }

        .poc-items-table tbody tr:last-child {
            border-bottom: none;
        }

        .poc-items-table tbody tr:hover {
            background: #f8fafc;
        }

        .dark .poc-items-table tbody tr {
            border-bottom-color: #0f172a;
        }

        .dark .poc-items-table tbody tr:hover {
            background: #0f172a;
        }

        .poc-items-table td {
            padding: .8rem 1rem;
            color: #374151;
            vertical-align: middle;
        }

        .dark .poc-items-table td {
            color: #cbd5e1;
        }

        .poc-item-no {
            width: 2rem;
            height: 2rem;
            border-radius: .5rem;
            background: #ede9fe;
            color: #6d28d9;
            font-size: .7rem;
            font-weight: 800;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .dark .poc-item-no {
            background: rgba(139, 92, 246, .2);
            color: #c4b5fd;
        }

        .poc-item-cat-badge {
            display: inline-block;
            padding: .18rem .65rem;
            border-radius: 9999px;
            background: #e0f2fe;
            color: #0369a1;
            font-size: .68rem;
            font-weight: 700;
        }

        .dark .poc-item-cat-badge {
            background: rgba(3, 105, 161, .2);
            color: #38bdf8;
        }

        .poc-item-type {
            font-weight: 700;
            color: #0f172a;
        }

        .dark .poc-item-type {
            color: #f1f5f9;
        }

        .poc-item-qty {
            font-weight: 800;
            color: #4f46e5;
        }

        .dark .poc-item-qty {
            color: #818cf8;
        }

        .poc-item-remaining {
            font-weight: 600;
            color: #10b981;
            font-size: .8rem;
        }

        .dark .poc-item-remaining {
            color: #34d399;
        }

        .poc-po-error {
            border: 1px solid #fecaca;
            background: #fef2f2;
            color: #b91c1c;
            padding: .6rem .8rem;
            border-radius: .6rem;
            font-size: .8rem;
            font-weight: 700;
        }

        .dark .poc-po-error {
            border-color: rgba(239, 68, 68, .35);
            background: rgba(127, 29, 29, .2);
            color: #fca5a5;
        }

        .poc-po-master-wrap {
            display: flex;
            align-items: center;
            justify-content: center;
            gap: .6rem;
            width: 100%;
            font-weight: 700;
            color: #0f172a;
            padding: .2rem;
            border-radius: .4rem;
            transition: all .15s ease;
        }

        .poc-po-master-wrap:hover {
            background: rgba(139, 92, 246, .08);
        }

        .dark .poc-po-master-wrap {
            color: #f1f5f9;
        }

        .dark .poc-po-master-wrap:hover {
            background: rgba(139, 92, 246, .15);
        }

        .poc-po-master-wrap span {
            white-space: nowrap;
            font-size: .7rem;
            letter-spacing: .02em;
        }

        .poc-po-checkbox {
            width: 1.05rem;
            height: 1.05rem;
            accent-color: #8b5cf6;
            cursor: pointer;
            flex-shrink: 0;
            border-radius: .25rem;
            transition: all .15s ease;
        }

        .poc-po-checkbox:hover {
            transform: scale(1.05);
        }

        .poc-po-checkbox:checked {
            accent-color: #7c3aed;
        }

        .poc-po-row-wrap {
            display: flex;
            align-items: center;
            justify-content: center;
            width: 100%;
            padding: .3rem;
            border-radius: .4rem;
            transition: all .15s ease;
        }

        .poc-po-row-wrap:hover {
            background: rgba(139, 92, 246, .08);
        }

        .dark .poc-po-row-wrap:hover {
            background: rgba(139, 92, 246, .15);
        }

        .poc-po-qty-input {
            width: 5.25rem;
            min-width: 5.25rem;
            max-width: 5.25rem;
            padding: .4rem .5rem;
            border: 1px solid #cbd5e1;
            border-radius: .45rem;
            background: #ffffff;
            color: #0f172a;
            font-size: .78rem;
            font-weight: 700;
            text-align: right;
        }

        .poc-po-qty-input:focus {
            outline: none;
            border-color: #6366f1;
            box-shadow: 0 0 0 2px rgba(99, 102, 241, .15);
        }

        .dark .poc-po-qty-input {
            background: #0f172a;
            border-color: #334155;
            color: #f8fafc;
        }

        .poc-po-qty-input::-webkit-outer-spin-button,
        .poc-po-qty-input::-webkit-inner-spin-button {
            -webkit-appearance: none;
            margin: 0;
        }

        .poc-po-qty-input[type='number'] {
            -moz-appearance: textfield;
            appearance: textfield;
        }

        /* No items */
        .poc-no-items {
            text-align: center;
            padding: 3rem 2rem;
            color: #94a3b8;
            font-size: .875rem;
        }

        /* Section heading */
        .poc-section-heading {
            display: flex;
            align-items: center;
            gap: .5rem;
            margin-bottom: .6rem;
        }

        .poc-section-line {
            flex: 1;
            height: 1px;
            background: #e2e8f0;
        }

        .dark .poc-section-line {
            background: #334155;
        }

        .poc-section-label {
            font-size: .68rem;
            font-weight: 800;
            text-transform: uppercase;
            letter-spacing: .09em;
            color: #94a3b8;
            white-space: nowrap;
        }

        .poc-info-value {
            font-size: .9rem;
            font-weight: 700;
            color: #0f172a;
        }

        .dark .poc-info-value {
            color: #f1f5f9;
        }

        /* Section heading */
        .poc-section-heading {
            display: flex;
            align-items: center;
            gap: .5rem;
            margin-bottom: .75rem;
        }

        .poc-section-line {
            flex: 1;
            height: 1px;
            background: #e2e8f0;
        }

        .dark .poc-section-line {
            background: #334155;
        }

        .poc-section-label {
            font-size: .7rem;
            font-weight: 800;
            text-transform: uppercase;
            letter-spacing: .09em;
            color: #94a3b8;
            white-space: nowrap;
        }

        /* Items table */
        .poc-items-wrap {
            border: 1px solid #e2e8f0;
            border-radius: .875rem;
            overflow-x: auto;
            overflow-y: hidden;
        }

        .dark .poc-items-wrap {
            border-color: #334155;
        }

        .poc-items-table {
            width: 100%;
            min-width: max-content;
            border-collapse: collapse;
            font-size: .82rem;
        }

        .poc-items-table thead th {
            background: #f1f5f9;
            padding: .65rem .85rem;
            text-align: left;
            font-size: .68rem;
            font-weight: 800;
            color: #475569;
            text-transform: uppercase;
            letter-spacing: .07em;
            border-bottom: 1px solid #e2e8f0;
            white-space: nowrap;
        }

        .dark .poc-items-table thead th {
            background: #1e293b;
            color: #64748b;
            border-bottom-color: #334155;
        }

        .poc-items-table tbody tr {
            border-bottom: 1px solid #f8fafc;
        }

        .poc-items-table tbody tr:last-child {
            border-bottom: none;
        }

        .poc-items-table tbody tr:hover {
            background: #f8fafc;
        }

        .dark .poc-items-table tbody tr {
            border-bottom-color: #1e293b;
        }

        .dark .poc-items-table tbody tr:hover {
            background: #1e293b;
        }

        .poc-items-table td {
            padding: .7rem .85rem;
            color: #374151;
            vertical-align: middle;
        }

        .dark .poc-items-table td {
            color: #cbd5e1;
        }

        .poc-item-no {
            width: 2rem;
            height: 2rem;
            border-radius: .5rem;
            background: #ede9fe;
            color: #6d28d9;
            font-size: .7rem;
            font-weight: 800;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .dark .poc-item-no {
            background: rgba(139, 92, 246, .2);
            color: #c4b5fd;
        }

        .poc-item-cat-badge {
            display: inline-block;
            padding: .15rem .6rem;
            border-radius: 9999px;
            background: #e0f2fe;
            color: #0369a1;
            font-size: .68rem;
            font-weight: 700;
        }

        .dark .poc-item-cat-badge {
            background: rgba(3, 105, 161, .2);
            color: #38bdf8;
        }

        .poc-item-type {
            font-weight: 700;
            color: #0f172a;
        }

        .dark .poc-item-type {
            color: #f1f5f9;
        }

        .poc-item-size {
            font-size: .85rem;
            font-weight: 600;
            color: #334155;
        }

        .dark .poc-item-size {
            color: #cbd5e1;
        }

        .poc-item-desc {
            font-size: .85rem;
            font-weight: 500;
            color: #475569;
            line-height: 1.4;
        }

        .dark .poc-item-desc {
            color: #94a3b8;
        }

        .poc-item-unit {
            font-size: .75rem;
            font-weight: 700;
            color: #64748b;
            background: #f1f5f9;
            padding: .2rem .5rem;
            border-radius: .4rem;
        }

        .dark .poc-item-unit {
            color: #94a3b8;
            background: #1e293b;
        }

        .poc-item-qty {
            font-weight: 800;
            color: #4f46e5;
        }

        .dark .poc-item-qty {
            color: #818cf8;
        }

        .poc-item-remaining {
            font-weight: 600;
            color: #10b981;
            font-size: .8rem;
        }

        .dark .poc-item-remaining {
            color: #34d399;
        }

        /* No items */
        .poc-no-items {
            text-align: center;
            padding: 2rem;
            color: #94a3b8;
            font-size: .875rem;
        }

        /* Panel footer */
        .poc-panel-footer {
            flex-shrink: 0;
            padding: 1rem 1.75rem;
            border-top: 1px solid #e2e8f0;
            background: #f8fafc;
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: .75rem;
        }

        .dark .poc-panel-footer {
            border-top-color: #1e293b;
            background: #0f172a;
        }

        .poc-close-action-btn {
            display: inline-flex;
            align-items: center;
            gap: .5rem;
            padding: .65rem 1.4rem;
            border-radius: .75rem;
            border: 1.5px solid #e2e8f0;
            background: #ffffff;
            color: #374151;
            font-size: .875rem;
            font-weight: 700;
            cursor: pointer;
            transition: all .15s;
        }

        .poc-close-action-btn:hover {
            background: #f1f5f9;
            border-color: #cbd5e1;
        }

        .dark .poc-close-action-btn {
            background: #1e293b;
            border-color: #334155;
            color: #cbd5e1;
        }

        .dark .poc-close-action-btn:hover {
            background: #334155;
        }

        /* ── Convert-to-PO action button ── */
        .poc-convert-btn {
            display: inline-flex;
            align-items: center;
            gap: .5rem;
            padding: .65rem 1.4rem;
            border-radius: .75rem;
            border: none;
            background: linear-gradient(135deg, #059669, #0d9488);
            color: #ffffff;
            font-size: .875rem;
            font-weight: 700;
            cursor: pointer;
            transition: all .18s;
        }

        .poc-convert-btn:hover {
            background: linear-gradient(135deg, #047857, #0f766e);
            transform: translateY(-1px);
            box-shadow: 0 4px 14px rgba(5, 150, 105, .35);
        }

        .poc-convert-btn svg {
            width: .9rem;
            height: .9rem;
        }

        /* ── PO Number Modal ── */
        .poc-modal-backdrop {
            position: fixed;
            inset: 0;
            z-index: 9000;
            background: rgba(2, 6, 23, .6);
            backdrop-filter: blur(4px);
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 1rem;
            animation: pocFadeIn .18s ease;
        }

        .poc-modal-backdrop-fullscreen {
            padding: 0;
            align-items: stretch;
            justify-content: stretch;
        }

        .poc-modal {
            background: #ffffff;
            border-radius: 1.25rem;
            box-shadow: 0 25px 60px rgba(2, 6, 23, .25);
            width: 100%;
            max-width: 440px;
            overflow: hidden;
        }

        .dark .poc-modal {
            background: #1e293b;
            box-shadow: 0 25px 60px rgba(0, 0, 0, .6);
        }

        .poc-modal-header {
            padding: 1.5rem 1.75rem 1.25rem;
            border-bottom: 1px solid #e2e8f0;
            display: flex;
            align-items: center;
            justify-content: space-between;
        }

        .dark .poc-modal-header {
            border-bottom-color: #334155;
        }

        .poc-modal-title {
            font-size: 1.1rem;
            font-weight: 800;
            color: #0f172a;
            display: flex;
            align-items: center;
            gap: .6rem;
        }

        .dark .poc-modal-title {
            color: #f1f5f9;
        }

        .poc-modal-title-icon {
            width: 2rem;
            height: 2rem;
            border-radius: .6rem;
            background: #d1fae5;
            color: #065f46;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .dark .poc-modal-title-icon {
            background: rgba(16, 185, 129, .2);
            color: #34d399;
        }

        .poc-modal-title-icon svg {
            width: 1rem;
            height: 1rem;
        }

        .poc-modal-close-btn {
            width: 2rem;
            height: 2rem;
            border-radius: .5rem;
            border: 1px solid #e2e8f0;
            background: #f8fafc;
            color: #64748b;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: all .15s;
        }

        .poc-modal-close-btn:hover {
            background: #fee2e2;
            border-color: #fecaca;
            color: #be123c;
        }

        .poc-modal-close-btn svg {
            width: .85rem;
            height: .85rem;
        }

        .dark .poc-modal-close-btn {
            background: #0f172a;
            border-color: #334155;
            color: #94a3b8;
        }

        .poc-modal-body {
            padding: 1.5rem 1.75rem;
            display: flex;
            flex-direction: column;
            gap: 1.25rem;
        }

        .poc-modal-desc {
            font-size: .875rem;
            color: #64748b;
            line-height: 1.6;
        }

        .dark .poc-modal-desc {
            color: #94a3b8;
        }

        .poc-modal-field label {
            display: block;
            font-size: .78rem;
            font-weight: 700;
            color: #374151;
            text-transform: uppercase;
            letter-spacing: .05em;
            margin-bottom: .45rem;
        }

        .dark .poc-modal-field label {
            color: #cbd5e1;
        }

        .poc-modal-input {
            width: 100%;
            padding: .75rem 1rem;
            border-radius: .75rem;
            border: 1.5px solid #cbd5e1;
            background: #f8fafc;
            color: #0f172a;
            font-size: .95rem;
            font-weight: 600;
            transition: all .18s;
        }

        .poc-modal-input:focus {
            outline: none;
            border-color: #059669;
            background: #ffffff;
            box-shadow: 0 0 0 3px rgba(5, 150, 105, .14);
        }

        .dark .poc-modal-input {
            background: #0f172a;
            border-color: #334155;
            color: #f1f5f9;
        }

        .dark .poc-modal-input:focus {
            border-color: #10b981;
            box-shadow: 0 0 0 3px rgba(16, 185, 129, .18);
        }

        .poc-modal-input::placeholder {
            color: #94a3b8;
            font-weight: 500;
        }

        .poc-modal-error {
            display: flex;
            align-items: flex-start;
            gap: .45rem;
            padding: .7rem .9rem;
            border-radius: .65rem;
            background: #fef2f2;
            border: 1px solid #fecaca;
            color: #991b1b;
            font-size: .8rem;
            font-weight: 600;
        }

        .dark .poc-modal-error {
            background: rgba(239, 68, 68, .12);
            border-color: rgba(239, 68, 68, .25);
            color: #f87171;
        }

        .poc-modal-error svg {
            width: .9rem;
            height: .9rem;
            flex-shrink: 0;
            margin-top: .05rem;
        }

        .poc-modal-footer {
            padding: 1rem 1.75rem;
            border-top: 1px solid #e2e8f0;
            background: #f8fafc;
            display: flex;
            align-items: center;
            justify-content: flex-end;
            gap: .6rem;
        }

        .dark .poc-modal-footer {
            border-top-color: #334155;
            background: #0f172a;
        }

        .poc-modal-cancel-btn {
            display: inline-flex;
            align-items: center;
            gap: .4rem;
            padding: .6rem 1.1rem;
            border-radius: .65rem;
            border: 1.5px solid #e2e8f0;
            background: #ffffff;
            color: #374151;
            font-size: .85rem;
            font-weight: 700;
            cursor: pointer;
            transition: all .15s;
        }

        .poc-modal-cancel-btn:hover {
            background: #f1f5f9;
        }

        .dark .poc-modal-cancel-btn {
            background: #1e293b;
            border-color: #334155;
            color: #cbd5e1;
        }

        .poc-modal-confirm-btn {
            display: inline-flex;
            align-items: center;
            gap: .5rem;
            padding: .6rem 1.3rem;
            border-radius: .65rem;
            border: none;
            background: linear-gradient(135deg, #059669, #0d9488);
            color: #ffffff;
            font-size: .85rem;
            font-weight: 700;
            cursor: pointer;
            transition: all .18s;
        }

        .poc-modal-confirm-btn:hover {
            background: linear-gradient(135deg, #047857, #0f766e);
            transform: translateY(-1px);
            box-shadow: 0 4px 12px rgba(5, 150, 105, .3);
        }

        .poc-modal-confirm-btn svg {
            width: .85rem;
            height: .85rem;
        }

        /* ── Detail Review Modal ── */
        .poc-detail-modal {
            background: #ffffff;
            border-radius: 1.25rem;
            box-shadow: 0 25px 60px rgba(2, 6, 23, .3);
            width: 100%;
            max-width: 900px;
            max-height: 90vh;
            display: flex;
            flex-direction: column;
            overflow: hidden;
            animation: pocSlideUp .25s cubic-bezier(.22, 1, .36, 1);
        }

        .dark .poc-detail-modal {
            background: #1e293b;
            box-shadow: 0 25px 60px rgba(0, 0, 0, .55);
        }

        .poc-modal-backdrop-fullscreen .poc-detail-modal {
            width: 100vw;
            height: 100vh;
            max-width: none;
            max-height: none;
            border-radius: 0;
        }

        .poc-detail-modal-header {
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: 1.1rem 1.5rem;
            background: linear-gradient(135deg, #312e81 0%, #4f46e5 55%, #7c3aed 100%);
            flex-shrink: 0;
            gap: 1rem;
        }

        .poc-detail-modal-header-left {
            display: flex;
            align-items: center;
            gap: .75rem;
            min-width: 0;
            flex: 1;
            flex-wrap: wrap;
        }

        .poc-detail-modal-body {
            flex: 1;
            overflow-y: auto;
            padding: 1.25rem 1.5rem;
            display: flex;
            flex-direction: column;
            gap: 1rem;
            background: #f1f5f9;
        }

        .dark .poc-detail-modal-body {
            background: #0f172a;
        }

        .poc-detail-info-grid {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: .85rem;
        }

        .poc-detail-modal-footer {
            flex-shrink: 0;
            padding: .9rem 1.5rem;
            border-top: 1px solid #e2e8f0;
            background: #ffffff;
            display: flex;
            align-items: center;
            justify-content: flex-end;
            gap: .6rem;
        }

        .dark .poc-detail-modal-footer {
            border-top-color: #334155;
            background: #1e293b;
        }

        @media (max-width: 640px) {
            .poc-detail-modal {
                max-width: 100%;
                max-height: 100dvh;
                border-radius: 0;
            }

            .poc-modal-backdrop-fullscreen .poc-detail-modal {
                width: 100vw;
                height: 100dvh;
            }

            .poc-detail-info-grid {
                grid-template-columns: 1fr;
            }

            .poc-table thead {
                display: none;
            }

            .poc-table tbody tr {
                display: flex;
                flex-direction: column;
                padding: .75rem;
                gap: .25rem;
            }

            .poc-table td {
                padding: .15rem 0;
            }
        }
    

                .pom-header {
                    background: linear-gradient(135deg, #0f172a 0%, #1e3a5f 50%, #0ea5e9 100%);
                    padding: 1.15rem 1.5rem;
                    display: flex;
                    align-items: center;
                    justify-content: space-between;
                    flex-shrink: 0;
                }

                .pom-header-left {
                    display: flex;
                    align-items: center;
                    gap: .75rem;
                }

                .pom-header-icon {
                    width: 2.2rem;
                    height: 2.2rem;
                    border-radius: .6rem;
                    background: rgba(255, 255, 255, 0.15);
                    display: flex;
                    align-items: center;
                    justify-content: center;
                    flex-shrink: 0;
                }

                .pom-header-icon svg {
                    width: 1.1rem;
                    height: 1.1rem;
                    color: #bae6fd;
                }

                .pom-header-title {
                    font-size: 1.05rem;
                    font-weight: 800;
                    color: #fff;
                }

                .pom-header-sub {
                    font-size: .78rem;
                    color: rgba(186, 230, 253, 0.75);
                    font-weight: 600;
                    margin-top: .1rem;
                }

                .pom-close {
                    width: 2rem;
                    height: 2rem;
                    border-radius: .5rem;
                    border: none;
                    background: rgba(255, 255, 255, 0.12);
                    color: #bae6fd;
                    cursor: pointer;
                    display: flex;
                    align-items: center;
                    justify-content: center;
                    transition: background .2s;
                }

                .pom-close:hover {
                    background: rgba(255, 255, 255, 0.25);
                }

                .pom-close svg {
                    width: 1rem;
                    height: 1rem;
                }

                .pom-body {
                    flex: 1;
                    overflow-y: auto;
                    padding: 1rem 1.25rem;
                    background: #f8fafc;
                }

                .dark .pom-body {
                    background: #0f172a;
                }

                .pom-bulk-bar {
                    display: flex;
                    align-items: flex-end;
                    gap: .5rem;
                    margin-bottom: 1rem;
                    padding: .75rem;
                    background: #eff6ff;
                    border: 1px solid #bfdbfe;
                    border-radius: .6rem;
                }

                .dark .pom-bulk-bar {
                    background: rgba(30, 64, 175, 0.12);
                    border-color: rgba(96, 165, 250, 0.3);
                }

                .pom-bulk-label {
                    font-size: .72rem;
                    font-weight: 700;
                    color: #1e40af;
                    margin-bottom: .25rem;
                }

                .dark .pom-bulk-label {
                    color: #93c5fd;
                }

                .pom-bulk-input {
                    flex: 1;
                    min-height: 2.35rem;
                    padding: .45rem .7rem;
                    border-radius: .5rem;
                    border: 1px solid #93c5fd;
                    font-size: .82rem;
                    font-weight: 700;
                    color: #0f172a;
                    background: #fff;
                }

                .dark .pom-bulk-input {
                    background: #1e293b;
                    border-color: #334155;
                    color: #f8fafc;
                }

                .pom-bulk-input:focus {
                    border-color: #2563eb;
                    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
                    outline: none;
                }

                .pom-bulk-btn {
                    min-height: 2.35rem;
                    padding: 0 .85rem;
                    border-radius: .5rem;
                    border: none;
                    background: #2563eb;
                    color: #fff;
                    font-size: .78rem;
                    font-weight: 800;
                    cursor: pointer;
                    white-space: nowrap;
                    transition: background .2s;
                }

                .pom-bulk-btn:hover {
                    background: #1d4ed8;
                }

                .pom-table-wrap {
                    border-radius: .6rem;
                    overflow: hidden;
                    border: 1px solid #e2e8f0;
                }

                .dark .pom-table-wrap {
                    border-color: #334155;
                }

                .pom-table {
                    width: 100%;
                    border-collapse: collapse;
                    font-size: .78rem;
                }

                .pom-table thead th {
                    padding: .55rem .6rem;
                    font-weight: 800;
                    text-align: left;
                    background: #f1f5f9;
                    color: #475569;
                    border-bottom: 1px solid #e2e8f0;
                    white-space: nowrap;
                }

                .dark .pom-table thead th {
                    background: #1e293b;
                    color: #94a3b8;
                    border-bottom-color: #334155;
                }

                .pom-table tbody td {
                    padding: .5rem .6rem;
                    border-bottom: 1px solid #f1f5f9;
                    color: #0f172a;
                    font-weight: 600;
                    vertical-align: middle;
                }

                .dark .pom-table tbody td {
                    border-bottom-color: #1e293b;
                    color: #e2e8f0;
                }

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

                .pom-table tbody tr:hover td {
                    background: rgba(14, 165, 233, 0.04);
                }

                .dark .pom-table tbody tr:hover td {
                    background: rgba(14, 165, 233, 0.06);
                }

                .pom-po-input {
                    width: 100%;
                    min-height: 2.15rem;
                    padding: .35rem .55rem;
                    border-radius: .4rem;
                    border: 1px solid #cbd5e1;
                    font-size: .78rem;
                    font-weight: 700;
                    color: #0f172a;
                    background: #fff;
                    transition: border-color .2s;
                }

                .dark .pom-po-input {
                    background: #0f172a;
                    border-color: #334155;
                    color: #f8fafc;
                }

                .pom-po-input:focus {
                    border-color: #2563eb;
                    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
                    outline: none;
                }

                .pom-po-input.pom-has-po {
                    background: #ecfdf5;
                    border-color: #86efac;
                    color: #065f46;
                }

                .dark .pom-po-input.pom-has-po {
                    background: rgba(6, 95, 70, 0.15);
                    border-color: rgba(134, 239, 172, 0.4);
                    color: #6ee7b7;
                }

                .pom-po-badge {
                    display: inline-flex;
                    align-items: center;
                    gap: .25rem;
                    padding: .15rem .4rem;
                    border-radius: .3rem;
                    font-size: .65rem;
                    font-weight: 700;
                    background: #d1fae5;
                    color: #065f46;
                }

                .dark .pom-po-badge {
                    background: rgba(6, 95, 70, 0.25);
                    color: #6ee7b7;
                }

                .pom-footer {
                    background: #fff;
                    border-top: 1px solid #e2e8f0;
                    padding: .85rem 1.25rem;
                    display: flex;
                    justify-content: space-between;
                    align-items: center;
                    flex-shrink: 0;
                    gap: .75rem;
                }

                .dark .pom-footer {
                    background: #0f172a;
                    border-top-color: #1e293b;
                }

                .pom-footer-info {
                    font-size: .72rem;
                    color: #64748b;
                    font-weight: 600;
                }

                .dark .pom-footer-info {
                    color: #94a3b8;
                }

                .pom-footer-actions {
                    display: flex;
                    gap: .5rem;
                }

                .pom-cancel-btn {
                    padding: .5rem 1rem;
                    border-radius: .6rem;
                    border: 1px solid #e2e8f0;
                    background: #fff;
                    color: #475569;
                    font-size: .82rem;
                    font-weight: 700;
                    cursor: pointer;
                    transition: all .2s;
                }

                .pom-cancel-btn:hover {
                    background: #f1f5f9;
                }

                .dark .pom-cancel-btn {
                    background: #1e293b;
                    border-color: #334155;
                    color: #cbd5e1;
                }

                .dark .pom-cancel-btn:hover {
                    background: #334155;
                }

                .pom-confirm-btn {
                    display: inline-flex;
                    align-items: center;
                    gap: .35rem;
                    padding: .5rem 1rem;
                    border-radius: .6rem;
                    border: none;
                    background: #059669;
                    color: #fff;
                    font-size: .82rem;
                    font-weight: 800;
                    cursor: pointer;
                    transition: background .2s;
                }

                .pom-confirm-btn:hover {
                    background: #047857;
                }

                .pom-confirm-btn svg {
                    width: .9rem;
                    height: .9rem;
                }

                .pom-error {
                    display: flex;
                    align-items: center;
                    gap: .4rem;
                    padding: .5rem .75rem;
                    border-radius: .5rem;
                    background: #fff1f2;
                    border: 1px solid #fecaca;
                    color: #be123c;
                    font-size: .78rem;
                    font-weight: 700;
                    margin-bottom: .75rem;
                }

                .dark .pom-error {
                    background: rgba(190, 18, 60, 0.12);
                    border-color: rgba(252, 165, 165, 0.3);
                    color: #fda4af;
                }

                /* ── Vendor expand toggle (chevron in Aksi column) ── */
                .poc-vendor-toggle-btn {
                    width: 1.6rem;
                    height: 1.6rem;
                    border-radius: .45rem;
                    border: 1px solid #cbd5e1;
                    background: #fff;
                    color: #64748b;
                    display: inline-flex;
                    align-items: center;
                    justify-content: center;
                    cursor: pointer;
                    transition: background .15s, border-color .15s, color .15s;
                }

                .poc-vendor-toggle-btn:hover {
                    background: #eef2ff;
                    border-color: #a5b4fc;
                    color: #4338ca;
                }

                .dark .poc-vendor-toggle-btn {
                    background: #1e293b;
                    border-color: #334155;
                    color: #94a3b8;
                }

                .dark .poc-vendor-toggle-btn:hover {
                    background: #1e1b4b;
                    border-color: #818cf8;
                    color: #a5b4fc;
                }

                /* ── Expanded vendor row ── */
                .poc-vendor-expand-row .poc-vendor-expand-td {
                    padding: .5rem 1rem .65rem 1rem;
                    background: #f8fafc;
                    border-top: 2px solid #e0e7ff;
                    border-bottom: 1px solid #e2e8f0;
                }

                .dark .poc-vendor-expand-row .poc-vendor-expand-td {
                    background: #0f172a;
                    border-top-color: #312e81;
                    border-bottom-color: #1f2937;
                }

                /* Each vendor in one line */
                .poc-vendor-inline-row {
                    display: flex;
                    align-items: center;
                    gap: .5rem;
                    flex-wrap: nowrap;
                    padding: .3rem 0;
                    border-bottom: 1px dashed #e2e8f0;
                }

                .dark .poc-vendor-inline-row {
                    border-bottom-color: #1f2937;
                }

                .poc-vendor-inline-row:last-of-type {
                    border-bottom: none;
                }

                .poc-vendor-field-label {
                    font-size: .7rem;
                    font-weight: 700;
                    color: #64748b;
                    white-space: nowrap;
                    flex-shrink: 0;
                }

                .dark .poc-vendor-field-label {
                    color: #94a3b8;
                }

                .poc-vendor-input {
                    flex: 1;
                    min-width: 0;
                    padding: .3rem .5rem;
                    border: 1px solid #cbd5e1;
                    border-radius: .45rem;
                    background: #fff;
                    color: #0f172a;
                    font-size: .75rem;
                }

                .poc-vendor-qty-input {
                    max-width: 7rem;
                    flex: 0 0 7rem;
                }

                .poc-vendor-input:focus {
                    outline: none;
                    border-color: #6366f1;
                    box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.12);
                }

                .dark .poc-vendor-input {
                    background: #1e293b;
                    border-color: #334155;
                    color: #f8fafc;
                }

                .poc-vendor-input-error {
                    border-color: #ef4444 !important;
                    background: #fef2f2;
                }

                .poc-vendor-input-error:focus {
                    border-color: #dc2626 !important;
                    box-shadow: 0 0 0 2px rgba(239, 68, 68, 0.15);
                }

                .dark .poc-vendor-input-error {
                    background: rgba(127, 29, 29, 0.22);
                    border-color: #f87171 !important;
                }

                /* Remove button */
                .poc-vendor-remove-btn {
                    flex-shrink: 0;
                    width: 1.6rem;
                    height: 1.6rem;
                    border: 1px solid #fecaca;
                    background: #fff;
                    color: #dc2626;
                    border-radius: .45rem;
                    font-size: .85rem;
                    font-weight: 700;
                    display: inline-flex;
                    align-items: center;
                    justify-content: center;
                    cursor: pointer;
                    line-height: 1;
                }

                .poc-vendor-remove-btn:hover {
                    background: #fef2f2;
                    border-color: #f87171;
                }

                .dark .poc-vendor-remove-btn {
                    background: #1e293b;
                    border-color: #991b1b;
                    color: #fca5a5;
                }

                /* Footer row: add button + summary */
                .poc-vendor-expand-footer {
                    display: flex;
                    align-items: center;
                    gap: 1rem;
                    margin-top: .5rem;
                    flex-wrap: wrap;
                }

                .poc-vendor-add-btn {
                    border: 1px solid #86efac;
                    background: #ecfdf5;
                    color: #047857;
                    border-radius: .45rem;
                    font-size: .72rem;
                    font-weight: 700;
                    padding: .3rem .65rem;
                    cursor: pointer;
                    flex-shrink: 0;
                }

                .poc-vendor-add-btn:hover {
                    background: #d1fae5;
                    border-color: #4ade80;
                }

                .dark .poc-vendor-add-btn {
                    background: #052e16;
                    border-color: #166534;
                    color: #86efac;
                }

                .poc-vendor-summary {
                    display: flex;
                    gap: 1rem;
                    flex-wrap: wrap;
                    font-size: .72rem;
                    color: #475569;
                    font-weight: 700;
                }

                .dark .poc-vendor-summary {
                    color: #94a3b8;
                }

                .poc-vendor-empty-msg {
                    font-size: .72rem;
                    color: #94a3b8;
                    padding: .3rem 0;
                    font-style: italic;
                }

                .poc-vendor-warning {
                    margin-bottom: .4rem;
                }

                .poc-bulk-modal {
                    width: 100%;
                    max-width: 34rem;
                    background: #ffffff;
                    border: 1px solid #e2e8f0;
                    border-radius: .9rem;
                    box-shadow: 0 24px 56px rgba(15, 23, 42, 0.25);
                    overflow: hidden;
                }

                .dark .poc-bulk-modal {
                    background: #0b1220;
                    border-color: #334155;
                }

                .poc-bulk-modal-head {
                    display: flex;
                    align-items: flex-start;
                    justify-content: space-between;
                    gap: .75rem;
                    padding: .85rem 1rem;
                    border-bottom: 1px solid #e2e8f0;
                }

                .dark .poc-bulk-modal-head {
                    border-bottom-color: #334155;
                }

                .poc-bulk-modal-title {
                    font-size: .86rem;
                    font-weight: 800;
                    color: #0f172a;
                }

                .dark .poc-bulk-modal-title {
                    color: #f8fafc;
                }

                .poc-bulk-modal-sub {
                    font-size: .72rem;
                    color: #64748b;
                    margin-top: .1rem;
                }

                .dark .poc-bulk-modal-sub {
                    color: #94a3b8;
                }

                .poc-bulk-modal-close {
                    border: 1px solid #cbd5e1;
                    background: #fff;
                    color: #475569;
                    width: 1.7rem;
                    height: 1.7rem;
                    border-radius: .45rem;
                    cursor: pointer;
                    line-height: 1;
                    font-size: 1rem;
                    flex-shrink: 0;
                }

                .dark .poc-bulk-modal-close {
                    background: #1e293b;
                    border-color: #475569;
                    color: #cbd5e1;
                }

                .poc-bulk-modal-body {
                    padding: 1rem;
                }

                .poc-bulk-form-grid {
                    display: grid;
                    grid-template-columns: 1fr;
                    gap: .35rem;
                }

                .poc-bulk-label {
                    font-size: .72rem;
                    font-weight: 700;
                    color: #475569;
                }

                .dark .poc-bulk-label {
                    color: #cbd5e1;
                }

                .poc-bulk-help {
                    font-size: .69rem;
                    color: #64748b;
                    margin-top: -.15rem;
                    margin-bottom: .2rem;
                }

                .dark .poc-bulk-help {
                    color: #94a3b8;
                }

                .poc-bulk-modal-foot {
                    display: flex;
                    justify-content: flex-end;
                    gap: .55rem;
                    padding: .8rem 1rem;
                    border-top: 1px solid #e2e8f0;
                }

                .dark .poc-bulk-modal-foot {
                    border-top-color: #334155;
                }

                .pom-error svg {
                    width: .9rem;
                    height: .9rem;
                    flex-shrink: 0;
                }
            

                .rdm-header {
                    background: linear-gradient(135deg, #1e1b4b 0%, #4c1d95 50%, #7c3aed 100%);
                    padding: 1.25rem 1.5rem;
                    display: flex;
                    align-items: center;
                    justify-content: space-between;
                    flex-shrink: 0;
                }

                .rdm-header-left {
                    display: flex;
                    align-items: center;
                    gap: .75rem;
                }

                .rdm-header-icon {
                    width: 2.2rem;
                    height: 2.2rem;
                    border-radius: .6rem;
                    background: rgba(255, 255, 255, 0.15);
                    display: flex;
                    align-items: center;
                    justify-content: center;
                    flex-shrink: 0;
                }

                .rdm-header-icon svg {
                    width: 1.1rem;
                    height: 1.1rem;
                    color: #e0e7ff;
                }

                .rdm-header-title {
                    font-size: 1.05rem;
                    font-weight: 800;
                    color: #fff;
                }

                .rdm-header-sub {
                    font-size: .78rem;
                    color: rgba(224, 231, 255, 0.75);
                    font-weight: 600;
                    margin-top: .1rem;
                }

                .rdm-close {
                    width: 2rem;
                    height: 2rem;
                    border-radius: .5rem;
                    border: none;
                    background: rgba(255, 255, 255, 0.12);
                    color: #e0e7ff;
                    cursor: pointer;
                    display: flex;
                    align-items: center;
                    justify-content: center;
                    transition: background .2s;
                }

                .rdm-close:hover {
                    background: rgba(255, 255, 255, 0.25);
                }

                .rdm-close svg {
                    width: 1rem;
                    height: 1rem;
                }

                .rdm-body {
                    background: #0f172a;
                    flex: 1;
                    overflow-y: auto;
                    padding: 1.25rem 1.5rem;
                }

                .rdm-timeline {
                    display: flex;
                    align-items: flex-start;
                    justify-content: space-between;
                    margin-bottom: 1.25rem;
                    position: relative;
                    padding: 0 .5rem;
                }

                .rdm-timeline::before {
                    content: '';
                    position: absolute;
                    top: 1rem;
                    left: 2.5rem;
                    right: 2.5rem;
                    height: 3px;
                    background: linear-gradient(90deg, #6366f1, #a78bfa);
                    border-radius: 2px;
                }

                .rdm-step {
                    display: flex;
                    flex-direction: column;
                    align-items: center;
                    position: relative;
                    z-index: 1;
                }

                .rdm-step-num {
                    width: 2rem;
                    height: 2rem;
                    border-radius: 50%;
                    display: flex;
                    align-items: center;
                    justify-content: center;
                    font-size: .75rem;
                    font-weight: 800;
                    color: #fff;
                    margin-bottom: .35rem;
                }

                .rdm-step-1 .rdm-step-num {
                    background: #2563eb;
                }

                .rdm-step-2 .rdm-step-num {
                    background: #059669;
                }

                .rdm-step-label {
                    font-size: .72rem;
                    font-weight: 700;
                    text-align: center;
                }

                .rdm-step-1 .rdm-step-label {
                    color: #60a5fa;
                }

                .rdm-step-2 .rdm-step-label {
                    color: #34d399;
                }

                .rdm-step-time {
                    font-size: .65rem;
                    color: #94a3b8;
                    font-weight: 600;
                    margin-top: .1rem;
                }

                .rdm-table-wrap {
                    border-radius: .6rem;
                    overflow: hidden;
                    border: 1px solid #334155;
                }

                .rdm-table {
                    width: 100%;
                    border-collapse: collapse;
                    font-size: .78rem;
                }

                .rdm-table thead th {
                    padding: .6rem .65rem;
                    font-weight: 800;
                    text-align: left;
                    white-space: nowrap;
                }

                .rdm-table thead th.rdm-th-base {
                    background: #1e293b;
                    color: #cbd5e1;
                    border-bottom: 1px solid #334155;
                }

                .rdm-table thead th.rdm-th-init {
                    background: rgba(37, 99, 235, 0.2);
                    color: #93c5fd;
                    border-bottom: 1px solid #334155;
                    text-align: center;
                }

                .rdm-table thead th.rdm-th-latest {
                    background: rgba(124, 58, 237, 0.25);
                    color: #c4b5fd;
                    border-bottom: 1px solid #334155;
                    text-align: center;
                }

                .rdm-table thead th .rdm-th-sub {
                    display: block;
                    font-size: .65rem;
                    font-weight: 600;
                    opacity: .7;
                    margin-top: .1rem;
                }

                .rdm-table tbody td {
                    padding: .55rem .65rem;
                    color: #e2e8f0;
                    border-bottom: 1px solid #1e293b;
                    font-weight: 600;
                }

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

                .rdm-table tbody tr:hover td {
                    background: rgba(99, 102, 241, 0.06);
                }

                .rdm-td-center {
                    text-align: center !important;
                }

                .rdm-td-init {
                    background: rgba(37, 99, 235, 0.06);
                }

                .rdm-td-latest {
                    background: rgba(124, 58, 237, 0.1);
                }

                .rdm-qty-up {
                    color: #fbbf24 !important;
                }

                .rdm-qty-down {
                    color: #fbbf24 !important;
                }

                .rdm-qty-same {
                    color: #64748b !important;
                }

                .rdm-qty-added {
                    color: #34d399 !important;
                }

                .rdm-qty-removed {
                    color: #f87171 !important;
                    text-decoration: line-through;
                }

                .rdm-arrow {
                    font-size: .65rem;
                    margin-left: .25rem;
                }

                .rdm-arrow-up {
                    color: #fbbf24;
                }

                .rdm-arrow-down {
                    color: #f87171;
                }

                .rdm-legend {
                    display: flex;
                    gap: 1.2rem;
                    flex-wrap: wrap;
                    margin-top: 1rem;
                    padding-top: .75rem;
                }

                .rdm-legend-item {
                    display: flex;
                    align-items: center;
                    gap: .35rem;
                    font-size: .7rem;
                    font-weight: 700;
                    color: #94a3b8;
                }

                .rdm-legend-icon {
                    width: .9rem;
                    height: .9rem;
                    border-radius: .2rem;
                    display: flex;
                    align-items: center;
                    justify-content: center;
                    font-size: .55rem;
                    font-weight: 900;
                }

                .rdm-legend-up {
                    background: #fef3c7;
                    color: #92400e;
                }

                .rdm-legend-down {
                    background: #ffe4e6;
                    color: #be123c;
                }

                .rdm-legend-same {
                    background: #334155;
                    color: #94a3b8;
                }

                .rdm-footer {
                    background: #0f172a;
                    border-top: 1px solid #1e293b;
                    padding: .85rem 1.5rem;
                    display: flex;
                    justify-content: flex-end;
                    flex-shrink: 0;
                }

                .rdm-close-btn {
                    display: inline-flex;
                    align-items: center;
                    gap: .4rem;
                    padding: .5rem 1.2rem;
                    border-radius: .6rem;
                    border: 1px solid #334155;
                    background: #1e293b;
                    color: #cbd5e1;
                    font-size: .82rem;
                    font-weight: 700;
                    cursor: pointer;
                    transition: all .2s;
                }

                .rdm-close-btn:hover {
                    background: #334155;
                    color: #fff;
                }
            


