/* ==========================================================================
   START.AI Property Core (VS-02 v01.01.00) - Strictly Scoped Stylesheet
   Scope Root: .startai-property-core
   Never leaks global styles or overrides DNN PersonaBar / Generic Product CSS.
   ========================================================================== */

.startai-property-core {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: #1e293b;
    background-color: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 20px;
    margin: 12px 0;
    box-sizing: border-box;
}

.startai-property-core *,
.startai-property-core *::before,
.startai-property-core *::after {
    box-sizing: border-box;
}

.startai-property-core .spc-header {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    padding-bottom: 12px;
    margin-bottom: 14px;
    border-bottom: 1px solid #e2e8f0;
}

.startai-property-core .spc-title {
    margin: 0;
    font-size: 20px;
    font-weight: 700;
    color: #0f172a;
    display: flex;
    align-items: center;
    gap: 10px;
}

.startai-property-core .spc-badge-version {
    font-size: 12px;
    font-weight: 600;
    padding: 3px 8px;
    background: #dbeafe;
    color: #1d4ed8;
    border-radius: 999px;
}

.startai-property-core .spc-subtitle {
    margin: 4px 0 0 0;
    font-size: 13px;
    color: #64748b;
}

.startai-property-core .spc-header-actions,
.startai-property-core .spc-btn-group {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

/* ===================== TABS NAVIGATION ===================== */
.startai-property-core .spc-tabs-nav {
    display: flex;
    gap: 8px;
    border-bottom: 2px solid #e2e8f0;
    margin-bottom: 16px;
}

.startai-property-core .spc-tab-btn {
    padding: 10px 18px;
    font-size: 14px;
    font-weight: 600;
    background: transparent;
    border: none;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    color: #64748b;
    cursor: pointer;
    transition: all 0.2s ease;
}

.startai-property-core .spc-tab-btn:hover {
    color: #0f172a;
}

.startai-property-core .spc-tab-btn.spc-tab-active {
    color: #2563eb;
    border-bottom-color: #2563eb;
    background: #ffffff;
    border-radius: 6px 6px 0 0;
}

.startai-property-core .spc-workspace {
    display: grid;
    grid-template-columns: 1fr 1.25fr;
    gap: 18px;
}

@media (max-width: 1100px) {
    .startai-property-core .spc-workspace {
        grid-template-columns: 1fr;
    }
}

.startai-property-core .spc-panel {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.startai-property-core .spc-panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 16px;
    background: #f1f5f9;
    border-bottom: 1px solid #e2e8f0;
    gap: 10px;
    flex-wrap: wrap;
}

.startai-property-core .spc-filter-bar {
    padding: 12px 16px;
    background: #ffffff;
}

.startai-property-core .spc-filter-controls {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center;
    flex: 1;
}

.startai-property-core .spc-filter-input {
    min-width: 260px;
    max-width: 380px;
}

.startai-property-core .spc-filter-select {
    max-width: 190px;
}

.startai-property-core .spc-panel-header h3 {
    margin: 0;
    font-size: 15px;
    font-weight: 600;
    color: #0f172a;
}

.startai-property-core .spc-highlight {
    color: #2563eb;
    font-weight: 700;
}

.startai-property-core .spc-panel-body {
    padding: 12px;
}

.startai-property-core .spc-table-wrap {
    overflow-x: auto;
}

.startai-property-core .spc-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.startai-property-core .spc-table th {
    text-align: left;
    padding: 10px 8px;
    background: #f8fafc;
    color: #475569;
    font-weight: 600;
    border-bottom: 1px solid #e2e8f0;
}

.startai-property-core .spc-table td {
    padding: 10px 8px;
    border-bottom: 1px solid #f1f5f9;
    vertical-align: middle;
}

.startai-property-core .spc-table tr.spc-row-selected {
    background-color: #eff6ff;
}

.startai-property-core .spc-table tr:hover {
    background-color: #f8fafc;
}

.startai-property-core .spc-table-thumb {
    width: 52px;
    height: 52px;
    object-fit: cover;
    border-radius: 6px;
    border: 1px solid #cbd5e1;
    background: #f1f5f9;
    display: block;
}

.startai-property-core .spc-code {
    font-family: Consolas, Monaco, monospace;
    font-size: 11px;
    background: #f1f5f9;
    color: #334155;
    padding: 2px 6px;
    border-radius: 4px;
    display: inline-block;
    margin-bottom: 2px;
}

.startai-property-core .spc-badge {
    display: inline-block;
    padding: 2px 8px;
    font-size: 11px;
    font-weight: 600;
    border-radius: 999px;
}

.startai-property-core .spc-badge-active {
    background: #dcfce7;
    color: #15803d;
}

.startai-property-core .spc-badge-inactive {
    background: #fee2e2;
    color: #b91c1c;
}

.startai-property-core .spc-badge-info {
    background: #e0f2fe;
    color: #0369a1;
    margin-right: 4px;
}

.startai-property-core .spc-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 7px 13px;
    font-size: 13px;
    font-weight: 600;
    border-radius: 6px;
    border: 1px solid transparent;
    cursor: pointer;
    transition: all 0.15s ease;
    text-decoration: none;
}

