.sheet-wrapper {
    display: flex;
    transform: translateX(-30px);
    width: calc(100% + 30px);
    position: relative;
    margin: 0;
    padding: 0;
    overflow-x: auto;
    overflow-y: hidden;
    
    /* Modern standard properties */
    scrollbar-width: thin;
    scrollbar-color: rgba(0, 0, 0, 0.3) transparent;
}

/* Webkit browsers (Chrome, Safari, Edge) */
.sheet-wrapper::-webkit-scrollbar {
    height: 6px;
} 

.sheet-wrapper::-webkit-scrollbar-track {
    background: transparent;
}

.sheet-wrapper::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 3px;
    transition: background 0.2s ease;
}

.sheet-wrapper::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 0, 0, 0.5);
}

.sheet-table-container {
    padding: 8px;
    position: relative;
    margin: 0;
}

.sheet-results-header {
    font-size: 0.9em;
    font-weight: 500;
    margin: 0 0 8px 0;
    padding: 6px 10px;
    background-color: #f8f9fa;
    border-radius: 4px;
    border-left: 3px solid #a7ede3;
    display: flex;
    justify-content: space-between;
}

.sheet-data-table {
    border-collapse: collapse;
    margin: 0;
    font-size: 0.85em;
    width: 100%;
    min-width: 400px;
    overflow: hidden;
    position: relative;
    font-family: 'Montserrat', sans-serif;
}

.sheet-data-table thead tr {
    color: #000;
    text-align: center;
    border-bottom: 2px solid #a7ede3;
}

.sheet-data-table thead th {
    position: sticky;
    top: 0;
    background: white;
    z-index: 2;
    white-space: nowrap;
    padding: 8px 24px 8px 8px;
}

