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

        /* ── Stats ── */
        .pfh-stats {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
            gap: .75rem;
        }

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

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

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

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

        .fsi-blue {
            background: #dbeafe;
            color: #1d4ed8;
        }

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

        .fsi-green {
            background: #d1fae5;
            color: #065f46;
        }

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

        .fsi-red {
            background: #fee2e2;
            color: #be123c;
        }

        .dark .fsi-red {
            background: rgba(239, 68, 68, .15);
            color: #f87171;
        }

        .fsi-gray {
            background: #f1f5f9;
            color: #475569;
        }

        .dark .fsi-gray {
            background: rgba(71, 85, 105, .2);
            color: #94a3b8;
        }

        .fsi-amber {
            background: #fef3c7;
            color: #b45309;
        }

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

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

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

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

        /* ── Toolbar ── */
        .pfh-toolbar {
            background: #fff;
            border: 1px solid #e2e8f0;
            border-radius: 1rem;
            padding: 1rem 1.25rem;
            display: flex;
            flex-wrap: wrap;
            align-items: center;
            gap: .75rem;
        }

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

        .pfh-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 .pfh-table thead th {
            background: #0f172a;
            color: #64748b;
            border-bottom-color: #334155;
        }

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

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

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

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

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

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

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

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

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

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

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

        .pfh-meta {
            color: #475569;
            font-size: .85rem;
            font-weight: 500;
        }

        .dark .pfh-meta {
            color: #94a3b8;
        }

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

        .pfh-timeline-btn {
            display: inline-flex;
            align-items: center;
            gap: .45rem;
            padding: .5rem 1.1rem;
            border-radius: .75rem;
            background: linear-gradient(135deg, #4f46e5, #7c3aed);
            color: #fff;
            font-size: .8rem;
            font-weight: 700;
            border: none;
            cursor: pointer;
            transition: all .18s;
        }

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

        .pfh-timeline-btn svg {
            width: .8rem;
            height: .8rem;
        }

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

        .pfh-empty svg {
            width: 4rem;
            height: 4rem;
            color: #cbd5e1;
        }

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

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

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

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

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

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

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

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

        .pfh-page-btn:hover,
        .pfh-page-btn.active {
            background: #4f46e5;
            border-color: #4f46e5;
            color: #fff;
        }

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

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

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

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

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

        /* ── Timeline Panel ── */
        .pfh-panel-backdrop {
            position: fixed;
            inset: 0;
            z-index: 8000;
            background: rgba(2, 6, 23, .5);
            backdrop-filter: blur(3px);
            animation: pfhFade .2s ease;
        }

        @keyframes pfhFade {
            from {
                opacity: 0
            }

            to {
                opacity: 1
            }
        }

        @keyframes pfhSlide {
            from {
                transform: translateX(100%)
            }

            to {
                transform: translateX(0)
            }
        }

        .pfh-panel {
            position: fixed;
            top: 0;
            right: 0;
            bottom: 0;
            width: min(680px, 100vw);
            background: #fff;
            box-shadow: -8px 0 40px rgba(2, 6, 23, .18);
            z-index: 8001;
            display: flex;
            flex-direction: column;
            animation: pfhSlide .25s cubic-bezier(.22, 1, .36, 1);
            overflow: hidden;
        }

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

        .pfh-panel-header {
            padding: 1.5rem 1.75rem 1.25rem;
            border-bottom: 1px solid #e2e8f0;
            flex-shrink: 0;
            background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
            display: flex;
            align-items: flex-start;
            justify-content: space-between;
        }

        .dark .pfh-panel-header {
            background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
            border-bottom-color: #0f172a;
        }

        .pfh-ph-kicker {
            font-size: .7rem;
            font-weight: 700;
            text-transform: uppercase;
            letter-spacing: .08em;
            color: rgba(255, 255, 255, .55);
        }

        .pfh-ph-title {
            font-size: 1.4rem;
            font-weight: 900;
            color: #fff;
        }

        .pfh-ph-close {
            width: 2.25rem;
            height: 2.25rem;
            border-radius: .6rem;
            border: 1.5px solid rgba(255, 255, 255, .2);
            background: rgba(255, 255, 255, .1);
            color: #fff;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .pfh-ph-close:hover {
            background: rgba(255, 255, 255, .2);
        }

        .pfh-ph-close svg {
            width: 1.1rem;
            height: 1.1rem;
        }

        .pfh-panel-body {
            flex: 1;
            overflow-y: auto;
            padding: 1.5rem 1.75rem;
        }

        /* ── Timeline ── */
        .pfh-timeline {
            display: flex;
            flex-direction: column;
            gap: 0;
        }

        .pfh-tl-item {
            display: flex;
            gap: 1rem;
            position: relative;
        }

        .pfh-tl-item:not(:last-child)::before {
            content: '';
            position: absolute;
            left: 1.1rem;
            top: 2.8rem;
            bottom: 0;
            width: 2px;
            background: #e2e8f0;
            z-index: 0;
        }

        .dark .pfh-tl-item:not(:last-child)::before {
            background: #334155;
        }

        .pfh-tl-icon-wrap {
            flex-shrink: 0;
            display: flex;
            flex-direction: column;
            align-items: center;
            z-index: 1;
        }

        .pfh-tl-icon {
            width: 2.2rem;
            height: 2.2rem;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            border: 2px solid #e2e8f0;
            background: #fff;
        }

        .dark .pfh-tl-icon {
            background: #1e293b;
            border-color: #334155;
        }

        .pfh-tl-icon svg {
            width: .9rem;
            height: .9rem;
        }

        .tli-approve {
            background: #ecfdf5;
            border-color: #a7f3d0;
            color: #059669;
        }

        .dark .tli-approve {
            background: rgba(16, 185, 129, .15);
            border-color: rgba(16, 185, 129, .3);
            color: #34d399;
        }

        .tli-convert {
            background: #d1fae5;
            border-color: #6ee7b7;
            color: #047857;
        }

        .dark .tli-convert {
            background: rgba(5, 150, 105, .2);
            border-color: rgba(5, 150, 105, .4);
            color: #6ee7b7;
        }

        .tli-reject {
            background: #fef2f2;
            border-color: #fecaca;
            color: #be123c;
        }

        .dark .tli-reject {
            background: rgba(239, 68, 68, .15);
            border-color: rgba(239, 68, 68, .3);
            color: #f87171;
        }

        .tli-submit {
            background: #eff6ff;
            border-color: #bfdbfe;
            color: #1d4ed8;
        }

        .dark .tli-submit {
            background: rgba(59, 130, 246, .15);
            border-color: rgba(59, 130, 246, .3);
            color: #60a5fa;
        }

        .tli-default {
            background: #f8fafc;
            border-color: #e2e8f0;
            color: #64748b;
        }

        .dark .tli-default {
            background: #1e293b;
            border-color: #334155;
            color: #94a3b8;
        }

        .pfh-tl-content {
            flex: 1;
            padding-bottom: 1.5rem;
        }

        .pfh-tl-header {
            display: flex;
            align-items: flex-start;
            justify-content: space-between;
            gap: .5rem;
            margin-bottom: .45rem;
        }

        .pfh-tl-action {
            font-size: .85rem;
            font-weight: 800;
            color: #0f172a;
        }

        .dark .pfh-tl-action {
            color: #f1f5f9;
        }

        .pfh-tl-time {
            font-size: .72rem;
            color: #94a3b8;
            font-weight: 600;
            white-space: nowrap;
        }

        .pfh-tl-status-badge {
            display: inline-flex;
            align-items: center;
            gap: .3rem;
            padding: .18rem .6rem;
            border-radius: 9999px;
            font-size: .68rem;
            font-weight: 700;
        }

        .pfh-tl-body {
            background: #f8fafc;
            border: 1px solid #e2e8f0;
            border-radius: .75rem;
            padding: .75rem 1rem;
            display: flex;
            flex-direction: column;
            gap: .4rem;
        }

        .dark .pfh-tl-body {
            background: #1e293b;
            border-color: #334155;
        }

        .pfh-tl-row {
            display: flex;
            align-items: baseline;
            gap: .5rem;
            font-size: .82rem;
        }

        .pfh-tl-row-label {
            color: #94a3b8;
            font-weight: 600;
            white-space: nowrap;
            min-width: 5rem;
        }

        .pfh-tl-row-val {
            color: #0f172a;
            font-weight: 600;
        }

        .dark .pfh-tl-row-val {
            color: #e2e8f0;
        }

        .pfh-tl-notes {
            font-size: .82rem;
            color: #475569;
            font-style: italic;
            margin-top: .25rem;
        }

        .dark .pfh-tl-notes {
            color: #94a3b8;
        }

        .pfh-tl-empty {
            text-align: center;
            padding: 4rem 2rem;
            color: #94a3b8;
            font-size: .875rem;
        }

        /* ── Diff Items ── */
        .pfh-diff-wrap {
            margin-top: .75rem;
            border-top: 1px dashed #e2e8f0;
            padding-top: .75rem;
        }

        .dark .pfh-diff-wrap {
            border-top-color: #334155;
        }

        .pfh-diff-toggle {
            display: inline-flex;
            align-items: center;
            gap: .4rem;
            font-size: .75rem;
            font-weight: 700;
            color: #4f46e5;
            background: none;
            border: none;
            cursor: pointer;
            padding: 0;
        }

        .pfh-diff-toggle:hover {
            color: #4338ca;
            text-decoration: underline;
        }

        .dark .pfh-diff-toggle {
            color: #818cf8;
        }

        .dark .pfh-diff-toggle:hover {
            color: #a5b4fc;
        }

        .pfh-diff-list {
            display: flex;
            flex-direction: column;
            gap: .5rem;
            margin-top: .5rem;
            padding: .65rem;
            background: #fff;
            border-radius: .5rem;
            border: 1px solid #e2e8f0;
        }

        .dark .pfh-diff-list {
            background: #0f172a;
            border-color: #334155;
        }

        .pfh-diff-item {
            font-size: .75rem;
            padding: .4rem .5rem;
            border-radius: .3rem;
            background: #f8fafc;
            border: 1px solid #f1f5f9;
            display: flex;
            flex-direction: column;
            gap: .2rem;
        }

        .dark .pfh-diff-item {
            background: #1e293b;
            border-color: #1e293b;
        }

        .pfh-diff-title {
            font-weight: 700;
            color: #0f172a;
            display: flex;
            align-items: center;
            gap: .3rem;
        }

        .dark .pfh-diff-title {
            color: #e2e8f0;
        }

        .pfh-diff-added {
            color: #059669;
        }

        .dark .pfh-diff-added {
            color: #34d399;
        }

        .pfh-diff-removed {
            color: #be123c;
            text-decoration: line-through;
        }

        .dark .pfh-diff-removed {
            color: #f87171;
        }

        .pfh-diff-changed {
            color: #d97706;
        }

        .dark .pfh-diff-changed {
            color: #fbbf24;
        }

        .pfh-diff-detail {
            color: #475569;
            font-weight: 600;
            font-size: .7rem;
            padding-left: 1.1rem;
        }

        .dark .pfh-diff-detail {
            color: #94a3b8;
        }

        .pfh-panel-footer {
            flex-shrink: 0;
            padding: 1rem 1.75rem;
            border-top: 1px solid #e2e8f0;
            background: #f8fafc;
            display: flex;
            justify-content: flex-end;
        }

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

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

        .pfh-close-btn:hover {
            background: #f1f5f9;
        }

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

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

        @media(max-width:640px) {
            .pfh-panel {
                width: 100vw;
            }

            .pfh-panel-body,
            .pfh-panel-header {
                padding: 1.1rem;
            }

            .pfh-table thead {
                display: none;
            }
        }
    