.startai-property-core .spc-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.startai-property-core .spc-btn-sm {
    padding: 4px 8px;
    font-size: 12px;
}

.startai-property-core .spc-btn-primary {
    background: #2563eb;
    color: #ffffff;
}

.startai-property-core .spc-btn-primary:hover:not(:disabled) {
    background: #1d4ed8;
}

.startai-property-core .spc-btn-secondary {
    background: #e2e8f0;
    color: #1e293b;
}

.startai-property-core .spc-btn-outline {
    background: #ffffff;
    border-color: #cbd5e1;
    color: #334155;
}

.startai-property-core .spc-btn-danger {
    background: #fee2e2;
    color: #b91c1c;
}

.startai-property-core .spc-input,
.startai-property-core .spc-select,
.startai-property-core .spc-textarea {
    width: 100%;
    padding: 7px 10px;
    font-size: 13px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    background: #ffffff;
    color: #0f172a;
}

.startai-property-core .spc-sort-input {
    width: 58px;
    padding: 4px 6px;
    text-align: center;
    border: 1px solid #cbd5e1;
    border-radius: 4px;
}

/* ===================== MODAL STYLES ===================== */
.startai-property-core .spc-modal-backdrop,
.startai-property-core .spc-modal-overlay {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    background: rgba(15, 23, 42, 0.65) !important;
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    z-index: 100000 !important;
    padding: 20px;
    box-sizing: border-box;
}

/* Ensure hidden modals stay hidden */
.startai-property-core .spc-modal-backdrop[style*="display: none"],
.startai-property-core .spc-modal-backdrop[style*="display:none"],
.startai-property-core .spc-modal-overlay[style*="display: none"],
.startai-property-core .spc-modal-overlay[style*="display:none"] {
    display: none !important;
}

.startai-property-core .spc-modal {
    background: #ffffff;
    border-radius: 12px;
    width: 100%;
    max-width: 640px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    position: relative;
    z-index: 100001;
    animation: spcModalFadeIn 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes spcModalFadeIn {
    from {
        opacity: 0;
        transform: scale(0.95) translateY(-8px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.startai-property-core .spc-modal-xl {
    max-width: 1000px;
}

.startai-property-core .spc-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
    flex-shrink: 0;
}

.startai-property-core .spc-modal-header h4,
.startai-property-core .spc-modal-header h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 700;
}

.startai-property-core .spc-modal-close,
.startai-property-core .spc-close-btn {
    background: transparent;
    border: none;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    color: #64748b;
    padding: 4px 8px;
    border-radius: 6px;
    transition: color 0.15s, background-color 0.15s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.startai-property-core .spc-modal-close:hover,
.startai-property-core .spc-close-btn:hover {
    color: #0f172a;
    background-color: #f1f5f9;
}

.startai-property-core .spc-modal-body {
    padding: 18px;
    overflow-y: auto;
    flex: 1;
}

.startai-property-core .spc-modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    padding: 12px 18px;
    background: #f8fafc;
    border-top: 1px solid #e2e8f0;
    flex-shrink: 0;
}

.startai-property-core .spc-section-box {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 14px;
    margin-bottom: 16px;
}

.startai-property-core .spc-section-title {
    margin: 0 0 12px 0;
    font-size: 13px;
    font-weight: 700;
    color: #1e293b;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 1px solid #e2e8f0;
    padding-bottom: 6px;
}

.startai-property-core .spc-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 12px;
}

.startai-property-core .spc-form-row-3 {
    grid-template-columns: 1fr 1fr 1fr;
}

.startai-property-core .spc-form-row-4 {
    grid-template-columns: 1fr 1fr 1fr 1fr;
}

@media (max-width: 768px) {
    .startai-property-core .spc-form-row,
    .startai-property-core .spc-form-row-3,
    .startai-property-core .spc-form-row-4 {
        grid-template-columns: 1fr;
    }
}

.startai-property-core .spc-form-group {
    margin-bottom: 12px;
}

.startai-property-core .spc-form-group label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 5px;
    color: #334155;
}

