/* Basic page reset */
body {
    margin: 0;
    font-family: Lato;
    /* #sans-serif; */
}

.narrow-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 1rem;
    box-sizing: border-box;
}


/* Fixed sidebar */
.sidebar {
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    width: 20rem;
    background-color: #202020;
    color: #fff;
    overflow-y: auto;
    height: 100vh;
    padding: 1rem 0;
}

/* Sidebar content */
.sidebar-item {
    padding: 0 1rem;
}

.sidebar-nav {
    margin-top: 1rem;
}

.sidebar-nav-item {
    display: block;
    padding: 0.5rem 1rem;
    color: #fff;
    text-decoration: none;
}

.sidebar-nav-item.active,
.sidebar-nav-item:hover {
    background-color: #333;
}

/* Main content area shifted to the right */
.wrap {
    margin-left: 20rem;
    padding: 2rem;
}

.container {
    max-width: 800px;
    margin: 0 auto;
}

.wide-container {
    width: 100%;
    margin-left: 0;
    box-sizing: border-box;
    overflow-x: auto;
}

.catalogue-table-container {
    margin-left: -14rem;
    /* Escape .wrap's margin-left */
    padding-left: 14rem;
    /* Optional: align table visually */
    overflow-x: auto;
}


/* Catalogue Table */
.scroll-sync-container {
    position: relative;
}


/* Freezes the first column */
/* table.catalogue td:first-child,
table.catalogue th:first-child {
    position: sticky;
    left: 0;
    background: #fff;
    z-index: 1;
} */

.scrollbar-top {
    overflow-x: auto;
    overflow-y: hidden;
    height: 16px;
    width: 100%;
    border-bottom: 1px solid #ccc;
    background: #f5f5f5;
}

/* .scrollbar-top::before {
    content: '';
    display: block;
    width: inherit;
    height: 1px;
} */



table.catalogue {
    display: block;
    min-width: 2200px;
    border-collapse: collapse;
    font-size: 0.85rem;
    table-layout: auto;
    width: 100%;
}

table.catalogue th,
table.catalogue td {
    border: 1px solid #ccc;
    padding: 8px;
    vertical-align: center;
    text-align: center;
    word-break: break-word;
    white-space: pre-wrap;
}

table.catalogue th {
    background-color: #f9f9f9;
    font-weight: bold;
    text-align: left;
    min-width: 100px;
}

table.catalogue tr:nth-child(even) {
    background-color: #f6f6f6;
}

table.catalogue thead th {
    position: sticky;
    top: 0;
    background-color: #f9f9f9;
    z-index: 2;
}

table.catalogue td:nth-child(16),
table.catalogue td:nth-child(17),
table.catalogue td:nth-child(18) {
    min-width: 400px;
}

table.catalogue th:nth-child(6),
table.catalogue th:nth-child(7),
table.catalogue th:nth-child(8),
table.catalogue th:nth-child(9) {
    min-width: 170px;
}

.link-cell {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
    width: 100%;
}



/* Markdown tables */

table {
    border-collapse: collapse;
    width: 100%;
}

th,
td {
    border: 1px solid #ccc;
    padding: 8px;
    text-align: left;
    font-size: 0.875rem;

}

th {
    background-color: #f5f5f5;
}

.fullscreen-container {
    position: relative;
    margin: 2rem 0;
    border: 1px solid #ccc;
    background-color: #fff;
    overflow-x: auto;
}

.fullscreen-toggle-bar {
    padding: 0.5rem;
    background-color: #f5f5f5;
    border-bottom: 1px solid #ccc;
    text-align: left;
    /* align left by default */
}

.fullscreen-toggle {
    background: #000;
    color: #fff;
    border: none;
    padding: 0.4rem 0.8rem;
    cursor: pointer;
    font-size: 0.85rem;
    border-radius: 3px;
}

.fullscreen-active {
    position: fixed !important;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: #fff;
    z-index: 9999;
    padding: 2rem;
    overflow: auto;
    box-sizing: border-box;
}

.fullscreen-active .fullscreen-toggle-bar {
    position: fixed;
    top: 1rem;
    left: 1rem;
    background-color: #fff;
    z-index: 10000;
}

/* Styled tip box */
.tip-box {
    border-left: 4px solid #2c7b30;
    background-color: #f0fdfa;
    padding: 1rem;
    margin: 1.5rem 0;
    border-radius: 4px;
    color: #2c3e50;
}

.tip-box strong {
    color: #2c7a7b;
}