.conn-status {
display: flex;
            align-items: center;
            gap: 8px;
            background: rgba(255, 255, 255, 0.1);
            padding: 4px 12px;
            border-radius: 20px;
            font-size: 12px;
            font-weight: 600;
            border: 1px solid rgba(255, 255, 255, 0.2);
            margin-right: 15px;
            box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
        }

        .conn-dot {
            width: 8px;
            height: 8px;
            border-radius: 50%;
            display: inline-block;
        }

        .conn-dot.online {
            background-color: #4ade80;
            box-shadow: 0 0 8px #4ade80;
        }

        .conn-dot.offline {
            background-color: #ef4444;
            box-shadow: 0 0 8px #ef4444;
            animation: blink-offline 1.5s ease infinite;
        }

        @keyframes blink-offline {
            0% {
                opacity: 1;
            }

            50% {
                opacity: 0.3;
            }

            100% {
                opacity: 1;
            }
        }

        .conn-badge {
            background: #ef4444;
            color: white;
            padding: 1px 6px;
            border-radius: 10px;
            font-size: 10px;
            margin-left: 4px;
        }

        /* Responsive Design */
        @media (max-width: 1024px) {
            .sidebar {
                margin-right: 0;
                justify-self: start;
                width: fit-content;
            }

            .card-header {
                flex-direction: column;
                align-items: flex-start;
                gap: 12px;
            }

            .section-footer {
                flex-direction: column;
                align-items: stretch;
                gap: 16px;
            }

            .page-actions {
                display: grid;
                grid-template-columns: repeat(2, minmax(0, 1fr));
                gap: 10px;
                width: 100%;
            }

            .page-actions .btn {
                width: 100%;
            }

            .signature-area {
                flex-direction: column;
                gap: 16px;
            }

            /* Stack forms */
            .form-grid {
                grid-template-columns: 1fr;
            }

            .sig-block {
                min-width: 0;
            }

            .register-group {
                display: grid;
                grid-template-columns: repeat(2, minmax(0, 64px));
                gap: 10px;
            }

            .register-group input {
                grid-column: 1 / -1;
                flex: auto;
            }

            .register-group .btn {
                width: 64px;
                padding-inline: 0;
            }

            .dashboard-filter-row,
            .dashboard-filter-row>div,
            .dashboard-filter-row .radio-group {
                width: 100%;
            }

            .dashboard-filter-row>div[style*="margin-left: auto"] {
                margin-left: 0 !important;
                width: 100%;
                justify-content: stretch;
            }

            .dashboard-filter-row>div[style*="margin-left: auto"] .btn,
            .dashboard-filter-row>div[style*="margin-left: auto"] input {
                flex: 1 1 100%;
            }

            .dashboard-filter-row input,
            .dashboard-filter-row select,
            .dashboard-filter-row .form-control,
            .dashboard-filter-row button,
            .modal input,
            .modal textarea,
            .modal .btn,
            .modal-close {
                font-size: 16px !important;
                min-height: 44px !important;
            }

            .table-responsive {
                margin-inline: -4px;
                padding-bottom: 4px;
            }

            .summary-table .col-petugas-fo,
            .summary-table .col-petugas-bo,
            .summary-table .cell-petugas-fo,
            .summary-table .cell-petugas-bo {
                display: none;
            }

            .summary-table .col-no,
            .summary-table .cell-no {
                width: 48px;
            }

            .distribution-section {
                gap: 20px !important;
                padding: 16px !important;
            }

            .distribution-section>div {
                min-width: 100% !important;
                padding-left: 0 !important;
                border-left: 0 !important;
            }

            .section-card {
                border-radius: 12px;
            }

            .card-body {
                padding: 16px;
            }

            .scroll-area {
                padding: 12px;
            }

            .card-header {
                padding: 14px 16px;
            }

            .card-header h2 {
                font-size: 15px;
                line-height: 1.35;
            }

            .progress-pill {
                align-self: flex-start;
            }

            .form-grid {
                gap: 16px;
                margin-bottom: 24px;
            }

            .requirements-table th,
            .requirements-table td {
                padding: 10px 12px;
                font-size: 13px;
            }

            /* Overlay */
            .overlay {
                display: none;
                position: fixed;
                top: 0;
                left: 0;
                width: 100%;
                height: 100%;
                background: rgba(0, 0, 0, 0.5);
                z-index: 900;
            }

            .overlay.active {
                display: block;
            }
        }

        /* DASHBOARD LAYOUT STYLES */
        .dashboard-filter-row {
            display: flex;
            align-items: center;
            gap: 15px;
            background: #f8fafc;
            padding: 12px 16px;
            border: 1px solid var(--border);
            border-radius: var(--radius);
            margin-bottom: 24px;
        }

        .dashboard-header-title {
            text-align: center;
            margin-bottom: 24px;
        }

        .dashboard-header-title h1 {
            font-size: 16px;
            color: var(--text-muted);
            text-transform: uppercase;
            letter-spacing: 0.5px;
            margin: 0 0 8px 0;
            font-weight: 700;
        }

        .dashboard-header-title h2 {
            font-size: 18px;
            color: var(--primary);
            margin: 0 0 4px 0;
            font-weight: 700;
        }

        .dashboard-header-title p {
            font-size: 13px;
            color: var(--text-muted);
            margin: 0;
        }

        .summary-cards {
            display: grid;
            grid-template-columns: repeat(4, 1fr);
            gap: 20px;
            margin-bottom: 30px;
        }

        .summary-card {
            background: #f8fafc;
            /* Very light gray background */
            border: 1px solid var(--border);
            border-radius: 4px;
            padding: 20px 10px;
            text-align: center;
            box-shadow: var(--shadow-sm);
        }

        .summary-card.masuk {
            border-top: 4px solid var(--primary);
        }

        .summary-card.berjalan {
            border-top: 4px solid var(--warning);
        }

        .summary-card.selesai {
            border-top: 4px solid var(--success);
        }

        .summary-card.ditolak {
            border-top: 4px solid var(--danger);
        }

        .summary-card h3 {
            font-size: 32px;
            font-weight: 700;
            color: var(--primary);
            margin: 0 0 8px 0;
        }

        .summary-card p {
            font-size: 11px;
            font-weight: 700;
            color: var(--text-muted);
            text-transform: uppercase;
            letter-spacing: 0.5px;
            margin: 0;
        }

        .distribution-container {
            display: grid;
            grid-template-columns: 1fr 2fr;
            gap: 30px;
            margin-bottom: 30px;
        }

        .distribution-section h3 {
            font-size: 12px;
            font-weight: 700;
            color: var(--primary);
            text-transform: uppercase;
            letter-spacing: 0.5px;
            margin: 0 0 15px 0;
            border-bottom: 1px solid var(--border);
            padding-bottom: 8px;
        }

        .dist-row {
            display: flex;
            align-items: center;
            margin-bottom: 12px;
            font-size: 12px;
        }

        .dist-label {
            width: 130px;
            color: var(--text-main);
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }

        .dist-bar-wrapper {
            flex-grow: 1;
            height: 8px;
            background-color: #f1f5f9;
            border-radius: 4px;
            margin: 0 15px;
            overflow: hidden;
        }

        .dist-bar {
            height: 100%;
            border-radius: 4px;
            transition: width 0.5s ease-in-out;
        }

        .dist-value {
            width: 30px;
            text-align: right;
            font-weight: 600;
            color: var(--text-main);
        }

        /* Loading Overlay Custom */
        .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;
            }
        }