.startai-property-core .spc-checkbox-stack label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 500;
    margin-bottom: 6px;
}

.startai-property-core .spc-req {
    color: #dc2626;
}

.startai-property-core .spc-help,
.startai-property-core .spc-muted,
.startai-property-core .spc-muted-sm {
    color: #64748b;
    font-size: 12px;
}

.startai-property-core .spc-toast {
    padding: 10px 14px;
    border-radius: 6px;
    margin-bottom: 12px;
    font-size: 13px;
    font-weight: 600;
}

.startai-property-core .spc-toast-success {
    background: #dcfce7;
    color: #166534;
    border: 1px solid #86efac;
}

.startai-property-core .spc-toast-error {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #fca5a5;
}

.startai-property-core .spc-public-types-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
    gap: 12px;
    margin-top: 12px;
}

.startai-property-core .spc-public-type-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 12px;
}

/* ===================== DYNAMIC ATTRIBUTES & MEDIA / DOCS ===================== */
.startai-property-core .spc-dynamic-attrs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 12px;
}

.startai-property-core .spc-subpanel {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    padding: 12px;
}

.startai-property-core .spc-upload-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    margin-bottom: 10px;
}

.startai-property-core .spc-media-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 10px;
    margin-top: 12px;
}

.startai-property-core .spc-media-card {
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    overflow: hidden;
    background: #f8fafc;
    position: relative;
    font-size: 11px;
}

.startai-property-core .spc-media-card img {
    width: 100%;
    height: 90px;
    object-fit: cover;
    display: block;
}

.startai-property-core .spc-media-card-body {
    padding: 6px;
}

.startai-property-core .spc-media-primary-badge {
    position: absolute;
    top: 4px;
    left: 4px;
    background: #16a34a;
    color: #fff;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 700;
}

.startai-property-core .spc-doc-list {
    margin-top: 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.startai-property-core .spc-doc-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 10px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    font-size: 12px;
}

.startai-property-core .spc-pagination-bar {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    margin-top: 14px;
}

/* Skeleton Loading Animation (v01.03.00) */
@keyframes sai-shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

.startai-property-core .spc-skeleton-block {
    display: inline-block;
    height: 14px;
    width: 100%;
    background: linear-gradient(90deg, #f1f5f9 25%, #e2e8f0 50%, #f1f5f9 75%);
    background-size: 200% 100%;
    animation: sai-shimmer 1.5s infinite linear;
    border-radius: 4px;
}

.startai-property-core .spc-skeleton-thumb {
    width: 50px;
    height: 50px;
    border-radius: 6px;
    background: linear-gradient(90deg, #f1f5f9 25%, #e2e8f0 50%, #f1f5f9 75%);
    background-size: 200% 100%;
    animation: sai-shimmer 1.5s infinite linear;
    display: inline-block;
}

/* ==========================================================================
   REDESIGN LIST VIEW (STYLE PHONG CÁCH BẢNG ẢNH 3)
   ========================================================================== */

.startai-property-core .spc-total-badge {
    font-size: 14px;
    font-weight: 600;
    color: #0284c7;
    white-space: nowrap;
}

.startai-property-core .spc-table-redesign {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    font-size: 13px;
    background-color: #ffffff;
    border: 1px solid #c7fbd5;
    border-radius: 4px;
}

.startai-property-core .spc-table-redesign th {
    background: #ffffff;
    color: #1e293b;
    font-weight: 700;
    font-size: 13px;
    padding: 12px 10px;
    border-bottom: 2px solid #e2e8f0;
    border-right: 1px solid #f1f5f9;
    text-align: left;
    white-space: nowrap;
}

.startai-property-core .spc-table-redesign th:last-child {
    border-right: none;
}

.startai-property-core .spc-table-redesign tbody tr {
    background-color: #c7fbd5;
    transition: background-color 0.15s ease;
}

.startai-property-core .spc-table-redesign tbody tr:hover {
    background-color: #bbf7d0;
}

.startai-property-core .spc-table-redesign td {
    padding: 10px 10px;
    vertical-align: top;
    color: #1e293b;
    font-size: 13px;
    line-height: 1.55;
    border-bottom: 1px solid #a7f3d0;
    border-right: 1px solid rgba(0, 0, 0, 0.05);
}

.startai-property-core .spc-table-redesign td:last-child {
    border-right: none;
}

.startai-property-core .spc-cell-stt {
    text-align: center;
    font-weight: 600;
    color: #15803d;
    font-size: 13px;
    width: 50px;
}

.startai-property-core .spc-cell-action {
    width: 130px;
    vertical-align: top;
}

.startai-property-core .spc-action-stack {
    display: flex;
    flex-direction: column;
    gap: 6px;
    width: 115px;
}

.startai-property-core .spc-dropdown {
    position: relative;
    display: block;
    width: 100%;
}

.startai-property-core .spc-btn-dropdown {
    background-color: #337ab7;
    color: #ffffff;
    border: 1px solid #2e6da4;
    border-radius: 4px;
    padding: 4px 10px;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    transition: background-color 0.15s ease, border-color 0.15s ease;
}

.startai-property-core .spc-btn-dropdown:hover {
    background-color: #286090;
    border-color: #204d74;
}

.startai-property-core .spc-caret {
    font-size: 10px;
    margin-left: 4px;
}

.startai-property-core .spc-dropdown-menu {
    display: none;
    position: absolute;
    top: calc(100% + 2px);
    left: 0;
    min-width: 200px;
    max-height: 380px;
    overflow-y: auto;
    background-color: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.2), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
    z-index: 1050;
    padding: 4px 0;
    margin: 0;
}

.startai-property-core .spc-dropdown.spc-open .spc-dropdown-menu {
    display: block;
    animation: spcDropIn 0.15s ease;
}

@keyframes spcDropIn {
    from { opacity: 0; transform: translateY(-4px); }
    to { opacity: 1; transform: translateY(0); }
}

.startai-property-core .spc-dropdown-divider {
    height: 1px;
    margin: 4px 0;
    overflow: hidden;
    background-color: #e2e8f0;
}

.startai-property-core .spc-dropdown-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    font-size: 12px;
    color: #334155;
    text-decoration: none;
    cursor: pointer;
    transition: background-color 0.12s ease;
    white-space: nowrap;
}

