.pdb-detail-card {
    border: 2px solid #228be6;
}

.pdb-detail-meta {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 4px 16px;
    margin-bottom: 12px;
    font-size: 0.85rem;
}

.pdb-detail-meta span {
    color: var(--rz-text-secondary-color, #868e96);
}

.pdb-brackets {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 14px;
}

.pdb-bracket {
    min-width: 84px;
    padding: 6px 10px;
    border-radius: 8px;
    background: #f1f3f5;
    color: #868e96;
    text-align: center;
    line-height: 1.2;
}

.pdb-bracket strong,
.pdb-bracket span {
    display: block;
}

.pdb-bracket span {
    font-size: 11px;
}

.pdb-bracket.is-applied {
    background: #3b5bdb;
    color: #fff;
}

.pdb-lines + .pdb-lines,
.pdb-brackets + .pdb-lines,
.pdb-lines + .pdb-brackets {
    margin-top: 14px;
}

.pdb-lines-title {
    font-weight: 700;
    margin-bottom: 6px;
}

.pdb-line {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 2px 0;
    font-size: 0.92rem;
}

.pdb-line span:last-child {
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
}

.pdb-muted {
    color: var(--rz-text-secondary-color, #868e96);
}

.pdb-danger,
.pdb-line.pdb-danger {
    color: #e03131;
}

.pdb-net {
    font-weight: 700;
    margin-top: 2px;
}

.pdb-footnote {
    margin-top: 6px;
    font-size: 12px;
    color: var(--rz-text-secondary-color, #868e96);
}

.pdb-lines-dark,
.pdb-lines-dark .pdb-muted,
.pdb-lines-dark .pdb-footnote {
    color: #f8f9fa;
}

.pdb-lines-dark .pdb-danger {
    color: #ff8787;
}

.pdb-amount-cell {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    cursor: help;
}

.pdb-rate-badge {
    display: inline-block;
    background: #3b5bdb;
    color: #fff;
    border-radius: 999px;
    padding: 0 8px;
    font-size: 12px;
    font-weight: 700;
    line-height: 20px;
}

.pdb-form-summary {
    background: #e7f5ff;
    border-radius: 12px;
    padding: 16px 18px;
    margin-bottom: 16px;
}

.pdb-form-badge {
    display: inline-block;
    background: #d0ebff;
    color: #1971c2;
    border-radius: 999px;
    padding: 4px 10px;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 12px;
}

.pdb-form-nets {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
}

.pdb-form-net-label {
    color: #868e96;
    font-size: 0.9rem;
}

.pdb-form-net-value {
    font-size: 1.7rem;
    font-weight: 700;
    color: #1c7ed6;
    line-height: 1.2;
}

.pdb-form-net-value.is-negative {
    color: #e03131;
}

.pdb-form-toggle {
    margin-top: 8px;
    background: none;
    border: none;
    color: #1971c2;
    padding: 0;
    cursor: pointer;
    font-weight: 600;
}

.pdb-form-detail {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 18px;
    margin-top: 12px;
}

.pdb-tooltip-caption {
    font-size: 12px;
    margin-bottom: 6px;
    color: #dee2e6;
}
