/* Bảng dữ liệu dùng chung: header thoáng hơn; giữ bố cục, sticky, cuộn và màu nghiệp vụ. */
#app table:not(:where(.tts-public table, .ql-editor table, .ui-datepicker table, .datepicker table, [data-table-theme="custom"])) {
  --app-table-head: var(--tts-navy, #22356b);
  --app-table-line: #dce5ef;
  --app-table-row: #eaf1fb;
  border-radius: 10px;
  clip-path: inset(0 round 10px);
}
#app table:not(:where(.tts-public table, .ql-editor table, .ui-datepicker table, .datepicker table, [data-table-theme="custom"])) > thead > tr > :is(th, td):not(.mn-gap) {
  color: #fff !important;
  background: var(--app-table-head) !important;
  border-color: var(--tts-xanh, #146db1) !important;
  padding-top: 10px !important;
  padding-bottom: 10px !important;
  vertical-align: middle;
}
#app table:not(:where(.tts-public table, .ql-editor table, .ui-datepicker table, .datepicker table, [data-table-theme="custom"])) > thead > tr > :is(th, td) > :is(p, span):not([class]) {
  color: inherit;
}
#app table:not(:where(.tts-public table, .ql-editor table, .ui-datepicker table, .datepicker table, [data-table-theme="custom"])) > tbody > tr {
  --app-table-row: #eaf1fb;
}
#app table:not(:where(.tts-public table, .ql-editor table, .ui-datepicker table, .datepicker table, [data-table-theme="custom"])) > tbody > tr:nth-child(even) {
  --app-table-row: #f3f5f7;
}
#app table:not(:where(.tts-public table, .ql-editor table, .ui-datepicker table, .datepicker table, [data-table-theme="custom"])) > tbody > tr:is(.is-selected, .selected, .message-totals-row) {
  --app-table-row: #dde8f5;
}
#app table:not(:where(.tts-public table, .ql-editor table, .ui-datepicker table, .datepicker table, [data-table-theme="custom"])) > tbody > tr > :is(th, td):not(.mn-gap) {
  background: var(--app-table-row) !important;
  border-color: var(--app-table-line) !important;
}
/* Card mobile của danh sách tin nhắn/danh bạ phải dùng cùng màu với các ô. */
@media (max-width: 767px) {
  #app :is(.message-table, .contact-table) > tbody > tr { background: var(--app-table-row); }
}
