.info-table {
    width: 100%;
    table-layout: fixed;
    border-collapse: separate;
    border-spacing: 8px;
    padding: 0.2rem;
}
.info-table td {
    padding: 0;
    height: 100%;
    vertical-align: middle;
    text-align: center;
}
.info-table tr {
    height: 1px;
}
.info-table td button {
    width: 100%;
    height: 100%;
    min-height: 100%;
    border: 2px solid #333;
    padding: 20px;
    font-weight: bold;
    font-size: 1.1rem;
    word-wrap: break-word;
    overflow-wrap: break-word;
    white-space: normal;
    box-sizing: border-box;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    line-height: 1.2;
    text-decoration: none;
    backface-visibility: hidden;
    transform: scale(1) translateZ(0);
    -webkit-font-smoothing: subpixel-antialiased;
    text-rendering: optimizeLegibility;
    transition: box-shadow 0.25s, transform 0.25s;
    color: #111;
}
.info-table td button:active {
    transform: scale(1);
    box-shadow: 0 0 0 2px #80c7ff, 0 0 8px #aaa;
    transition: transform 0.08s, box-shadow 0.08s;
}
.info-table button:hover {
    transform: scale(1.04);
    box-shadow: 0 0 8px #aaa;
}
.critical {
    background: #ff4d4d;
}
.warning {
    background: #fff566;
}
.info {
    background: #fff;
}

.details {
    width: 100%;
    table-layout: fixed;
    border-collapse: separate;
    border-spacing: 0.5rem;
    border: 1px solid #444;
    padding: 0.2rem;
    margin-bottom: 2em;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(128,199,255,0.1);
    background-color: #1c1c1c;
    transition: background-color 0.3s;
}

.details:hover {
    background-color: #232323;
}
.summary {
    font-weight: bold;
    font-size: 1.15em;
    cursor: pointer;
    outline: none;
    padding: 1em 1.5em;
    color: #fff;
    background: none;
    border: none;
}

.side-panel {
    position: fixed;
    top: 12px;
    bottom: 12px;
    right: -450px;
    width: 400px;
    max-width: 90vw;
    height: auto;
    background: rgba(28,28,28,0.92);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    color: #fff;
    box-shadow: 0 8px 32px rgba(0,0,0,0.25), 0 0 10px rgba(128,199,255,0.1);
    border: 1px solid rgba(68,68,68,0.7);
    border-radius: 12px;
    z-index: 1000;
    transition: right 0.5s cubic-bezier(0.19, 1, 0.22, 1);
    display: flex;
    flex-direction: column;
    padding: 2em 1.5em 1em 1.5em;
    outline: none;
}
.side-panel.open {
    right: 12px;
}
.close-panel-button {
    position: absolute;
    top: 16px;
    right: 16px;
    background: none;
    border: none;
    color: #fff;
    font-size: 2em;
    cursor: pointer;
    margin: 0;
    padding: 0;
    z-index: 2;
}
.close-panel-button:focus {
    outline: 2px solid #80c7ff;
}
@media (max-width: 600px) {
    .side-panel {
        padding: 1em 0.5em 0.5em 0.5em;
        width: 95vw;
        border-radius: 12px;
    }
}
.panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1em;
    position: relative;
}

.panel-header h2 {
    margin: 0;
    font-size: 1.5em;
    font-weight: bold;
    flex: 1 1 auto;
    text-align: left;
}

.close-panel-button {
    position: static;
    align-self: center;
    margin: 0;
    padding: 0;
    background: none;
    border: none;
    color: #fff;
    font-size: 2em;
    cursor: pointer;
    z-index: 2;
}

.panel-header-separator {
    border: none;
    border-top: 1px solid rgba(128,199,255,0.18);
    margin: 0.5em 0 1em 0;
}

#alarmSearch {
  flex: 1;
  padding: 0.5rem 1rem;
  font-size: 1rem;
  border-radius: 6px;
  border: 1px solid #444;
  background-color: #1a1a1a;
  color: #fff;
  min-width: 200px;
  max-width: 100%;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

#alarmSearch:focus {
  border-color: #3fa9f5;
  box-shadow: 0 0 5px rgba(63, 169, 245, 0.5);
}

#alarmSearch {
  background-image: url('data:image/svg+xml;utf8,<svg fill="%23ccc" height="16" viewBox="0 0 24 24" width="16" xmlns="http://www.w3.org/2000/svg"><path d="M15.5 14h-.79l-.28-.27A6.471 6.471 0 0 0 16 9.5 6.5 6.5 0 1 0 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19l-4.99-5zM9.5 14C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14z"/></svg>');
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: 1rem;
  padding-right: 2.5rem;
}

.search-highlight {
    outline: 3px solid rgb(255, 255, 255);
    transition: outline 0.3s ease;
}