.class-drive-links{padding:16px 18px;border:1px solid #dce6df;background:#f3f7f4;border-radius:13px;margin:4px 0 20px;min-width:0}
.class-drive-copy{display:flex;align-items:stretch;gap:10px;min-width:0}.class-drive-copy input{flex:1;min-width:0;font-size:12px;background:#fff}.class-drive-copy .button{flex-shrink:0;white-space:nowrap}.class-drive-links .caption{margin:9px 0 0;line-height:1.6;font-size:11px}.class-drive-links>[data-class-drive-choice-wrap]{margin-top:12px}
.score-sync-dialog{width:min(1120px,calc(100% - 32px));max-width:1120px}.score-sync-dialog .dialog-body{min-width:0}.score-sync-intro{color:#75867a;line-height:1.7;margin:0 0 20px}.score-sync-context{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}.score-sync-context .field{min-width:0}.score-sync-context select{width:100%;min-width:0}.score-sync-source{padding:18px;margin:20px 0;border:1px dashed #b8cdbf;border-radius:13px;background:#f4f8f5}.score-sync-source .field{flex:1;min-width:0}.score-sync-source .row{gap:14px;align-items:end;flex-wrap:wrap}.score-sync-template{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.3fr);gap:16px;margin-top:18px}.score-sync-note{margin:10px 0 0;color:#6e8576;font-size:12px;line-height:1.7}.score-sync-review{margin-top:24px;border-top:1px solid #e0e8e2;padding-top:22px;min-width:0}.score-sync-review h3{margin:0 0 8px}.score-sync-summary{display:flex;gap:8px;flex-wrap:wrap;margin:16px 0}.score-sync-summary span{padding:7px 10px;border-radius:8px;background:#ecf3ee;color:#446b53;font-size:12px}.score-sync-summary .warning{background:#fff4dd;color:#9b6b20}.score-sync-table-wrap{max-height:450px;overflow:auto;scrollbar-gutter:stable;overscroll-behavior:contain;border:1px solid #dce6df;border-radius:12px;margin:16px 0}.score-sync-table{width:100%;min-width:710px;border-collapse:collapse;table-layout:fixed}.score-sync-table th{position:sticky;top:0;background:#eef4ef;z-index:1}.score-sync-table td,.score-sync-table th{padding:12px 10px;vertical-align:middle;text-align:left;border-bottom:1px solid #e4ebe6;font-size:12px;overflow-wrap:anywhere}.score-sync-table th:first-child{width:42px}.score-sync-table th:nth-child(2){width:28%}.score-sync-table th:nth-child(3){width:19%}.score-sync-table th:nth-child(4){width:82px}.score-sync-table th:nth-child(5){width:110px}.score-sync-table td small{display:block;font-size:10px;line-height:1.7;color:#7a8b80;margin-top:3px}.score-sync-table input[type=checkbox]{width:18px;height:18px;accent-color:#386753}.score-sync-table input:not([type=checkbox]),.score-sync-table select{width:100%;min-width:0;padding:9px 10px;font-size:13px}.score-sync-table .button{padding:8px 10px;font-size:11px;min-height:36px}.score-sync-table tr[data-score-state=manual]{background:#fff9ed}.score-sync-table tr[data-score-state=missing]{background:#f6f7f6;color:#859187}.score-sync-table tr[data-score-state=error]{background:#fff2ee}.score-sync-review progress{display:block;width:100%;height:13px;margin:12px 0;accent-color:#386753}.score-sync-review .mg-checkbox{font-size:12px;line-height:1.7;align-items:flex-start}.score-sync-review .mg-checkbox input{flex-shrink:0}.score-sync-tools{display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap}.score-sync-actions{display:flex;align-items:center;justify-content:flex-end;gap:12px;margin-top:20px;flex-wrap:wrap}.score-sync-preview{width:min(950px,calc(100% - 24px));max-width:950px;max-height:94dvh}.score-sync-preview img{display:block;width:100%;height:auto}.score-sync-preview h2{font-size:18px}.score-sync-complete{padding:20px;border:1px solid #cfdfd4;background:#f0f7f2;border-radius:13px;margin-top:20px;line-height:1.8}
@media(max-width:760px){.class-drive-links{padding:14px}.class-drive-copy{gap:8px}.class-drive-copy .button{padding:10px 12px;font-size:12px}.score-sync-dialog{width:calc(100% - 16px);max-width:calc(100% - 16px)}.score-sync-context{grid-template-columns:1fr}.score-sync-template{grid-template-columns:1fr}.score-sync-source .row{align-items:stretch}.score-sync-source .button{width:100%;justify-content:center}.score-sync-intro{font-size:12px}.score-sync-actions>.button{width:100%;justify-content:center}.score-sync-table-wrap{max-height:52dvh}.score-sync-review .mg-checkbox{font-size:11px}.score-sync-complete .button{width:100%;justify-content:center}}

.class-drive-actions{margin-top:12px;gap:10px}.class-drive-actions .text-button{padding:8px 0}.drive-share-dialog{width:min(720px,calc(100% - 24px));max-width:720px}.drive-share-dialog .dialog-body{max-height:74dvh;overflow:auto}.drive-share-dialog .mg-checkbox{align-items:flex-start;line-height:1.7}.drive-share-dialog .mg-checkbox input{flex-shrink:0}.drive-share-dialog .notice{margin-bottom:14px}.drive-share-card{border:1px solid var(--line);border-radius:12px;padding:16px;margin-bottom:12px}.drive-share-card p{margin:8px 0 12px}.drive-share-dialog li{overflow-wrap:anywhere}@media(max-width:760px){.class-drive-actions>.button{width:100%;white-space:normal}.drive-share-dialog{width:calc(100% - 16px)}.drive-share-dialog .dialog-body{max-height:72dvh}.drive-share-dialog .class-drive-copy input{min-width:0}}

.drive-share-dialog progress{width:100%;height:14px;accent-color:var(--accent);margin:16px 0}.drive-share-card .button{margin:6px 8px 0 0}

.class-export-modes{display:flex;gap:10px}.class-export-modes .button{flex:1;justify-content:center}.class-export-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.class-export-grid .field{min-width:0}.class-export-grid select{width:100%;min-width:0}[data-class-export-progress] progress{display:block;width:100%;height:14px;margin:18px 0;accent-color:var(--accent)}@media(max-width:600px){.class-export-grid{grid-template-columns:1fr;gap:16px}}

/* Cột ảnh chữ "Tong" cắt từ phiếu, nằm ngay trước ô điểm chép để so sánh */
.score-sync-table{min-width:880px}.score-sync-table th:nth-child(2){width:22%}.score-sync-table th:nth-child(3){width:15%}.score-sync-table th:nth-child(4){width:64px}.score-sync-table th:nth-child(5){width:200px}.score-sync-table th:nth-child(6){width:92px}
.score-sync-table td.score-shot-cell{padding:8px 6px;text-align:center}.score-shot-cell small[data-score-shot-empty]{margin:0;color:#9aa79f}.score-shot-cell small[hidden]{display:none}
.score-shot{display:inline-block;max-width:100%;padding:2px;border:2px solid #8fbfa3;border-radius:8px;background:#fff;cursor:zoom-in;line-height:0;box-shadow:0 1px 4px #0000001a;vertical-align:middle}
.score-shot.review{border-color:#d9a441;box-shadow:0 0 0 3px #fbe7b8}
.score-shot[hidden]{display:none}.score-shot img{display:block;height:42px;width:auto;max-width:180px;object-fit:contain;border-radius:4px}
.score-shot:hover,.score-shot:focus-visible{border-color:#b3372d;outline:none}
.score-sync-shot{max-width:min(720px,calc(100% - 24px))}.score-sync-shot .score-shot-line{display:block;height:auto;max-height:120px;max-width:100%;margin:6px auto 14px;border:2px solid #d9a441;border-radius:8px}
.score-sync-shot .score-shot-context{display:block;max-width:100%;height:auto;margin:6px auto;border:1px solid #d7e4dc;border-radius:8px}.score-sync-shot details{margin-top:12px}.score-sync-shot details img{max-width:100%;height:auto}
.score-sync-summary .score-jump{font:inherit;font-size:12px;padding:7px 10px;border-radius:8px;cursor:pointer;border:1px solid #e3c27a}.score-sync-summary .score-jump:hover{filter:brightness(.97);text-decoration:underline}
tr.score-flash td{animation:score-flash 1.4s ease}@keyframes score-flash{0%,60%{background:#fde7b0}100%{background:transparent}}
/* Loại phiếu dưới ảnh Tổng */
.score-shot-cell .score-kind{display:block;margin-top:3px;color:#5d6f66;font-size:11px;line-height:1.3}
/* Lớp đã đồng bộ */
.score-done{margin:4px 0 12px;border:1px solid #bcdcc9;border-radius:14px;background:#f3faf6;overflow:hidden}
.score-done>summary{display:flex;flex-wrap:wrap;gap:6px 14px;align-items:center;justify-content:space-between;padding:10px 14px;cursor:pointer;font-weight:600;color:#14533f}
.score-done-title b{font-size:17px}
.score-done-ok{color:#1d7a55;font-size:13px}.score-done-warn{color:#8a5a00;background:#fff3d6;border:1px solid #f0d28a;border-radius:999px;padding:2px 10px;font-size:13px}
.score-done-tools{display:flex;flex-wrap:wrap;gap:8px 12px;align-items:center;padding:0 14px 10px}
.score-done-alert{margin:0 14px 10px}.score-done-alert ul{margin:4px 0 0;padding-left:18px}
.score-done-wrap{overflow-x:auto;padding:0 14px 12px}
.score-done-table{width:100%;min-width:640px;border-collapse:collapse;background:#fff;border-radius:10px;overflow:hidden;font-size:14px}
.score-done-table th{background:#e3f1e9;color:#24453a;text-align:left;font-size:12px;text-transform:uppercase;letter-spacing:.02em;padding:8px 10px}
.score-done-table td{border-top:1px solid #e3ece6;padding:8px 10px;vertical-align:top}
.score-done-table td small{display:block;color:#62746b;font-size:12px}
.score-done-table td:last-child{white-space:nowrap}.score-done-table td:last-child .text-button{margin-left:8px;color:#a33a2c}
.score-done-badge{display:inline-block;margin:0 6px 2px 0;padding:1px 8px;border-radius:999px;background:#1d7a55;color:#fff;font-size:11px;font-weight:700}
.score-done-full{color:#1d7a55}.score-done-short{color:#8a5a00}
.score-done-missing summary{cursor:pointer;color:#8a5a00;font-size:13px}.score-done-missing ul{margin:4px 0 0;padding-left:18px;font-size:13px;max-height:180px;overflow:auto}.score-done-missing em{color:#7a6a55}
.score-done-empty{display:flex;flex-direction:column;gap:4px;padding:10px 14px}
.score-done-empty .score-done-badge{margin:0 2px}
.score-class-status{margin:-4px 0 4px;padding:8px 12px;border-radius:12px;font-size:14px;line-height:1.5}
.score-class-status ul{margin:4px 0 0;padding-left:18px}
.score-class-status.none{background:#f4f5f4;border:1px dashed #c9cfcb;color:#4a524d}
.score-class-status.full{background:#eef8f2;border:1px solid #9fd0b4}
.score-class-status.short{background:#fff7e6;border:1px solid #f0cf86}
