.paper-public-table {width:100%;table-layout:auto;border-collapse:separate;border-spacing:0;border:1px solid #dce5eb;border-radius:12px;overflow:hidden;background:var(--bs-body-bg,#fff);}
.paper-public-table .course-exam-row {display:table-row;}
.paper-public-table thead {background:var(--bs-tertiary-bg,#f1f5f9);}
.paper-public-table th {text-align:left;background:var(--bs-tertiary-bg,#f1f5f9);font-size:.82rem;letter-spacing:.025em;color:var(--bs-body-color,#334155);padding:14px 18px;white-space:nowrap;}
.paper-public-table td {vertical-align:middle;padding:18px;border-bottom:1px solid #e8edf2;}
.paper-public-table tbody tr:last-child td {border-bottom:0;}
.paper-public-table tbody tr:nth-child(odd) > td {background:var(--theme-card-bg,#fff) !important;box-shadow:none;}
.paper-public-table tbody tr:nth-child(even) > td {background:color-mix(in srgb,var(--theme-primary,#0f766e) 7%,var(--theme-card-bg,#fff)) !important;box-shadow:none;}
.paper-public-table tbody tr > td {border-bottom-color:color-mix(in srgb,var(--theme-primary,#0f766e) 24%,var(--theme-card-bg,#fff)) !important;}
.paper-source-details {display:grid;gap:4px;margin-top:10px;line-height:1.6;}
.paper-source-details:empty {display:none;}
.paper-public-table th:first-child {width:auto;}
.paper-public-table td:first-child {min-width:260px;white-space:normal;}
.paper-public-table td:not(:first-child) {white-space:nowrap;}
.paper-public-table td:first-child > a {font-weight:600;line-height:1.5;text-decoration:none;}
.paper-public-table .course-exam-title {font-size:1rem;line-height:1.5;margin:0 0 6px;}
.paper-public-table .course-exam-meta {font-size:.8rem;gap:10px;color:var(--bs-secondary-color,#64748b);}
.paper-public-table .btn,.paper-public-table .exam-action-control {font-size:.85rem;min-height:38px;white-space:nowrap;}
.paper-sort-header {border:0;background:none;padding:0;color:inherit;font:inherit;text-decoration:none;cursor:pointer;display:inline-flex;gap:8px;align-items:center;}
.paper-public-table thead th {font-size:13px !important;font-weight:700 !important;letter-spacing:normal !important;text-transform:none !important;}
.paper-public-table thead th .paper-sort-header {font-size:inherit !important;font-weight:inherit !important;letter-spacing:inherit !important;text-transform:inherit !important;line-height:inherit;}
.paper-sort-header:focus-visible {outline:2px solid #0d9488;outline-offset:5px;}
[data-paper-tools] {display:flex;align-items:center;padding:12px 16px;margin:0;}
[data-paper-tools] .form-control {height:40px;min-height:40px;padding:8px 12px;font-size:.9rem;border-radius:8px;}
.paper-public-table .exam-action-group {justify-content:flex-start;}
.paper-public-table .exam-action-control--primary {min-width:110px;border-radius:10px;}
.paper-public-table .exam-download-main,.paper-public-table .exam-download-menu-trigger,.paper-public-table .exam-action-control--primary,.paper-public-table .startExamBtn {box-sizing:border-box;min-height:44px;height:auto;display:inline-flex;align-items:center;justify-content:center;font-size:13px;}
.paper-public-table .exam-download-main {padding:8px 12px;}
[data-paper-tools] label {width:min(100%,440px);font-size:.85rem;}
[data-paper-result] {font-size:.85rem;color:var(--bs-secondary-color,#64748b);}
.paper-public-table tr[hidden],.paper-public-table .paper-search-miss {display:none !important;}
.paper-mobile-year {display:none;}
@media(max-width:600px){
 .paper-public-table {display:block;min-width:0 !important;width:100%;}
 .paper-public-table thead,.paper-public-table tbody {display:block;width:100%;}
 .paper-public-table thead tr {display:flex;justify-content:space-between;background:var(--bs-tertiary-bg,#f1f5f9);border:0;border-radius:0;}
 .paper-public-table th {width:auto !important;padding:12px;}
 .paper-public-table thead th:first-child {flex:1 1 0;min-width:0;}
 .paper-public-table thead th:nth-child(2) {flex:0 0 auto;}
 .paper-public-table th:nth-child(n+3) {display:none;}
 .paper-public-table tbody tr,.paper-public-table tbody .course-exam-row {display:grid;grid-template-columns:minmax(0,1fr) auto;gap:0;border-bottom:1px solid color-mix(in srgb,var(--theme-primary,#0f766e) 24%,var(--theme-card-bg,#fff));}
 .paper-public-table td::before {display:none !important;}
 .paper-public-table td {text-align:left;display:block;min-width:0 !important;width:auto !important;border:0;padding:10px 12px;}
 .paper-public-table td:first-child {grid-column:1 / -1;min-width:0;white-space:normal;}
 .paper-public-table td:nth-child(2) {display:none;}
 .paper-public-table td:nth-child(3) {grid-column:1;padding-top:0;padding-right:4px;}
 .paper-public-table td:nth-child(4) {grid-column:2;padding-top:0;padding-left:4px;}
 .paper-public-table .paper-mobile-title {display:flex;align-items:baseline;justify-content:space-between;gap:12px;}
 .paper-public-table .paper-mobile-title > :first-child {min-width:0;overflow-wrap:anywhere;}
 .paper-public-table .paper-mobile-year {display:inline-block;flex-shrink:0;font-size:.85rem;font-weight:600;color:var(--bs-secondary-color,#64748b);}
 .paper-public-table .exam-action-group {display:flex;width:auto;gap:0;}
 .paper-public-table .exam-action-control {width:auto;}
 .paper-public-table .exam-action-control--primary {min-width:94px;padding:8px 10px;}
 .paper-public-table .exam-download-main {min-width:0;gap:4px;padding:8px;font-size:12px;}
 .paper-public-table .exam-download-main,
 .paper-public-table .exam-action-control--primary,
 .paper-public-table .startExamBtn {font-size:var(--learning-small-size,12px) !important;white-space:normal;}
 .paper-public-table .exam-download-main > .ri-file-download-line {font-size:12px;flex-shrink:0;}
 .paper-public-table .exam-download-menu-trigger {min-width:30px;padding:8px 4px;}
 .paper-public-table .exam-download-menu-panel {min-width:min(350px,calc(100vw - 48px));max-width:calc(100vw - 48px);}
}

/* Full PDF wording must never paint over the adjacent Attempt action. */
.paper-public-table .exam-download-menu { max-width:100%; min-width:0; }
.paper-public-table .exam-download-main { min-width:0; white-space:normal; overflow-wrap:anywhere; }
.paper-public-table .exam-download-menu-trigger { flex-shrink:0; }
@media(max-width:480px) {
 .paper-public-table tbody tr,.paper-public-table tbody .course-exam-row { grid-template-columns:minmax(0,1fr); }
 .paper-public-table td:nth-child(3),.paper-public-table td:nth-child(4) { grid-column:1 / -1; padding-left:12px; padding-right:12px; }
 .paper-public-table .exam-action-group,.paper-public-table .exam-download-menu,.paper-public-table .exam-action-control--primary { width:100%; }
 .paper-public-table .exam-download-menu .exam-download-main { flex:1 1 0; }
}

@media(min-width:601px) {
 .paper-public-table .exam-download-menu .exam-download-main { white-space:nowrap; min-width:max-content; }
}
