.xui-panel,
.mdc-card {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    border: 1px solid var(--exn-line, #dbe3ef);
    background: var(--exn-surface, #ffffff);
    padding: 16px;
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.05);
}

.mdc-card::before {
    display: none;
}

.xui-panel__head,
.mdc-card__header {
    position: relative;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
    flex-wrap: wrap;
}

.xui-panel__title,
.mdc-card__title {
    margin: 0;
    font-size: 1rem;
    font-weight: 850;
    line-height: 1.25;
    color: var(--exn-ink, #0f172a);
    letter-spacing: 0;
}

.xui-panel__subtitle,
.mdc-card__subtitle {
    margin: 5px 0 0;
    font-size: 0.84rem;
    line-height: 1.5;
    color: var(--exn-muted, #64748b);
}

.xui-panel__actions,
.mdc-card__actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    flex-wrap: wrap;
}

.xui-panel__body {
    min-width: 0;
}

.xui-activity,
.mdc-activity {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.mdc-activity__item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 2px 0;
}

.mdc-activity__dot {
    width: 10px;
    height: 10px;
    margin-top: 6px;
    border-radius: 50%;
    flex: 0 0 10px;
}

.mdc-activity__dot.is-success { background: #16a34a; }
.mdc-activity__dot.is-warning { background: #d97706; }
.mdc-activity__dot.is-danger { background: #be123c; }
.mdc-activity__dot.is-info { background: #2563eb; }

.mdc-activity__heading {
    font-size: 0.88rem;
    font-weight: 750;
    color: var(--exn-ink, #0f172a);
}

.mdc-activity__meta {
    margin-top: 3px;
    font-size: 0.78rem;
    color: var(--exn-muted, #64748b);
}

.mdc-table-wrap {
    overflow-x: auto;
}

.mdc-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}

.mdc-table thead th {
    font-size: 0.76rem;
    font-weight: 800;
    text-transform: none;
    letter-spacing: 0;
    color: #475569;
    padding: 12px;
    border-bottom: 1px solid var(--exn-line, #dbe3ef);
    background: var(--exn-soft, #f8fafc);
}

.mdc-table tbody td {
    font-size: 0.86rem;
    font-weight: 650;
    color: var(--exn-text, #334155);
    padding: 12px;
    border-bottom: 1px solid #eef2f7;
}

.mdc-table tbody tr:last-child td {
    border-bottom: none;
}

.mdc-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 24px;
    padding: 3px 8px;
    border-radius: 8px;
    font-size: 0.72rem;
    font-weight: 800;
}

.mdc-badge.is-success {
    background: #ecfdf3;
    color: #15803d;
}

.mdc-badge.is-warning {
    background: #fffbeb;
    color: #b45309;
}

.mdc-badge.is-danger {
    background: #fff1f2;
    color: #be123c;
}

.mdc-badge.is-info {
    background: #eff6ff;
    color: #2563eb;
}

.xui-stat-list,
.mdc-stat-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.mdc-stat-list__item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 11px 12px;
    border-radius: 8px;
    background: var(--exn-soft, #f8fafc);
    border: 1px solid var(--exn-line, #dbe3ef);
}

.mdc-stat-list__label {
    font-size: 0.86rem;
    font-weight: 750;
    color: var(--exn-ink, #0f172a);
}

.mdc-stat-list__sub {
    margin-top: 3px;
    font-size: 0.77rem;
    color: var(--exn-muted, #64748b);
}

.mdc-stat-list__value {
    font-size: 1rem;
    font-weight: 850;
    color: var(--exn-primary, #2563eb);
    white-space: nowrap;
}

[data-bs-theme="dark"] .xui-panel,
[data-bs-theme="dark"] .mdc-card {
    background: var(--exn-surface, #111c2f);
    border-color: var(--exn-line, #314158);
    box-shadow: none;
}

[data-bs-theme="dark"] .xui-panel__title,
[data-bs-theme="dark"] .mdc-card__title,
[data-bs-theme="dark"] .mdc-activity__heading,
[data-bs-theme="dark"] .mdc-table tbody td,
[data-bs-theme="dark"] .mdc-stat-list__label {
    color: #f8fafc;
}

[data-bs-theme="dark"] .xui-panel__subtitle,
[data-bs-theme="dark"] .mdc-card__subtitle,
[data-bs-theme="dark"] .mdc-activity__meta,
[data-bs-theme="dark"] .mdc-stat-list__sub {
    color: #a7b4c7;
}

[data-bs-theme="dark"] .mdc-table thead th {
    color: #cbd5e1;
    border-bottom-color: #314158;
    background: #0f1a2c;
}

[data-bs-theme="dark"] .mdc-table tbody td {
    border-bottom-color: #26364d;
}

[data-bs-theme="dark"] .mdc-stat-list__item {
    background: #0f1a2c;
    border-color: #314158;
}
