.mmc-op-hud {
    position: fixed;
    right: 16px;
    top: 16px;
    z-index: 2100;
    min-width: 220px;
    max-width: min(92vw, 360px);
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border-radius: 12px;
    border: 1px solid rgba(13, 110, 253, 0.2);
    background: rgba(255, 255, 255, 0.96);
    color: #0f172a;
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.16);
    backdrop-filter: blur(2px);
    opacity: 0;
    transform: translateY(-8px);
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
    font-size: 0.92rem;
    line-height: 1.3;
}

.mmc-op-hud.show {
    opacity: 1;
    transform: translateY(0);
}

.mmc-network-toast {
    position: fixed;
    left: 50%;
    top: 50%;
    z-index: 2095;
    min-width: 148px;
    max-width: min(92vw, 220px);
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border-radius: 999px;
    border: 1px solid rgba(34, 197, 94, 0.22);
    background: rgba(240, 253, 244, 0.97);
    color: #166534;
    box-shadow: 0 14px 30px rgba(15, 23, 42, 0.16);
    transition: box-shadow 0.2s ease, transform 0.2s ease, border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
    font-size: 0.9rem;
    line-height: 1.3;
    pointer-events: auto;
    user-select: none;
    cursor: grab;
    touch-action: none;
}

.mmc-network-toast.mmc-drag-ready {
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.18), 0 16px 34px rgba(15, 23, 42, 0.18);
}

.mmc-network-toast.is-dragging {
    cursor: grabbing;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.22), 0 18px 40px rgba(15, 23, 42, 0.22);
    transform: scale(1.02);
}

.mmc-network-toast[data-state="poor"] {
    border-color: rgba(220, 53, 69, 0.28);
    background: rgba(255, 240, 241, 0.97);
    color: #991b1b;
}

.mmc-network-toast-icon {
    width: 28px;
    min-width: 28px;
    height: 28px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(34, 197, 94, 0.14);
}

.mmc-network-toast[data-state="fair"] {
    border-color: rgba(245, 158, 11, 0.28);
    background: rgba(255, 251, 235, 0.97);
    color: #92400e;
}

.mmc-network-toast[data-state="fair"] .mmc-network-toast-icon {
    background: rgba(245, 158, 11, 0.14);
}

.mmc-network-toast[data-state="poor"] .mmc-network-toast-icon {
    background: rgba(220, 53, 69, 0.14);
}

.mmc-network-signal {
    display: inline-flex;
    align-items: flex-end;
    gap: 3px;
    height: 16px;
}

.mmc-network-bar {
    width: 4px;
    border-radius: 999px;
    background: currentColor;
    opacity: 0.22;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.mmc-network-bar:nth-child(1) {
    height: 6px;
}

.mmc-network-bar:nth-child(2) {
    height: 11px;
}

.mmc-network-bar:nth-child(3) {
    height: 16px;
}

.mmc-network-bar.is-active {
    opacity: 1;
    transform: translateY(-1px);
}

.mmc-network-toast-label {
    font-weight: 600;
    white-space: nowrap;
}

.mmc-op-hud[data-state="loading"] {
    border-color: rgba(13, 110, 253, 0.26);
}

.mmc-op-hud[data-state="success"] {
    border-color: rgba(25, 135, 84, 0.32);
    background: rgba(237, 252, 245, 0.96);
}

.mmc-op-hud[data-state="error"] {
    border-color: rgba(220, 53, 69, 0.32);
    background: rgba(255, 240, 241, 0.96);
}

.mmc-op-state {
    width: 24px;
    min-width: 24px;
    height: 24px;
    display: none;
    align-items: center;
    justify-content: center;
}

.mmc-op-hud[data-state="loading"] .mmc-op-state-loading,
.mmc-op-hud[data-state="success"] .mmc-op-state-success,
.mmc-op-hud[data-state="error"] .mmc-op-state-error {
    display: inline-flex;
}

.mmc-op-label {
    font-weight: 600;
}

.mmc-loading-dots {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.mmc-loading-dots span {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #0d6efd;
    opacity: 0.3;
    animation: mmc-loading-bounce 1s infinite ease-in-out;
}

.mmc-op-hud[data-state="success"] .mmc-loading-dots span {
    background: #198754;
}

.mmc-op-hud[data-state="error"] .mmc-loading-dots span {
    background: #dc3545;
}

.mmc-loading-dots span:nth-child(2) {
    animation-delay: 0.15s;
}

.mmc-loading-dots span:nth-child(3) {
    animation-delay: 0.3s;
}

.mmc-op-icon {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    color: #fff;
    font-size: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}

.mmc-op-icon-success {
    background: #198754;
}

.mmc-op-icon-error {
    background: #dc3545;
}

.table-responsive.mmc-table-trackable,
.dataTables_wrapper.mmc-table-trackable,
.table-container.mmc-table-trackable {
    position: relative;
}

.mmc-table-overlay {
    position: absolute;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.72);
    border-radius: 8px;
    z-index: 10;
    pointer-events: none;
}

.mmc-table-busy .mmc-table-overlay {
    display: flex;
}

.mmc-table-overlay-card {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    border-radius: 999px;
    border: 1px solid rgba(13, 110, 253, 0.2);
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.12);
    color: #0f172a;
    font-size: 0.88rem;
    font-weight: 600;
}

@keyframes mmc-loading-bounce {
    0%, 80%, 100% {
        transform: scale(0.7);
        opacity: 0.35;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

@media (max-width: 767px) {
    .mmc-op-hud {
        right: 10px;
        left: 10px;
        top: 10px;
        max-width: none;
    }

    .mmc-network-toast {
        min-width: 132px;
        max-width: calc(100vw - 20px);
        padding: 8px 12px;
        gap: 8px;
        font-size: 0.84rem;
    }

    .mmc-network-toast-icon {
        width: 24px;
        min-width: 24px;
        height: 24px;
    }
}