.startai-property-core .spc-dropdown-item:hover {
    background-color: #f1f5f9;
    color: #0f172a;
    text-decoration: none;
}

.startai-property-core .spc-dropdown-item .spc-item-icon {
    font-size: 13px;
    width: 16px;
    display: inline-block;
    text-align: center;
}

.startai-property-core .spc-item-submit {
    color: #059669;
    font-weight: 600;
}

.startai-property-core .spc-item-submit:hover {
    background-color: #ecfdf5;
    color: #047857;
}

.startai-property-core .spc-item-delete {
    color: #dc2626;
}

.startai-property-core .spc-item-delete:hover {
    background-color: #fef2f2;
    color: #b91c1c;
}

.startai-property-core .spc-item-primary {
    color: #2563eb;
    font-weight: 500;
}

.startai-property-core .spc-item-primary:hover {
    background-color: #eff6ff;
    color: #1d4ed8;
}

.startai-property-core .spc-addr-title {
    font-size: 13px;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 3px;
    letter-spacing: 0.1px;
}

.startai-property-core .spc-text-red {
    color: #dc2626;
    font-weight: 500;
}

.startai-property-core .spc-text-green {
    color: #16a34a;
    font-weight: 500;
}

.startai-property-core .spc-cell-id {
    text-align: center;
    font-weight: 600;
    color: #334155;
    font-size: 13px;
    white-space: nowrap;
    width: 90px;
}

.startai-property-core .spc-lock-icon {
    color: #2563eb;
    font-size: 14px;
    margin-left: 3px;
    vertical-align: middle;
    display: inline-block;
}

/* Responsive adjustments */
@media (max-width: 992px) {
    .startai-property-core {
        width: 100%;
        max-width: 100%;
        overflow-x: clip;
    }
    .startai-property-core .spc-table-wrap {
        overflow-x: auto;
        touch-action: pan-x pan-y;
        overscroll-behavior-x: contain;
    }
    .startai-property-core .spc-table-redesign {
        min-width: 780px;
    }
}

@media (max-width: 760px) {
    .startai-property-core {
        margin: 0;
        padding: 6px 4px;
        border-left: none;
        border-right: none;
        border-radius: 0;
    }
    .startai-property-core .spc-header {
        padding-bottom: 10px;
        margin-bottom: 10px;
    }
    .startai-property-core .spc-tab-btn {
        padding: 8px 10px;
        font-size: 13px;
    }
    .startai-property-core .spc-panel-header,
    .startai-property-core .spc-filter-bar {
        padding: 10px 8px;
    }
}

