/* =======================
   Cisco Flare Theme Variables
======================= */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600;700&display=swap');

:root {
    --Primary: #0070d1;
    --HeaderDark: #294062;
    --TextDark: #333333;
    --LightGray: #f5f5f5;
    --HoverGray: #e1e4e8;
    --BorderColor: #dcdcdc;
    --FontFamily: "Inter", sans-serif;

    /* Sticky header height (prevents header gap) */
    --HeaderHeight: 46px;
}

/* =======================
   Global Styles
======================= */
* { box-sizing: border-box; }

body#libra {
  font-family: var(--FontFamily);
  font-size: 15px;
  color: var(--TextDark);
  background-color: #fff;
  margin: 0;
  padding: 0;
}

.header {
  display: flex;
  align-items: center;
  background-color: var(--HeaderDark);
  padding: 10px 2%;
  color: #ffffff;
}

.logo { height: 32px; margin-right: 15px; }

.title {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  flex-grow: 1;
}

.content { padding: 20px; }

/* =======================
   Checkboxes
======================= */

.checkbox-container {
  display: flex;
  gap: 20px;
  margin-top: 20px;
  flex-wrap: wrap;
}

.checkbox-group {
  flex: 1;
  min-width: 280px;
  border: 1px solid var(--BorderColor);
  border-radius: 4px;
  padding: 15px;
}

.checkbox-group h2 {
  margin: -15px -15px 15px -15px;
  padding: 10px 15px;
  font-size: 13px;
  background: var(--LightGray);
  color: var(--HeaderDark);
  border-bottom: 1px solid var(--BorderColor);
  text-transform: uppercase;
}

.checkbox-list label {
  display: flex;
  align-items: center;
  margin-bottom: 8px;
  cursor: pointer;
  font-size: 13px;
}

.checkbox-list input[type="checkbox"] {
  margin-right: 10px;
  accent-color: var(--Primary);
}

/* =======================
   Table & Sticky Logic
======================= */

.table-container {
  overflow: auto;
  max-height: 600px;
  margin-top: 20px;
  border: 1px solid var(--BorderColor);
  border-radius: 4px;
}

.your-table-class {
  width: 100%;
  border-collapse: separate !important;
  border-spacing: 0 !important;
  font-size: 13px;
}





/* =======================
   Sticky Headers (Stable Fix)
======================= */

.your-table-class th {
  position: sticky !important;
  background-color: var(--LightGray) !important;
  color: var(--HeaderDark);
  font-weight: 700;
  padding: 12px;
  border-right: 1px solid var(--BorderColor);
  border-bottom: 1px solid var(--BorderColor);
  background-clip: padding-box;
}

/* First header row */

.your-table-class tr:nth-child(1) th {
  top: 0;
  z-index: 50;
  height: 48px;          /* lock height to avoid shifting */
}

/* Second header row */

.your-table-class tr:nth-child(2) th {
  top: 48px;             /* exactly same as row-1 height */
  z-index: 49;
}

/* First column header */

.your-table-class th[rowspan="2"] {
  vertical-align: middle;
  z-index: 51;
}

/* First column width */

.your-table-class th:first-child,
.your-table-class td:first-child {
  width: 140px;
  min-width: 140px;
}










/* =======================
   Table Cells
======================= */

.your-table-class td {
  border-right: 1px solid var(--BorderColor);
  border-bottom: 1px solid var(--BorderColor);
  padding: 10px 12px;
  white-space: nowrap;
  background-color: #ffffff;
}

/* Sticky first column */

.your-table-class td[rowspan] {
  position: sticky !important;
  left: 0;
  z-index: 10;
  background-color: #fcfcfc !important;
  font-weight: 700;
  text-align: center;
  vertical-align: middle !important;
  border-right: 2px solid var(--BorderColor) !important;
  box-shadow: inset 0 -1px 0 var(--BorderColor);
}

/* =======================
   Hover Effects
======================= */

.your-table-class tr { position: relative; }

.your-table-class tr:hover td {
  background-color: var(--HoverGray) !important;
}

.your-table-class tr:hover td[rowspan] {
  background-color: #fcfcfc !important;
}

/* Hover reveal over merged sticky cell */

.your-table-class tr[data-release]:hover::after {
  content: attr(data-release);
  position: absolute;
  left: 0;
  top: 0;
  width: 140px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--HoverGray);
  color: var(--Primary);
  font-weight: 700;
  z-index: 15;
  pointer-events: none;
  border-right: 2px solid var(--BorderColor);
  box-shadow: inset 0 -1px 0 var(--BorderColor);
}

/* =======================
   Footer & Modal
======================= */

.related-links {
  margin: 24px 0;
  background: #f5f8fa;
  border-left: 4px solid var(--Primary);
  padding: 18px;
}

.custom-bullets {
  list-style: disc;
  margin-left: 20px;
}

.bluebar {
  background-color: var(--Primary);
  height: 3px;
  margin-top: 30px;
}

#framework-footer {
  font-size: 11px;
  padding: 15px;
  text-align: center;
  color: #666;
}

/* Modal */

.modal {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(41, 64, 98, 0.85);
}

.modal-content {
  background-color: #ffffff;
  margin: 15% auto;
  padding: 30px;
  width: 90%;
  max-width: 450px;
  border-radius: 8px;
  text-align: center;
  position: relative;
}

.close {
  position: absolute;
  right: 15px;
  top: 10px;
  font-size: 24px;
  cursor: pointer;
}



/* =======================
   Alternate Release Colors
======================= */

.release-alt-1 td {
  background-color: #ffffff !important;
}

.release-alt-2 td {
  background-color: #f8fbff !important;   /* light blue */
}

/* Fix merged release column color */

.release-alt-1 td[rowspan] {
  background-color: #ffffff !important;
}

.release-alt-2 td[rowspan] {
  background-color: #f8fbff !important;
}