        * {
            box-sizing: border-box;
            font-family: system-ui, 'Segoe UI', 'Inter', 'Poppins', -apple-system, BlinkMacSystemFont, 'Roboto', sans-serif;
        }

        /* Modal overlay & container */
        .modal-overlay {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background-color: rgba(0, 0, 0, 0.6);
            backdrop-filter: blur(3px);
            display: flex;
            align-items: center;
            justify-content: center;
            z-index: 1000;
            visibility: hidden;
            opacity: 0;
            transition: visibility 0.2s, opacity 0.2s ease;
        }

        .modal-overlay.active {
            visibility: visible;
            opacity: 1;
        }

        .modal-container {
            background: #ffffff;
            max-width: 1500px;
            width: 95%;
            max-height: 90vh;
            border-radius: 28px;
            box-shadow: 0 25px 45px -12px rgba(0, 0, 0, 0.35);
            display: flex;
            flex-direction: column;
            overflow: hidden;
            animation: modalPop 0.25s cubic-bezier(0.2, 0.9, 0.4, 1.1);
        }

        @keyframes modalPop {
            from {
                transform: scale(0.96);
                opacity: 0;
            }
            to {
                transform: scale(1);
                opacity: 1;
            }
        }

        .modal-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 1rem 1.8rem;
            background: linear-gradient(135deg, #1a2a3a 0%, #0f212f 100%);
            color: white;
            border-bottom: 1px solid rgba(255,255,255,0.1);
            flex-wrap: wrap;
            gap: 12px;
        }

        .header-title-area {
            display: flex;
            align-items: center;
            gap: 20px;
            flex-wrap: wrap;
        }

        .modal-header h2 {
            margin: 0;
            font-size: 1.4rem;
            font-weight: 600;
            letter-spacing: -0.2px;
            display: flex;
            align-items: center;
            gap: 8px;
        }

        .modal-header h2::before {
            content: "📦";
            font-size: 1.4rem;
        }

        .shipment-selector {
            background: rgba(255,255,255,0.15);
            border-radius: 48px;
            padding: 5px 12px;
            display: flex;
            align-items: center;
            gap: 10px;
            backdrop-filter: blur(4px);
        }

        .shipment-selector label {
            font-size: 0.8rem;
            font-weight: 500;
            letter-spacing: 0.3px;
        }

        #shipmentType {
            background: white;
            border: none;
            padding: 8px 16px;
            border-radius: 32px;
            font-weight: 600;
            font-size: 0.85rem;
            cursor: pointer;
            outline: none;
            color: #0f212f;
        }

        .close-modal {
            background: rgba(255,255,255,0.2);
            border: none;
            color: white;
            font-size: 1.8rem;
            cursor: pointer;
            width: 36px;
            height: 36px;
            border-radius: 40px;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: 0.2s;
        }

        .close-modal:hover {
            background: #dc2626;
            transform: scale(1.02);
        }

        .modal-body {
            padding: 1.2rem 1.5rem;
            overflow-y: auto;
            background: #f8fafc;
            flex: 1;
        }

        .toolbar {
            display: flex;
            flex-wrap: wrap;
            justify-content: space-between;
            align-items: center;
            gap: 0.8rem;
            margin-bottom: 1.5rem;
            background: white;
            padding: 0.7rem 1.2rem;
            border-radius: 60px;
            box-shadow: 0 2px 8px rgba(0,0,0,0.05);
        }

        .unit-group {
            display: flex;
            align-items: center;
            gap: 12px;
            background: #f1f5f9;
            padding: 5px 18px;
            border-radius: 40px;
        }

        .unit-group label {
            font-weight: 600;
            color: #0f172a;
        }

        .unit-select {
            background: white;
            border: 1px solid #cbd5e1;
            padding: 8px 12px;
            border-radius: 32px;
            font-weight: 500;
            cursor: pointer;
            outline: none;
        }

        .add-row-btn {
            background: #0f3b2c;
            border: none;
            color: white;
            font-weight: 600;
            padding: 9px 22px;
            border-radius: 40px;
            display: flex;
            align-items: center;
            gap: 8px;
            font-size: 0.85rem;
            cursor: pointer;
            transition: 0.2s;
            box-shadow: 0 2px 5px rgba(0,0,0,0.1);
        }

        .add-row-btn:hover {
            background: #1e4a3a;
            transform: scale(0.97);
        }

        .export-group {
            display: flex;
            gap: 10px;
        }

        .export-pdf-btn {
            background: #b91c1c;
            border: none;
            color: white;
            font-weight: 600;
            padding: 9px 22px;
            border-radius: 40px;
            display: flex;
            align-items: center;
            gap: 8px;
            font-size: 0.85rem;
            cursor: pointer;
            transition: 0.2s;
        }

        .export-pdf-btn:hover {
            background: #991b1b;
            transform: scale(0.97);
        }

        .export-excel-btn {
            background: #1f6e43;
            border: none;
            color: white;
            font-weight: 600;
            padding: 9px 22px;
            border-radius: 40px;
            display: flex;
            align-items: center;
            gap: 8px;
            font-size: 0.85rem;
            cursor: pointer;
            transition: 0.2s;
        }

        .export-excel-btn:hover {
            background: #145c38;
            transform: scale(0.97);
        }

        .info-badge {
            background: #e6f0fa00;
            border-radius: 24px;
            padding: 4px 14px;
            font-size: 0.7rem;
            font-weight: 500;
            color: #07598500;
        }

        .table-wrapper {
            overflow-x: auto;
            border-radius: 20px;
            background: white;
            box-shadow: 0 8px 20px rgba(0, 0, 0, 0.05);
        }

        .data-table {
            width: 100%;
            border-collapse: collapse;
            font-size: 0.85rem;
            min-width: 920px;
        }

        .data-table th {
            background: #1e293b;
            color: white;
            padding: 14px 8px;
            font-weight: 600;
            text-align: center;
            border-right: 1px solid #334155;
        }

        .data-table td {
            padding: 12px 6px;
            text-align: center;
            border-bottom: 1px solid #e2e8f0;
            vertical-align: middle;
            background-color: #ffffff;
        }

        .data-table input {
            width: 80px;
            padding: 8px 5px;
            text-align: center;
            border: 1px solid #cbd5e1;
            border-radius: 12px;
            font-size: 0.8rem;
            transition: 0.2s;
        }

        .data-table input:focus {
            border-color: #2c7a5e;
            outline: none;
            box-shadow: 0 0 0 2px rgba(44,122,94,0.2);
        }

        .dim-group {
            display: flex;
            gap: 6px;
            justify-content: center;
            flex-wrap: wrap;
        }

        .dim-group input {
            width: 70px;
        }

        .remove-btn {
            background: #fee2e2;
            border: none;
            color: #b91c1c;
            font-size: 1.2rem;
            font-weight: bold;
            border-radius: 30px;
            width: 30px;
            height: 30px;
            cursor: pointer;
            transition: 0.2s;
        }

        .remove-btn:hover {
            background: #fecaca;
            transform: scale(1.05);
        }

        .total-row {
            background: #eef2ff;
            font-weight: 800;
            border-top: 2px solid #b9c8e6;
        }

        .total-row td {
            background: #eef2ff;
            font-size: 0.95rem;
            padding: 14px 8px;
        }

        .demo-trigger-btn {
            background: #1e2f3f;
            border: none;
            padding: 12px 28px;
            font-size: 1rem;
            font-weight: 600;
            color: white;
            border-radius: 60px;
            cursor: pointer;
            transition: all 0.2s;
            margin: 20px;
            box-shadow: 0 4px 8px rgba(0,0,0,0.1);
        }

        .demo-trigger-btn:hover {
            background: #2c4c6e;
            transform: translateY(-2px);
        }

        @media print {
            .remove-btn, .export-pdf-btn, .export-excel-btn, .add-row-btn, .close-modal, .toolbar button, .demo-trigger-btn {
                display: none !important;
            }
            .modal-overlay {
                position: relative;
                visibility: visible !important;
                opacity: 1 !important;
                background: white;
            }
            .modal-container {
                max-width: 100%;
                box-shadow: none;
            }
            .data-table th, .data-table td {
                border: 1px solid #ccc;
            }
        }