.sa-dialog { width:min(1120px,calc(100vw - 32px));max-height:calc(100dvh - 32px);box-sizing:border-box;padding:20px;border:1px solid var(--border,#dce3e9);border-radius:16px;background:var(--panel,#fff);color:var(--text,#152a3a);font-family:inherit;box-shadow:0 24px 80px #10203040;overflow:auto }
.sa-dialog::backdrop { background:#10203080 }
.sa-heading,.sa-toolbar,.sa-pagination { display:flex;align-items:center;justify-content:space-between;gap:12px }
.sa-heading h2,.sa-heading h3,.sa-heading p { margin:0 }
.sa-toolbar { margin:12px 0 }
.sa-filters:not([hidden]) { display:flex;gap:12px;align-items:end;flex-wrap:wrap;padding:12px;background:var(--panel,#f5f7fa);border-radius:12px }
.sa-filters .field { flex:1;min-width:200px;margin:0 }
.sa-results { height:50vh;min-height:300px;overflow:auto;border:1px solid var(--border,#dce3e9);border-radius:10px }
.sa-table { width:100%;border-collapse:collapse;text-align:left;font-size:.9rem }
.sa-table th { position:sticky;top:0;background:var(--panel,#f5f7fa);z-index:1 }
.sa-table th,.sa-table td { padding:10px 12px;border-bottom:1px solid var(--border,#dce3e9);vertical-align:top }
.sa-table small { display:block;color:var(--muted,#64748b);margin-top:4px }
.sa-link { border:0;background:none;color:var(--accent,#007d83);font:inherit;text-align:left;padding:0;cursor:pointer;overflow-wrap:anywhere }
.sa-pagination { margin-top:12px }
.sa-empty { padding:24px }
.sa-body dl { margin:0 }
.sa-body dl>div { padding:10px 0;border-bottom:1px solid var(--border,#dce3e9) }
.sa-body dt { font-weight:600;margin-bottom:4px }
.sa-body dd { margin:0;overflow-wrap:anywhere }
.sa-body dd dl { padding-left:16px;border-left:2px solid var(--border,#dce3e9) }
.sa-text { white-space:pre-wrap;overflow-wrap:anywhere }
.sa-body ol { margin:0;padding-left:22px }
.sa-body li { margin:6px 0 }
.sa-dialog .ts-dropdown { z-index:20 }
@media(max-width:640px) { .sa-dialog { width:calc(100vw - 12px);padding:14px;max-height:calc(100dvh - 12px) }.sa-table th,.sa-table td { padding:8px }.sa-table th:last-child,.sa-table td:last-child { display:none }.sa-filters .field { min-width:100% }.sa-heading h2 { font-size:1.25rem } }

.sa-dialog .field { display:grid;gap:.35rem;font-size:.9rem }
.sa-dialog input,.sa-dialog select { width:100%;box-sizing:border-box;border:1px solid var(--border,#c5d1dc);border-radius:8px;background:var(--panel,#fff);color:inherit;font:inherit;padding:.6rem .75rem }
.sa-dialog input:focus,.sa-dialog select:focus { outline:2px solid var(--accent,#206f99);outline-offset:2px }

.sa-table .sa-mobile-context { display:none }
@media(max-width:640px) { .sa-table { table-layout:fixed;width:100%!important;min-width:0!important }.sa-table th:first-child,.sa-table td:first-child,.sa-table col:first-child { width:100%!important;min-width:0!important }.sa-table th:not(:first-child),.sa-table td:not(:first-child),.sa-table col:not(:first-child) { display:none }.sa-table .sa-mobile-context { display:block } }
