.report {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    font-weight: 600;
}[dir] .report {
    padding: 1rem;
}

.report-table {
    border-collapse: separate; /* 默认是 collapse，要改成 separate 才能显示圆角 */
    border-spacing: 0;
    width: 98%; /* 设置圆角大小 */
    overflow: hidden; /* 防止子元素溢出圆角 */
    font-weight: 600;
    font-size: 13px;
    line-height: 1.0;
}

[dir] .report-table {
    border: 1px solid #bbb;
    border-radius: 6px;
}

.report-table th,
.report-table td { /* 较大内边距 */
    vertical-align: middle;
}

[dir] .report-table th, [dir] .report-table td {
    border: 0.5px solid #ccc;
    padding: 12px 16px;
}

.report-table th {
    font-weight: 700;
}

[dir] .report-table th {
    background-color: #e5e5e5 !important;
}

[dir=ltr] .text-right {
    text-align: right;
}

[dir=rtl] .text-right {
    text-align: left;
}

.subtotal-row {
    font-weight: 700;
    color: #2b4f81;
}

[dir] .subtotal-row {
    background-color: #f3f7ff;
}

.subtotal-cell {
    font-weight: 700;
}

[dir] .subtotal-cell {
    background-color: #f0f5ff;
}

.ghost {
    opacity: 0.5;
}

[dir] .ghost {
    background-color: #d9edf7;
}

[dir] .list-group-item {
    cursor: move;
}

/* 简单模态框样式 */
.modal-mask {
    position: fixed;
    z-index: 9998;
    top: 0;
    bottom: 0;
}
[dir] .modal-mask {
    background-color: rgba(0, 0, 0, 0.5);
}
[dir=ltr] .modal-mask {
    left: 0;
    right: 0;
}
[dir=rtl] .modal-mask {
    right: 0;
    left: 0;
}
.modal-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
}
.modal-container {
    width: 80%;
    max-width: 800px;
}
[dir] .modal-container {
    background: white;
    border-radius: 8px;
    padding: 20px;
}

[dir] .pivot-container {
    padding: 20px;
}

.pivot-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto;
    gap: 16px;
}

.pivot-box {
    min-height: 150px;
}

[dir] .pivot-box {
    border: 1px solid #ccc;
    padding: 12px;
    background: #f9f9f9;
}

[dir] .field-item {
    padding: 6px 10px;
    margin-bottom: 6px;
    background: #fff;
    border: 1px solid #ddd;
    cursor: move;
}

.drop-box {
    min-height: 100px;
}

.dimension-field {
    color: #333;
}

.value-field {
    color: #0d6efd;
}
