.tm-srt-wrap-front { width: 100%; max-width: 100%; margin: 1.25em 0; }
.tm-srt-wrap-front *, .tm-srt-wrap-front *::before, .tm-srt-wrap-front *::after { box-sizing: border-box; }
.tm-srt-table-scroll { width: 100%; max-width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.tm-srt-table { width: 100%; border-collapse: collapse; border-spacing: 0; margin: 0; font-size: 1rem; line-height: 1.5; table-layout: auto; }
.tm-srt-table caption { caption-side: top; padding: .65em 0; text-align: left; font-weight: 600; }
.tm-srt-table th, .tm-srt-table td { padding: .75em .9em; text-align: left; vertical-align: top; border: 1px solid #d7dce1; overflow-wrap: normal; word-break: normal; min-width: 6.5rem; }
.tm-srt-table thead th { background: #f1f3f5; color: inherit; font-weight: 600; }
.tm-srt-striped tbody tr:nth-child(even) { background: #f8f9fa; }
.tm-srt-table tbody tr:hover { background-color: rgba(0, 0, 0, .035); }
.tm-srt-table td a { overflow-wrap: anywhere; }
.tm-srt-mobile-scroll .tm-srt-table { width: max-content; min-width: 100%; }
@media (max-width: 640px) {
	.tm-srt-breakpoint-640.tm-srt-mobile-cards .tm-srt-table-scroll { overflow: visible; }
	.tm-srt-breakpoint-640.tm-srt-mobile-cards .tm-srt-table,
	.tm-srt-breakpoint-640.tm-srt-mobile-cards .tm-srt-table tbody,
	.tm-srt-breakpoint-640.tm-srt-mobile-cards .tm-srt-table tr,
	.tm-srt-breakpoint-640.tm-srt-mobile-cards .tm-srt-table td { display: block; width: 100%; }
	.tm-srt-breakpoint-640.tm-srt-mobile-cards .tm-srt-table { min-width: 0; border: 0; }
	.tm-srt-breakpoint-640.tm-srt-mobile-cards .tm-srt-table thead { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
	.tm-srt-breakpoint-640.tm-srt-mobile-cards .tm-srt-table tbody tr { margin: 0 0 1em; border: 1px solid #d7dce1; border-radius: 6px; overflow: hidden; background: #fff; }
	.tm-srt-breakpoint-640.tm-srt-mobile-cards .tm-srt-table td { display: grid; grid-template-columns: minmax(7em, 40%) minmax(0, 1fr); gap: .75em; border: 0; border-bottom: 1px solid #e6e8eb; padding: .7em .8em; min-width: 0; overflow-wrap: anywhere; word-break: normal; }
	.tm-srt-breakpoint-640.tm-srt-mobile-cards .tm-srt-table td:last-child { border-bottom: 0; }
	.tm-srt-breakpoint-640.tm-srt-mobile-cards .tm-srt-table td::before { content: attr(data-label); font-weight: 600; }
	.tm-srt-breakpoint-640.tm-srt-mobile-cards .tm-srt-table tbody tr:hover { background: #fff; }
	.tm-srt-wrap-front.tm-srt-breakpoint-640 .tm-srt-table .tm-srt-hide-mobile-column { display: none !important; }
}
@media (prefers-reduced-motion: reduce) { .tm-srt-wrap-front * { scroll-behavior: auto !important; } }
/* Phase 2.0.0: per-column responsive controls and preview sizing. */
.tm-srt-hide-mobile-column { }
@media (max-width: 640px) {
	.tm-srt-wrap-front.tm-srt-breakpoint-640 .tm-srt-table .tm-srt-hide-mobile-column { display: none !important; }
}
.tm-srt-column-options { display: grid; gap: 5px; padding: 5px 7px 7px; border-top: 1px solid #dcdcde; font-weight: 400; min-width: 135px; }
.tm-srt-column-options label { display: block; font-size: 11px; line-height: 1.35; font-weight: 400; }
.tm-srt-column-options input[type="number"] { width: 65px; min-height: 25px; margin: 3px 0 0; }
.tm-srt-column-options .tm-srt-hide-mobile { display: flex; align-items: center; gap: 3px; white-space: normal; }
.tm-srt-column-options .tm-srt-hide-mobile input { margin: 0; }
.tm-srt-preview-panel { margin-top: 24px; padding-top: 18px; border-top: 1px solid #dcdcde; }
.tm-srt-preview-heading { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; }
.tm-srt-preview-heading h3 { margin: 0; }
.tm-srt-preview-switches { display: flex; gap: 5px; flex-wrap: wrap; }
.tm-srt-live-preview { margin-top: 12px; padding: 16px; background: #f0f0f1; border: 1px solid #dcdcde; border-radius: 6px; overflow: auto; }
.tm-srt-live-preview.is-desktop { max-width: 100%; }
.tm-srt-live-preview.is-tablet { max-width: 768px; }
.tm-srt-live-preview.is-mobile { max-width: 390px; }
.tm-srt-live-preview .tm-srt-wrap-front { margin: 0; background: #fff; padding: 10px; }
.tm-srt-live-preview .tm-srt-table { font-size: 13px; }
.tm-srt-live-preview .tm-srt-table th, .tm-srt-live-preview .tm-srt-table td { padding: 7px; }
.tm-srt-live-preview .tm-srt-preview-hidden { display: table-cell !important; }
.tm-srt-live-preview.is-mobile .tm-srt-preview-hidden { display: none !important; }
.tm-srt-live-preview.is-mobile .tm-srt-mobile-cards .tm-srt-preview-hidden { display: none !important; }
@media (max-width: 782px) { .tm-srt-column-options { min-width: 120px; } }

/* Preview must simulate a phone even when the admin browser viewport is wide. */
.tm-srt-live-preview.is-mobile .tm-srt-mobile-cards .tm-srt-table-scroll { overflow: visible; }
.tm-srt-live-preview.is-mobile .tm-srt-mobile-cards .tm-srt-table,
.tm-srt-live-preview.is-mobile .tm-srt-mobile-cards .tm-srt-table tbody,
.tm-srt-live-preview.is-mobile .tm-srt-mobile-cards .tm-srt-table tr,
.tm-srt-live-preview.is-mobile .tm-srt-mobile-cards .tm-srt-table td { display: block; width: 100%; }
.tm-srt-live-preview.is-mobile .tm-srt-mobile-cards .tm-srt-table { min-width: 0; border: 0; }
.tm-srt-live-preview.is-mobile .tm-srt-mobile-cards .tm-srt-table thead { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.tm-srt-live-preview.is-mobile .tm-srt-mobile-cards .tm-srt-table tbody tr { margin: 0 0 1em; border: 1px solid #d7dce1; border-radius: 6px; overflow: hidden; background: #fff; }
.tm-srt-live-preview.is-mobile .tm-srt-mobile-cards .tm-srt-table td { display: grid; grid-template-columns: minmax(7em, 40%) minmax(0, 1fr); gap: .75em; border: 0; border-bottom: 1px solid #e6e8eb; padding: .7em .8em; min-width: 0; overflow-wrap: anywhere; word-break: normal; }
.tm-srt-live-preview.is-mobile .tm-srt-mobile-cards .tm-srt-table td:last-child { border-bottom: 0; }
.tm-srt-live-preview.is-mobile .tm-srt-mobile-cards .tm-srt-table td::before { content: attr(data-label); font-weight: 600; }
.tm-srt-live-preview.is-tablet .tm-srt-mobile-cards .tm-srt-table { min-width: 100%; }

/* Phase 3: lightweight front-end search, sorting, and pagination controls. */
.tm-srt-wrap-front .tm-srt-controls { display: flex; justify-content: flex-end; margin: 0 0 .75rem; }
.tm-srt-wrap-front .tm-srt-search-label { display: block; width: min(100%, 320px); }
.tm-srt-wrap-front .tm-srt-search { width: 100%; max-width: 100%; padding: .55em .7em; border: 1px solid #c9ced4; border-radius: 4px; font: inherit; }
.tm-srt-wrap-front .tm-srt-sort-button { display: inline-flex; align-items: center; gap: .25em; border: 0; background: transparent; color: inherit; font: inherit; font-weight: 600; text-align: left; padding: 0; cursor: pointer; }
.tm-srt-wrap-front .tm-srt-sort-button:hover,
.tm-srt-wrap-front .tm-srt-sort-button:focus { text-decoration: underline; background: transparent; color: inherit; }
.tm-srt-wrap-front .tm-srt-sort-indicator { white-space: nowrap; font-size: .8em; }
.tm-srt-wrap-front .tm-srt-table-footer { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: .75rem; margin-top: .75rem; font-size: .9em; }
.tm-srt-wrap-front .tm-srt-results-count { color: #555; }
.tm-srt-wrap-front .tm-srt-pagination { display: flex; align-items: center; gap: .5rem; }
.tm-srt-wrap-front .tm-srt-pagination button { padding: .4em .75em; border: 1px solid #c9ced4; border-radius: 4px; background: #fff; color: inherit; font: inherit; cursor: pointer; }
.tm-srt-wrap-front .tm-srt-pagination button:hover:not(:disabled),
.tm-srt-wrap-front .tm-srt-pagination button:focus:not(:disabled) { border-color: #777; }
.tm-srt-wrap-front .tm-srt-pagination button:disabled { opacity: .45; cursor: not-allowed; }
.tm-srt-wrap-front .tm-srt-table tr[hidden] { display: none !important; }
@media (max-width: 640px) {
	.tm-srt-wrap-front .tm-srt-controls { justify-content: stretch; }
	.tm-srt-wrap-front .tm-srt-search-label { width: 100%; }
	.tm-srt-wrap-front .tm-srt-table-footer { align-items: flex-start; flex-direction: column; }
	.tm-srt-wrap-front .tm-srt-pagination { width: 100%; justify-content: space-between; }
}

/* 0.3.1 visitor-controlled rows per page */
.tm-srt-wrap-front .tm-srt-pagination-tools { display: flex; align-items: center; flex-wrap: wrap; justify-content: flex-end; gap: 1rem; }
.tm-srt-wrap-front .tm-srt-visitor-page-size { display: inline-flex; align-items: center; gap: .45rem; white-space: nowrap; }
.tm-srt-wrap-front .tm-srt-page-size-input { width: 5.5em; padding: .35em .45em; border: 1px solid #c9ced4; border-radius: 4px; font: inherit; }
@media (max-width: 640px) {
 .tm-srt-wrap-front .tm-srt-pagination-tools { align-items: flex-start; flex-direction: column; width: 100%; }
}

/* Per-table responsive breakpoints. */

@media (max-width: 480px) {
	.tm-srt-wrap-front.tm-srt-breakpoint-480 .tm-srt-table .tm-srt-hide-mobile-column { display: none !important; }
	.tm-srt-breakpoint-480.tm-srt-mobile-cards .tm-srt-table-scroll { overflow: visible; }
	.tm-srt-breakpoint-480.tm-srt-mobile-cards .tm-srt-table, .tm-srt-breakpoint-480.tm-srt-mobile-cards .tm-srt-table tbody,
	.tm-srt-breakpoint-480.tm-srt-mobile-cards .tm-srt-table tr, .tm-srt-breakpoint-480.tm-srt-mobile-cards .tm-srt-table td { display: block; width: 100%; }
	.tm-srt-breakpoint-480.tm-srt-mobile-cards .tm-srt-table { min-width: 0; border: 0; }
	.tm-srt-breakpoint-480.tm-srt-mobile-cards .tm-srt-table thead { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
	.tm-srt-breakpoint-480.tm-srt-mobile-cards .tm-srt-table tbody tr { margin: 0 0 1em; border: 1px solid #d7dce1; border-radius: 6px; overflow: hidden; background: #fff; }
	.tm-srt-breakpoint-480.tm-srt-mobile-cards .tm-srt-table td { display: grid; grid-template-columns: minmax(7em, 40%) minmax(0, 1fr); gap: .75em; border: 0; border-bottom: 1px solid #e6e8eb; padding: .7em .8em; min-width: 0; overflow-wrap: anywhere; word-break: normal; }
	.tm-srt-breakpoint-480.tm-srt-mobile-cards .tm-srt-table td:last-child { border-bottom: 0; }
	.tm-srt-breakpoint-480.tm-srt-mobile-cards .tm-srt-table td::before { content: attr(data-label); font-weight: 600; }
	.tm-srt-breakpoint-480.tm-srt-mobile-cards .tm-srt-table tbody tr:hover { background: #fff; }
}

@media (max-width: 768px) {
	.tm-srt-wrap-front.tm-srt-breakpoint-768 .tm-srt-table .tm-srt-hide-mobile-column { display: none !important; }
	.tm-srt-breakpoint-768.tm-srt-mobile-cards .tm-srt-table-scroll { overflow: visible; }
	.tm-srt-breakpoint-768.tm-srt-mobile-cards .tm-srt-table, .tm-srt-breakpoint-768.tm-srt-mobile-cards .tm-srt-table tbody,
	.tm-srt-breakpoint-768.tm-srt-mobile-cards .tm-srt-table tr, .tm-srt-breakpoint-768.tm-srt-mobile-cards .tm-srt-table td { display: block; width: 100%; }
	.tm-srt-breakpoint-768.tm-srt-mobile-cards .tm-srt-table { min-width: 0; border: 0; }
	.tm-srt-breakpoint-768.tm-srt-mobile-cards .tm-srt-table thead { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
	.tm-srt-breakpoint-768.tm-srt-mobile-cards .tm-srt-table tbody tr { margin: 0 0 1em; border: 1px solid #d7dce1; border-radius: 6px; overflow: hidden; background: #fff; }
	.tm-srt-breakpoint-768.tm-srt-mobile-cards .tm-srt-table td { display: grid; grid-template-columns: minmax(7em, 40%) minmax(0, 1fr); gap: .75em; border: 0; border-bottom: 1px solid #e6e8eb; padding: .7em .8em; min-width: 0; overflow-wrap: anywhere; word-break: normal; }
	.tm-srt-breakpoint-768.tm-srt-mobile-cards .tm-srt-table td:last-child { border-bottom: 0; }
	.tm-srt-breakpoint-768.tm-srt-mobile-cards .tm-srt-table td::before { content: attr(data-label); font-weight: 600; }
	.tm-srt-breakpoint-768.tm-srt-mobile-cards .tm-srt-table tbody tr:hover { background: #fff; }
}

@media (max-width: 900px) {
	.tm-srt-wrap-front.tm-srt-breakpoint-900 .tm-srt-table .tm-srt-hide-mobile-column { display: none !important; }
	.tm-srt-breakpoint-900.tm-srt-mobile-cards .tm-srt-table-scroll { overflow: visible; }
	.tm-srt-breakpoint-900.tm-srt-mobile-cards .tm-srt-table, .tm-srt-breakpoint-900.tm-srt-mobile-cards .tm-srt-table tbody,
	.tm-srt-breakpoint-900.tm-srt-mobile-cards .tm-srt-table tr, .tm-srt-breakpoint-900.tm-srt-mobile-cards .tm-srt-table td { display: block; width: 100%; }
	.tm-srt-breakpoint-900.tm-srt-mobile-cards .tm-srt-table { min-width: 0; border: 0; }
	.tm-srt-breakpoint-900.tm-srt-mobile-cards .tm-srt-table thead { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
	.tm-srt-breakpoint-900.tm-srt-mobile-cards .tm-srt-table tbody tr { margin: 0 0 1em; border: 1px solid #d7dce1; border-radius: 6px; overflow: hidden; background: #fff; }
	.tm-srt-breakpoint-900.tm-srt-mobile-cards .tm-srt-table td { display: grid; grid-template-columns: minmax(7em, 40%) minmax(0, 1fr); gap: .75em; border: 0; border-bottom: 1px solid #e6e8eb; padding: .7em .8em; min-width: 0; overflow-wrap: anywhere; word-break: normal; }
	.tm-srt-breakpoint-900.tm-srt-mobile-cards .tm-srt-table td:last-child { border-bottom: 0; }
	.tm-srt-breakpoint-900.tm-srt-mobile-cards .tm-srt-table td::before { content: attr(data-label); font-weight: 600; }
	.tm-srt-breakpoint-900.tm-srt-mobile-cards .tm-srt-table tbody tr:hover { background: #fff; }
}
