private function calculateTableWidth(): int
    {
        // Now calculate the total width of the table
        $tableWidth = 0;

        // Add the width of the columns
        foreach ($this->columnsWidths as $width) {
            $tableWidth += $width;
        }

        // Add 1 for the first separator
        $tableWidth += 1;

        // Add the left and right padding * number of columns
        $tableWidth += ($this->options['cells_padding'][1] + $this->options['cells_padding'][3]) * count($this->columnsWidths);

        // Add the left separators
        $tableWidth += count($this->columnsWidths);

        return $tableWidth;
    }