/* 小黑屋 · PC。浅色柔和：无背景页头 + 数据条 + 单栏公示板。 */

.YXYH-pc-page-dark-room {
    background: #f7f8fa;
    color: #1f2328;
    min-height: 100vh;
}

/* ── 页头（白色卡片，与其他块统一） ──────────────────── */

.dr-hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    background: #fff;
    border: 1px solid #e9ebf0;
    border-radius: 14px;
    padding: 26px 28px;
    margin-top: 28px;
}

.dr-hero-left {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.dr-hero-title {
    margin: 0;
    font-size: 28px;
    line-height: 1.25;
    color: #1f2328;
}

.dr-hero-desc {
    margin: 0;
    font-size: 14px;
    color: #57606a;
    line-height: 1.7;
}

/* 页头右侧按钮组：一行。 */
.dr-hero-tools {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.dr-tool-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 10px 18px;
    border: 1px solid #e2e5eb;
    background: #fff;
    color: #57606a;
    font-size: 13px;
    border-radius: 999px;
    cursor: pointer;
    transition: border-color 0.15s, color 0.15s;
}

.dr-tool-btn:hover {
    border-color: #6366f1;
    color: #6366f1;
}

/* ── 左右两栏 ─────────────────────────────────────────── */

.dr-body {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-top: 16px;
}

.dr-main {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.dr-side {
    width: 300px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* ── 公示板 ───────────────────────────────────────────── */

.dr-board {
    background: #fff;
    border: 1px solid #e9ebf0;
    border-radius: 14px;
    padding: 14px 16px 18px;
}

.dr-tabs {
    display: flex;
    gap: 4px;
    background: #f3f4f6;
    border-radius: 10px;
    padding: 4px;
}

.dr-tab {
    flex: 1;
    padding: 9px 0;
    border: 0;
    background: transparent;
    color: #57606a;
    font-size: 14px;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
}

.dr-tab i {
    font-style: normal;
    font-size: 12px;
    margin-inline-start: 4px;
    opacity: 0.75;
}

.dr-tab.on {
    background: #fff;
    color: #1f2328;
    font-weight: 600;
    box-shadow: 0 1px 4px rgba(31, 35, 40, 0.08);
}

.dr-table-head {
    display: grid;
    grid-template-columns: 172px 1fr 200px 150px;
    gap: 14px;
    align-items: center;
    padding: 14px 14px 8px;
    font-size: 12px;
    color: #8b949e;
}

.dr-table-head .is-term,
.dr-table-head .is-act { text-align: center; }

.dr-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.dr-row {
    display: grid;
    grid-template-columns: 172px 1fr 200px 150px;
    gap: 14px;
    align-items: center;
    background: #fdfdfe;
    border: 1px solid #f0f1f4;
    border-radius: 10px;
    padding: 12px 14px;
    transition: border-color 0.15s, background 0.15s;
}

.dr-row:hover {
    border-color: #dfe3ea;
    background: #fff;
}

.dr-cell.is-user {
    min-width: 0;
}

.dr-row-user {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: inherit;
    min-width: 0;
}

.dr-row-user .ls-avatar {
    width: 38px;
    height: 38px;
    flex-shrink: 0;
}

.dr-row-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.dr-row-name {
    font-weight: 600;
    font-size: 14px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dr-cell.is-crime {
    min-width: 0;
}

.dr-cell.is-crime em {
    font-style: normal;
    font-size: 13px;
    color: #57606a;
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dr-cell.is-term {
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
}

.dr-term-top {
    display: flex;
    justify-content: center;
    gap: 8px;
    font-size: 12px;
    color: #8b949e;
}

.dr-term-top b {
    color: #FF5722;
    font-variant-numeric: tabular-nums;
}

.dr-term-bar {
    width: 100%;
    height: 5px;
    background: #f0f1f4;
    border-radius: 3px;
    overflow: hidden;
}

.dr-term-bar i {
    display: block;
    height: 100%;
    background: #94a3b8;
    border-radius: 3px;
}

.dr-term-life {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    align-self: center;
    font-size: 12px;
    color: #57606a;
    background: #f0f1f4;
    border-radius: 4px;
    padding: 4px 10px;
    letter-spacing: 0.15em;
}

.dr-cell.is-act {
    display: flex;
    justify-content: center;
}

.dr-bail-btn {
    padding: 6px 14px;
    border: 1px solid #e2e5eb;
    background: #fff;
    color: #57606a;
    font-size: 12px;
    border-radius: 999px;
    cursor: pointer;
    transition: border-color 0.15s, color 0.15s;
    white-space: nowrap;
}

.dr-bail-btn:hover {
    border-color: var(--ls-primary, #6366f1);
    color: var(--ls-primary, #6366f1);
}

.dr-bail-btn b { font-weight: 700; }

.dr-chip {
    font-size: 12px;
    color: #8b949e;
    background: #f6f7f9;
    border: 1px solid #f0f1f4;
    padding: 6px 12px;
    border-radius: 999px;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dr-chip.is-guaranteed-chip {
    color: #059669;
    background: #ecfdf5;
    border-color: #d1fae5;
}

.dr-empty {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 1px dashed #dfe3ea;
    border-radius: 10px;
    color: #8b949e;
    padding: 52px 0;
    font-size: 14px;
    background: #fdfdfe;
}

.dr-pager {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    margin-top: 14px;
}

.dr-page-btn {
    padding: 8px 18px;
    border: 1px solid #e2e5eb;
    background: #fff;
    color: #57606a;
    font-size: 13px;
    border-radius: 999px;
    cursor: pointer;
    transition: border-color 0.15s, color 0.15s;
}

.dr-page-btn:hover:not(:disabled) {
    border-color: #6366f1;
    color: #6366f1;
}

.dr-page-btn:disabled {
    opacity: 0.45;
    cursor: default;
}

.dr-page-info {
    font-size: 13px;
    color: #8b949e;
    font-variant-numeric: tabular-nums;
}

/* ── 右侧栏信息卡 ─────────────────────────────────────── */

.dr-info-card {
    background: #fff;
    border: 1px solid #e9ebf0;
    border-radius: 14px;
    padding: 18px;
}

.dr-info-title {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 12px;
}

.dr-info-title i { color: #6366f1; }

.dr-rules {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-size: 13px;
    color: #57606a;
    line-height: 1.7;
}

.dr-rules b { color: #1f2328; }

.dr-rank {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.dr-rank-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 7px 8px;
    text-decoration: none;
    color: inherit;
    font-size: 13px;
    border-radius: 8px;
    transition: background 0.15s;
}

.dr-rank-row:hover { background: #f7f8fa; }

.dr-rank-avatar {
    width: 30px;
    height: 30px;
    border-radius: 50%;
}

.dr-rank-name {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: #374151;
}

.dr-rank-row b {
    color: #6366f1;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
}

.dr-info-empty {
    color: #8b949e;
    font-size: 13px;
    padding: 16px 0;
    text-align: center;
}

/* ── 弹窗 ─────────────────────────────────────────────── */

.dr-mask {
    position: fixed;
    inset: 0;
    z-index: 999;
    background: rgba(31, 35, 40, 0.42);
    display: none;
    align-items: center;
    justify-content: center;
}

.dr-dialog {
    width: 430px;
    max-width: 92vw;
    max-height: 80vh;
    overflow: auto;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 24px 64px rgba(31, 35, 40, 0.18);
}

/* 保释记录弹窗：固定高度，头部固定、正文滚动。 */
.dr-dialog.is-wide {
    width: 560px;
    height: 700px;
    max-height: 86vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.dr-dialog.is-wide .dr-dialog-body {
    flex: 1;
    overflow-y: auto;
}

.dr-dialog-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid #f0f1f4;
}

.dr-dialog-head h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.dr-dialog-head h3 i { color: #6366f1; }

.dr-close {
    border: 0;
    background: none;
    font-size: 19px;
    color: #8b949e;
    cursor: pointer;
    line-height: 1;
    padding: 4px;
    border-radius: 6px;
}

.dr-close:hover { background: #f3f4f6; color: #57606a; }

.dr-dialog-body {
    padding: 18px 20px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.dr-dialog-foot {
    display: flex;
    justify-content: center;
    padding: 14px 20px;
    border-top: 1px solid #f0f1f4;
}

.dr-btn {
    padding: 9px 22px;
    font-size: 14px;
    cursor: pointer;
    border: 1px solid #e2e5eb;
    background: #fff;
    color: #57606a;
    border-radius: 999px;
}

.dr-btn.is-primary {
    background: #6366f1;
    border-color: #6366f1;
    color: #fff;
    font-weight: 500;
}

.dr-btn.is-primary:hover { background: #4f56e0; border-color: #4f56e0; }

/* 担保确认单 */

.dr-bail-target {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #f7f8fa;
    border-radius: 10px;
    padding: 12px 14px;
}

.dr-bail-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
}

.dr-bail-who {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 13px;
    color: #57606a;
}

.dr-bail-who b { font-size: 15px; color: #1f2328; }

.dr-bail-left {
    color: #e11d48;
    font-weight: 600;
    font-size: 13px;
    flex-shrink: 0;
}

.dr-bill {
    border: 1px solid #f0f1f4;
    border-radius: 10px;
    overflow: hidden;
}

.dr-bill-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 14px;
    font-size: 13px;
    color: #57606a;
}

.dr-bill-row + .dr-bill-row { border-top: 1px solid #f0f1f4; }

.dr-bill-row.is-total { background: #f9fafb; }

.dr-bill-row.is-total b {
    color: #6366f1;
    font-size: 18px;
    font-weight: 700;
}

.dr-bail-rule {
    margin: 0;
    font-size: 12px;
    line-height: 1.8;
    color: #92400e;
    background: #fffbeb;
    border: 1px solid #fde68a;
    border-radius: 8px;
    padding: 10px 12px;
}

/* 保释记录：头像右侧两行，扁平，状态胶囊浅色柔和 */

.dr-records {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.dr-rec {
    display: flex;
    align-items: center;
    gap: 12px;
    border: 1px solid #f0f1f4;
    border-radius: 10px;
    padding: 10px 14px;
    background: #fdfdfe;
}

.dr-rec-avatar-link {
    flex-shrink: 0;
    display: inline-flex;
}

.dr-rec-avatar {
    width: 34px;
    height: 34px;
    border-radius: 50%;
}

.dr-rec-main {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.dr-rec-line {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-width: 0;
}

.dr-rec-name {
    font-size: 14px;
    color: #1f2328;
    font-weight: 600;
    text-decoration: none;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

a.dr-rec-name:hover { color: #6366f1; }

.dr-rec-right {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.dr-rec-amount {
    font-size: 12px;
    color: #57606a;
    font-variant-numeric: tabular-nums;
}

.dr-rec-pill {
    font-size: 11px;
    padding: 3px 10px;
    border-radius: 999px;
}

.dr-rec-pill.is-active { color: #b45309; background: #fef3c7; }
.dr-rec-pill.is-ok { color: #059669; background: #ecfdf5; }
.dr-rec-pill.is-bad { color: #be123c; background: #ffe4e6; }

.dr-rec-sub {
    font-size: 12px;
    color: #8b949e;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dr-rec-target {
    color: #57606a;
    text-decoration: none;
}

a.dr-rec-target:hover { color: #6366f1; }

.dr-rec-time {
    font-size: 11px;
    color: #8b949e;
    flex-shrink: 0;
}