.sheet-data-table th,
.sheet-data-table td {
    border-left: 1px solid #eee;
    height: 32px;
    padding: 4px 8px;
    max-width: 200px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.sheet-data-table th:first-child,
.sheet-data-table td:first-child {
    border-left: none;
}

.sheet-data-table th:last-child,
.sheet-data-table td:last-child {
    border-right: none;
}

.sheet-data-table td {
    cursor: pointer;
    border: 1px solid #eee;
}

.sheet-data-table tbody tr {
    border-bottom: 1px solid #eee;
    position: relative;
}

.sheet-data-table tbody tr:nth-of-type(even) {
    background-color: #f3f3f3;
}

.sheet-data-table tbody tr:last-of-type {
    border-bottom: 2px solid #a7ede3;
}

.sheet-cell-highlight {
    background-color: #a7ede3 !important;
}
.row-toggles-container {
    z-index: 3;
}
.row-toggle-wrapper:first-child{
    margin-top: 48px;
}
.row-toggle-wrapper {
    height: 41px;
    width: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.row-toggle-button {
    appearance: none;
    -webkit-appearance: none;
    width: 12px;
    height: 12px;
    border: 2px solid #d0d0d0;
    border-radius: 50%;
    background: white;
    cursor: pointer;
    position: relative;
    outline: none;
    transition: all 0.25s ease;
}

.row-toggle-button:checked {
    border-color: #a7ede3;
    background: #a7ede3;
}

.row-toggle-button:checked::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 4px;
    height: 4px;
    background: white;
    border-radius: 50%;
    transform: translate(-50%, -50%);
}

.row-toggle-button:hover {
    border-color: #8ee5d8;
}

.row-toggle-button:focus {
    box-shadow: 0 0 0 2px rgba(167, 237, 227, 0.3);
}
.results-container{
    border: 1px solid #eee;
    border-radius: 8px;
    overflow-x: auto;
    flex: 1;
}


.sheet-hide-button {
    height: 16px;
    width: 16px;
    padding: 0;
    position: absolute;
    right: 2px;
    top: 10px;
    transform: translateY(-50%);
    border: none;
    border-radius: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #a7ede3;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.sheet-data-table th:hover .sheet-hide-button {
    opacity: 0.75;
}

.sheet-hide-button:hover {
    cursor: pointer;
    opacity: 1 !important;
}

.sheet-hide-button:before,
.sheet-hide-button:after {
    position: absolute;
    content: ' ';
    height: 8px;
    width: 2px;
    background-color: #fff;
    border-radius: 1px;
}

.sheet-hide-button:before {
    transform: rotate(45deg);
}

.sheet-hide-button:after {
    transform: rotate(-45deg);
}

.sheet-restore-container {
    margin: 6px 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sheet-restore-button {
    height: 24px;
    width: 24px;
    background-color: #fff;
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 20px;
    line-height: 0;
    padding: 0;
    position: relative;
}

.sheet-restore-button::after {
    content: '';
    background-image: url('data:image/svg+xml,<%3Fxml version="1.0" encoding="utf-8"%3F><svg fill="%23333333" width="80px" height="80px" viewBox="-0.5 -2 24 24" xmlns="http://www.w3.org/2000/svg" preserveAspectRatio="xMinYMin" class="jam jam-undo"><path d="M5.308 7.612l1.352-.923a.981.981 0 0 1 1.372.27 1.008 1.008 0 0 1-.266 1.388l-3.277 2.237a.981.981 0 0 1-1.372-.27L.907 6.998a1.007 1.007 0 0 1 .266-1.389.981.981 0 0 1 1.372.27l.839 1.259C4.6 3.01 8.38 0 12.855 0c5.458 0 9.882 4.477 9.882 10s-4.424 10-9.882 10a.994.994 0 0 1-.988-1c0-.552.443-1 .988-1 4.366 0 7.906-3.582 7.906-8s-3.54-8-7.906-8C9.311 2 6.312 4.36 5.308 7.612z" /></svg>');
    height: 15px;
    width: 15px;
    background-size: 100%;
    position: absolute;
    top: 5px;
    left: 4px;
}

.sheet-info-line {
    margin: 8px 0 0 0;
    font-weight: 500;
    padding: 6px 8px;
    background-color: #f8f9fa;
    border-radius: 4px;
    white-space: normal;
    word-wrap: break-word;
    font-size: 0.85em;
    border: 2px dashed #d1d5db;
    transition: all 0.2s ease;
    min-height: 20px;
    outline: none;
	max-height: 120px;
	overflow: scroll;
}

.sheet-info-line:focus {
    border: 2px solid #2196F3;
    background-color: #fff;
}

.ginfodivider {
    background-color: #e2e2e2;
    height: 1px;
    border: none;
    margin-top: 10px;
    margin-bottom: 15px;
}


.sheet-table-container.tutorial-highlight .results-container::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 25%;
    width: 50%;
    height: 44px;
    transform: translateY(-50%);
    background-image: 
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='42' height='42' viewBox='0 0 1024 1024'%3E%3Cpath fill='white' d='M338.752 104.704a64 64 0 000 90.496l316.8 316.8-316.8 316.8a64 64 0 0090.496 90.496l362.048-362.048a64 64 0 000-90.496L429.248 104.704a64 64 0 00-90.496 0z'/%3E%3C/svg%3E"),
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='42' height='42' viewBox='0 0 1024 1024'%3E%3Cpath fill='white' d='M338.752 104.704a64 64 0 000 90.496l316.8 316.8-316.8 316.8a64 64 0 0090.496 90.496l362.048-362.048a64 64 0 000-90.496L429.248 104.704a64 64 0 00-90.496 0z'/%3E%3C/svg%3E"),
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='42' height='42' viewBox='0 0 1024 1024'%3E%3Cpath fill='white' d='M338.752 104.704a64 64 0 000 90.496l316.8 316.8-316.8 316.8a64 64 0 0090.496 90.496l362.048-362.048a64 64 0 000-90.496L429.248 104.704a64 64 0 00-90.496 0z'/%3E%3C/svg%3E");
    background-size: 42px 42px;
    background-repeat: no-repeat;
    background-position: -50px center, -100px center, -150px center;
    filter: drop-shadow(1px 1px 3px rgba(0,0,0,0.2));
    animation: smooth-flow 5s ease-in-out infinite;
    pointer-events: none;
    z-index: 10;
    opacity: 0.4;
    transition: opacity 0.8s ease-in-out;
}

@keyframes smooth-flow {
    0% { background-position: -50px center, -100px center, -150px center; }
    30% { background-position: 25% center, 20% center, 15% center; }
    70% { background-position: 75% center, 70% center, 65% center; }
    100% { background-position: calc(100% + 50px) center, calc(100% + 100px) center, calc(100% + 150px) center; }
}

.sheet-table-container.tutorial-highlight .results-container:hover::before {
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
}

@media screen and (max-width: 768px) {
    .sheet-table-container {
        padding: 4px;
    }
    
    .sheet-data-table {
        font-size: 0.8em;
        margin: 0;
    }
    
    .sheet-data-table th,
    .sheet-data-table td {
        padding: 4px 6px;
        height: 28px;
    }
    
    .sheet-info-line {
        font-size: 0.8em;
        margin-top: 8px;
    }
}