﻿/* Production Records 筛选结果页 */
.rs-page {
    background: #fff;
    color: #1a1a1a;
    font-family: "HarmonyOS Sans";
    min-height: 60vh;
}

.rs-hero {
    position: relative;
    background: #0b1f3a center / cover no-repeat;
    color: #fff;
    padding: 96px 0 80px;
}

.rs-hero__mask {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(8, 24, 48, 0.72) 0%, rgba(8, 24, 48, 0.35) 100%);
    pointer-events: none;
}

.rs-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
    position: relative;
    z-index: 1;
}

.rs-breadcrumb {
    margin: 0 0 20px;
    padding: 0;
    font-size: 14px;
    line-height: 1.5;
    color: #888;
    background: transparent;
}

.rs-breadcrumb a {
    color: #888;
    text-decoration: none;
    transition: color 0.2s ease;
}

.rs-breadcrumb a:hover,
.rs-breadcrumb a:focus {
    color: #0060FF;
    outline: none;
}

.rs-breadcrumb__sep {
    margin: 0 0.35em;
    color: #bbb;
}

.rs-breadcrumb__current {
    color: #555;
}

/* 筛选栏容器需高于结果区，否则下拉面板会被 “Showing Results”/表格遮挡 */
.rs-page > .rs-container {
    z-index: 20;
}

.rs-hero__title {
    margin: 0 0 14px;
    font-size: 40px;
    line-height: 1.2;
    font-weight: 700;
    color: #fff;
    text-align: center;
}

.rs-hero__desc {
    margin: 0 auto;
    max-width: 820px;
    font-size: 15px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.82);
    text-align: center;
}

.rs-filter-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    gap: 12px;
    margin: 0 0 28px;
    position: relative;
    z-index: 3;
    padding: 0;
}

.rs-dd {
    position: relative;
    flex: 1 1 0;
    min-width: 140px;
    z-index: 1;
}

.rs-dd.is-open {
    z-index: 5;
}

.rs-dd__btn {
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    width: 100%;
    min-height: 48px;
    padding: 10px 14px;
    border: 1px solid #DEDEDE;
    border-radius: 6px;
    background: #fff;
    cursor: pointer;
    text-align: left;
    font-family: inherit;
    transition: border-color 0.15s ease-out;
}

.rs-dd__btn:hover,
.rs-dd.is-open .rs-dd__btn {
    border-color: #0060FF;
}

.rs-dd__text {
    flex: 1 1 auto;
    min-width: 0;
    font-size: 14px;
    line-height: 1.35;
    color: #1a1a1a;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.rs-dd__text.is-placeholder {
    color: #999;
}

.rs-dd__caret {
    flex: 0 0 auto;
    width: 12px;
    height: 12px;
    border-right: 2px solid #999;
    border-bottom: 2px solid #999;
    transform: rotate(45deg) translate(-2px, -2px);
    transition: transform 0.15s ease-out;
}

.rs-dd.is-open .rs-dd__caret {
    transform: rotate(225deg) translate(-1px, -1px);
}

.rs-dd__panel {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: calc(100% + 6px);
    z-index: 30;
    max-height: 280px;
    overflow: auto;
    padding: 10px 12px;
    background: #fff;
    border: 1px solid #E5E5E5;
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.rs-dd.is-open .rs-dd__panel {
    display: block;
}

.rs-dd__opt {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    padding: 6px 0;
    cursor: pointer;
    user-select: none;
}

.rs-dd__opt input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
    pointer-events: none;
}

.rs-dd__check {
    box-sizing: border-box;
    flex: 0 0 auto;
    width: 16px;
    height: 16px;
    border: 1px solid #D9D9D9;
    border-radius: 3px;
    background: #fff;
    position: relative;
}

.rs-dd__opt input:checked + .rs-dd__check {
    border-color: #0060FF;
    background: #0060FF;
}

.rs-dd__opt input:checked + .rs-dd__check::after {
    content: "";
    position: absolute;
    left: 4px;
    top: 1px;
    width: 5px;
    height: 9px;
    border: solid #fff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.rs-dd__opt-text {
    font-size: 13px;
    line-height: 1.35;
    color: #515151;
}

