.icpm-ajax-overlay {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(15, 23, 42, 0.26);
    backdrop-filter: blur(2px);
}

.icpm-ajax-overlay.is-visible {
    display: flex;
}

.icpm-ajax-overlay__panel {
    min-width: 320px;
    max-width: 420px;
    padding: 1.25rem 1.5rem;
    border-radius: 16px;
    background: #ffffff;
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.18);
    border: 1px solid rgba(148, 163, 184, 0.22);
}

.icpm-ajax-overlay__content {
    display: flex;
    align-items: center;
    gap: 0.9rem;
}

.icpm-ajax-overlay__spinner {
    width: 2.25rem;
    height: 2.25rem;
    border-width: 0.24rem;
    color: #0f6cbd;
    flex-shrink: 0;
    display: inline-block;
    border-style: solid;
    border-radius: 50% !important;
    aspect-ratio: 1 / 1;
}

.icpm-ajax-overlay__title {
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
    color: #0f172a;
}

.icpm-ajax-overlay__text {
    margin: 0.2rem 0 0;
    font-size: 0.86rem;
    color: #475569;
}

.icpm-ajax-toast-stack {
    position: fixed;
    top: 1.25rem;
    right: 1.25rem;
    z-index: 2050;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    max-width: min(92vw, 420px);
}

.icpm-ajax-toast {
    border: 0;
    border-left: 4px solid transparent;
    border-radius: 12px;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.15);
}

.icpm-ajax-toast.alert-success {
    background: #e3f8ec !important;
    color: #166534 !important;
    border-left-color: #22c55e;
}

.icpm-ajax-toast.alert-danger {
    background: #fef2f2 !important;
    color: #991b1b !important;
    border-left-color: #dc2626;
}

.icpm-ajax-toast.alert-warning {
    background: #fffbeb !important;
    color: #92400e !important;
    border-left-color: #d97706;
}

.icpm-ajax-toast.alert-info {
    background: #eff6ff !important;
    color: #1e40af !important;
    border-left-color: #3b82f6;
}

.icpm-btn-spinner {
    display: none;
    margin-left: 0.5rem;
    vertical-align: text-bottom;
    width: 0.95rem;
    height: 0.95rem;
    border-width: 0.15rem;
    border-style: solid;
    border-radius: 50% !important;
    aspect-ratio: 1 / 1;
}

.icpm-btn-spinner.is-visible {
    display: inline-block;
}

.dataTables_wrapper .dataTables_processing {
    min-width: 0 !important;
    width: auto !important;
    padding: 0.65rem 0.9rem !important;
    border: 1px solid rgba(148, 163, 184, 0.24) !important;
    border-radius: 12px !important;
    background: rgba(255, 255, 255, 0.96) !important;
    box-shadow: 0 14px 30px rgba(15, 23, 42, 0.14) !important;
}

.dataTables_wrapper .dataTables_processing > div:last-child {
    position: static !important;
    width: auto !important;
    height: auto !important;
    margin: 0 !important;
}

.dataTables_wrapper .dataTables_processing > div:last-child > div {
    position: static !important;
    width: auto !important;
    height: auto !important;
    background: transparent !important;
    border-radius: 0 !important;
    animation: none !important;
}

.dataTables_wrapper .dataTables_processing .spinner-border,
.dataTables_wrapper .dataTables_processing .spinner-border-sm {
    width: 1rem !important;
    height: 1rem !important;
    min-width: 1rem;
    border-width: 0.16rem !important;
    border-style: solid;
    border-radius: 50% !important;
    aspect-ratio: 1 / 1;
}

.icpm-modal-loader__spinner {
    position: relative;
    width: 1.5rem;
    height: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.icpm-modal-loader__spinner-ring {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 2px solid #e9edf2;
    border-top-color: #17a2b8;
    border-right-color: #20c997;
    animation: icpm-spin 0.8s cubic-bezier(.4, 0, .2, 1) infinite;
}

@keyframes icpm-spin {
    to { transform: rotate(360deg); }
}
