/* Runtime-only CSP helper classes for migrated dynamic UI states. */
@keyframes templateQuerySpin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes declarationQuerySpin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.csp-modal-centered {
    justify-content: center !important;
    align-items: center !important;
}

.csp-upload-progress-info {
    background: #ebf8ff !important;
    color: #2c5282 !important;
}

.csp-upload-progress-success {
    background: #c6f6d5 !important;
}

.csp-upload-progress-error {
    background: #fed7d7 !important;
}

@keyframes scaleIn {
    from { opacity: 0; transform: scale(0.9); }
    to { opacity: 1; transform: scale(1); }
}

.csp-upload-info-success {
    border-left-color: #48bb78 !important;
}

.csp-upload-info-error {
    border-left-color: #e53e3e !important;
}

.csp-download-link-centered {
    margin: 20px auto 0 !important;
    text-align: center !important;
}

.declaration-download-actions {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 12px !important;
    flex-wrap: wrap !important;
    margin-top: 20px !important;
    text-align: center !important;
}

.declaration-download-actions .btn {
    min-width: 150px;
}

@media (max-width: 480px) {
    .declaration-download-actions {
        flex-direction: column !important;
    }

    .declaration-download-actions .btn {
        width: 100%;
        max-width: 260px;
    }
}

.csp-membership-inline-muted {
    display: flex !important;
    border-left: 1px solid #cbd5e1 !important;
    padding-left: 10px !important;
    color: #475569 !important;
    font-weight: normal !important;
}

.csp-membership-inline-success {
    display: none !important;
    border-left: none !important;
    padding-left: 0 !important;
    color: #22543d !important;
    font-weight: 600 !important;
}

.csp-quote-switch-upload-active .quote-preview-upload-switch,
.csp-quote-switch-download-active .quote-preview-download-switch {
    background: rgba(255,255,255,0.9) !important;
    color: #667eea !important;
}

.csp-quote-switch-upload-active .quote-preview-download-switch,
.csp-quote-switch-download-active .quote-preview-upload-switch {
    background: rgba(255,255,255,0.3) !important;
    color: #fff !important;
}

.quote-preview-table {
    min-width: 1200px;
}

.quote-preview-table-wide {
    min-width: 1430px;
}

.quote-preview-table .quote-preview-cell-left {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.quote-preview-table .quote-preview-cell-emphasis {
    font-weight: 600;
}

.quote-preview-table .quote-preview-cell-sequence {
    font-size: 12px;
}

.quote-preview-table .quote-preview-color-emphasis {
    color: #48bb78;
}

.quote-preview-table .quote-preview-color-center {
    color: #718096;
}

.quote-preview-table .quote-preview-width-60 { width: 60px; }
.quote-preview-table .quote-preview-width-70 { width: 70px; }
.quote-preview-table .quote-preview-width-80 { width: 80px; }
.quote-preview-table .quote-preview-width-90 { width: 90px; }
.quote-preview-table .quote-preview-width-100 { width: 100px; }
.quote-preview-table .quote-preview-width-110 { width: 110px; }
.quote-preview-table .quote-preview-width-120 { width: 120px; }
.quote-preview-table .quote-preview-width-140 { width: 140px; }
.quote-preview-table .quote-preview-width-160 { width: 160px; }

.declaration-company-dropdown-item {
    padding: 10px 15px;
    cursor: pointer;
    color: #2d3748;
    font-size: 14px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.declaration-company-dropdown-item:hover {
    background: #f7fafc;
}

.declaration-company-dropdown-add {
    color: #667eea;
    justify-content: flex-start;
    font-weight: 600;
    border-top: 1px solid #e2e8f0;
}

.declaration-company-dropdown-item.is-disabled {
    cursor: default;
}
