.tool-card-mark.payroll-reconciliation,
.workspace-mark.payroll-reconciliation {
    background: linear-gradient(145deg, #285f6f, #3f8891);
    color: #fff;
}

.pr-hero {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
    padding: 30px 32px;
    border: 1px solid #cfe1e3;
    border-radius: 18px;
    background: linear-gradient(135deg, #f2f9f9 0%, #fff 62%, #eef6f7 100%);
}

.pr-eyebrow,
.pr-review-head span,
.pr-result-head span {
    display: block;
    margin-bottom: 7px;
    color: #2e7079;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .08em;
}

.pr-hero h2,
.pr-review-head h3,
.pr-result-head h3 {
    margin: 0;
    color: #18363c;
}

.pr-hero p {
    max-width: 760px;
    margin: 10px 0 0;
    color: #52666a;
    line-height: 1.7;
}

.pr-local {
    flex: 0 0 auto;
    padding: 12px 16px;
    border: 1px solid #b9d8dc;
    border-radius: 12px;
    background: #fff;
    color: #547075;
    font-size: 12px;
    line-height: 1.55;
    text-align: center;
}

.pr-local b { color: #286771; }

.pr-steps {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    margin: 18px 0;
    color: #63777a;
    font-size: 13px;
}

.pr-steps span {
    display: inline-flex;
    align-items: center;
    gap: 7px;
}

.pr-steps b {
    display: inline-grid;
    width: 24px;
    height: 24px;
    place-items: center;
    border-radius: 50%;
    background: #d9ecee;
    color: #286771;
}

.pr-steps i { color: #9db1b4; font-style: normal; }

.pr-service {
    margin-bottom: 16px;
    padding: 11px 14px;
    border: 1px solid #d8e4e6;
    border-radius: 10px;
    background: #f7fafb;
    color: #5a6c70;
    font-size: 13px;
}

.pr-service.ready { border-color: #b9ddd0; background: #f0faf6; color: #23664f; }
.pr-service.error { border-color: #edc8c1; background: #fff5f3; color: #9a3d2f; }

.pr-form,
.pr-review,
.pr-result {
    border: 1px solid #dce6e8;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 10px 28px rgba(28, 61, 68, .06);
}

.pr-form { padding: 22px; }

.pr-upload-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px 18px;
}

.pr-dropzone {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 14px;
    min-height: 104px;
    padding: 18px;
    border: 1px dashed #9fc8cd;
    border-radius: 14px;
    background: #f8fcfc;
    cursor: pointer;
}

.pr-dropzone:hover { border-color: #42808a; background: #f1f9fa; }
.pr-dropzone input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.pr-dropzone strong { display: block; margin-bottom: 5px; color: #1f4148; }
.pr-dropzone small { display: block; color: #6b7c80; line-height: 1.5; }

.pr-drop-mark {
    display: grid;
    width: 46px;
    height: 46px;
    place-items: center;
    border-radius: 13px;
    background: #d8ecee;
    color: #276b74;
    font-size: 20px;
    font-weight: 800;
}

.pr-drop-mark.bank { background: #e4ebf6; color: #365f96; }

.pr-selected {
    min-height: 38px;
    padding: 0 8px;
    color: #627377;
    font-size: 12px;
    line-height: 1.55;
    overflow-wrap: anywhere;
}

.pr-submit-row,
.pr-confirm-row,
.pr-download-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-top: 18px;
    padding-top: 18px;
    border-top: 1px solid #e7edef;
}

.pr-submit-row > span,
.pr-confirm-row > span,
.pr-download-row > span {
    color: #65777a;
    font-size: 13px;
    line-height: 1.6;
}

.pr-review,
.pr-result { padding: 24px; }

.pr-review-head,
.pr-result-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 20px;
}

.pr-period-field {
    display: grid;
    grid-template-columns: 130px minmax(180px, 260px) 1fr;
    align-items: center;
    gap: 12px;
    padding: 15px 18px;
    border-radius: 12px;
    background: #f2f8f8;
}

.pr-period-field span { color: #244c53; font-weight: 700; }
.pr-period-field b { color: #c44d3d; }
.pr-period-field input,
.pr-source-table select {
    min-height: 38px;
    padding: 7px 10px;
    border: 1px solid #b9cdd0;
    border-radius: 8px;
    background: #fff;
    color: #243e43;
}
.pr-period-field small { color: #65777a; }

.pr-warnings {
    margin: 16px 0;
    padding: 14px 18px;
    border-left: 4px solid #d9a13b;
    border-radius: 8px;
    background: #fffaf0;
    color: #6f5b35;
}

.pr-warnings strong { color: #654a18; }
.pr-warnings ul { margin: 8px 0 0; padding-left: 20px; }
.pr-warnings li { margin: 4px 0; line-height: 1.55; }

.pr-table-wrap {
    overflow-x: auto;
    border: 1px solid #dfe8ea;
    border-radius: 12px;
}

.pr-source-table,
.pr-result-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.pr-source-table th,
.pr-result-table th {
    padding: 12px;
    background: #eaf3f4;
    color: #36575d;
    text-align: left;
    white-space: nowrap;
}

.pr-source-table td,
.pr-result-table td {
    padding: 12px;
    border-top: 1px solid #e7edef;
    color: #354d52;
    vertical-align: top;
    line-height: 1.5;
}

.pr-source-table td:first-child { text-align: center; }
.pr-source-table strong,
.pr-source-table small { display: block; }
.pr-source-table small { margin-top: 4px; color: #7a898c; }
.pr-source-table select { width: 100%; min-width: 190px; }
.pr-source-excluded { opacity: .52; background: #f5f6f6; }
.pr-center { text-align: center; white-space: nowrap; }
.pr-money { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }

.pr-evidence-block { margin-top: 20px; }
.pr-evidence-block h4 { margin: 0 0 10px; color: #294c53; }
.pr-evidence-block > div {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}
.pr-evidence-item {
    padding: 13px 15px;
    border: 1px solid #e0e8ea;
    border-radius: 10px;
    background: #fafcfc;
}
.pr-evidence-item strong,
.pr-evidence-item span,
.pr-evidence-item small { display: block; overflow-wrap: anywhere; }
.pr-evidence-item strong { color: #28484e; }
.pr-evidence-item span { margin-top: 5px; color: #5c6f73; }
.pr-evidence-item small { margin-top: 4px; color: #859295; }

.pr-summary-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 18px;
}

.pr-summary-card {
    padding: 15px 17px;
    border: 1px solid #dee8ea;
    border-radius: 11px;
    background: #f9fbfb;
}
.pr-summary-card span { display: block; color: #6b7c80; font-size: 12px; }
.pr-summary-card strong { display: block; margin-top: 5px; color: #24464d; font-size: 20px; }
.pr-summary-card.ok { border-color: #badfce; background: #f1faf6; }
.pr-summary-card.ok strong { color: #237254; }
.pr-summary-card.warn { border-color: #efc8b7; background: #fff6f2; }
.pr-summary-card.warn strong { color: #ad4b2d; }
.pr-summary-card.review { border-color: #ead6a5; background: #fffaf0; }
.pr-summary-card.review strong { color: #8a651c; }

.pr-result-toolbar {
    display: grid;
    grid-template-columns: auto minmax(210px, 320px) 1fr;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.pr-result-filters {
    display: inline-flex;
    gap: 4px;
    padding: 4px;
    border: 1px solid #d8e3e5;
    border-radius: 10px;
    background: #f4f7f8;
}

.pr-result-filter {
    min-height: 34px;
    padding: 6px 11px;
    border: 0;
    border-radius: 7px;
    background: transparent;
    color: #5d7074;
    cursor: pointer;
    font-size: 13px;
    font-weight: 700;
}

.pr-result-filter.active {
    background: #fff;
    color: #245f68;
    box-shadow: 0 2px 7px rgba(28, 61, 68, .1);
}

.pr-result-search {
    min-height: 42px;
    padding: 9px 12px;
    border: 1px solid #cbdadd;
    border-radius: 10px;
    background: #fff;
    color: #29474d;
    font: inherit;
}

.pr-result-search:focus {
    border-color: #4c8a93;
    box-shadow: 0 0 0 3px rgba(76, 138, 147, .14);
    outline: 0;
}

.pr-result-count {
    color: #6d7d80;
    font-size: 12px;
    line-height: 1.5;
    text-align: right;
}

.pr-result-guide {
    margin: 0 0 8px;
    color: #758589;
    font-size: 12px;
}

.pr-result-table { min-width: 960px; }
.pr-result-table td:last-child { min-width: 260px; white-space: normal; }
.pr-result-table thead th { position: sticky; top: 0; z-index: 3; }
.pr-result-table th:first-child,
.pr-result-table td:first-child {
    position: sticky;
    left: 0;
    z-index: 2;
    width: 96px;
    min-width: 96px;
    background: #fff;
}
.pr-result-table th:nth-child(2),
.pr-result-table td:nth-child(2) {
    position: sticky;
    left: 96px;
    z-index: 2;
    min-width: 92px;
    background: #fff;
    box-shadow: 7px 0 10px -10px rgba(23, 55, 61, .7);
}
.pr-result-table thead th:first-child,
.pr-result-table thead th:nth-child(2) {
    z-index: 4;
    background: #eaf3f4;
}
.pr-result-table .pr-difference { color: #ad4529; font-weight: 800; }
.pr-status {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 999px;
    background: #edf0f1;
    color: #53666a;
    font-size: 12px;
    white-space: nowrap;
}
.pr-result-table tr[data-status="一致"] .pr-status { background: #dff3e9; color: #23674d; }
.pr-result-table tr[data-status="金额不一致"] .pr-status { background: #fbe6df; color: #9f4029; }
.pr-result-table tr[data-status="待人工复核"] .pr-status { background: #fff1c9; color: #806019; }
.pr-result-table tr[data-status="未找到逐人明细"] .pr-status { background: #eceff1; color: #4e6166; }

.pr-result-empty {
    margin-top: 12px;
    padding: 16px;
    border: 1px dashed #cfdcdf;
    border-radius: 10px;
    background: #f8fafb;
    color: #66777a;
    text-align: center;
}

.pr-result-note {
    margin: 14px 0 0;
    color: #66777a;
    font-size: 13px;
}

.pr-download-actions { display: flex; gap: 10px; flex: 0 0 auto; }

.pr-result.error {
    border-color: #efc7bf;
    background: #fff6f4;
    color: #8f3b2d;
}
.pr-result.error strong { display: block; margin-bottom: 7px; }
.pr-result.error p { margin: 0; }

@media (max-width: 900px) {
    .pr-upload-grid,
    .pr-evidence-block > div,
    .pr-summary-grid { grid-template-columns: 1fr; }
    .pr-period-field { grid-template-columns: 1fr; }
    .pr-steps { align-items: flex-start; flex-direction: column; }
    .pr-steps i { display: none; }
    .pr-result-toolbar { grid-template-columns: 1fr 1fr; }
    .pr-result-count { grid-column: 1 / -1; text-align: left; }
}

@media (max-width: 680px) {
    .pr-hero,
    .pr-review-head,
    .pr-result-head,
    .pr-submit-row,
    .pr-confirm-row,
    .pr-download-row { align-items: stretch; flex-direction: column; }
    .pr-hero,
    .pr-form,
    .pr-review,
    .pr-result { padding: 18px; }
    .pr-local { align-self: flex-start; }
    .pr-dropzone { grid-template-columns: auto 1fr; }
    .pr-dropzone button { grid-column: 1 / -1; }
    .pr-download-actions { flex-direction: column; }
    .pr-summary-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .pr-result-toolbar { grid-template-columns: 1fr; }
    .pr-result-filters { width: 100%; }
    .pr-result-filter { flex: 1 1 0; }
    .pr-result-count { grid-column: auto; }
}

@media (max-width: 350px) {
    .pr-summary-grid { grid-template-columns: 1fr; }
}
