/* ═══════════════════════════════════════════════════════════════════════════
   WTableView — Dark Theme (Cyborg uyumlu)
   Wt layout ve genislik yonetimi dokunulmaz, sadece renk/stil.
   ═══════════════════════════════════════════════════════════════════════════ */

.Wt-itemview {
    background: rgb(30, 30, 30);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 4px;
}

/* Dikey scrollbar — ince, karanlik tema uyumlu */
.Wt-tableview {
    scrollbar-width: thin;
    scrollbar-color: #333 rgb(30, 30, 30);
    overflow-x: auto !important;
}
.Wt-tableview ::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
.Wt-tableview ::-webkit-scrollbar-track {
    background: rgb(30, 30, 30);
}
.Wt-tableview ::-webkit-scrollbar-thumb {
    background: #333;
    border-radius: 3px;
}
.Wt-tableview ::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* Header — Wt autoJavaScript inline olarak:
   - marginRight = scrollbarWidth (8px)
   - width = containerWidth - scrollbarWidth (830px)
   CSS !important ile her ikisini de override ediyoruz.
   Header scrollbar alanini kapsamali. */
.Wt-tableview .Wt-header {
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    background: rgb(30, 30, 30);
    margin-right: 0 !important;
    width: 100% !important;
}

.Wt-tableview .Wt-headerdiv,
.Wt-tableview .tcontainer {
    background: rgb(30, 30, 30);
    overflow-x: auto !important;
}

/* Tum ic div'ler ayni arka plan */
.Wt-tableview div {
    background-color: rgb(30, 30, 30);
}

/* Header cell — mavi border gizle */
.Wt-tableview .Wt-header .Wt-tv-c {
    border-right-color: transparent !important;
    border-bottom-color: transparent !important;
}

/* Header text */
.Wt-tableview .Wt-header .Wt-label {
    color: #2A9FD6;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

/* Sort header indicator */
.Wt-tableview .Wt-header .Wt-tv-sh {
    color: #2A9FD6;
}

/* Resize handle — gorunmez */
.Wt-tableview .Wt-tv-rh {
    background: transparent !important;
}

/* Body background */
.Wt-tableview .Wt-tv-contents,
.Wt-tableview .Wt-spacer,
.Wt-itemview .Wt-spacer {
    background-color: rgb(30, 30, 30);
}

/* Wt absolute positioning kullanir. Kolon genislikleri C++ tarafinda
   setColumnWidth() ile ayarlaniyor (StoragePage.cpp resize_columns). */

/* Row cells */
.Wt-tableview .Wt-tv-c {
    color: #ccc;
    font-size: 13px;
    padding: 4px 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    border-right-color: transparent !important;
}

/* Alternating row colors */
.Wt-tableview .Wt-tv-c[style*="background-color"] {
    background-color: rgba(255, 255, 255, 0.015) !important;
}

/* Hover */
.Wt-tableview .Wt-tv-c:hover {
    background-color: rgba(42, 159, 214, 0.05) !important;
}

/* Selected row */
.Wt-tableview .Wt-selected .Wt-tv-c,
.Wt-itemview .Wt-selected {
    background-color: rgba(42, 159, 214, 0.2) !important;
    color: #fff;
}

/* Link */
.table_link {
    color: #2A9FD6;
    text-decoration: none;
    cursor: pointer;
    transition: color 0.15s ease, background-color 0.15s ease;
}

.table_link:hover {
    color: #fff;
    text-decoration: underline;
    background-color: rgba(42, 159, 214, 0.15) !important;
}
