        .loading-overlay {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.6);
            display: none;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            z-index: 10000;
            color: white;
            backdrop-filter: blur(3px);
            animation: fadeInOverlay 0.3s ease;
        }

        @keyframes fadeInOverlay {
            from {
                opacity: 0;
            }

            to {
                opacity: 1;
            }
        }

        .spinner-container {
            text-align: center;
            background: white;
            padding: 30px 50px;
            border-radius: 12px;
            box-shadow: var(--shadow-md);
            color: var(--primary);
        }

        .spinner {
            width: 50px;
            height: 50px;
            border: 5px solid #f3f3f3;
            border-top: 5px solid var(--primary);
            border-radius: 50%;
            animation: spin 1s linear infinite;
            margin: 0 auto 15px;
        }

        @keyframes spin {
            0% {
                transform: rotate(0deg);
            }

            100% {
                transform: rotate(360deg);
            }
        }

        @media (max-width: 1024px) {
            .distribution-container {
                grid-template-columns: 1fr;
            }
        }

        @media (max-width: 768px) {
            .summary-cards {
                grid-template-columns: repeat(2, 1fr);
            }

            .dashboard-filter-row {
                flex-direction: column;
                align-items: stretch;
            }

            .requirements-table .radio-group {
                flex-wrap: wrap;
                gap: 8px 12px;
            }

            .requirements-table .custom-radio {
                padding: 4px 0;
            }

            .routing-head {
                display: none;
            }

            .routing-row {
                grid-template-columns: 1fr;
                gap: 10px;
                padding: 14px;
                background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
            }

            .routing-cell {
                padding: 0;
            }

            .routing-cell-title {
                margin-bottom: 2px;
            }

            .routing-inline-label {
                display: block;
            }
        }

        @media (min-width: 1280px) {
            .scroll-area {
                padding: 40px;
            }

            .card-body {
                padding: 36px;
            }

            .dashboard-filter-row {
                gap: 20px;
            }
        }

        .modal {
            display: none;
            position: fixed;
            inset: 0;
            z-index: 9999;
            padding: 24px 16px;
            background-color: rgba(0, 0, 0, 0.5);
            overflow-y: auto;
        }

        .modal.is-open {
            display: flex !important;
            align-items: flex-start;
            justify-content: center;
        }

        .modal-content {
            background-color: #fff;
            margin: 0 auto;
            padding: 20px;
            border-radius: 12px;
            width: min(100%, 560px);
            max-width: 100%;
            max-height: calc(100vh - 48px);
            overflow-y: auto;
            position: relative;
            box-shadow: 0 12px 28px rgba(15, 23, 42, 0.18);
        }

        .modal-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            gap: 12px;
            border-bottom: 1px solid #ddd;
            padding-bottom: 10px;
            margin-bottom: 15px;
        }

        .modal-close {
            cursor: pointer;
            font-size: 24px;
            line-height: 1;
            color: #64748b;
            border: none;
            background: transparent;
            min-width: 44px;
            min-height: 44px;
            border-radius: 999px;
        }

        .modal-actions {
            text-align: right;

            border-top: 1px solid #ddd;
            padding-top: 15px;
            display: flex;
            justify-content: flex-end;
            gap: 8px;
            flex-wrap: wrap;
        }