/* Modal sizing & helper styling */
.startai-property-core .spc-modal-sm {
    max-width: 480px;
}

.startai-property-core .spc-modal-lg {
    max-width: 860px;
}

.startai-property-core .spc-modal-desc {
    font-size: 13px;
    color: #475569;
    margin-bottom: 14px;
    line-height: 1.5;
}

/* Matching results modal styles */
.startai-property-core .spc-match-card {
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    padding: 12px 14px;
    margin-bottom: 10px;
    background: #ffffff;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.startai-property-core .spc-match-card:hover {
    border-color: #93c5fd;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
}

.startai-property-core .spc-match-main {
    flex: 1;
}

.startai-property-core .spc-match-code {
    font-weight: 700;
    color: #0369a1;
    font-size: 13px;
    margin-bottom: 4px;
}

.startai-property-core .spc-match-details {
    font-size: 12px;
    color: #475569;
    line-height: 1.5;
}

.startai-property-core .spc-match-score {
    font-size: 14px;
    font-weight: 700;
    color: #16a34a;
    background: #dcfce7;
    padding: 5px 12px;
    border-radius: 20px;
    white-space: nowrap;
    margin-left: 14px;
}

/* ==========================================================================
   START.AI PROPERTY CORE - EXCEL IMPORT / EXPORT INTEGRATION STYLES
   ========================================================================== */
.startai-property-core .spc-btn-success {
    background-color: #10b981;
    color: #ffffff;
    border-color: #059669;
}
.startai-property-core .spc-btn-success:hover:not(:disabled) {
    background-color: #059669;
    border-color: #047857;
    color: #ffffff;
}
.startai-property-core .spc-pie-dropzone {
    border: 2px dashed #93c5fd;
    background-color: #f8fafc;
    border-radius: 8px;
    padding: 32px 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
}
.startai-property-core .spc-pie-dropzone:hover,
.startai-property-core .spc-pie-dropzone.dragover {
    border-color: #3b82f6;
    background-color: #eff6ff;
}
.startai-property-core .spc-pie-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}
.startai-property-core .spc-pie-stat-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 12px;
    text-align: center;
}
.startai-property-core .spc-pie-stat-val {
    font-size: 22px;
    font-weight: 700;
    color: #0f172a;
}
.startai-property-core .spc-pie-stat-lbl {
    font-size: 12px;
    color: #64748b;
    margin-top: 4px;
}
.startai-property-core .spc-stat-valid .spc-pie-stat-val { color: #16a34a; }
.startai-property-core .spc-stat-error .spc-pie-stat-val { color: #dc2626; }
.startai-property-core .spc-stat-dup .spc-pie-stat-val { color: #d97706; }

.startai-property-core .spc-pie-table {
    width: 100%;
    font-size: 12px;
    border-collapse: collapse;
}
.startai-property-core .spc-pie-table th {
    background: #f1f5f9;
    padding: 8px 10px;
    font-weight: 600;
    color: #334155;
    border-bottom: 1px solid #cbd5e1;
    position: sticky;
    top: 0;
    z-index: 2;
}
.startai-property-core .spc-pie-table td {
    padding: 8px 10px;
    border-bottom: 1px solid #e2e8f0;
    vertical-align: middle;
}
.startai-property-core .spc-badge-valid {
    display: inline-block;
    padding: 2px 8px;
    background: #dcfce7;
    color: #15803d;
    border-radius: 4px;
    font-weight: 600;
    font-size: 11px;
}
.startai-property-core .spc-badge-error {
    display: inline-block;
    padding: 2px 8px;
    background: #fee2e2;
    color: #b91c1c;
    border-radius: 4px;
    font-weight: 600;
    font-size: 11px;
}
.startai-property-core .spc-badge-warn {
    display: inline-block;
    padding: 2px 8px;
    background: #fef3c7;
    color: #b45309;
    border-radius: 4px;
    font-weight: 600;
    font-size: 11px;
}
.startai-property-core .spc-badge-dup {
    display: inline-block;
    padding: 2px 8px;
    background: #ffedd5;
    color: #c2410c;
    border-radius: 4px;
    font-weight: 600;
    font-size: 11px;
}
.startai-property-core .spc-pie-progress-bar {
    width: 100%;
    height: 12px;
    background: #e2e8f0;
    border-radius: 6px;
    overflow: hidden;
    margin: 12px 0 6px 0;
}
.startai-property-core .spc-pie-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #3b82f6, #10b981);
    transition: width 0.3s ease;
}
