/* Main wrapper */
.wtm-table-container {
    position: relative;
    width: 100%;
    overflow: hidden;
    margin: 40px 0 20px;
}

/* Header containers */
.wtm-header-container {
    position: relative;
    width: 100%;
    background: #fff;
    z-index: 10;
}

.wtm-column-headers {
    display: flex;
    position: sticky;
    top: 0;
    background: #f4f4f4;
    z-index: 3;
    border-bottom: 1px solid #ddd;
}

.wtm-corner-header {
    position: sticky;
    left: 0;
    min-width: 150px;
    background: #f4f4f4;
    z-index: 4;
    border-right: 1px solid #ddd;
    padding: 12px;
    font-weight: bold;
}

.wtm-header-cell {
    padding: 12px;
    font-weight: bold;
    min-width: 150px;
    border-right: 1px solid #ddd;
    white-space: nowrap;
}

/* Scrollable content area */
.wtm-table-scroll {
    position: relative;
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

/* Main table */
.wtm-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}

/* Row headers */
.wtm-row-header {
    position: sticky;
    left: 0;
    background: #fff;
    z-index: 2;
    min-width: 150px;
    padding: 12px;
    border-right: 1px solid #ddd;
    border-bottom: 1px solid #ddd;
}

/* Table cells */
.wtm-table td {
    padding: 12px;
    border-right: 1px solid #ddd;
    border-bottom: 1px solid #ddd;
    min-width: 150px;
}

/* Gradient shadows */
.wtm-gradient {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 20px;
    pointer-events: none;
    z-index: 5;
}

.wtm-gradient-left {
    left: 150px; /* Width of row header */
    background: linear-gradient(to right, rgba(255,255,255,0.9), transparent);
}

.wtm-gradient-right {
    right: 0;
    background: linear-gradient(to left, rgba(255,255,255,0.9), transparent);
}

/* Responsive styles */
@media screen and (max-width: 768px) {
    .wtm-table-container {
        margin: 20px 0;
    }

    .wtm-corner-header,
    .wtm-header-cell,
    .wtm-row-header,
    .wtm-table td {
        min-width: 120px;
        padding: 8px;
    }
}

/* Print styles */
@media print {
    .wtm-table-container {
        overflow: visible;
    }
    
    .wtm-column-headers,
    .wtm-row-header {
        position: static;
    }
    
    .wtm-gradient {
        display: none;
    }
} 