.search-toolbar {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.search-field {
    flex: 0 0 auto;
}

.search-field.keyword-field {
    width: 240px;
}

.search-field.id-field {
    width: 110px;
}

.search-field.select-field {
    width: 130px;
}

.search-toolbar .form-control,
.search-toolbar .form-select {
    min-height: 42px;
    border-radius: 10px;
}

.search-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.search-actions .btn {
    min-height: 42px;
    border-radius: 10px;
    white-space: nowrap;
}

.copyright-documents-mobile-meta,
.copyright-documents-mobile-sub {
    display: none;
}

.copyright-documents-actions {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 4px;
}

.copyright-documents-action-btn {
    white-space: nowrap;
}

@media (min-width: 768px) {
    .copyright-documents-table {
        min-width: 1240px;
        table-layout: fixed;
    }

    .copyright-documents-table th,
    .copyright-documents-table td {
        vertical-align: middle;
    }

    .copyright-documents-table th:nth-child(1),
    .copyright-documents-check-cell {
        width: 44px;
        text-align: center;
    }

    .copyright-documents-table th:nth-child(2),
    .copyright-documents-id-cell {
        width: 58px;
        text-align: center;
    }

    .copyright-documents-table th:nth-child(3),
    .copyright-documents-sn-cell {
        width: 132px;
    }

    .copyright-documents-table th:nth-child(4),
    .copyright-documents-software-cell {
        width: 210px;
    }

    .copyright-documents-table th:nth-child(5),
    .copyright-documents-file-type-cell {
        width: 118px;
    }

    .copyright-documents-table th:nth-child(6),
    .copyright-documents-file-name-cell {
        width: 210px;
    }

    .copyright-documents-table th:nth-child(7),
    .copyright-documents-category-cell {
        width: 96px;
    }

    .copyright-documents-table th:nth-child(8),
    .copyright-documents-status-cell {
        width: 76px;
    }

    .copyright-documents-table th:nth-child(9),
    .copyright-documents-time-cell {
        width: 116px;
    }

    .copyright-documents-table th:nth-child(10),
    .copyright-documents-action-cell {
        width: 168px;
    }

    .copyright-documents-table th:nth-child(7),
    .copyright-documents-table th:nth-child(8),
    .copyright-documents-table th:nth-child(9),
    .copyright-documents-table th:nth-child(10),
    .copyright-documents-category-cell,
    .copyright-documents-status-cell,
    .copyright-documents-time-cell,
    .copyright-documents-action-cell {
        white-space: nowrap;
    }

    .copyright-documents-table th:nth-child(3),
    .copyright-documents-table th:nth-child(5),
    .copyright-documents-sn-cell,
    .copyright-documents-file-type-cell {
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .copyright-documents-software-cell,
    .copyright-documents-file-name-cell {
        word-break: break-word;
    }

    .copyright-documents-actions {
        flex-wrap: nowrap;
        gap: 6px;
    }
}

@media (max-width: 767.98px) {
    .copyright-documents-card {
        margin-top: 0;
        padding: 0;
        overflow: hidden;
        border: 1px solid #edf2f7;
        border-radius: 16px;
        background: #fff;
        box-shadow: 0 10px 26px rgba(15, 23, 42, 0.07);
    }

    .copyright-documents-card .table-header {
        gap: 10px;
        margin-bottom: 0;
        padding: 14px;
        border-bottom: 1px solid #edf2f7;
        background: linear-gradient(180deg, #fff 0%, #fbfdff 100%);
    }

    .copyright-documents-card .table-header h5 {
        display: flex;
        min-width: 0;
        align-items: center;
        margin: 0;
        color: #0f172a;
        font-size: 16px;
        line-height: 1.35;
    }

    .copyright-documents-card .table-header h5 .bi {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 28px;
        height: 28px;
        margin-right: 7px !important;
        border-radius: 10px;
        background: #eaf3ff;
        color: #0d6efd;
        font-size: 15px;
    }

    .copyright-documents-card .table-header .btn {
        display: inline-flex;
        flex: 0 0 auto;
        align-items: center;
        justify-content: center;
        min-height: 34px;
        max-width: 152px;
        padding: 6px 11px !important;
        border-radius: 999px !important;
        font-size: 12px;
        font-weight: 800;
        line-height: 1.2;
        white-space: nowrap;
    }

    .copyright-documents-filter {
        padding: 10px 12px !important;
        border-bottom: 1px solid #edf2f7;
        background: #f8fbff;
    }

    .search-toolbar {
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        gap: 8px;
        margin: 0;
    }

    .search-field,
    .search-field.keyword-field,
    .search-field.id-field,
    .search-field.select-field,
    .search-actions {
        width: auto;
        flex: none;
    }

    .search-toolbar .form-control,
    .search-toolbar .form-select {
        min-height: 38px;
        border-color: #dbe3ee;
        border-radius: 10px;
        background-color: #fff;
        font-size: 13px;
    }

    .search-actions {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 7px;
    }

    .search-actions .btn {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        min-height: 38px;
        width: 100%;
        border-radius: 10px;
        font-size: 13px;
        font-weight: 800;
        line-height: 1.2;
    }

    .copyright-documents-table-wrap {
        overflow: visible;
        padding: 8px 10px 10px;
        background: #f5f8fc;
    }

    .copyright-documents-table,
    .copyright-documents-table tbody,
    .copyright-documents-table tr,
    .copyright-documents-table td {
        display: block;
        width: 100%;
    }

    .copyright-documents-table {
        margin-bottom: 0;
    }

    .copyright-documents-table thead {
        display: none;
    }

    .copyright-documents-table tbody {
        display: flex;
        flex-direction: column;
        gap: 8px;
    }

    .copyright-documents-table tr.copyright-documents-row {
        --bs-table-bg: transparent;
        --bs-table-accent-bg: transparent;
        position: relative;
        padding: 12px;
        border: 1px solid #edf2f7;
        border-radius: 14px;
        background: #fff;
        box-shadow: 0 8px 20px rgba(15, 23, 42, 0.04);
    }

    .copyright-documents-table tr.copyright-documents-row:nth-child(even) {
        background: #f8fbff;
    }

    .copyright-documents-table tr.copyright-documents-row > td {
        background: transparent;
        box-shadow: none;
    }

    .copyright-documents-table td {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        min-height: 30px;
        padding: 5px 0;
        border-bottom: 0;
        color: #0f172a;
        font-size: 13px;
        line-height: 1.35;
        text-align: right;
        overflow-wrap: anywhere;
    }

    .copyright-documents-table td::before {
        flex: 0 0 auto;
        color: #64748b;
        font-size: 12px;
        font-weight: 800;
        text-align: left;
        white-space: nowrap;
    }

    .copyright-documents-check-cell {
        position: absolute;
        top: 12px;
        right: 12px;
        display: block !important;
        width: auto !important;
        min-height: 0 !important;
        padding: 0 !important;
    }

    .copyright-documents-check-cell::before,
    .copyright-documents-id-cell::before,
    .copyright-documents-sn-cell::before,
    .copyright-documents-file-name-cell::before,
    .copyright-documents-software-cell::before,
    .copyright-documents-action-cell::before {
        content: none !important;
    }

    .copyright-documents-id-cell,
    .copyright-documents-sn-cell,
    .copyright-documents-file-name-cell {
        display: none !important;
    }

    .copyright-documents-software-cell {
        display: block !important;
        padding: 0 28px 10px 0 !important;
        border-bottom: 1px solid #eef2f7 !important;
        text-align: left !important;
    }

    .copyright-documents-software-main {
        color: #0f172a;
        font-size: 15px;
        font-weight: 800;
        line-height: 1.35;
        overflow-wrap: anywhere;
    }

    .copyright-documents-mobile-meta,
    .copyright-documents-mobile-sub {
        display: block;
        margin-top: 4px;
        color: #64748b;
        font-size: 12px;
        font-weight: 700;
        line-height: 1.35;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .copyright-documents-file-type-cell::before {
        content: "文件类型";
    }

    .copyright-documents-category-cell::before {
        content: "发文类别";
    }

    .copyright-documents-status-cell::before {
        content: "状态";
    }

    .copyright-documents-time-cell::before {
        content: "创建时间";
    }

    .copyright-documents-action-cell {
        display: block !important;
        padding-top: 10px !important;
        text-align: left;
    }

    .copyright-documents-actions {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 7px;
        width: 100%;
    }

    .copyright-documents-action-btn {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        min-height: 32px;
        width: 100%;
        margin: 0 !important;
        padding: 5px 7px;
        border-radius: 9px;
        font-size: 12px;
        font-weight: 800;
        line-height: 1.2;
    }

    .copyright-documents-table td[colspan] {
        display: block;
        min-height: 148px;
        padding: 28px 12px !important;
        color: #64748b;
        text-align: center;
    }

    .copyright-documents-table td[colspan]::before {
        content: none;
    }

    .copyright-documents-pagination-bar {
        flex-direction: column;
        align-items: stretch !important;
        gap: 10px;
        padding: 0 12px 12px !important;
        background: #fff;
    }

    .copyright-documents-pagination-bar #pageInfo {
        text-align: center;
        font-size: 12px;
    }

    .copyright-documents-pagination-bar #pagination {
        display: flex;
        justify-content: center;
        min-width: 0;
    }

    .copyright-documents-pagination-bar .pagination {
        flex-wrap: wrap;
        justify-content: center;
        gap: 5px;
    }

    .copyright-documents-pagination-bar .page-link {
        min-width: 32px;
        border-radius: 9px !important;
        text-align: center;
    }
}

@media (max-width: 374.98px) {
    .search-actions,
    .copyright-documents-actions {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 5px;
    }

    .search-actions .btn,
    .copyright-documents-action-btn {
        padding-right: 5px;
        padding-left: 5px;
        font-size: 12px;
    }
}
