/* Scoped to SMS: shared OMR/EXAM tables are not changed. */
.sms-mode .sms-admin-table { min-width: 1120px; }
.sms-mode .sms-admin-table th:nth-child(1) { width: 160px; }
.sms-mode .sms-admin-table th:nth-child(2) { width: 72px; }
.sms-mode .sms-admin-table th:nth-child(3) { width: 84px; }
.sms-mode .sms-admin-table th:nth-child(4) { width: 58px; }
.sms-mode .sms-admin-table th:nth-child(5),
.sms-mode .sms-admin-table th:nth-child(6) { width: 120px; }
.sms-mode .sms-admin-table th:nth-child(7) { width: 72px; }
.sms-mode .sms-admin-table th:nth-child(8) { width: auto; }
.sms-mode .sms-admin-table th:nth-child(9) { width: 48px; }
.sms-mode .sms-admin-table th:nth-child(10) { width: 76px; }
.sms-mode .sms-admin-table th:nth-child(11) { width: 66px; }
.sms-mode .sms-message-cell { text-align: center; }
.sms-mode .sms-view-button { padding: 4px 10px; font-size: 12px; min-height: 28px; }
.sms-mode .sms-preview { width: min(840px, calc(100vw - 32px)); max-height: calc(100dvh - 40px); padding: 0; border: 1px solid #d6e0eb; border-radius: 16px; color: #243449; box-shadow: 0 24px 80px #10213b40; }
.sms-preview::backdrop { background: #172b46a6; }
.sms-preview-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 24px; position: sticky; top: 0; background: #f4f8fc; z-index: 1; border-bottom: 1px solid #dfe7ef; }
.sms-preview-head h2 { margin: 0; font-size: 20px; }
.sms-preview-head p { margin: 6px 0 0; color: #667588; font-size: 12px; }
.sms-preview-content { padding: 20px 24px; }
.sms-preview-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 24px; margin: 0 0 22px; }
.sms-preview-fields div { min-width: 0; }
.sms-preview-fields dt { color: #6b788b; font-size: 12px; margin-bottom: 4px; }
.sms-preview-fields dd { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; font-size: 14px; line-height: 1.5; }
.sms-preview-content h3 { font-size: 15px; margin: 24px 0 10px; }
.sms-preview-message { white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.7; padding: 18px; border-radius: 10px; border: 1px solid #dce6f0; background: #f6f9fc; }
.sms-preview-image { display: block; max-width: 100%; max-height: 540px; object-fit: contain; border-radius: 8px; margin: 12px 0; }
.sms-preview-image[hidden] { display: none; }
.sms-preview-image-note { font-size: 13px; color: #667588; }
.sms-preview-content a { display: inline-block; margin: 0 0 16px; color: #18699d; }
.sms-preview-content details { border-top: 1px solid #dfe7ef; padding-top: 16px; }
.sms-preview-content summary { cursor: pointer; margin-bottom: 16px; }
@media (max-width: 560px) {
  .sms-preview-fields { grid-template-columns: 1fr; }
  .sms-preview-head, .sms-preview-content { padding: 16px; }
}
