.tac-patch-upload {
  padding: 0.9rem;
  margin-bottom: 1.25rem;
}

.tac-patch-upload__form {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  align-items: center;
  margin: 0.5rem 0;
}

.tac-patch-pages {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
  gap: 0.75rem;
  margin: 0.75rem 0 1rem;
}

.tac-patch-page {
  margin: 0;
}

.tac-patch-page img {
  width: 100%;
  height: auto;
  border: 1px solid var(--border, #ccc);
  border-radius: 4px;
  background: #fff;
}

.tac-patch-page figcaption {
  font-size: 0.8rem;
  opacity: 0.8;
  margin-top: 0.25rem;
}

.tac-patch-qs {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin: 0.75rem 0 1rem;
}

.tac-patch-q label {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  font-weight: 600;
}

.tac-patch-q input,
.tac-patch-q select {
  font-weight: 400;
  max-width: 28rem;
  padding: 0.4rem 0.55rem;
}

.tac-patch-map-add {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  align-items: center;
  margin: 0.4rem 0 0.65rem;
}

.tac-patch-map-add input[type="number"] {
  width: 5.5rem;
}

.tac-patch-map-struck {
  font-weight: 500;
  font-size: 0.9rem;
}

.tac-patch-ingest-actions {
  margin: 0.85rem 0 0.4rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tac-patch-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
  align-items: flex-end;
  margin: 0.75rem 0 0.35rem;
}

.tac-patch-combo {
  position: relative;
  flex: 1 1 11rem;
  min-width: min(100%, 11rem);
}

.tac-patch-toolbar label {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-weight: 600;
  font-size: 0.9rem;
  min-width: 0;
  width: 100%;
  flex: 1 1 11rem;
}

.tac-patch-toolbar > label {
  flex: 1 1 14rem;
}

.tac-patch-toolbar select,
.tac-patch-toolbar input[type="search"] {
  font-size: 1rem;
  padding: 0.45rem 0.6rem;
  width: 100%;
  box-sizing: border-box;
}

.tac-patch-suggest {
  position: absolute;
  z-index: 30;
  left: 0;
  right: 0;
  top: calc(100% + 2px);
  margin: 0;
  padding: 0.2rem 0;
  list-style: none;
  max-height: 14rem;
  overflow: auto;
  background: var(--surface, #fff);
  color: inherit;
  border: 1px solid var(--border, #ccc);
  border-radius: 4px;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
}

.tac-patch-suggest[hidden] {
  display: none;
}

.tac-patch-suggest li {
  padding: 0.4rem 0.65rem;
  cursor: pointer;
  font-weight: 500;
  font-size: 0.92rem;
}

.tac-patch-suggest li small {
  display: block;
  font-weight: 400;
  opacity: 0.75;
  font-size: 0.8rem;
}

.tac-patch-suggest li.is-active,
.tac-patch-suggest li:hover {
  background: color-mix(in srgb, var(--accent, #2e9b6b) 16%, transparent);
}

.tac-patch-cell.is-dim {
  opacity: 0.28;
}

.tac-patch-cell.is-hit {
  outline: 2px solid var(--accent, #2e9b6b);
  outline-offset: -2px;
  opacity: 1;
}

.tac-patch-stats {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.65rem;
  margin: 0 0 1rem;
}

@media (max-width: 900px) {
  .tac-patch-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.tac-patch-stat {
  border: 1px solid var(--border, #ccc);
  border-radius: 6px;
  padding: 0.55rem 0.7rem;
  background: var(--surface, transparent);
}

.tac-patch-stat__n {
  display: block;
  font-size: 1.35rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.tac-patch-stat__l {
  font-size: 0.78rem;
  opacity: 0.85;
}

.tac-patch-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 1.1rem;
  align-items: center;
  margin: 0 0 1.1rem;
  font-size: 0.82rem;
}

.tac-patch-swatch {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.tac-patch-swatch__box {
  width: 1.7rem;
  height: 1.35rem;
  border: 1px solid #333;
  border-radius: 2px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
}

.tac-patch-swatch__use {
  flex: 0 0 60%;
}

.tac-patch-swatch__ns,
.tac-patch-swatch__poe {
  flex: 0 0 20%;
  background: #fff;
}

.tac-patch-swatch__ns.is-on {
  background: #b8448b;
}

.tac-patch-swatch__poe.is-on {
  background: #2b7bbf;
}

.tac-patch-sheet {
  margin: 0 0 1.75rem;
}

.tac-patch-sheet__title {
  margin: 0 0 0.55rem;
  font-size: 1.05rem;
}

.tac-patch-strip {
  margin-bottom: 0.4rem;
}

.tac-patch-strip--new-panel {
  margin-top: 1.15rem;
}

.tac-patch-strip__lab {
  margin: 0 0 0.28rem;
  font-size: 0.92rem;
  font-weight: 650;
}

.tac-patch-row-blocks {
  display: flex;
  gap: 0.85rem;
  align-items: stretch;
}

.tac-patch-block {
  flex: 1;
  min-width: 0;
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  gap: 3px;
}

.tac-patch-cell {
  position: relative;
  min-height: 4.35rem;
  height: 100%;
  border: 1px solid #333;
  border-radius: 3px;
  overflow: hidden;
}

.tac-patch-cell.is-struck .tac-patch-cell__txt {
  text-decoration: line-through;
}

.tac-patch-cell__bands {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
}

.tac-patch-cell__use {
  flex: 0 0 60%;
  background: var(--surface, #f4f4f4);
}

.tac-patch-cell__ns,
.tac-patch-cell__poe {
  flex: 0 0 20%;
  background: #fff;
}

.tac-patch-cell__ns.is-on {
  background: #b8448b;
}

.tac-patch-cell__poe.is-on {
  background: #2b7bbf;
}

.tac-patch-cell--active .tac-patch-cell__use,
.tac-patch-cell--active_poe .tac-patch-cell__use {
  background: #2e9b6b;
}

.tac-patch-cell--inactive_3m .tac-patch-cell__use {
  background: #e08a3c;
}

.tac-patch-cell--since_reload .tac-patch-cell__use {
  background: #d4454a;
}

.tac-patch-cell--idle_recent .tac-patch-cell__use {
  background: #b0b0b0;
}

.tac-patch-cell--down .tac-patch-cell__use,
.tac-sw-port--down .tac-sw-port__use {
  background: #4a4f57;
}

.tac-patch-cell--disabled .tac-patch-cell__use,
.tac-sw-port--disabled .tac-sw-port__use {
  background: #6b3a3a;
}

.tac-patch-cell--struck .tac-patch-cell__use {
  background: #e6e6e6;
}

.tac-patch-cell__txt {
  position: relative;
  z-index: 1;
  padding: 0.2rem 0.28rem;
  display: flex;
  flex-direction: column;
  gap: 1px;
  box-sizing: border-box;
  font-variant-numeric: tabular-nums;
  line-height: 1.15;
}

.tac-patch-cell__jack {
  font-size: 0.92rem;
  font-weight: 650;
}

.tac-patch-cell__iface {
  font-size: 0.78rem;
  opacity: 0.92;
}

.tac-patch-cell--active .tac-patch-cell__txt,
.tac-patch-cell--active_poe .tac-patch-cell__txt,
.tac-patch-cell--since_reload .tac-patch-cell__txt {
  color: #fff;
}

.tac-patch-table-wrap {
  overflow-x: auto;
  margin: 0 0 1.5rem;
}

.tac-patch-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.82rem;
}

.tac-patch-table th,
.tac-patch-table td {
  border-bottom: 1px solid var(--border, #ddd);
  padding: 0.32rem 0.45rem;
  text-align: left;
  vertical-align: top;
}

.tac-patch-table th {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  opacity: 0.8;
}

.tac-patch-table tr.is-hit td {
  background: color-mix(in srgb, var(--accent, #2e9b6b) 12%, transparent);
}

.tac-patch-live-bar {
  display: block;
  margin: 0.35rem 0 0.55rem;
}

.tac-patch-live-combo {
  position: relative;
  z-index: 40;
  overflow: visible;
  flex: none;
  width: 100%;
  min-width: 0;
}

.tac-patch-live-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
  align-items: flex-end;
}

.tac-patch-live-bar label,
.tac-patch-live-row label {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-weight: 600;
  font-size: 0.9rem;
  min-width: min(100%, 18rem);
  flex: 1 1 18rem;
}

.tac-patch-live-bar select,
.tac-patch-live-bar input[type="search"] {
  font-size: 1rem;
  padding: 0.45rem 0.6rem;
  width: 100%;
  box-sizing: border-box;
}

/* Im Fluss unter dem Feld, nicht absolut — sonst clippt .content die Liste. */
.tac-patch-live-suggest {
  position: relative;
  top: auto;
  left: auto;
  right: auto;
  z-index: 40;
  margin-top: 0.3rem;
  max-height: 18rem;
  background: var(--bg-card, #fff);
  color: var(--text, inherit);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.16);
}

.tac-patch-live-suggest li.is-empty {
  cursor: default;
  opacity: 0.8;
  font-weight: 400;
}

.tac-sw {
  background: #252a31;
  color: #e8eaed;
  border-radius: 10px;
  padding: 0.75rem 0.9rem 1rem;
  margin: 0.35rem 0 1.35rem;
  width: 100%;
  box-sizing: border-box;
}

.tac-sw[hidden] {
  display: none;
}

.tac-sw__head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.45rem 1.1rem;
  margin-bottom: 0.55rem;
}

.tac-sw__name {
  font-weight: 700;
  letter-spacing: 0.03em;
}

.tac-sw__meta {
  font-size: 0.82rem;
  opacity: 0.85;
}

.tac-sw__poe {
  font-size: 0.82rem;
  font-variant-numeric: tabular-nums;
}

.tac-sw-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.9rem;
  list-style: none;
  margin: 0 0 0.7rem;
  padding: 0;
  font-size: 0.78rem;
  opacity: 0.95;
}

.tac-sw-legend li {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.tac-sw-legend__swatch,
.tac-sw-legend__led {
  width: 0.85rem;
  height: 0.7rem;
  border-radius: 2px;
  border: 1px solid #111;
  display: inline-block;
}

.tac-sw-legend__swatch--active {
  background: #2e9b6b;
}
.tac-sw-legend__swatch--idle {
  background: #c5c5c5;
}
.tac-sw-legend__swatch--old {
  background: #e08a3c;
}
.tac-sw-legend__swatch--reload {
  background: #d4454a;
}
.tac-sw-legend__swatch--off {
  background: #4a4f57;
}
.tac-sw-legend__led {
  background: #1d6fb8;
  height: 0.35rem;
  align-self: center;
}

.tac-sw-stack {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.tac-sw-member {
  display: flex;
  gap: 0.5rem;
  align-items: stretch;
  background: #1a1e24;
  border: 1px solid #0d0f12;
  border-radius: 6px;
  padding: 0.4rem 0.5rem 0.5rem;
}

.tac-sw-member__tag {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #8ec8ff;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 1.35rem;
}

.tac-sw-member__face {
  display: flex;
  gap: 0.85rem;
  align-items: stretch;
  flex: 1;
  min-width: 0;
  flex-wrap: nowrap;
  width: 100%;
}

.tac-sw-member__copper {
  display: flex;
  gap: 0.9rem;
  flex-wrap: nowrap;
  flex: 1 1 auto;
  min-width: 0;
  width: 100%;
}

.tac-sw__grp-wrap {
  display: flex;
  flex-direction: column;
  gap: 0.28rem;
  flex: 1 1 0;
  min-width: 0;
  background: #10141a;
  border: 2px solid #6b7785;
  border-radius: 8px;
  padding: 0.42rem 0.42rem 0.28rem;
  box-shadow:
    0 0 0 4px #0c0f13,
    inset 0 1px 0 rgba(255, 255, 255, 0.07);
}

.tac-sw__grp {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  grid-auto-rows: minmax(2.8rem, auto);
  gap: 5px;
  width: 100%;
}

.tac-sw__grp-lab {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  opacity: 0.85;
  text-align: center;
  font-variant-numeric: tabular-nums;
}

.tac-sw-port {
  position: relative;
  width: 100%;
  min-height: 2.8rem;
  aspect-ratio: 5 / 4;
  border: 1px solid #0a0a0a;
  border-radius: 3px;
  overflow: hidden;
  background: #3d444d;
}

.tac-sw-port[data-iface] {
  cursor: pointer;
}

.tac-sw-port[data-iface]:hover {
  filter: brightness(1.12);
}

.tac-sw-port[data-iface]:focus-visible {
  outline: 2px solid #8ec8ff;
  outline-offset: 1px;
}

.tac-sw-port.is-selected {
  box-shadow: 0 0 0 2px #fff, 0 0 0 4px #6cb6ff;
  z-index: 2;
}

.tac-sw-port__led {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 22%;
  background: #dfe3e8;
}

.tac-sw-port__led.is-on {
  background: #1d6fb8;
}

.tac-sw-port__n {
  position: relative;
  z-index: 1;
  font-size: clamp(0.7rem, 1.5vw, 1.05rem);
  font-weight: 650;
  text-align: center;
  padding-top: 0.28rem;
  font-variant-numeric: tabular-nums;
  line-height: 1.1;
  color: #fff;
}

.tac-sw-port--active,
.tac-sw-port--active_poe {
  background: #2e9b6b;
}

.tac-sw-port--inactive_3m {
  background: #e08a3c;
}

.tac-sw-port--since_reload {
  background: #d4454a;
}

.tac-sw-port--idle_recent {
  background: #c5c5c5;
}

.tac-sw-port--idle_recent .tac-sw-port__n,
.tac-sw-port--inactive_3m .tac-sw-port__n {
  color: #1a1a1a;
}

.tac-sw-port--down {
  background: #4a4f57;
}

.tac-sw-port--disabled {
  background: #6b3a3a;
}

.tac-sw-port--empty {
  background: #2a2e34;
  opacity: 0.4;
}

.tac-sw-member__uplinks {
  display: flex;
  flex-wrap: wrap;
  align-content: flex-start;
  gap: 3px;
  padding-left: 0.55rem;
  border-left: 1px solid rgba(255, 255, 255, 0.16);
  flex: 0 0 auto;
  min-width: 6.2rem;
  max-width: 7.6rem;
}

.tac-sw-port--uplink {
  min-width: 2.55rem;
  width: 2.55rem;
  aspect-ratio: auto;
  min-height: 2.55rem;
}

.tac-sw-port--uplink .tac-sw-port__n {
  font-size: 0.52rem;
}

.tac-sw-hint {
  margin: 0 0 0.65rem;
  font-size: 0.78rem;
  opacity: 0.85;
}

.tac-sw-detail {
  background: #252a31;
  color: #e8eaed;
  border-radius: 10px;
  padding: 0.85rem 1rem 1.1rem;
  margin: -0.7rem 0 1.35rem;
}

.tac-sw-detail[hidden] {
  display: none;
}

.tac-sw-detail__head {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1rem;
  align-items: baseline;
  margin-bottom: 0.7rem;
}

.tac-sw-detail__head h2 {
  margin: 0;
  font-size: 1.05rem;
}

.tac-sw-detail__meta,
.tac-sw-detail__descr {
  margin: 0;
  font-size: 0.82rem;
  opacity: 0.9;
  flex: 1 1 12rem;
}

.tac-sw-detail__close {
  margin-left: auto;
}

.tac-sw-detail__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.tac-sw-detail__block h3 {
  margin: 0 0 0.25rem;
  font-size: 0.88rem;
}

.tac-sw-detail__cmd {
  margin: 0 0 0.35rem;
  font-size: 0.75rem;
  opacity: 0.8;
}

.tac-sw-detail pre {
  margin: 0;
  white-space: pre-wrap;
  word-break: break-word;
  font-size: 0.75rem;
  line-height: 1.35;
  background: #111418;
  border-radius: 6px;
  padding: 0.7rem 0.8rem;
  max-height: 22rem;
  overflow: auto;
}

.tac-sw-print-table {
  display: none;
  width: 100%;
  border-collapse: collapse;
  margin-top: 1rem;
  font-size: 0.72rem;
}

.tac-sw-print-table caption {
  text-align: left;
  font-weight: 700;
  margin-bottom: 0.4rem;
}

.tac-sw-print-table th,
.tac-sw-print-table td {
  border: 1px solid #444;
  padding: 0.2rem 0.35rem;
  text-align: left;
}

.tac-sw-print-table,
.tac-sw-print-table td,
.tac-sw-print-table th {
  -webkit-print-color-adjust: exact;
  print-color-adjust: exact;
}

.tac-sw-print-table__row--active td,
.tac-sw-print-table__row--active_poe td {
  background: #c8ead8;
}

.tac-sw-print-table__row--idle_recent td {
  background: #dcdcdc;
}

.tac-sw-print-table__row--inactive_3m td {
  background: #f3c89a;
}

.tac-sw-print-table__row--since_reload td {
  background: #efb0b3;
}

.tac-sw-print-table__row--down td {
  background: #cfd2d6;
}

.tac-sw-print-table__row--disabled td {
  background: #e0b4b4;
}

.tac-sw-print-table__row.has-poe td:first-child {
  border-left: 5px solid #1d6fb8;
}

.tac-sw-print-table__row td.tac-sw-print-table__poe.is-on {
  background: #9ec5ea;
  font-weight: 650;
}

.tac-patch-live-row .btn {
  flex: 0 0 auto;
  align-self: flex-end;
}

@media (max-width: 720px) {
  .tac-sw-member__face,
  .tac-sw-member__copper {
    flex-wrap: wrap;
  }
  .tac-sw__grp-wrap {
    flex: 1 1 calc(50% - 0.5rem);
  }
  .tac-sw__grp {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .tac-patch-row-blocks {
    flex-direction: column;
    gap: 0.35rem;
  }
}

body.tac-patch-print-view .sidebar,
body.tac-patch-print-view .topbar,
body.tac-patch-print-view .admin-breadcrumb,
body.tac-patch-print-view .admin-page-lead,
body.tac-patch-print-view .admin-section[aria-labelledby="sec-tac-patch-upload"],
body.tac-patch-print-view .tac-patch-toolbar,
body.tac-patch-print-view #tac-patch-filter-hint,
body.tac-patch-print-view #tac-patch-meta,
body.tac-patch-print-view #tac-patch-stats,
body.tac-patch-print-view #tac-patch-legend,
body.tac-patch-print-view #tac-patch-sheets,
body.tac-patch-print-view [aria-labelledby="sec-tac-patch-by-jack"],
body.tac-patch-print-view [aria-labelledby="sec-tac-patch-by-iface"] {
  display: none !important;
}

body.tac-patch-print-view .tac-sw-print-table {
  display: table;
}

body.tac-patch-print-view,
body.tac-patch-print-view .app,
body.tac-patch-print-view .main,
body.tac-patch-print-view .content {
  display: block;
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0.6rem;
  background: #fff !important;
  color: #111 !important;
}

body.tac-patch-print-view .admin-page-title,
body.tac-patch-print-view .content__title,
body.tac-patch-print-view h1,
body.tac-patch-print-view h2,
body.tac-patch-print-view .form-note,
body.tac-patch-print-view .tac-patch-stat,
body.tac-patch-print-view .tac-patch-stat__n,
body.tac-patch-print-view .tac-patch-stat__l,
body.tac-patch-print-view .tac-sw-hint,
body.tac-patch-print-view .tac-sw-legend,
body.tac-patch-print-view .tac-sw__name,
body.tac-patch-print-view .tac-sw__meta,
body.tac-patch-print-view .tac-sw__poe,
body.tac-patch-print-view .tac-sw__grp-lab,
body.tac-patch-print-view .tac-sw-member__tag {
  color: #111 !important;
}

body.tac-patch-print-view .tac-patch-stat {
  background: #fff !important;
  border-color: #bbb;
}

body.tac-patch-print-view .tac-sw,
body.tac-patch-print-view .tac-sw-member,
body.tac-patch-print-view .tac-sw__grp-wrap,
body.tac-patch-print-view .tac-sw-detail {
  background: #fff !important;
  color: #111 !important;
  box-shadow: none !important;
  border-color: #444 !important;
}

body.tac-patch-print-view .tac-sw-member__uplinks {
  border-left-color: #999;
}

body.tac-patch-print-view .tac-sw-detail pre {
  background: #fff !important;
  color: #111 !important;
  border: 1px solid #ccc;
}

body.tac-patch-print-view .tac-sw-print-table th,
body.tac-patch-print-view .tac-sw-print-table td {
  border-color: #999;
  color: #111;
}

body.tac-patch-print-view .tac-sw-print-table__row--active td,
body.tac-patch-print-view .tac-sw-print-table__row--active_poe td {
  background: #c8ead8 !important;
}

body.tac-patch-print-view .tac-sw-print-table__row--idle_recent td {
  background: #dcdcdc !important;
}

body.tac-patch-print-view .tac-sw-print-table__row--inactive_3m td {
  background: #f3c89a !important;
}

body.tac-patch-print-view .tac-sw-print-table__row--since_reload td {
  background: #efb0b3 !important;
}

body.tac-patch-print-view .tac-sw-print-table__row--down td {
  background: #cfd2d6 !important;
}

body.tac-patch-print-view .tac-sw-print-table__row--disabled td {
  background: #e0b4b4 !important;
}

body.tac-patch-print-view .tac-sw-print-table__row.has-poe td:first-child {
  border-left: 5px solid #1d6fb8 !important;
}

body.tac-patch-print-view .tac-sw-print-table__row td.tac-sw-print-table__poe.is-on {
  background: #9ec5ea !important;
}

body.tac-patch-print-view .tac-sw-port,
body.tac-patch-print-view .tac-sw-legend__swatch,
body.tac-patch-print-view .tac-sw-legend__led {
  -webkit-print-color-adjust: exact;
  print-color-adjust: exact;
}

@page {
  size: landscape;
  margin: 8mm;
}

@media print {
  html,
  body {
    height: auto !important;
    max-height: none !important;
    overflow: visible !important;
  }
  .sidebar,
  .topbar,
  .tac-patch-toolbar,
  .admin-breadcrumb,
  .tac-patch-upload,
  #tac-patch-filter-hint {
    display: none !important;
  }
  html,
  body,
  .app,
  .main,
  .content {
    display: block !important;
    width: 100% !important;
    height: auto !important;
    max-height: none !important;
    min-height: 0 !important;
    overflow: visible !important;
    position: static !important;
    flex: none !important;
    margin: 0 !important;
    padding: 0 !important;
  }
  .tac-patch-sheet {
    break-after: page;
  }
  .tac-patch-cell {
    min-height: 3.4rem;
  }
  body.tac-patch-print-view,
  body.tac-patch-print-view .app,
  body.tac-patch-print-view .main,
  body.tac-patch-print-view .content,
  body.tac-patch-print-view .tac-sw,
  body.tac-patch-print-view .tac-sw-stack,
  body.tac-patch-print-view .tac-sw-member,
  body.tac-patch-print-view .tac-sw__grp-wrap,
  body.tac-patch-print-view .tac-sw-detail {
    background: #fff !important;
    color: #111 !important;
    box-shadow: none !important;
    height: auto !important;
    max-height: none !important;
    overflow: visible !important;
  }
  body.tac-patch-print-view .tac-sw-stack {
    display: block;
  }
  body.tac-patch-print-view .tac-sw-member {
    break-inside: avoid;
    page-break-inside: avoid;
    margin: 0 0 0.55rem;
  }
  body.tac-patch-print-view .tac-patch-live-bar,
  body.tac-patch-print-view #tac-patch-print-btn,
  body.tac-patch-print-view #tac-patch-print-view-btn,
  body.tac-patch-print-view .tac-sw-detail__close,
  body.tac-patch-print-view .tac-sw-hint {
    display: none !important;
  }
  body.tac-patch-print-view .tac-sw-port,
  body.tac-patch-print-view .tac-sw-legend__swatch,
  body.tac-patch-print-view .tac-sw-legend__led,
  body.tac-patch-print-view .tac-sw-print-table,
  body.tac-patch-print-view .tac-sw-print-table td,
  body.tac-patch-print-view .tac-sw-print-table th {
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }
  body.tac-patch-print-view .tac-sw-print-table {
    display: table !important;
    break-before: page;
    break-inside: auto;
  }
  body.tac-patch-print-view .tac-sw-print-table__row--active td,
  body.tac-patch-print-view .tac-sw-print-table__row--active_poe td {
    background: #c8ead8 !important;
  }
  body.tac-patch-print-view .tac-sw-print-table__row--idle_recent td {
    background: #dcdcdc !important;
  }
  body.tac-patch-print-view .tac-sw-print-table__row--inactive_3m td {
    background: #f3c89a !important;
  }
  body.tac-patch-print-view .tac-sw-print-table__row--since_reload td {
    background: #efb0b3 !important;
  }
  body.tac-patch-print-view .tac-sw-print-table__row--down td {
    background: #cfd2d6 !important;
  }
  body.tac-patch-print-view .tac-sw-print-table__row--disabled td {
    background: #e0b4b4 !important;
  }
  body.tac-patch-print-view .tac-sw-print-table__row.has-poe td:first-child {
    border-left: 5px solid #1d6fb8 !important;
  }
  body.tac-patch-print-view .tac-sw-print-table__row td.tac-sw-print-table__poe.is-on {
    background: #9ec5ea !important;
  }
  body.tac-patch-print-view .tac-sw-print-table {
    display: table !important;
    break-before: page;
    break-inside: auto;
  }
  body.tac-patch-print-view .tac-sw-detail pre {
    max-height: none;
    overflow: visible;
  }
}
