/* 小柴切换器 · 后台页面。沿用后台现有的 stats / toolbar / card / table 样式，只补本页的部分。 */
.sw-page .stats { grid-template-columns: repeat(5, minmax(0, 1fr)); }
@media (max-width: 1100px) { .sw-page .stats { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.sw-page .toolbar { display: grid; grid-template-columns: 1fr 180px auto; gap: 12px; margin-bottom: 16px; }
@media (max-width: 700px) { .sw-page .toolbar { grid-template-columns: 1fr; } }
.sw-page .table-wrap { overflow-x: auto; }
.sw-page .table-wrap table { min-width: 1080px; width: 100%; }
.sw-page .table-wrap td { vertical-align: top; }
.sw-key { font-family: ui-monospace, Menlo, monospace; font-size: 12px; white-space: nowrap; cursor: pointer; }
.sw-page .sub { color: var(--muted); font-size: 12px; margin-top: 3px; }
.sw-badge { display: inline-block; padding: 5px 9px; border-radius: 99px; font-size: 12px; font-weight: 700; white-space: nowrap; background: #edf0ed; color: #53635a; }
.sw-badge.ok { background: #dff3e8; color: #12714f; }
.sw-badge.off { background: #f8e3e0; color: #a13a31; }
.sw-device { display: flex; gap: 8px; align-items: center; justify-content: space-between; margin-bottom: 6px; min-width: 230px; }
.sw-device b { font-weight: 600; font-size: 13px; overflow-wrap: anywhere; }
.sw-actions { display: flex; flex-wrap: wrap; gap: 6px; min-width: 130px; }
.sw-page button.sw-mini, .sw-dialog button.sw-mini { padding: 6px 10px; border-radius: 8px; font-size: 12px; white-space: nowrap; }
.sw-page button.sw-danger { color: var(--danger); }
.sw-pager { display: flex; gap: 10px; align-items: center; justify-content: flex-end; margin-top: 14px; color: var(--muted); font-size: 13px; }
.sw-dialog { width: min(520px, 94vw); }
.sw-dialog form, .sw-dialog .sw-body { display: flex; flex-direction: column; gap: 14px; }
.sw-dialog label { display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 600; }
.sw-dialog .sw-hint { color: var(--muted); font-size: 12px; font-weight: 400; line-height: 1.5; margin: 0; }
.sw-dialog .sw-row { display: flex; gap: 10px; justify-content: flex-end; flex-wrap: wrap; }
.sw-output { width: 100%; min-height: 180px; box-sizing: border-box; font-family: ui-monospace, Menlo, monospace; font-size: 12px; }
.sw-events { max-height: 380px; overflow: auto; display: flex; flex-direction: column; gap: 8px; }
.sw-event { display: flex; justify-content: space-between; gap: 12px; padding: 10px 12px; border-radius: 10px; background: #f4f6f1; font-size: 13px; }
.sw-event span:last-child { color: var(--muted); white-space: nowrap; }
#switcherCustomerRows td:first-child, #switcherRows td:nth-child(3) { min-width: 130px; }
