/* GŁÓWNY WRAPPER — zapewnia działający scrollbar */
.dc-jtable-wrapper {
    position: relative;
    display: block;
    overflow-x: auto;
    overflow-y: hidden;
    width: 100%;

    /* Zapobiega ucinaniu */
    white-space: nowrap;

    /* Styl scrollbara */
    scrollbar-width: auto;
    scrollbar-color: #999 transparent;
}

.dc-jtable-wrapper::-webkit-scrollbar {
    height: 10px;
}

.dc-jtable-wrapper::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 10px;
}

.dc-jtable-wrapper::-webkit-scrollbar-track {
    background: transparent;
}

/* Tabela w wrapperze – NIE MOŻE się ściskać */
.dc-jtable-wrapper table {
    width: max-content !important;  /* klucz */
    display: block;
}

/* PANEL KONTROLNY — zawsze widoczny */
.dc-jtable-controls {
    position: fixed;
    right: 30px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 99;
}

.dc-jtable-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid #ccc;
    background: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 5px rgba(0,0,0,0.25);
}

.dc-jtable-btn:hover {
    background: #f5f5f5;
}

@keyframes dc-jtable-pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.22); }
    100% { transform: scale(1); }
}

.dc-jtable-pulse {
    animation: dc-jtable-pulse 0.8s ease-in-out infinite;
}
