table {
    border-collapse: collapse;
}


td, th {
    border-style: solid;
    border-width: 2px;
    border-color: var(--esa-blue);
}

th {
    font-weight: bold;
    padding: 12px 8px;
    border: 2px solid var(--esa-blue);
    max-width: 150px;
    position: sticky;
    top: 0;
    background-color: var(--esa-grey-light);
    z-index: 100;
}


th:nth-child(1), th:nth-child(2), th:nth-child(3) {
    width: 90px;
    min-width: 90px;
    max-width: 90px;
}



th:nth-child(n+4) {
    min-width: 150px;
}

/* Button cell styling for expand/collapse controls */
.button-cell {
    width: 20px;
    min-width: 20px;
    max-width: 20px;
    padding: 2px;
    text-align: center;
    vertical-align: middle;
}



.month-div {
    display: flex;
}

.expand-collapse-btn {
    margin-left: auto;
    cursor: pointer;
    margin-right: 7px;
}



.mismatch-base {
    background-color: #ff6666;
}



span {
    padding: 5px;
}

.selectable-cell {
    cursor: pointer;
    position: relative;
}

.selectable-cell:hover {
    background-color: var(--esa-blue-light-light) !important;
    color: var(--white) !important;
}



.selectable-cell::after {
    content: "Click: Select | Right-click: Compare";
    position: absolute;
    bottom: -25px;
    left: 0;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 2px 5px;
    font-size: 10px;
    border-radius: 3px;
    white-space: nowrap;
    opacity: 0;
    transition: opacity 0.2s;
    z-index: 10;
    pointer-events: none;
}

.selectable-cell:hover::after {
    opacity: 1;
}

caption {
    text-align: left;
    font-size: large;
    padding-top: var(--spacing-md);
    padding-bottom: var(--spacing-sm);
}

/* Cell styling */
.name-cell {
    background-color: #ffffff;
}

.status-cell {
    cursor: pointer;
    text-align: center;
    vertical-align: middle;
}

.file-icon {
    width: 16px;
    height: 16px;
    pointer-events: none;
}

/* Reference state colors */
.name-cell.match {
    background-color: var(--white);
    color: var(--black);
}

.name-cell.selected-reference {
    background-color: var(--esa-blue-light-light);
    color: var(--white);
}

.status-cell.match {
    background-color: var(--esa-green-light);
}