/* ════ Cədvəldə rəqəm seçib cəmləmə ════ */

td.tsum-c {
    cursor: cell;
    user-select: none;
    -webkit-user-select: none;
}

td.tsum-c:hover {
    outline: 1px dotted #9db4c8;
    outline-offset: -1px;
}

td.tsum-sel {
    background: #cfe3f5 !important;
    outline: 1px solid #5b8db8;
    outline-offset: -1px;
    color: #10314c;
}

.tsum-bar {
    position: fixed;
    left: 50%;
    bottom: 18px;
    transform: translateX(-50%);
    z-index: 99998;
    display: flex;
    align-items: center;
    gap: 6px;
    background: #1f3a52;
    color: #fff;
    font-size: 12px;
    padding: 7px 10px 7px 14px;
    border: 1px solid #12293c;
    box-shadow: 0 6px 20px rgba(0, 0, 0, .35);
    max-width: 94vw;
    flex-wrap: wrap;
}

.tsum-bar[hidden] { display: none; }
.tsum-bar b { color: #9ec7e8; font-weight: normal; }

.tsum-sep {
    display: inline-block;
    width: 1px;
    height: 12px;
    background: rgba(255, 255, 255, .25);
    margin: 0 8px;
    vertical-align: middle;
}

.tsum-copy { cursor: copy; border-bottom: 1px dotted rgba(255, 255, 255, .45); }
.tsum-copy:hover { color: #ffe08a; }
.tsum-strong { font-weight: bold; font-size: 13px; }
.tsum-copied { color: #8ff08f !important; border-bottom-color: transparent; }

.tsum-x {
    background: transparent;
    border: 0;
    color: #cfe0ee;
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
    padding: 0 2px 0 8px;
}

.tsum-x:hover { color: #fff; }

/* Taskbar varsa zolaq onun üstündə dayansın. */

@media (max-width: 640px) {
    .tsum-bar { font-size: 11px; padding: 6px 8px; left: 6px; right: 6px; transform: none; max-width: none; }
    .tsum-sep { margin: 0 5px; }
}

@media print {
    .tsum-bar { display: none !important; }
    td.tsum-sel { background: transparent !important; outline: 0; }
}