.rs-dd__opt.is-dimmed {
    cursor: not-allowed;
}

.rs-dd__opt.is-dimmed .rs-dd__opt-text {
    color: #C8C8C8;
}

.rs-dd__opt.is-dimmed .rs-dd__check {
    border-color: #E0E0E0;
    background: #F7F7F7;
}

.rs-search-btn {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-width: 120px;
    height: 48px;
    padding: 0 22px;
    border: none;
    border-radius: 6px;
    background: #0060FF;
    color: #fff;
    font-family: inherit;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.15s ease-out;
}

.rs-search-btn:hover {
    background: #3e86fd;
}

.rs-search-btn:active {
    background: #80b0ff;
}

.rs-body {
    padding: 36px 0 72px;
}

.rs-result-count {
    margin: 0 0 20px;
    text-align: center;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.4;
    color: #1a1a1a;
}

.rs-result-count--left {
    text-align: left;
}

.rs-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 48px 16px 24px;
}

.rs-empty__img {
    width: 180px;
    max-width: 60%;
    height: auto;
    margin-bottom: 28px;
}

.rs-empty__title {
    margin: 0 0 12px;
    font-size: 22px;
    font-weight: 700;
    line-height: 1.35;
    color: #1a1a1a;
}

.rs-empty__desc {
    margin: 0 0 28px;
    max-width: 570px;
    font-size: 15px;
    line-height: 1.6;
    color: #666;
    white-space: pre-line;
}

.rs-empty__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 48px;
    padding: 0 28px;
    border-radius: 6px;
    background: #0060FF;
    color: #fff !important;
    font-size: 16px;
    font-weight: 700;
    text-decoration: none !important;
    transition: background 0.15s ease-out;
}

.rs-empty__btn:hover {
    background: #3e86fd;
    color: #fff !important;
}

.rs-page .insights-records {
    margin-top: 0;
}

.rs-page .insights-records__table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}

/* 分页：与 H5 一致 — 仅当前页/箭头为圆，页码为纯文字 */
.rs-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: nowrap;
    gap: 16px;
    margin-top: 28px;
}

.rs-pagination__link,
.rs-pagination__current,
.rs-pagination__ellipsis {
    box-sizing: border-box;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 24px;
    height: 44px;
    padding: 0;
    border: none;
    background: transparent;
    font-family: "HarmonyOS Sans";
    font-style: normal;
    font-weight: 400;
    font-size: 14px;
    line-height: 16px;
    text-align: center;
    color: #595959 !important;
    text-decoration: none !important;
}

.rs-pagination__link {
    width: auto;
    min-width: 20px;
}

.rs-pagination__link:hover {
    color: #0060ff !important;
}

.rs-pagination__current {
    width: 44px;
    min-width: 44px;
    border-radius: 50%;
    background: #eff5ff;
    color: #595959 !important;
}

.rs-pagination__nav {
    width: 44px;
    min-width: 44px;
    border: 1px solid #dadce0;
    border-radius: 50%;
    background: #fff;
    color: #5f6368 !important;
}

.rs-pagination__nav:hover {
    background: #f5f7fa;
}

.rs-pagination__arrow {
    display: block;
    width: 6px;
    height: 12px;
}

.rs-pagination__ellipsis {
    width: auto;
    min-width: 20px;
    pointer-events: none;
    color: #595959 !important;
}

.rs-pagination__disabled {
    pointer-events: none;
}

.rs-pagination__disabled.rs-pagination__nav {
    border-color: #dadce0;
    color: #dadce0 !important;
}

@media (max-width: 900px) {
    .rs-hero__title {
        font-size: 28px;
    }

    .rs-filter-bar {
        margin-bottom: 20px;
    }

    .rs-dd {
        flex: 1 1 calc(50% - 12px);
        min-width: 0;
    }

    .rs-search-btn {
        flex: 1 1 100%;
    }
}

@media (max-width: 640px) {
    .rs-dd {
        flex: 1 1 100%;
    }

    .rs-result-count,
    .rs-result-count--left {
        text-align: center;
    }
}
